API published in: S60 1st Ed
Link against: favouritesengine.lib
Required Capabilities
ReadUserData WriteUserData
#include <favouritesitem.h>
Instances of this class are used to exchange data between the Favourites Engine and clients using it.
Public Types |
|
enum | TType { ENone, EItem, EFolder } |
Type of an item (item or folder). More... |
|
Public Member Functions |
|
virtual IMPORT_C | ~CFavouritesItem () |
Destructor. |
|
IMPORT_C CFavouritesItem & | operator= (const CFavouritesItem &aCopyFrom) |
Assignment operator. |
|
IMPORT_C TInt | Uid () const |
Get unique id of the item. |
|
IMPORT_C TInt | ParentFolder () const |
Get the uid of the parent folder of this item. |
|
IMPORT_C TType | Type () const |
Get type of the item (item or folder). |
|
IMPORT_C const TPtrC | Name () const |
Get the name of this item. |
|
IMPORT_C const TPtrC | Url () const |
Get the URL of this item. |
|
IMPORT_C TFavouritesWapAp | WapAp () const |
Get WAP Access Point id associated with this item. |
|
IMPORT_C const TPtrC | UserName () const |
Get the username associated with this item. |
|
IMPORT_C const TPtrC | Password () const |
Get password associated with this item. |
|
IMPORT_C TInt32 | ContextId () const |
Get context id associated with this item. |
|
IMPORT_C TBool | IsItem () const |
Check if this is an item (not folder). |
|
IMPORT_C TBool | IsFolder () const |
Check if this is a folder. |
|
IMPORT_C TBool | IsFactoryItem () const |
Check if this is a factory item. |
|
IMPORT_C TBool | IsReadOnly () const |
Check if this is a read-only in database. |
|
IMPORT_C TTime | Modified () const |
Get last modification time (of database entry), universal time. |
|
IMPORT_C void | ClearL () |
Reset the item to default values. |
|
IMPORT_C void | SetParentFolder (TInt aId) |
Set parent folder. |
|
IMPORT_C void | SetType (TType aType) |
Set item type (item or folder). |
|
IMPORT_C void | SetNameL (const TDesC &aName) |
Set name of the item. |
|
IMPORT_C void | SetUrlL (const TDesC &aUrl) |
Set URL of the item. |
|
IMPORT_C void | SetWapAp (const TFavouritesWapAp &aAccessPoint) |
Set WAP Access Point of the item. |
|
IMPORT_C void | SetUserNameL (const TDesC &aUserName) |
Set username of the item. |
|
IMPORT_C void | SetPasswordL (const TDesC &aPassword) |
Set password. |
|
IMPORT_C void | SetContextId (TInt32 aContextId) |
Set context id of the item. |
|
void | ExternalizeL (RWriteStream &aStream) const |
Externalize into a stream. |
|
void | InternalizeL (RReadStream &aStream) |
Internalize from a stream. |
|
Static Public Member Functions |
|
static IMPORT_C CFavouritesItem * | NewLC () |
Two-phased constructor. |
|
static IMPORT_C CFavouritesItem * | NewL () |
Two-phased constructor. |
|
Friends |
|
class | RFavouritesDb |
|
Type of an item (item or folder). |
|
Destructor. |
|
Reset the item to default values.
|
|
Get context id associated with this item.
|
|
Externalize into a stream.
|
|
Internalize from a stream.
|
|
Check if this is a factory item.
|
|
Check if this is a folder.
|
|
Check if this is an item (not folder).
|
|
Check if this is a read-only in database. Note that ETrue value does not prevent modifying this CFavouritesItem object.
|
|
Get last modification time (of database entry), universal time. This can be zero if:
|
|
Get the name of this item.
|
|
Two-phased constructor. Leaves on failure.
|
|
Two-phased constructor. Leaves on failure. Places the instance on the cleanup stack.
|
|
Assignment operator.
|
|
Get the uid of the parent folder of this item.
|
|
Get password associated with this item.
|
|
Set context id of the item.
|
|
Set name of the item. Leading or trailing whitespace is trimmed. Length limit is KFavouritesMaxName (leaves with KErrOverflow).
|
|
Set parent folder.
|
|
Set password. Length limit is KFavouritesMaxPassword (leaves with KErrOverflow).
|
|
Set item type (item or folder).
|
|
Set URL of the item. Length limit is KFavouritesMaxURL (leaves with KErrOverflow).
|
|
Set username of the item. Length limit is KFavouritesMaxUserName (leaves with KErrOverflow).
|
|
Set WAP Access Point of the item.
|
|
Get type of the item (item or folder).
|
|
Get unique id of the item.
|
|
Get the URL of this item.
|
|
Get the username associated with this item.
|
|
Get WAP Access Point id associated with this item.
|
|