diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-4D6FBF03-FA0A-5D79-A8B9-4C0B52303CF1.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-4D6FBF03-FA0A-5D79-A8B9-4C0B52303CF1.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,41 @@ + + + + + +Creating +System Utility Policy plug-inSystem Utility Policy plug-ins in the SSM Utility Server are intended +to monitor some property of the system. It is used by the SSM for efficient +handling of a system property change. +

MSsmUtility is an API which allows customization +of the behavior of the SSM Utility Server. The MSsmUtility interface +is used for plug-ins in the SSM Utility Server to monitor the device.

Follow +the steps given below to create a SUP plug-in:
+ + +Define a class that implements MSsmUtility interface. + + +Export the static method to create new System Utility Policy plug-in +as shown in the code snippet: + +EXPORT_C MSsmUtility* CLafShutdownEventObserverAdaptor::NewL() +{ + CLafShutdownEventObserverAdaptor* self = new (ELeave) CLafShutdownEventObserverAdaptor(); + return static_cast<MSsmUtility*>(self); +} + +The code returns a new plug-in object for SUP plug-in. + + +

The System Utility Policy plug-in is created.

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