API published in: S60 3rd Ed FP 2
Link against: servicehandler.lib
#include <aiwcommon.h>
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. |
|
Destructor. |
|
Gets the content type.
|
|
Returns the default provider.
|
|
Gets the criteria ID, 0 if not defined.
|
|
Maximum number of providers allowed for this criteria item.
|
|
Constructs a criteria item instance.
|
|
Constructs a criteria item instance with null items.
|
|
Constructs a criteria item instance. Leaves the pointer to the cleanup stack.
|
|
Constructs a criteria item instance with null items. Leaves the pointer to the cleanup stack.
|
|
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).
|
|
Gets the options.
|
|
Reads a criteria item from a resource.
|
|
If set, only ROM based providers can be attached to this criteria.
|
|
Gets the service class UID.
|
|
Gets the service command UID. KNullUid, if not defined.
|
|
Sets the content type. Makes a copy of the string data.
|
|
Sets the default provider.
|
|
Sets the criteria ID.
|
|
Sets the maximum number of providers.
|
|
Sets the options.
|
|
Sets the service class.
|
|
Sets the service command UID.
|