×
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 (Protected "TSS000513 - Retrieving the current active profile of the device": KB [edit=sysop:move=sysop])
extkbeditor1 (Talk | contribs)
m
Line 5: Line 5:
 
[[Category:Technical Solution]]
 
[[Category:Technical Solution]]
  
{|border="2" cellspacing="0" cellpadding="4" width="100%"
+
{{KnowledgeBase
|
+
|id=TSS000513
====Subject:====
+
|platform=S60 3rd Edition, FP1
|colspan = "2"|Retrieving the current active profile of the device
+
|devices=
|TSS000513
+
|category=Symbian C<nowiki>++</nowiki>
 +
|subcategory=
 +
|creationdate=November 30, 2006
 +
|keywords=
 +
}}
  
|-
+
== Overview ==
|rowspan = "2"|
+
Retrieving the current active profile of the device
====&nbsp;====
+
|Platform(s):
+
|colspan = "2"|Device(s), SW version(s):
+
  
|-
+
== Description ==
|S60 3rd Edition, FP1
+
Retrieving the current active profile of the device using the Profiles Engine Wrapper API.<br>The 2 header files that need to be included are mproengengine.h and proengfactory.h<br>The library that needs to be included is ProfileEngine.lib<br>Below are the example codes.<br>MProEngEngine* engine = ProEngFactory::NewEngineLC();<br>TInt activeId( engine-<nowiki>></nowiki>ActiveProfileId() );<br>The return values of ActiveProfileId() are:<br>0 - General<br>1 - Silent<br>2 - Meeting<br>3 - Outdoor<br>4 - Pager<br>5 – Offline
|colspan = "2"|&nbsp;
+
  
|-
 
|
 
====Category:====
 
|colspan = "3"|Symbian C<nowiki>++</nowiki>
 
 
|-
 
|
 
====Subcategory:====
 
|colspan = "3"|-
 
 
|-
 
|
 
====Description:====
 
|colspan = "3"|Retrieving the current active profile of the device using the Profiles Engine Wrapper API.<br>The 2 header files that need to be included are mproengengine.h and proengfactory.h<br>The library that needs to be included is ProfileEngine.lib<br>Below are the example codes.<br>MProEngEngine* engine = ProEngFactory::NewEngineLC();<br>TInt activeId( engine-<nowiki>></nowiki>ActiveProfileId() );<br>The return values of ActiveProfileId() are:<br>0 - General<br>1 - Silent<br>2 - Meeting<br>3 - Outdoor<br>4 - Pager<br>5 – Offline
 
 
|-
 
|
 
====Creation date:====
 
|colspan = "3"|November 30, 2006
 
 
|-
 
|
 
====Last modified:====
 
|colspan = "3"|-
 
 
|-
 
 
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 1]]
 
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 1]]

Revision as of 00:21, 4 November 2008

Template:KBTS

Article Metadata
Compatibility
Platform(s): S60 3rd Edition, FP1
S60 3rd Edition FP1
Article
Created: (30 Nov 2006)
Last edited: extkbeditor1 (04 Nov 2008)

Overview

Retrieving the current active profile of the device

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

59 page views in the last 30 days.
×