SsmCommandFactory Class Reference

class SsmCommandFactory
Public Member Functions
IMPORT_C MSsmCommand *ConstructAMAStarterCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TUid &)
IMPORT_C MSsmCommand *ConstructAMAStarterCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TUid &, const TUint16)
CSsmCommandBase *ConstructCommandFromCommandLC(const MSsmCommand &, TArray< MSsmCommand * > &, CSsmCommandUtilProvider *)
CSsmCommandBase *ConstructCommandFromResourceLC(TSsmCommandType, TSsmCommandParameters &)
CSsmCommandBase *ConstructCommandFromStreamLC(TSsmCommandType, RReadStream &, TArray< MSsmCommand * > &)
IMPORT_C MSsmCommand *ConstructCreateSwpCommandLC(TCmdErrorSeverity, const TSsmSwp &, TDesC &)
IMPORT_C MSsmCommand *ConstructCreateSwpCommandLC(TCmdErrorSeverity, const TSsmSwp &, TDesC &, const TUint16)
IMPORT_C MSsmCommand *ConstructCustomCommandCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, CSsmCustomCommandInfo &)
IMPORT_C MSsmCommand *ConstructCustomCommandCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, CSsmCustomCommandInfo &, const TUint16)
IMPORT_C MSsmCommand *ConstructFinaliseDrivesCommandLC(TCmdErrorSeverity)
IMPORT_C MSsmCommand *ConstructLoadSupCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TInt, const TSsmSupInfo &)
IMPORT_C MSsmCommand *ConstructLoadSupCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TInt, const TSsmSupInfo &, const TUint16)
IMPORT_C MSsmCommand *ConstructMultipleWaitCommandLC(TInt32)
IMPORT_C MSsmCommand *ConstructMultipleWaitCommandLC(TInt32, const TUint16)
IMPORT_C MSsmCommand *ConstructPersistHalAttributesCommandLC(TCmdErrorSeverity)
IMPORT_C MSsmCommand *ConstructPowerOffCommandLC(TCmdErrorSeverity, TPowerState)
IMPORT_C MSsmCommand *ConstructPublishSwpCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &)
IMPORT_C MSsmCommand *ConstructPublishSwpCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &, const TUint16)
IMPORT_C MSsmCommand *ConstructPublishSystemStateCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TSsmPublishSystemStateInfo &)
IMPORT_C MSsmCommand *ConstructPublishSystemStateCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TSsmPublishSystemStateInfo &, const TUint16)
IMPORT_C MSsmCommand *ConstructReqSwpChangeCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &)
IMPORT_C MSsmCommand *ConstructReqSwpChangeCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &, const TUint16)
IMPORT_C MSsmCommand *ConstructSetPAndSKeyCommandLC(TCmdErrorSeverity, const TUid &, TUint, TInt)
IMPORT_C MSsmCommand *ConstructSetPAndSKeyCommandLC(TCmdErrorSeverity, const TUid &, TUint, TInt, const TUint16)
IMPORT_C MSsmCommand *ConstructStartApplicationCommandLC(TCmdErrorSeverity, CSsmStartupProperties *)
IMPORT_C MSsmCommand *ConstructStartApplicationCommandLC(TCmdErrorSeverity, CSsmStartupProperties *, const TUint16)
IMPORT_C MSsmCommand *ConstructStartProcessCommandLC(TCmdErrorSeverity, CSsmStartupProperties *)
IMPORT_C MSsmCommand *ConstructStartProcessCommandLC(TCmdErrorSeverity, CSsmStartupProperties *, const TUint16)
IMPORT_C MSsmCommand *ConstructWaitForApparcInitCommandLC(TCmdErrorSeverity)
IMPORT_C MSsmCommand *ConstructWaitForApparcInitCommandLC(TCmdErrorSeverity, const TUint16)
Private Member Functions
SsmCommandFactory()

Constructor & Destructor Documentation

SsmCommandFactory()

SsmCommandFactory()[private]

Member Functions Documentation

ConstructAMAStarterCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TUid &)

IMPORT_C MSsmCommand *ConstructAMAStarterCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TUid &aDscId
)[static]

Constructs and returns a new AMA starter command.

KDefaultSymbianDsc

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
const TUid & aDscIdThe UID of the DSC that this command should start.

ConstructAMAStarterCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TUid &, const TUint16)

IMPORT_C MSsmCommand *ConstructAMAStarterCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TUid &aDscId,
const TUint16aPriority
)[static]

Constructs and returns a new AMA starter command.

