MSsmSwpPolicy Class Reference

class MSsmSwpPolicy

The protocol for System Wide Property policy DLLs. These are not ECOM DLLs because they need to work before the ECOM server is started. These DLLs can only be loaded from the ROM file system (from Z:).

Member Functions Documentation

CommandList()

CSsmCommandList *CommandList()[pure virtual]

Used to retrieve the command list once the PrepareCommandList has completed. Ownership of the returned command list is transferred to the caller.

HandleCleReturnValue(const TSsmSwp &, TInt, TInt, TRequestStatus &)

voidHandleCleReturnValue(const TSsmSwp &aSwp,
TIntaError,
TIntaSeverity,
TRequestStatus &aStatus
)[pure virtual]

Handle the return value from the CLE. This gives the policy a chance to do some Error handling, in case execution of the command list should fail in any way.

Parameters

const TSsmSwp & aSwpContains information about the request that has been executed
TInt aErrorContains the error-code that resulted from the Command-list execution
TInt aSeverityContains the severity of the failed command in case the Command-list execution ended with an error
TRequestStatus & aStatusto complete when aError has been dealt with

HandleCleReturnValueCancel()

voidHandleCleReturnValueCancel()[pure virtual]

Used to inform the DLL to Cancel the pending asynchronous HandleCleReturnValue operation.

Initialize(TRequestStatus &)

voidInitialize(TRequestStatus &aStatus)[pure virtual]
This function is guaranteed to be called before this Swp Policy is used. It is intended for e.g. opening resource files, initialize hardware or talk to a domestic OS.
		//minimal implemementation of this function would be
		TRequestStatus* status = &aStatus;
		User::RequestComplete(status, KErrNone);

Parameters

TRequestStatus & aStatusto complete when the initialization operation has finished

InitializeCancel()

voidInitializeCancel()[pure virtual]

Used to inform the DLL to Cancel the pending asynchronous Initialize operation.

MSsmSwpPolicy_Reserved_1()

voidMSsmSwpPolicy_Reserved_1()[private, inline, virtual]

MSsmSwpPolicy_Reserved_2()

voidMSsmSwpPolicy_Reserved_2()[private, inline, virtual]

MSsmSwpPolicy_Reserved_3()

voidMSsmSwpPolicy_Reserved_3()[private, inline, virtual]

PrepareCommandList(const TSsmSwp &, TRequestStatus &)

voidPrepareCommandList(const TSsmSwp &aSwp,
TRequestStatus &aStatus
)[pure virtual]

Used to create the command list associated with a Swp change.

Parameters

const TSsmSwp & aSwpContains the key that identifies the command list to create. Also contains the new value to be set to the Swp in question.
TRequestStatus & aStatusUsed to signify command list is prepared

PrepareCommandListCancel()

voidPrepareCommandListCancel()[pure virtual]

Used to inform the DLL to Cancel the pending asynchronous PrepareCommandList operation.

Release()

voidRelease()[pure virtual]

It is expected that Release will usually just call "delete this" on the object, but this will depend on the implementation of each policy.

TransitionAllowed(const TSsmSwp &, const RMessagePtr2 &)

TResponse TransitionAllowed(const TSsmSwp &aSwp,
const RMessagePtr2 &aMessage
)[pure virtual]

Used to determine if an incoming request should be accepted or rejected.

Parameters

const TSsmSwp & aSwpContains information about the new request.
const RMessagePtr2 & aMessageContains information about the requesting client process. DLLs should not call RMessagePtr2::Complete.

Member Enumerations Documentation

Enum TResponse

Enumerators

ENotAllowed
EAllowed