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.
Public Member Functions | |
---|---|
~CLiwCriteriaItem () | |
IMPORT_C const TDesC8 & | ContentType () |
IMPORT_C TUid | DefaultProvider () |
IMPORT_C void | GetMetaDataOptions ( TLiwVariant &) |
IMPORT_C TInt | Id () |
IMPORT_C TInt | MaxProviders () |
IMPORT_C CLiwCriteriaItem * | NewL () |
IMPORT_C CLiwCriteriaItem * | NewL ( TInt , TInt , const TDesC8 &) |
IMPORT_C CLiwCriteriaItem * | NewL ( TInt , const TDesC8 &, const TDesC8 &) |
IMPORT_C CLiwCriteriaItem * | NewLC () |
IMPORT_C CLiwCriteriaItem * | NewLC ( TInt , TInt , const TDesC8 &) |
IMPORT_C CLiwCriteriaItem * | NewLC ( TInt , const TDesC8 &, const TDesC8 &) |
IMPORT_C TUint | Options () |
IMPORT_C void | ReadFromResoureL ( TResourceReader &) |
TBool | RomOnly () |
IMPORT_C const TUid & | ServiceClass () |
IMPORT_C TInt | ServiceCmd () |
IMPORT_C const TDesC8 & | ServiceCmdStr () |
IMPORT_C void | SetContentTypeL (const TDesC8 &) |
IMPORT_C void | SetDefaultProvider ( TInt ) |
IMPORT_C void | SetId ( TInt ) |
IMPORT_C void | SetMaxProviders ( TInt ) |
IMPORT_C void | SetMetaDataOptions (const TLiwVariant &) |
IMPORT_C void | SetOptions ( TUint ) |
IMPORT_C void | SetServiceClass (const TUid &) |
IMPORT_C void | SetServiceCmd ( TInt ) |
IMPORT_C void | SetServiceCmdL (const TDesC8 &) |
IMPORT_C TBool | operator== (const CLiwCriteriaItem &) |
Private Member Functions | |
---|---|
CLiwCriteriaItem () | |
void | ConstructL () |
void | ConstructL ( TInt , TInt , const TDesC8 &) |
void | ConstructL ( TInt , const TDesC8 &, const TDesC8 &) |
void | ConstructL | ( | TInt | aCriteriaId, |
TInt | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [private] |
By default Symbian 2nd phase constructor is private.
void | ConstructL | ( | TInt | aCriteriaId, |
const TDesC8 & | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [private] |
IMPORT_C void | GetMetaDataOptions | ( | TLiwVariant & | aMetaDataOptions | ) | const |
TLiwVariant & aMetaDataOptions |
IMPORT_C TInt | MaxProviders | ( | ) | const |
Maximum number of providers allowed for this criteria item.
IMPORT_C CLiwCriteriaItem * | NewL | ( | ) | [static] |
Constructs a criteria item instance with null items.
IMPORT_C CLiwCriteriaItem * | NewL | ( | TInt | aCriteriaId, |
TInt | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [static] |
Constructs a criteria item instance.
IMPORT_C CLiwCriteriaItem * | NewL | ( | TInt | aCriteriaId, |
const TDesC8 & | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [static] |
Constructs a criteria item instance.
IMPORT_C CLiwCriteriaItem * | NewLC | ( | ) | [static] |
Constructs a criteria item instance with null items. Leaves the pointer to the cleanup stack.
IMPORT_C CLiwCriteriaItem * | NewLC | ( | TInt | aCriteriaId, |
TInt | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [static] |
Constructs a criteria item instance. Leaves the pointer to the cleanup stack.
IMPORT_C CLiwCriteriaItem * | NewLC | ( | TInt | aCriteriaId, |
const TDesC8 & | aServiceCmd, | |||
const TDesC8 & | aContentType | |||
) | [static] |
Constructs a criteria item instance.
IMPORT_C void | ReadFromResoureL | ( | TResourceReader & | aReader | ) |
Reads a criteria item from a resource.
TResourceReader & aReader | A resource reader pointing to a criteria item. |
TBool | RomOnly | ( | ) | const [inline] |
If set, only ROM based providers can be attached to this criteria.
IMPORT_C TInt | ServiceCmd | ( | ) | const |
Gets the service command UID. KNullUid, if not defined.
IMPORT_C void | SetContentTypeL | ( | const TDesC8 & | aContentType | ) |
Sets the content type. Makes a copy of the string data.
const TDesC8 & aContentType | Content MIME type, event type or any agreed one. |
IMPORT_C void | SetDefaultProvider | ( | TInt | aDefault | ) |
Sets the default provider.
TInt aDefault | The UID of a default provider. |
IMPORT_C void | SetId | ( | TInt | aId | ) |
Sets the criteria ID.
TInt aId | The criteria ID. |
IMPORT_C void | SetMaxProviders | ( | TInt | aMaxProviders | ) |
Sets the maximum number of providers.
TInt aMaxProviders | The maximum number of providers. |
IMPORT_C void | SetMetaDataOptions | ( | const TLiwVariant & | aMetaDataOptions | ) |
const TLiwVariant & aMetaDataOptions |
IMPORT_C void | SetOptions | ( | TUint | aOptions | ) |
Sets the options.
TUint aOptions | Options. |
IMPORT_C void | SetServiceClass | ( | const TUid & | aServiceUid | ) |
Sets the service class.
const TUid & aServiceUid | The service class, see TLiwServiceClass. |
IMPORT_C void | SetServiceCmd | ( | TInt | aServiceCmd | ) |
Sets the service command UID.
TInt aServiceCmd | The LIW service command, see TLiwServiceCommands. |
IMPORT_C void | SetServiceCmdL | ( | const TDesC8 & | aServiceCmd | ) |
Sets the service command name.
const TDesC8 & aServiceCmd | The LIW service command. |
IMPORT_C TBool | operator== | ( | const CLiwCriteriaItem & | aItem | ) |
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).
const CLiwCriteriaItem & aItem | Criteria item to compare. |
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.