KDefaultSymbianDsc

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
const TUid & aDscIdThe UID of the DSC that this command should start.
const TUint16 aPriorityThe priority of the command in the list

ConstructCommandFromCommandLC(const MSsmCommand &, TArray< MSsmCommand * > &, CSsmCommandUtilProvider *)

CSsmCommandBase *ConstructCommandFromCommandLC(const MSsmCommand &aSsmCommand,
TArray< MSsmCommand * > &aDeferredList,
CSsmCommandUtilProvider *aUtilProvider
)[static]
Factory function to create a command from a MSsmCommand object.
panic
ECmdBadCommand if the command type is invalid
TSsmCommandType

Parameters

const MSsmCommand & aSsmCommandis reference of MSsmCommand which needs to be created.
TArray< MSsmCommand * > & aDeferredListList of commands which has execution behaviour as ESsmDeferredWaitForSignal in command list. @param aUtilProvider CSsmCommandUtilProvider reference. Only few commands require CSsmCommandUtilProvider reference
CSsmCommandUtilProvider * aUtilProvider

ConstructCommandFromResourceLC(TSsmCommandType, TSsmCommandParameters &)

CSsmCommandBase *ConstructCommandFromResourceLC(TSsmCommandTypeaType,
TSsmCommandParameters &aCommandParameters
)[static]
Factory function to create a command from a resource.
panic
ECmdBadCommand if the command type is invalid
TSsmCommandType TSsmCommandParameters

Parameters

TSsmCommandType aTypeType of the command which needs to be created.
TSsmCommandParameters & aCommandParametersObject data from a resource file

ConstructCommandFromStreamLC(TSsmCommandType, RReadStream &, TArray< MSsmCommand * > &)

CSsmCommandBase *ConstructCommandFromStreamLC(TSsmCommandTypeaType,
RReadStream &aReadStream,
TArray< MSsmCommand * > &aDeferredList
)[static]
Factory function to create a command from a stream.
panic
ECmdBadCommand if the command type is invalid
TSsmCommandType RReadStream

Parameters

TSsmCommandType aTypeType of the command which needs to be created.
RReadStream & aReadStreamStream containing the data for the command.
TArray< MSsmCommand * > & aDeferredListList of commands which has execution behaviour as ESsmDeferredWaitForSignal in command list.

ConstructCreateSwpCommandLC(TCmdErrorSeverity, const TSsmSwp &, TDesC &)

IMPORT_C MSsmCommand *ConstructCreateSwpCommandLC(TCmdErrorSeverityaSeverity,
const TSsmSwp &aSwp,
TDesC &aFilename
)[static]

Constructs and returns a new publish system state command.

This command should only be used by the current system state policy to publish a change in system state value.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
const TSsmSwp & aSwp
TDesC & aFilename

ConstructCreateSwpCommandLC(TCmdErrorSeverity, const TSsmSwp &, TDesC &, const TUint16)

IMPORT_C MSsmCommand *ConstructCreateSwpCommandLC(TCmdErrorSeverityaSeverity,
const TSsmSwp &aSwp,
TDesC &aFilename,
const TUint16aPriority
)[static]

Constructs and returns a new publish system state command.

This command should only be used by the current system state policy to publish a change in system state value.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
const TSsmSwp & aSwp
TDesC & aFilename
const TUint16 aPriorityThe priority of the command in the list

ConstructCustomCommandCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, CSsmCustomCommandInfo &)

IMPORT_C MSsmCommand *ConstructCustomCommandCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
CSsmCustomCommandInfo &aCustomInfo
)[static]

Constructs and returns a new custom command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
CSsmCustomCommandInfo & aCustomInfoThe properties of the custom command.

ConstructCustomCommandCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, CSsmCustomCommandInfo &, const TUint16)

IMPORT_C MSsmCommand *ConstructCustomCommandCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
CSsmCustomCommandInfo &aCustomInfo,
const TUint16aPriority
)[static]

Constructs and returns a new custom command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
CSsmCustomCommandInfo & aCustomInfoThe properties of the custom command.
const TUint16 aPriorityThe priority of the command in the list

ConstructFinaliseDrivesCommandLC(TCmdErrorSeverity)

IMPORT_C MSsmCommand *ConstructFinaliseDrivesCommandLC(TCmdErrorSeverityaSeverity)[static]

Constructs and returns a new finalise drives command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.

ConstructLoadSupCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TInt, const TSsmSupInfo &)

IMPORT_C MSsmCommand *ConstructLoadSupCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
TIntaRetries,
const TSsmSupInfo &aInfo
)[static]

