Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
Simple Screen Saver (EN)
The original article is in Russian. You can find it here.
Simple Screen Saver - it is a screen saver that displays the following information:
- current day of the week
- count of recent missed calls
- count of unread messages
- count of new downloaded emails
Screen saver looks like:
Count of recent missed calls and count of unread messages are calculated using the сlasses, that describes in following articles:
But for a screensaver these methods absolutely superfluous as this information can be received as follows:
TInt err; TIndicatorPayload payload; TInt missedCalls = 0; TInt newMessages = 0; //For missed calls err = iHost->GetIndicatorPayload ( EScreensaverIndicatorIndexNewMissedCalls, payload ); if ( !err ) missedCalls = payload.iInteger; //For new messages err = iHost->GetIndicatorPayload ( EScreensaverIndicatorIndexNewMessages, payload ); if ( !err ) newMessages = payload.iInteger;
and etc. This is not included in the sample.
Class CInfoDrawer is used to loading icons and to displaying information (refresh occurs every ten seconds).
CSSSaver - it is a main class of screen saver. This class is inherits from CScreensaverPluginInterfaceDefinition and defines all necessary methods. You can read the following article about these classes:
This screen saver uses display partial mode, that allow reduce energy consumption, but it should be noted, that not all devices support this mode.
Source code of this project: File:Sss.zip.
- Сheck paths in the pkg-file
- Don't forget to sign sis-file before install