Home · All Namespaces · All Classes · Main Classes |
#include <profile.h>
Public Slots | |
QString | activeProfile () |
bool | setActiveProfile (QString name) |
QStringList | profileNames () |
Get available profile names. | |
int | volumeLevel (QString profileName) |
bool | isVibrationEnabled (QString profileName) |
int | touchscreenVibrationLevel (QString profileName) |
bool | setVolumeLevel (QString profileName, int level) |
bool | setVibration (QString profileName, bool enabled) |
bool | setTouchscreenVibrationLevel (QString profileName, int level) |
Signals | |
void | volumeLevelChanged (QString profileName, int level) |
void | vibrationChanged (QString profileName, bool enabled) |
void | touchscreenVibrationLevelChanged (QString profileName, int level) |
void | activeProfileChanged (QString newActiveProfileName) |
Public Member Functions | |
Profile (QObject *parent=0) | |
virtual | ~Profile () |
An interface class to get and set phone default profiles and change the volume and vibration settings for different events and environments.
|
explicit |
A constructor. Constructs a profile with parent.
parent | Parent of the class. |
|
virtual |
A destructor.
|
slot |
Get the name of active profile.
.h
|
signal |
Signal emitted when active profile is changed to new one. { Note: connecting object needs to maintain itself what was the old active profile. API delivers only the name of the new profile. }
newActiveProfileName | name of the new active profile |
|
slot |
Check if vibration is enabled.
profileName | Name of the profile interested of. |
|
slot |
Get available profile names.
|
slot |
Set active profile.
name | of the profile to set active. The profile name constants are defined in TBD .h |
|
slot |
Set touch screen vibration level. Touch screen vibration level range is 0 - 2 where 0 means no vibration. Level is set to 0 or 2 if value is outside of the range.
profileName | Name of the profile to modify |
level | New touch screen vibration level to set for the profile. |
|
slot |
Set vibration.
profileName | Name of the profile to modify |
enabled | True to set the vibration enabled, false to set vibration disabled. |
|
slot |
Set volume level. Volume level range is 0 - 100 where 0 means no ringing. Level is set to 0 or 100 if value is outside of the range. Silent profile has always volume level 0 and it can't change.
profileName | Name of the profile to modify |
level | New volume level to set for the profile. |
|
slot |
Returns touch screen vibration level. Touch screen vibration level range is 0 - 2 where 0 means no vibration.
profileName | Name of the profile interested of. |
|
signal |
Signal emitted after changes to profile data Touchscreen vibration level range is 0 - 2 where 0 means no vibration.
profileName | Name of the changed profile |
level | new touch screen vibration level |
|
signal |
Signal emitted after changes to profile data
profileName | Name of the changed profile |
enabled | True if the vibration is enabled, false if the vibration is disabled. |
|
slot |
Returns volume level. Volume level range is 0 - 100 where 0 means no ringing. Silent profile has always volume level 0.
profileName | Name of the profile interested of. |
|
signal |
Signal emitted after changes to profile data Volume level range is 0 - 100 where 0 means no ringing. Silent profile has always volume level 0 and it can't change.
profileName | Name of the changed profile |
level | new volume level |
Copyright © 2009 Nokia Corporation | Generated on Mon Sep 4 2023 13:03:59 Doxygen 1.9.7 |
System Control UI |