CAiwCriteriaItem Class Reference
class CAiwCriteriaItem : public CBase |
Criteria item data. This class encapsulates an AIW criteria item. Criteria items are building blocks for AIW 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
CAiwCriteriaItem()
CAiwCriteriaItem | ( | ) | [private] |
~CAiwCriteriaItem()
IMPORT_C | ~CAiwCriteriaItem | ( | ) | [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.
ContentType()
IMPORT_C const TDesC8 & | ContentType | ( | ) | const |
DefaultProvider()
IMPORT_C TUid | DefaultProvider | ( | ) | const |
Returns the default provider.
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. |
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. |
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.
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. |
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 TAiwServiceClass. |
SetServiceCmd(TInt)
IMPORT_C void | SetServiceCmd | ( | TInt | aServiceCmd | ) | |
Sets the service command UID.
Parameters
TInt aServiceCmd | The AIW service command, see TAiwServiceCommands. |
operator==(const CAiwCriteriaItem &)
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] |
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.