Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 15:24, 7 December 2007.

How to Detect Offline Mode in 3rd Edition

From Forum Nokia Wiki

// Headers Used

#include <centralrepository.h>
#include <ProfileEngineSDKCRKeys.h>


// We need to Query Central Repository.


CRepository* cRepository = CRepository::NewLC( KCRUidProfileEngine );


// CurrentProfileId will be used to hold the current active profile id.


TInt CurrentProfileId;


// Get current profile Id.

// KProEngActiveProfile is the id of the currently active profile.


User::LeaveIfError( cRepository->Get( KProEngActiveProfile, CurrentProfileId ) );


// Check CurrentProfileId to determine the active profile.

// Possible values of CurrentProfileId can be one of the followings:

// 0 = General profile (default value)

// 1 = Silent profile

// 2 = Meeting profile

// 3 = Outdoor profile

// 4 = Pager profile

// 5 = Off-line profile

// 6 = Drive profile

// 30-49 = User-created profiles


if ( CurrentProfileId == 5 )
{
 
	// It means that the current profile is in the offline mode.
        // Similarly you can check for any active profile by comparing the
        // CurrentProfileId.
}
Related Discussions
Thread Thread Starter Forum Replies Last Post
UnknownEvent in WebClient pietrodamb General Symbian C++ 1 2008-01-18 07:20
API removed in 3rd edition twlai General Symbian C++ 2 2006-03-02 12:03
j2me streaming FLO334 Mobile Java Media (Graphics & Sounds) 75 2008-03-28 03:44
HandleKeyEventL in 3rd Edition sajain General Symbian C++ 6 2007-03-16 09:11
PC suite for Windows XP, with Nokia 6210 Nokia_Archived PC Suite API and PC Connectivity SDK 1 2002-05-22 19:02
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX