CCFContextSubscription Class Reference

class CCFContextSubscription : public CBase

Subscription to get information of context changes.

cfservices.lib
Since
S60 5.0

Inherits from

  • CCFContextSubscription

Member Functions Documentation

ContextSource()

const TDesC &ContextSource()const [pure virtual]

Returns a reference to the context source descriptor.

Since
S60 5.0

ContextType()

const TDesC &ContextType()const [pure virtual]

Returns a reference to the context type descriptor.

Since
S60 5.0

DataObjectEnabled()

TBool DataObjectEnabled()const [pure virtual]

Returns if this subscription also subscribes possible data object associated with the context.

Since
S60 5.0

NewL()

IMPORT_C CCFContextSubscription *NewL()[static]

NewLC()

IMPORT_C CCFContextSubscription *NewLC()[static]

OnlyChangesIndicated()

TBool OnlyChangesIndicated()const [pure virtual]

Returns whether only context value changes are indicated.

Since
S60 5.0

SetContextSourceL(const TDesC &)

voidSetContextSourceL(const TDesC &aSource)[pure virtual]

Sets desired context source. Copies the entire argument to the context source member variable.

Since
S60 5.0

Parameters

const TDesC & aSourceDesired context source or empty string if source doesn't matter.

SetContextTypeL(const TDesC &)

voidSetContextTypeL(const TDesC &aContextType)[pure virtual]

Sets desired context type. Copies the entire argument to the context type member variable.

Since
S60 5.0

Parameters

const TDesC & aContextTypeA complete or partial context type from the ontology. If the context type is partial all the context changes starting with this type are indicated. Example: Environment.Temperature Example2: Environment.

SetDataObjectEnabled(TBool)

voidSetDataObjectEnabled(TBoolaEnabled)[pure virtual]

Set indication to contain also possible data object if any. By default data objects are not subscribed.

Since
S60 5.0

Parameters

TBool aEnabledEnable data objects. None.

SetOnlyChangesIndicated(TBool)

voidSetOnlyChangesIndicated(TBoolaIndicateChangesOnly)[pure virtual]

Set indication to happen only when context value changes. The default value for a new CCFContextSubscription is EFalse.

Since
S60 5.0

Parameters

TBool aIndicateChangesOnlyEFalse = all context publications are indicated, ETrue = only publications where context value changes form the previous value are indicated.

SetSubTypeMatch(TBool)

voidSetSubTypeMatch(TBoolaMatchSubTypes)[pure virtual]

Set whether subtypes of the context type are indicated. The default value for a new CCFContextSubscription is EFalse.

Since
S60 5.0

Parameters

TBool aMatchSubTypesETrue = subtypes are indicated by this subscription, EFalse = only type defined in this subscription is indicated.

SubTypeMatch()

TBool SubTypeMatch()const [pure virtual]

Returns whether subtypes of the context type are indicated.

Since
S60 5.0