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.

Setting Default email and Active idle messaging plugin

From Wiki
Jump to: navigation, search
Article Metadata
Created: bharatuppal (15 Jul 2007)
Last edited: hamishwillee (14 Jun 2013)
Default email: Default email account information is stored
in KCRUidMceSettings repository using 
KMceSettingsDefaultAccount key. Value stored using that key 
is the id (TMsvId) of the default email account. 
Active idle messaging plugin: Active idle messaging plugin 
information is stored in KCRUidMceSettings repository using 
KMceSettingsAIMessagePluginFolder key. Value stored using 
that key is the id (TMsvId) of the mesaging entry that the 
plugin is connected to. 
 const TUid KCRUidMceSettings = {0x101F8F28}; const TUint32 
KMceSettingsDefaultAccount = 0x00000001; const TUint32
KMceSettingsAIMessagePluginFolder = 0x00000004;
1) Include Central Repository library:
 LIBRARY CentralRepository.lib
 2) Include Central Repository header:
#include <centralrepository.h>
 3) Set Default email account and Active idle messaging plugin: 
 CRepository* repository = CRepository::NewL(KCRUidMceSettings); 
repository->Set( KMceSettingsDefaultAccount,
idOfNewDefaultEmailEntry );
repository->Set( KMceSettingsAIMessagePluginFolder,
repository->idOfNewDefaultEmailEntry );
This page was last modified on 14 June 2013, at 06:57.
21 page views in the last 30 days.