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.
|
Public Member Functions |
virtual IMPORT_C | ~CAiwCriteriaItem () |
| Destructor.
|
IMPORT_C void | SetId (TInt aId) |
| Sets the criteria ID.
|
IMPORT_C void | SetServiceClass (const TUid &aServiceUid) |
| Sets the service class.
|
IMPORT_C void | SetServiceCmd (TInt aServiceCmd) |
| Sets the service command UID.
|
IMPORT_C void | SetContentTypeL (const TDesC8 &aContentType) |
| Sets the content type.
|
IMPORT_C TInt | Id () const |
| Gets the criteria ID, 0 if not defined.
|
IMPORT_C const TUid & | ServiceClass () const |
| Gets the service class UID.
|
IMPORT_C TInt | ServiceCmd () const |
| Gets the service command UID.
|
IMPORT_C const TDesC8 & | ContentType () const |
| Gets the content type.
|
IMPORT_C void | SetOptions (TUint aOptions) |
| Sets the options.
|
IMPORT_C TUint | Options () const |
| Gets the options.
|
IMPORT_C TInt | MaxProviders () const |
| Maximum number of providers allowed for this criteria item.
|
IMPORT_C void | ReadFromResoureL (TResourceReader &aReader) |
| Reads a criteria item from a resource.
|
IMPORT_C TUid | DefaultProvider () const |
| Returns the default provider.
|
IMPORT_C void | SetDefaultProvider (TInt aDefault) |
| Sets the default provider.
|
IMPORT_C TBool | operator== (const CAiwCriteriaItem &aItem) |
| Equality operator.
|
IMPORT_C void | SetMaxProviders (TInt aMaxProviders) |
| Sets the maximum number of providers.
|
TBool | RomOnly () const |
| If set, only ROM based providers can be attached to this criteria.
|
Static Public Member Functions |
static IMPORT_C CAiwCriteriaItem * | NewL () |
| Constructs a criteria item instance with null items.
|
static IMPORT_C CAiwCriteriaItem * | NewLC () |
| Constructs a criteria item instance with null items.
|
static IMPORT_C CAiwCriteriaItem * | NewL (TInt aCriteriaId, TInt aServiceCmd, const TDesC8 &aContentType) |
| Constructs a criteria item instance.
|
static IMPORT_C CAiwCriteriaItem * | NewLC (TInt aCriteriaId, TInt aServiceCmd, const TDesC8 &aContentType) |
| Constructs a criteria item instance.
|