You Are Here:

Community: Wiki

This page was last modified on 26 September 2008, at 14:34.

Simple Screen Saver (EN)

From Forum Nokia Wiki


ID 0xA0005C44 Creation date March 22, 2008
Platform S60 3rd, S60 3rd FP1 Tested on devices N91, N73, N95 8Gb
Category Symbian C++ Subcategory Screen Saver
Keywords: Simple Screen Saver

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:

Image: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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fThemesE3aHomeE5fScreenX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