diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-8CB4B949-CEDA-5F59-B46D-1415B016EF13.dita --- a/Symbian3/PDK/Source/GUID-8CB4B949-CEDA-5F59-B46D-1415B016EF13.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-8CB4B949-CEDA-5F59-B46D-1415B016EF13.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,49 +1,49 @@ - - - - - -Creating -System State Manager policy plug-inThe System State Manager will have policy associated with a transition -in system state or a system-wide property. The transition from one state to -another is implicit. The SSM policy is defined by a system state policy plug-in -and an associated command list resource file. -

SSM policies implements MSsmStatePolicy interface -to initialize, prepare and return a commandlist using CSsmCommandListResourceReader. -It also implements MSsmConditionalCallback function to -decide whether to include a command in a commandlist or not.

The -system state manager policies derived are normal, start-up, fail and shutdown. -All these policies are created using the MSsmStatePolicy interface.

Follow -the steps given below to create a normal policy plug-in:

- - -Define a class that implements MSsmStatePolicy interface. - - -Export the static method to create new normal state policy plug-in as -shown in the code snippet: - -EXPORT_C MSsmStatePolicy* CGsaStatePolicyNormal::NewL() -{ - CGsaStatePolicyNormal* self = new ( ELeave ) CGsaStatePolicyNormal; - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; -} -The code returns a new normal state policy plug-in. - - -

The normal state policy plug-in is created.

-
-Creating -System-wide Property Policy plug-in -Creating -System Utility Policy plug-in + + + + + +Creating +System State Manager policy plug-inThe System State Manager will have policy associated with a transition +in system state or a system-wide property. The transition from one state to +another is implicit. The SSM policy is defined by a system state policy plug-in +and an associated command list resource file. +

SSM policies implements MSsmStatePolicy interface +to initialize, prepare and return a commandlist using CSsmCommandListResourceReader. +It also implements MSsmConditionalCallback function to +decide whether to include a command in a commandlist or not.

The +system state manager policies derived are normal, start-up, fail and shutdown. +All these policies are created using the MSsmStatePolicy interface.

Follow +the steps given below to create a normal policy plug-in:

+ + +Define a class that implements MSsmStatePolicy interface. + + +Export the static method to create new normal state policy plug-in as +shown in the code snippet: + +EXPORT_C MSsmStatePolicy* CGsaStatePolicyNormal::NewL() +{ + CGsaStatePolicyNormal* self = new ( ELeave ) CGsaStatePolicyNormal; + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; +} +The code returns a new normal state policy plug-in. + + +

The normal state policy plug-in is created.

+
+Creating +System-wide Property Policy plug-in +Creating +System Utility Policy plug-in
\ No newline at end of file