CSsmPropertyObserver Class Reference

class CSsmPropertyObserver : public CActive

Provide an abstract class for observing RProperty value changes from the SSM Utility Server.

Inherits from

Constructor & Destructor Documentation

CSsmPropertyObserver(TUid, TUint)

IMPORT_CCSsmPropertyObserver(TUidaCategory,
TUintaKey
)

Creates a new CSsmProperty Observer.

Parameters

TUid aCategoryThe category of the property to monitor.
TUint aKeyThe key of the property to monitor.

~CSsmPropertyObserver()

IMPORT_C~CSsmPropertyObserver()[protected, virtual]

Releases any resources allocated to this object.

Member Functions Documentation

DoCancel()

IMPORT_C voidDoCancel()[protected, virtual]

Cancels monitoring for this property

InitializeL()

IMPORT_C voidInitializeL()[virtual]

Initialises this object but does not start responding to changes to the monitored property.

PropertyChangedL(TInt)

TBool PropertyChangedL(TIntaValue)[pure virtual]

Function that is called everytime the property for this observer changes.

This is also called once when the observation is first started using StartL().

Note:

If EFalse is returned from this object then this object is not destroyed.

Parameters

TInt aValueThe new value for the observed property.

Release()

IMPORT_C voidRelease()[virtual]

Releases this object freeing any resources allocated to it.

Using this object after calling release will have undefined behaviour.

RunError(TInt)

IMPORT_C TIntRunError(TIntaError)[protected, virtual]

CActive::RunError implementation

Parameters

TInt aError

RunL()

IMPORT_C voidRunL()[protected, virtual]

CActive::RunL implementation to call the observer function and to re-request monitoring.

StartL()

IMPORT_C voidStartL()[virtual]

Starts this observer responding to the monitored property.

doRunL()

voiddoRunL()[protected]

Internal RunL helper method

Member Data Documentation

const TUid iCategory

const TUidiCategory[protected]

const TUint iKey

const TUintiKey[protected]

RProperty iProperty

RProperty iProperty[protected]

TInt iReserved

TInt iReserved[protected]