| ID | ... | Creation date | June 30, 2009 |
| Platform | S60 3rd Edition, FP1, FP2 S60 5th Edition | Tested on devices | Nokia 5800 XpressMusic |
| Category | Qt for Symbian | Subcategory |
| Keywords (APIs, classes, methods, functions): XQProfile::setActiveProfile() |
This code snippets shows how to change profile programmatically. The method setActiveProfile() of class XQProfile will change profile to given parameter.
This snippet requires WriteUserData capability. Self-signing is not possible because a Developer certificate is needed.
#include "XQProfile.h"
Add following lines to your .pro file.
symbian:LIBS += -lprofileengine \
-letel3rdparty \
-lfeatdiscovery
symbian:TARGET.CAPABILITY += WriteDeviceData
/* initialize XQProfile */
XQProfile* profile = new XQProfile(this);
/* to set the profile to General */
bool result = profile->setActiveProfile(XQProfile::ProfileGeneral);
/* to set the profile to Silent */
bool result = profile->setActiveProfile(XQProfile::ProfileSilent);
No related wiki articles found