RDmDomainManager Class Reference

class RDmDomainManager

The policy's interface to the domain manager.

Member Functions Documentation

AddDomainHierarchy(TDmHierarchyId)

IMPORT_C TIntAddDomainHierarchy(TDmHierarchyIdaHierarchyId)[static]

Adds a domain hierarchy to the domain manager.

Parameters

TDmHierarchyId aHierarchyIdThe Id of the domain hierarchy to be added.

CancelTransition()

IMPORT_C voidCancelTransition()

Cancels a state transition, whether initiated by a call to RequestSystemTransition() or RequestDomainTransition().

An outstanding state transition request completes with KErrCancel.

Close()

IMPORT_C voidClose()

Closes this connection to the domain manager.

If there is no existing connection, then it returns silently.

Connect()

IMPORT_C TIntConnect()

Opens a controlling connection to the standard power domain hierarchy in the domain manager.

The domain manger allows only one open connection at any one time to the power domain hierarchy. Connection is usually made by the power policy entity.

KDmErrAlreadyJoin

Connect(TDmHierarchyId)

IMPORT_C TIntConnect(TDmHierarchyIdaHierarchyId)

Opens a controlling connection to a specific domain hieararchy owned by the domain manager.

The domain manger allows only one open connection at any one time to a particular hierarchy.

KDmErrAlreadyJoin KErrBadHierarchyId

Parameters

TDmHierarchyId aHierarchyIdThe Id of the domain hierarchy to connect to.

GetTransitionFailureCount()

IMPORT_C TIntGetTransitionFailureCount()

Gets the number of transition failures since the last transition request.

GetTransitionFailures(RArray< const TTransitionFailure > &)

IMPORT_C TIntGetTransitionFailures(RArray< const TTransitionFailure > &aTransitionFailures)

Requests a list of transition failures since the last transition request.

Pre-condition
The session must be connected.

Parameters

RArray< const TTransitionFailure > & aTransitionFailuresA client-supplied array of TTransitionFailure objects which on exit will contain the failures that have occurred since the last transition request.

RequestDomainTransition(TDmDomainId, TPowerState, TRequestStatus &)

IMPORT_C voidRequestDomainTransition(TDmDomainIdaDomain,
TPowerStateaState,
TRequestStatus &aStatus
)

Requests a domain state transition.

The domain hierarchy is traversed in the default direction.

RDmDomainManager::CancelTransition()

Parameters

TDmDomainId aDomainThe Id of the domain for which the state transition is being requested.
TPowerState aStateThe target state.
TRequestStatus & aStatusThe request status object for this asynchronous request.

RequestDomainTransition(TDmDomainId, TDmDomainState, TDmTraverseDirection, TRequestStatus &)

IMPORT_C voidRequestDomainTransition(TDmDomainIdaDomain,
TDmDomainStateaState,
TDmTraverseDirectionaDirection,
TRequestStatus &aStatus
)

Requests a domain state transition.

The domain hierarchy is traversed in the specified direction

RDmDomainManager::CancelTransition()
panic
domainCli.cpp; assertion failed VARNUM if the numerical value of aDirection is greater than the value of ETraverseMax. NOTE: VARNUM is the line number in the source code and may change if the implementation changes.

Parameters

TDmDomainId aDomainThe Id of the domain for which the state transition is being requested.
TDmDomainState aStateThe target state.
TDmTraverseDirection aDirectionThe direction in which to traverse the hierarchy.
TRequestStatus & aStatusThe request status object for this asynchronous request.

RequestSystemTransition(TPowerState, TRequestStatus &)

IMPORT_C voidRequestSystemTransition(TPowerStateaState,
TRequestStatus &aStatus
)

Requests a system-wide power state transition.

The domain hierarchy is traversed in the default direction

RDmDomainManager::CancelTransition()

Parameters

TPowerState aStateThe target power state.
TRequestStatus & aStatusThe request status object for this asynchronous request.

RequestSystemTransition(TDmDomainState, TDmTraverseDirection, TRequestStatus &)

IMPORT_C voidRequestSystemTransition(TDmDomainStateaState,
TDmTraverseDirectionaDirection,
TRequestStatus &aStatus
)

Requests a system-wide state transition.

The domain hierarchy is traversed in the specified direction.

RDmDomainManager::CancelTransition()
panic
domainCli.cpp; assertion failed VARNUM if the numerical value of aDirection is greater than the value of ETraverseMax. NOTE: VARNUM is the line number in the source code and may change if the implementation changes.

Parameters

TDmDomainState aStateThe target state.
TDmTraverseDirection aDirectionThe direction in which to traverse the hierarchy
TRequestStatus & aStatusThe request status object for this asynchronous request.

SystemShutdown()

IMPORT_C voidSystemShutdown()

Requests a system-wide power shutdown.

This is a request to change the system's power state to EPwOff. This call does not return; the system can only return by rebooting.

WaitForInitialization()

IMPORT_C TIntWaitForInitialization()[static]

Member Data Documentation

RDmManagerSession iSession

RDmManagerSession iSession[private]