CCFOperationNode Class Reference

class CCFOperationNode : public CBase

CCFOperationNode is an abstract base class for all Context Framework Script operations. All operations have ternary logic boolean value: ECFConditionUndefined, ECFConditionFalse, or ECFConditionTrue.

CFScriptEngine
Since
Series 60 5.0

Inherits from

Constructor & Destructor Documentation

CCFOperationNode(MCFOperationServices &, CCFOperationNode *)

IMPORT_CCCFOperationNode(MCFOperationServices &aServices,
CCFOperationNode *aParent
)[protected]

C++ default constructor.

Parameters

MCFOperationServices & aServicesis the operation services interface for nodes.
CCFOperationNode * aParentis the parent of this node, NULL if this is a root. The ownership of the parent node is not transferred.

~CCFOperationNode()

IMPORT_C~CCFOperationNode()[virtual]

Destructor.

Member Functions Documentation

ActivateL()

voidActivateL()[pure virtual]

Activates this node, e.g. subscribes contexts or restores values from persistent storage. Depending on the goal of the node, it should pass the activate call to its' children.

CheckSecurity()

TInt CheckSecurity()[pure virtual]

Asks this node to check its security (via services interface). For example, the security of contexts to be subscribed or actions to be performed.

Cleanup()

IMPORT_C voidCleanup()[virtual]

Cleanup long term resources like persistent data files. This is called by the context framework when the script is uninstalled from the system.

Deactivate()

voidDeactivate()[pure virtual]

Deactivates this node, e.g. removes subscriptions. Depending on the goal of the node, it should pass the deactivate call to its' children.

Evaluate()

voidEvaluate()[pure virtual]

Called by child node, to ask the parent to re-evaluate its value, since the child's value has changed.

Extension(const TUid &)

IMPORT_C TAny *Extension(const TUid &aUid)const [virtual]

Get a pointer to an extension. Every extension is identified with a particular UID.

Parameters

const TUid & aUidUid of the extension.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)[virtual]

Externalizes operation.

Parameters

RWriteStream & aStreamWrite stream.

GenerateDomTreeLocationInfoL(CMDXMLNode &)

IMPORT_C voidGenerateDomTreeLocationInfoL(CMDXMLNode &aNode)[protected, virtual]

Generates DOM tree location info for this node.

Parameters

CMDXMLNode & aNodeis the DOM node based on which info is generated.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]

Internalizes operation.

Parameters

RReadStream & aStreamRead stream.

Value()

IMPORT_C TCFConditionValueValue()const [virtual]

Returns the value of the node.

Member Enumerations Documentation

Enum TCFConditionValue

Condition values for script operations. False and true must match with the boolean equivalents to enable safe type casting.

Enumerators

ECFConditionUndefined = -1
ECFConditionFalse = 0
ECFConditionTrue = 1

Member Data Documentation

HBufC * iDomTreeLocationInfo

HBufC *iDomTreeLocationInfo[protected]

CCFOperationNode * iParent

CCFOperationNode *iParent[protected]

MCFOperationServices & iServices

MCFOperationServices &iServices[protected]

TCFConditionValue iValue

TCFConditionValue iValue[protected]