CLiwCriteriaItem Class Reference
| class CLiwCriteriaItem : public CBase |
Criteria item data. This class encapsulates an LIW criteria item. Criteria items are building blocks for LIW interests, i.e. an interest is a list of criteria items. A criteria item can be defined dynamically (by using this class) or in a resource file.
ServiceHandler.lib
- Since
- Series 60 2.6
Constructor & Destructor Documentation
CLiwCriteriaItem()
| CLiwCriteriaItem | ( | ) | [private] |
~CLiwCriteriaItem()
| IMPORT_C | ~CLiwCriteriaItem | ( | ) | [virtual] |
Member Functions Documentation
ConstructL()
| void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
ConstructL(TInt, TInt, const TDesC8 &)
| void | ConstructL | ( | TInt | aCriteriaId, |
| | TInt | aServiceCmd, |
| | const TDesC8 & | aContentType |
| | ) | [private] |
By default Symbian 2nd phase constructor is private.
ConstructL(TInt, const TDesC8 &, const TDesC8 &)
| void | ConstructL | ( | TInt | aCriteriaId, |
| | const TDesC8 & | aServiceCmd, |
| | const TDesC8 & | aContentType |
| | ) | [private] |
ContentType()
| IMPORT_C const TDesC8 & | ContentType | ( | ) | const |
DefaultProvider()
| IMPORT_C TUid | DefaultProvider | ( | ) | const |
Returns the default provider.
GetMetaDataOptions(TLiwVariant &)
| IMPORT_C void | GetMetaDataOptions | ( | TLiwVariant & | aMetaDataOptions | ) | const |
Id()
Gets the criteria ID, 0 if not defined.
MaxProviders()
| IMPORT_C TInt | MaxProviders | ( | ) | const |
Maximum number of providers allowed for this criteria item.
NewL()
Constructs a criteria item instance with null items.
NewL(TInt, TInt, const TDesC8 &)
Constructs a criteria item instance.
Parameters
| TInt aCriteriaId | The criteria ID. |
| TInt aServiceCmd | The service command. |
| const TDesC8 & aContentType | The content type. |
NewL(TInt, const TDesC8 &, const TDesC8 &)
Constructs a criteria item instance.
Parameters
| TInt aCriteriaId | The criteria ID. |
| const TDesC8 & aServiceCmd | The service command. |
| const TDesC8 & aContentType | Content type. |
NewLC()
Constructs a criteria item instance with null items. Leaves the pointer to the cleanup stack.
NewLC(TInt, TInt, const TDesC8 &)
Constructs a criteria item instance. Leaves the pointer to the cleanup stack.
Parameters
| TInt aCriteriaId | The criteria ID. |
| TInt aServiceCmd | The service command. |
| const TDesC8 & aContentType | The content type. |
NewLC(TInt, const TDesC8 &, const TDesC8 &)
Constructs a criteria item instance.
Parameters
| TInt aCriteriaId | The criteria ID. |
| const TDesC8 & aServiceCmd | The service command. |
| const TDesC8 & aContentType | Content type. |
Options()
| IMPORT_C TUint | Options | ( | ) | const |
ReadFromResoureL(TResourceReader &)
Reads a criteria item from a resource.
RomOnly()
|
TBool
| RomOnly | ( | ) | const [inline] |
If set, only ROM based providers can be attached to this criteria.
ServiceClass()
| IMPORT_C const TUid & | ServiceClass | ( | ) | const |
Gets the service class UID.
ServiceCmd()
| IMPORT_C TInt | ServiceCmd | ( | ) | const |
Gets the service command UID. KNullUid, if not defined.
ServiceCmdStr()
| IMPORT_C const TDesC8 & | ServiceCmdStr | ( | ) | const |
Gets the service command name.
SetContentTypeL(const TDesC8 &)
| IMPORT_C void | SetContentTypeL | ( | const TDesC8 & | aContentType | ) | |
Sets the content type. Makes a copy of the string data.
Parameters
| const TDesC8 & aContentType | Content MIME type, event type or any agreed one. |
SetDefaultProvider(TInt)
| IMPORT_C void | SetDefaultProvider | ( | TInt | aDefault | ) | |
Sets the default provider.
Parameters
| TInt aDefault | The UID of a default provider. |
SetId(TInt)
| IMPORT_C void | SetId | ( | TInt | aId | ) | |
SetMaxProviders(TInt)
| IMPORT_C void | SetMaxProviders | ( | TInt | aMaxProviders | ) | |
Sets the maximum number of providers.
Parameters
| TInt aMaxProviders | The maximum number of providers. |
SetMetaDataOptions(const TLiwVariant &)
| IMPORT_C void | SetMetaDataOptions | ( | const TLiwVariant & | aMetaDataOptions | ) | |
SetOptions(TUint)
| IMPORT_C void | SetOptions | ( | TUint | aOptions | ) | |
SetServiceClass(const TUid &)
| IMPORT_C void | SetServiceClass | ( | const TUid & | aServiceUid | ) | |
Parameters
| const TUid & aServiceUid | The service class, see TLiwServiceClass. |
SetServiceCmd(TInt)
| IMPORT_C void | SetServiceCmd | ( | TInt | aServiceCmd | ) | |
Sets the service command UID.
Parameters
| TInt aServiceCmd | The LIW service command, see TLiwServiceCommands. |
SetServiceCmdL(const TDesC8 &)
| IMPORT_C void | SetServiceCmdL | ( | const TDesC8 & | aServiceCmd | ) | |
Sets the service command name.
Parameters
| const TDesC8 & aServiceCmd | The LIW service command. |
operator==(const CLiwCriteriaItem &)
Equality operator. Two criteria items are considered equal only if all parameters match. The parameters are: criteria id, service command, content type, service class, default provider, max providers and options).
Member Data Documentation
TInt
iCriteriaId
|
TInt
| iCriteriaId | [private] |
TUid
iDefaultProvider
|
TUid
| iDefaultProvider | [private] |
TInt
iMaxProviders
|
TInt
| iMaxProviders | [private] |
TLiwVariant
iMetadataOptions
TUid
iServiceClass
|
TUid
| iServiceClass | [private] |
TInt
iServiceCmd
|
TInt
| iServiceCmd | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.