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

Inherits from

Constructor & Destructor Documentation

CAiwCriteriaItem()

CAiwCriteriaItem ( ) [private]

C++ default constructor.

~CAiwCriteriaItem()

IMPORT_C ~CAiwCriteriaItem ( ) [virtual]

Destructor.

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.

Parameters

TInt aCriteriaId
TInt aServiceCmd
const TDesC8 & aContentType

ContentType()

IMPORT_C const TDesC8 & ContentType ( ) const

Gets the content type.

DefaultProvider()

IMPORT_C TUid DefaultProvider ( ) const

Returns the default provider.

Id()

IMPORT_C TInt Id ( ) const

Gets the criteria ID, 0 if not defined.

MaxProviders()

IMPORT_C TInt MaxProviders ( ) const

Maximum number of providers allowed for this criteria item.

NewL()

IMPORT_C CAiwCriteriaItem * NewL ( ) [static]

Constructs a criteria item instance with null items.

NewL(TInt, TInt, const TDesC8 &)

IMPORT_C CAiwCriteriaItem * NewL ( TInt aCriteriaId,
TInt aServiceCmd,
const TDesC8 & aContentType
) [static]

Constructs a criteria item instance.

Parameters

TInt aCriteriaId The criteria ID.
TInt aServiceCmd The service command.
const TDesC8 & aContentType The content type.

NewLC()

IMPORT_C CAiwCriteriaItem * NewLC ( ) [static]

Constructs a criteria item instance with null items. Leaves the pointer to the cleanup stack.

NewLC(TInt, TInt, const TDesC8 &)

IMPORT_C CAiwCriteriaItem * NewLC ( TInt aCriteriaId,
TInt aServiceCmd,
const TDesC8 & aContentType
) [static]

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

Gets the options.

ReadFromResoureL(TResourceReader &)

IMPORT_C void ReadFromResoureL ( TResourceReader & aReader )

Reads a criteria item from a resource.

Parameters

TResourceReader & aReader A resource reader pointing to a criteria item.

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 )

Sets the criteria ID.

Parameters

TInt aId The criteria ID.

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 )

Sets the options.

Parameters

TUint aOptions Options.

SetServiceClass(const TUid &)

IMPORT_C void SetServiceClass ( const TUid & aServiceUid )

Sets the service class.

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 &)

IMPORT_C TBool operator== ( const CAiwCriteriaItem & 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).

Parameters

const CAiwCriteriaItem & aItem Criteria item to compare.

Member Data Documentation

HBufC8 * iContentType

HBufC8 * iContentType [private]

TInt iCriteriaId

TInt iCriteriaId [private]

TUid iDefaultProvider

TUid iDefaultProvider [private]

TInt iMaxProviders

TInt iMaxProviders [private]

TAiwVariant iOptions

TAiwVariant iOptions [private]

TAiwVariant iReserved

TAiwVariant iReserved [private]

TUid iServiceClass

TUid iServiceClass [private]

TInt iServiceCmd

TInt iServiceCmd [private]