×
Namespaces

Variants
Actions

Simple Screen Saver (EN)

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): N91, N73, N95 8Gb
Compatibility
Platform(s): S60 3rd, S60 3rd FP1
Article
Translated:
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:

Sss.PNG

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: File:Sss.zip.

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 04:54.
53 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×