class MScreensaverPlugin |
The base class for screensaver plugin modules. Every plugin module must inherit and implement this class.
Public Member Functions | |
---|---|
~MScreensaverPlugin () | |
TInt | Capabilities () |
TInt | Draw ( CWindowGc &) |
TInt | HandleScreensaverEventL ( TScreensaverEvent , TAny *) |
TInt | InitializeL ( MScreensaverPluginHost *) |
const TDesC16 & | Name () |
TInt | PluginFunction ( TScPluginCaps , TAny *) |
TInt | Capabilities | ( | ) | [inline, virtual] |
Screensaver plugin capabilities query. The capabilitities reveal which functions the plugin implements, that can be used by calling PluginFunction() .
Capabilites need to be defined as opaque_data in ECom plugin registration file as well.
TInt | Draw | ( | CWindowGc & | aGc | ) | [pure virtual] |
When a plugin module is active this method is called every time when refresh timer expires in screensaver application.
CWindowGc & aGc | Graphics context for plugin module to draw to. |
TInt | HandleScreensaverEventL | ( | TScreensaverEvent | aEvent, |
TAny * | aData | |||
) | [pure virtual] |
Handler function for screensaver events.
TScreensaverEvent aEvent | Event to be handled. |
TAny * aData | Data related to the event. To be decided on a case-by-case basis. |
TInt | InitializeL | ( | MScreensaverPluginHost * | aHost | ) | [pure virtual] |
Used to initialize the plugin module after creation. Name() function may be called without the plugin being initialized, to enable name query from modules that are not plugin hosts.
MScreensaverPluginHost * aHost | Screensaver plugin host. |
const TDesC16 & | Name | ( | ) | const [pure virtual] |
Returns the name of plugin module. Returned name is displayed in the list of installed plugin modules in Themes application. If this function returns an empty name (KNullDesC), displayed name is taken from ECom registration resource.
TInt | PluginFunction | ( | TScPluginCaps | , |
TAny * | ||||
) | [inline, virtual] |
Screensaver plugin function method. Only the functions returned by Capabilities() can be used, and only one function at a time.
aFunction
TScPluginCaps | |
TAny * |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.