Constructs and returns a load SSM Utility Plugin command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
TInt aRetriesThe number of times to attempt to load the specified SSM Utility Plugin.
const TSsmSupInfo & aInfoThe properties of the SSM Utility Plugin to load.

ConstructLoadSupCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TInt, const TSsmSupInfo &, const TUint16)

IMPORT_C MSsmCommand *ConstructLoadSupCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
TIntaRetries,
const TSsmSupInfo &aInfo,
const TUint16aPriority
)[static]

Constructs and returns a load SSM Utility Plugin command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the command.
TInt aRetriesThe number of times to attempt to load the specified SSM Utility Plugin.
const TSsmSupInfo & aInfoThe properties of the SSM Utility Plugin to load.
const TUint16 aPriorityThe priority of the command in the list

ConstructMultipleWaitCommandLC(TInt32)

IMPORT_C MSsmCommand *ConstructMultipleWaitCommandLC(TInt32aTimeout)[static]

Constructs and returns a new multiple wait command.

Parameters

TInt32 aTimeoutTimeout in milliseconds for the multiple wait command to wait for.

ConstructMultipleWaitCommandLC(TInt32, const TUint16)

IMPORT_C MSsmCommand *ConstructMultipleWaitCommandLC(TInt32aTimeout,
const TUint16aPriority
)[static]

Constructs and returns a new multiple wait command.

Parameters

TInt32 aTimeoutTimeout in milliseconds for the multiple wait command to wait for.
const TUint16 aPriorityThe priority of the command in the list

ConstructPersistHalAttributesCommandLC(TCmdErrorSeverity)

IMPORT_C MSsmCommand *ConstructPersistHalAttributesCommandLC(TCmdErrorSeverityaSeverity)[static]

Constructs and returns a new persist HAL attributes.

This command calls BaflUtils::PersistHAL().

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.

ConstructPowerOffCommandLC(TCmdErrorSeverity, TPowerState)

IMPORT_C MSsmCommand *ConstructPowerOffCommandLC(TCmdErrorSeverityaSeverity,
TPowerStateaPowerEvent
)[static]

Constructs and returns a new power off command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TPowerState aPowerEventThe type of power off event represented by the returned command.

ConstructPublishSwpCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &)

IMPORT_C MSsmCommand *ConstructPublishSwpCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TSsmSwp &aSwp
)[static]

Constructs and returns a new publish System-wide Property command.

This command should only be used by a System-wide Property policy to publish the System-wide Property value or values controlled by that policy.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviour
const TSsmSwp & aSwpThe System-wide Property information.

ConstructPublishSwpCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &, const TUint16)

IMPORT_C MSsmCommand *ConstructPublishSwpCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TSsmSwp &aSwp,
const TUint16aPriority
)[static]

Constructs and returns a new publish System-wide Property command.

This command should only be used by a System-wide Property policy to publish the System-wide Property value or values controlled by that policy.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviour
const TSsmSwp & aSwpThe System-wide Property information.
const TUint16 aPriorityThe priority of the command in the list

ConstructPublishSystemStateCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TSsmPublishSystemStateInfo &)

IMPORT_C MSsmCommand *ConstructPublishSystemStateCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
TSsmPublishSystemStateInfo &aInfo
)[static]

Constructs and returns a new publish system state command.

This command should only be used by the current system state policy to publish a change in system state value.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the returned command.
TSsmPublishSystemStateInfo & aInfoThe system state information used in the returned command.

ConstructPublishSystemStateCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, TSsmPublishSystemStateInfo &, const TUint16)

IMPORT_C MSsmCommand *ConstructPublishSystemStateCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
TSsmPublishSystemStateInfo &aInfo,
const TUint16aPriority
)[static]

Constructs and returns a new publish system state command.

This command should only be used by the current system state policy to publish a change in system state value.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the returned command.
TSsmPublishSystemStateInfo & aInfoThe system state information used in the returned command.
const TUint16 aPriorityThe priority of the command in the list

ConstructReqSwpChangeCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &)

IMPORT_C MSsmCommand *ConstructReqSwpChangeCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TSsmSwp &aSwp
)[static]

Constructs and returns a new request System-wide Property change command.

This command will request a change to a System-wide Property, using the appropriate policy for the System-wide Property to determine required actions.

This is equivalent to calling RSsmStateManger::RequestSwpChange().

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the returned command.
const TSsmSwp & aSwpThe System-wide Property information used in the returned command.

ConstructReqSwpChangeCommandLC(TCmdErrorSeverity, TSsmExecutionBehaviour, const TSsmSwp &, const TUint16)

