CCFContextSubscription Class Reference
| class CCFContextSubscription : public CBase |
Subscription to get information of context changes.
cfservices.lib
- Since
- S60 5.0
Member Functions Documentation
ContextSource()
| const TDesC & | ContextSource | ( | ) | const [pure virtual] |
Returns a reference to the context source descriptor.
ContextType()
| const TDesC & | ContextType | ( | ) | const [pure virtual] |
Returns a reference to the context type descriptor.
DataObjectEnabled()
|
TBool
| DataObjectEnabled | ( | ) | const [pure virtual] |
Returns if this subscription also subscribes possible data object associated with the context.
OnlyChangesIndicated()
|
TBool
| OnlyChangesIndicated | ( | ) | const [pure virtual] |
Returns whether only context value changes are indicated.
SetContextSourceL(const TDesC &)
| void | SetContextSourceL | ( | const TDesC & | aSource | ) | [pure virtual] |
Sets desired context source. Copies the entire argument to the context source member variable.
Parameters
| const TDesC & aSource | Desired context source or empty string if source doesn't matter. |
SetContextTypeL(const TDesC &)
| void | SetContextTypeL | ( | const TDesC & | aContextType | ) | [pure virtual] |
Sets desired context type. Copies the entire argument to the context type member variable.
Parameters
| const TDesC & aContextType | A 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)
| void | SetDataObjectEnabled | ( | TBool | aEnabled | ) | [pure virtual] |
Set indication to contain also possible data object if any. By default data objects are not subscribed.
Parameters
| TBool aEnabled | Enable data objects. None. |
SetOnlyChangesIndicated(TBool)
| void | SetOnlyChangesIndicated | ( | TBool | aIndicateChangesOnly | ) | [pure virtual] |
Set indication to happen only when context value changes. The default value for a new CCFContextSubscription is EFalse.
Parameters
| TBool aIndicateChangesOnly | EFalse = all context publications are indicated, ETrue = only publications where context value changes form the previous value are indicated. |
SetSubTypeMatch(TBool)
| void | SetSubTypeMatch | ( | TBool | aMatchSubTypes | ) | [pure virtual] |
Set whether subtypes of the context type are indicated. The default value for a new CCFContextSubscription is EFalse.
Parameters
| TBool aMatchSubTypes | ETrue = 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.
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.