CCFContextObject Class Reference
class CCFContextObject : public CBase |
Context object is used to deliver context information. A single context object consists of source, type, value timestamp and confidence.
Source: Source defines the origin of the context which can contain several different types.
Type: Type describes a specific context from a certain source. Type can have also sub types. Example: [TypeA] [TypeA.SubType]
Value: Value defines the current value of the context. Value is always represneted as a descriuptor but it can be treated inside rules as in the form of string, int, float or boolean.
Timestamp: Timestamp defines when the context value has been updated.
CFServices.lib
- Since
- S60 5.0
Member Functions Documentation
Confidence()
TUint8
| Confidence | ( | ) | const [pure virtual] |
Returns the confidence value of the context in percentages which should normally range between 0 and 100%.
CopyL(const CCFContextObject &)
Copies data from existing context object to this one.
NewL(const TDesC &, const TDesC &, const TDesC &)
Parameters
const TDesC & aSource | Initial source of the context. |
const TDesC & aType | Initial type of the context. |
const TDesC & aValue | Initial value of the context. |
NewLC(const TDesC &, const TDesC &, const TDesC &)
SetConfidence(const TUint8 &)
void | SetConfidence | ( | const TUint8 & | aConfidence | ) | [pure virtual] |
Sets the context confidence. Sets the confidence for this context as a percentage number which should normally be between zero and one hundred (0 - 100%). The actual value is not checked.
Parameters
const TUint8 & aConfidence | The confidence for the context in percentages, from 0 to 100%. |
SetSourceL(const TDesC &)
void | SetSourceL | ( | const TDesC & | aSource | ) | [pure virtual] |
Sets the context source. Copies the entire argument to the context source member variable.
Parameters
const TDesC & aSource | The source string to be copied. |
SetTimestamp(const TTime &)
void | SetTimestamp | ( | const TTime & | aTimestamp | ) | [pure virtual] |
Sets the context time stamp. Sets the time stamp for this context.
Parameters
const TTime & aTimestamp | The time stamp for the context. |
SetTimestamp(const TInt64 &)
void | SetTimestamp | ( | const TInt64 & | aTimestamp | ) | [pure virtual] |
Sets the context time stamp. Sets the time stamp for this context.
Parameters
const TInt64 & aTimestamp | The time stamp for the context. |
SetTimestampToHomeTime()
void | SetTimestampToHomeTime | ( | ) | [pure virtual] |
Sets the context time stamp to the home time. Sets the time stamp of this context to equal the home time at the time of calling this method.
SetTypeL(const TDesC &)
void | SetTypeL | ( | const TDesC & | aType | ) | [pure virtual] |
Sets the context type. Copies the entire argument to the context type member variable.
Parameters
const TDesC & aType | The type string to be copied. |
SetValueL(const TDesC &)
void | SetValueL | ( | const TDesC & | aValue | ) | [pure virtual] |
Sets the context value. Copies the entire argument to the context value member variable.
Parameters
const TDesC & aValue | The value string to be copied. |
Source()
const TDesC & | Source | ( | ) | const [pure virtual] |
Returns a constant reference to the context source descriptor.
Timestamp()
const TTime & | Timestamp | ( | ) | const [pure virtual] |
Returns the time stamp of the context.
Type()
const TDesC & | Type | ( | ) | const [pure virtual] |
Returns a constant reference to the context type descriptor.
Value()
const TDesC & | Value | ( | ) | const [pure virtual] |
Returns a constant reference to the context value descriptor.
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.