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_C CCFOperationNode ( MCFOperationServices & aServices,
CCFOperationNode * aParent
) [protected]

C++ default constructor.

Parameters

MCFOperationServices & aServices is the operation services interface for nodes.
CCFOperationNode * aParent is 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()

void ActivateL ( ) [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 void Cleanup ( ) [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()

void Deactivate ( ) [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()

void Evaluate ( ) [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 & aUid Uid of the extension.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) [virtual]

Externalizes operation.

Parameters

RWriteStream & aStream Write stream.

GenerateDomTreeLocationInfoL(CMDXMLNode &)

IMPORT_C void GenerateDomTreeLocationInfoL ( CMDXMLNode & aNode ) [protected, virtual]

Generates DOM tree location info for this node.

Parameters

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

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream ) [virtual]

Internalizes operation.

Parameters

RReadStream & aStream Read stream.

Value()

IMPORT_C TCFConditionValue Value ( ) 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]