×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Retrieving the current active profile on Symbian

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
m (1 revision(s))
Forum Nokia KB (Talk | contribs)
Line 1: Line 1:
 +
{{KBTS}}
 
__NOTOC__  
 
__NOTOC__  
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
[[Category:Technical Solutions]]
+
[[Category:Technical Solution]]
  
 
{|border="2" cellspacing="0" cellpadding="4" width="100%"
 
{|border="2" cellspacing="0" cellpadding="4" width="100%"

Revision as of 15:21, 24 August 2007

Template:KBTS

Subject:

Retrieving the current active profile of the device TSS000513

 

Platform(s): Device(s), SW version(s):
S60 3rd Edition, FP1  

Category:

Symbian C++

Subcategory:

-

Description:

Retrieving the current active profile of the device using the Profiles Engine Wrapper API.
The 2 header files that need to be included are mproengengine.h and proengfactory.h
The library that needs to be included is ProfileEngine.lib
Below are the example codes.
MProEngEngine* engine = ProEngFactory::NewEngineLC();
TInt activeId( engine->ActiveProfileId() );
The return values of ActiveProfileId() are:
0 - General
1 - Silent
2 - Meeting
3 - Outdoor
4 - Pager
5 – Offline

Creation date:

November 30, 2006

Last modified:

-
36 page views in the last 30 days.