Namespaces

Variants
Actions

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 over the next few weeks. Thanks for all your past and future contributions.

Archived:Modifying notification light settings using Symbian C++

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
CompatibilityArticle
Created: User:Nokia Developer KB (22 Aug 2011)
Last edited: hamishwillee (01 Aug 2012)
Article Metadata
Tested with
Devices(s): Nokia E52
Nokia E75
Nokia 5800 XpressMusic
Nokia N8-00
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 5th Edition
Symbian^3
Symbian^3
S60 5th Edition
S60 3rd Edition FP2
Article
Created: (22 Aug 2010)
Last edited: hamishwillee (01 Aug 2012)

Note.pngNote: The required header, blinklightinternalcrkeys.h, is not available in the Symbian^3 SDK.

Description

This article gives an overview of modifying the notification light settings associated with E-series and 5th Edition devices.

Solution

The following code snippet is used for modifying the settings. The code snippet makes use of CRKeys. Headers

#include <blinklightinternalcrkeys.h>

Code for modifying the Blink light time

 TInt value = -1;
CRepository* CRep = CRepository::NewL( KCRUidNotificationLightSettings );
TInt err = CRep->Set( KNotificationLightNotificationTime, value ) ;

value can be either -1(no limit), 5, 30, or 60 min.

Code for enabling/disabling the events to be notified The notification light feature is available for events like new message, new e-mail, and missed call. Depending on the requirement the events to be notified can be enabled/disabled.

 TInt value = 1;//0 for diabling the notification
CRepository* CRep = CRepository::NewL( (KCRUidNotificationLightSettings) );
TInt err = CRep->Set( KNLBlinkForMissedCall, value ) ;
KNLBlinkForMissedCall - for missed call
KNLBlinkForMessages   - for messages
KNLBlinkForEmail      - for e-mail

Code for setting the visibility of the event The event to be notified can be made visible/hidden. The corresponding CR keys include:

KNLCCallSettingVisible - for missed call setting
KNLMessageSettingVisible - for message setting
KNLEmailSettingVisible - for mail setting
 TInt value = 0;//1 for making the message setting visible
CRepository* CRep = CRepository::NewL( (KCRUidNotificationLightSettings) );
err = CRep->Set( KNLMessageSettingVisible, value ) ;

Code for Symbian^3 Corresponding CR keys are used to get the blinking time duration. The duration will be copied in check.

CRepository *light;
TInt check;
light=CRepository::NewL(KCRUidNotificationLightSettings);
TInt errCode = light->Get(KNotificationLightNotificationTime,check);
delete light;
This page was last modified on 1 August 2012, at 04:41.
39 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.

×