CFavouritesItem Class Reference
#include
<mw/favouritesitem.h>
Link against: FavouritesEngine.lib
class CFavouritesItem : public CBase |
Detailed Description
CFavouritesItem is the base class for representing one favourites entry (item or folder). Instances of this class are used to exchange data between the Favourites Engine and clients using it.
Member Enumeration Documentation
Enum TType
Type of an item (item or folder).
Defines the type of an item (item or folder).
Enumerator | Value | Description |
---|
ENone | | |
EItem | | |
EFolder | | |
Constructor & Destructor Documentation
~CFavouritesItem ( )
IMPORT_C | ~CFavouritesItem | ( | ) | [virtual] |
Member Function Documentation
ClearL ( )
Reset the item to default values.
- Since
- 0.9
ContextId ( )
IMPORT_C TInt32 | ContextId | ( | ) | const |
Get context id associated with this item.
- Since
- 0.9
ExternalizeL ( RWriteStream & )
Parameter | Description | aStream | The stream to externalize to. |
InternalizeL ( RReadStream & )
Parameter | Description | aStream | The stream to externalize from. |
IsFactoryItem ( )
IMPORT_C TBool | IsFactoryItem | ( | ) | const |
Check if this is a factory item.
- Since
- 0.9
Returns: ETrue if this is a factory item.
IsFolder ( )
IMPORT_C TBool | IsFolder | ( | ) | const |
Check if this is a folder.
- Since
- 0.9
Returns: ETrue if this is a folder.
IsHidden ( )
IMPORT_C TBool | IsHidden | ( | ) | const |
Check if this is a hidden.
- Since
- 0.9
Returns: ETrue if this is hidden.
IsItem ( )
IMPORT_C TBool | IsItem | ( | ) | const |
Check if this is an item (not folder).
- Since
- 0.9
Returns: ETrue if this is an item.
IsReadOnly ( )
IMPORT_C TBool | IsReadOnly | ( | ) | const |
Check if this is a read-only in database. Note that ETrue value does not prevent modifying this
CFavouritesItem object.
- Since
- 0.9
Returns: ETrue if this is read-only in database.
Modified ( )
IMPORT_C TTime | Modified | ( | ) | const |
Get last modification time (of database entry), universal time. This can be zero if:
Returns: TTime, last modification time
Name ( )
IMPORT_C const TPtrC | Name | ( | ) | const |
Get the name of this item.
- Since
- 0.9
Returns: The name of this item.
NewL ( )
Two-phased constructor. Leaves on failure.
- Since
- 0.9
Returns: The constructed item.
NewLC ( )
Two-phased constructor. Leaves on failure. Places the instance on the cleanup stack.
- Since
- 0.9
Returns: The constructed item.
ParentFolder ( )
IMPORT_C TInt | ParentFolder | ( | ) | const |
Get the uid of the parent folder of this item.
- Since
- 0.9
Returns: The unique id of the parent folder.
Password ( )
IMPORT_C const TPtrC | Password | ( | ) | const |
Get password associated with this item.
- Since
- 0.9
SetContextId ( TInt32 )
IMPORT_C void | SetContextId | ( | TInt32 | aContextId | ) | |
Set context id of the item.
- Since
- 0.9
Parameter | Description | aContextId | The context id to be set. |
SetHidden ( TBool )
Set hidden value of the item.
- Since
- 0.9
Parameter | Description | aHidden | The hidden value to be set. |
SetNameL ( const TDesC & )
IMPORT_C void | SetNameL | ( | const TDesC & | aName | ) | |
Set name of the item. Leading or trailing whitespace is trimmed. Length limit is KFavouritesMaxName (leaves with KErrOverflow).
- Since
- 0.9
Parameter | Description | aName | The name to be set. |
SetParentFolder ( TInt )
IMPORT_C void | SetParentFolder | ( | TInt | aId | ) | |
Set parent folder.
- Since
- 0.9
Parameter | Description | aId | The unique id of the parent folder. |
SetPasswordL ( const TDesC & )
IMPORT_C void | SetPasswordL | ( | const TDesC & | aPassword | ) | |
Set password. Length limit is KFavouritesMaxPassword (leaves with KErrOverflow).
- Since
- 0.9
Parameter | Description | aPassword | The password to be set. |
SetType ( TType )
IMPORT_C void | SetType | ( | TType | aType | ) | |
Set item type (item or folder).
- Since
- 0.9
Parameter | Description | aType | The type to be set. ENone cannot be set (if that is specified, it is ignored). |
SetUrlL ( const TDesC & )
IMPORT_C void | SetUrlL | ( | const TDesC & | aUrl | ) | |
Set URL of the item.
- Since
- 0.9 Length limit is KFavouritesMaxURL (leaves with KErrOverflow).
Parameter | Description | aUrl | The URL to be set. |
SetUserNameL ( const TDesC & )
IMPORT_C void | SetUserNameL | ( | const TDesC & | aUserName | ) | |
Set username of the item. Length limit is KFavouritesMaxUserName (leaves with KErrOverflow).
- Since
- 0.9
Parameter | Description | aUserName | The username to be set. |
SetWapAp ( const TFavouritesWapAp & )
Set WAP Access Point of the item.
- Since
- 0.9
Parameter | Description | aAccessPoint | The WAP Access point to be set. |
Type ( )
IMPORT_C TType | Type | ( | ) | const |
Get type of the item (item or folder).
- Since
- 0.9
Returns: The type of the item. It is either EFolder or EItem (never ENone).
Uid ( )
Get unique id of the item.
- Since
- 0.9
Url ( )
IMPORT_C const TPtrC | Url | ( | ) | const |
Get the URL of this item.
- Since
- 0.9
Returns: The URL of this item.
UserName ( )
IMPORT_C const TPtrC | UserName | ( | ) | const |
Get the username associated with this item.
- Since
- 0.9
WapAp ( )
Get WAP Access Point id associated with this item.
- Since
- 0.9
Returns: The WAP Access Point id.
operator= ( const CFavouritesItem & )
Assignment operator.
- Since
- 0.9
Parameter | Description | aCopyFrom | Assign from this. |