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.

Revision as of 01:54, 20 October 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Simple Screen Saver (EN)

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): N91, N73, N95 8Gb
Platform(s): S60 3rd, S60 3rd FP1
By Den123
Last edited: hamishwillee (20 Oct 2011)

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
  • date
  • time
  • 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:

How to create screensaver

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:

Attention !

  • Сheck paths in the pkg-file
  • Don't forget to sign sis-file before install
This page was last modified on 20 October 2011, at 01:54.
47 page views in the last 30 days.