×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Retrieving the current active profile on Symbian

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData)
debjit.roy (Talk | contribs)
(Debjit.roy -)
Line 1: Line 1:
 +
[[Category:Technical Solution]][[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 1]]
 
{{KBTS}}
 
{{KBTS}}
 
__NOTOC__  
 
__NOTOC__  
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
[[Category:Technical Solution]]
+
 
  
 
{{ArticleMetaData
 
{{ArticleMetaData
Line 23: Line 24:
 
}}
 
}}
  
 +
{{Archived|timestamp=20120314053225|user=roy.debjit| }}
 
== Overview ==
 
== Overview ==
 
Retrieving the current active profile of the device
 
Retrieving the current active profile of the device
Line 28: Line 30:
 
== Description ==
 
== Description ==
 
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
 
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
 
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 1]]
 

Revision as of 08:32, 14 March 2012

Template:KBTS



Article Metadata
Compatibility
Platform(s): S60 3rd Edition, FP1
S60 3rd Edition FP1
Article
Created: User:Technical writer 2 (30 Nov 2006)
Last edited: debjit.roy (14 Mar 2012)

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}}.

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

49 page views in the last 30 days.