IMPORT_C MSsmCommand *ConstructReqSwpChangeCommandLC(TCmdErrorSeverityaSeverity,
TSsmExecutionBehaviouraExecutionBehaviour,
const TSsmSwp &aSwp,
const TUint16aPriority
)[static]

Constructs and returns a new request System-wide Property change command.

This command will request a change to a System-wide Property, using the appropriate policy for the System-wide Property to determine required actions.

This is equivalent to calling RSsmStateManger::RequestSwpChange().

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
TSsmExecutionBehaviour aExecutionBehaviourThe execution behaviour of the returned command.
const TSsmSwp & aSwpThe System-wide Property information used in the returned command.
const TUint16 aPriorityThe priority of the command in the list

ConstructSetPAndSKeyCommandLC(TCmdErrorSeverity, const TUid &, TUint, TInt)

IMPORT_C MSsmCommand *ConstructSetPAndSKeyCommandLC(TCmdErrorSeverityaSeverity,
const TUid &aCategory,
TUintaKey,
TIntaValue
)[static]

Constructs and returns a new set publish and subscribe key command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
const TUid & aCategoryThe category of the P+S key to be set.
TUint aKeyThe key value of the P+S key to be set.
TInt aValueThe value to set the P+S key to.

ConstructSetPAndSKeyCommandLC(TCmdErrorSeverity, const TUid &, TUint, TInt, const TUint16)

IMPORT_C MSsmCommand *ConstructSetPAndSKeyCommandLC(TCmdErrorSeverityaSeverity,
const TUid &aCategory,
TUintaKey,
TIntaValue,
const TUint16aPriority
)[static]

Constructs and returns a new set publish and subscribe key command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
const TUid & aCategoryThe category of the P+S key to be set.
TUint aKeyThe key value of the P+S key to be set.
TInt aValueThe value to set the P+S key to.
const TUint16 aPriorityThe priority of the command in the list

ConstructStartApplicationCommandLC(TCmdErrorSeverity, CSsmStartupProperties *)

IMPORT_C MSsmCommand *ConstructStartApplicationCommandLC(TCmdErrorSeverityaSeverity,
CSsmStartupProperties *aStartupProperties
)[static]

Constructs and returns a new start application command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
CSsmStartupProperties * aStartupPropertiesThe properties of the started application. Ownership of this object is not transferred to the returned command.

ConstructStartApplicationCommandLC(TCmdErrorSeverity, CSsmStartupProperties *, const TUint16)

IMPORT_C MSsmCommand *ConstructStartApplicationCommandLC(TCmdErrorSeverityaSeverity,
CSsmStartupProperties *aStartupProperties,
const TUint16aPriority
)[static]

Constructs and returns a new start application command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
CSsmStartupProperties * aStartupPropertiesThe properties of the started application. Ownership of this object is not transferred to the returned command.
const TUint16 aPriorityThe priority of the command in the list

ConstructStartProcessCommandLC(TCmdErrorSeverity, CSsmStartupProperties *)

IMPORT_C MSsmCommand *ConstructStartProcessCommandLC(TCmdErrorSeverityaSeverity,
CSsmStartupProperties *aStartupProperties
)[static]

Constructs and returns a new start process command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
CSsmStartupProperties * aStartupPropertiesThe properties of the started process. Ownership of this object is not transferred to the returned command.

ConstructStartProcessCommandLC(TCmdErrorSeverity, CSsmStartupProperties *, const TUint16)

IMPORT_C MSsmCommand *ConstructStartProcessCommandLC(TCmdErrorSeverityaSeverity,
CSsmStartupProperties *aStartupProperties,
const TUint16aPriority
)[static]

Constructs and returns a new start process command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
CSsmStartupProperties * aStartupPropertiesThe properties of the started process. Ownership of this object is not transferred to the returned command.
const TUint16 aPriorityThe priority of the command in the list

ConstructWaitForApparcInitCommandLC(TCmdErrorSeverity)

IMPORT_C MSsmCommand *ConstructWaitForApparcInitCommandLC(TCmdErrorSeverityaSeverity)[static]

Constructs and returns a new wait for app-arc init command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.

ConstructWaitForApparcInitCommandLC(TCmdErrorSeverity, const TUint16)

IMPORT_C MSsmCommand *ConstructWaitForApparcInitCommandLC(TCmdErrorSeverityaSeverity,
const TUint16aPriority
)[static]

Constructs and returns a new wait for app-arc init command.

Parameters

TCmdErrorSeverity aSeverityThe severity to use for the returned command.
const TUint16 aPriorityThe priority of the command in the list