CSsmStateAwareSession Class Reference

class CSsmStateAwareSession : public CBase

Utility class for monitoring the System State. Maintains a list of subscribers that share a single active object. When the System State changes the subscribers will be notified in the order they were added to the list of subscribers.

TSsmMainSystemStates RSsmStateAwareSession

Inherits from

Constructor & Destructor Documentation

CSsmStateAwareSession()

CSsmStateAwareSession ( ) [private]

~CSsmStateAwareSession()

IMPORT_C ~CSsmStateAwareSession ( )

Member Functions Documentation

AddSubscriberL(MStateChangeNotificationSubscriber &)

IMPORT_C void AddSubscriberL ( MStateChangeNotificationSubscriber & aSubscriber )

Parameters

MStateChangeNotificationSubscriber & aSubscriber

ConstructL(TDmDomainId)

void ConstructL ( TDmDomainId aId ) [private]

Parameters

TDmDomainId aId

NewL(TDmDomainId)

IMPORT_C CSsmStateAwareSession * NewL ( TDmDomainId aId ) [static]

Parameters

TDmDomainId aId

NewLC(TDmDomainId)

IMPORT_C CSsmStateAwareSession * NewLC ( TDmDomainId aId ) [static]

Parameters

TDmDomainId aId

NotifySubscribers(TSsmState)

void NotifySubscribers ( TSsmState aNewState )

Parameters

TSsmState aNewState

RemoveSubscriber(const MStateChangeNotificationSubscriber &)

IMPORT_C void RemoveSubscriber ( const MStateChangeNotificationSubscriber & aSubscriber )

Parameters

const MStateChangeNotificationSubscriber & aSubscriber

State()

IMPORT_C TSsmState State ( ) const

Member Data Documentation

CSsmStateMonitor * iMonitor

CSsmStateMonitor * iMonitor [private]

TInt iSpare

TInt iSpare [private]

RPointerArray< MStateChangeNotificationSubscriber > iSubscribers

RPointerArray < MStateChangeNotificationSubscriber > iSubscribers [private]