Home · All Namespaces · All Classes · Main Classes
Public Slots | Signals | Public Member Functions | List of all members
Profile Class Reference

#include <profile.h>

Inheritance diagram for Profile:
Inheritance graph
[legend]
Collaboration diagram for Profile:
Collaboration graph
[legend]

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 ()
 

Detailed Description

An interface class to get and set phone default profiles and change the volume and vibration settings for different events and environments.

Constructor & Destructor Documentation

◆ Profile()

Profile::Profile ( QObject *  parent = 0)
explicit

A constructor. Constructs a profile with parent.

Parameters
parentParent of the class.

◆ ~Profile()

Profile::~Profile ( )
virtual

A destructor.

Member Function Documentation

◆ activeProfile

QString Profile::activeProfile ( )
slot

Get the name of active profile.

Returns
profile name. The profile name constants are defined in TBD .h

◆ activeProfileChanged

void Profile::activeProfileChanged ( QString  newActiveProfileName)
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. }

Parameters
newActiveProfileNamename of the new active profile

◆ isVibrationEnabled

bool Profile::isVibrationEnabled ( QString  profileName)
slot

Check if vibration is enabled.

Parameters
profileNameName of the profile interested of.
Returns
True if vibration is enabled and false if vibration is disabled.
See also
setVibration(QString profileName, bool enabled)

◆ profileNames

QStringList Profile::profileNames ( )
slot

Get available profile names.

Returns
supported profile names in a list

◆ setActiveProfile

bool Profile::setActiveProfile ( QString  name)
slot

Set active profile.

Parameters
nameof the profile to set active. The profile name constants are defined in TBD .h
Returns
status. If operation succeeds, returns true, false otherways.

◆ setTouchscreenVibrationLevel

bool Profile::setTouchscreenVibrationLevel ( QString  profileName,
int  level 
)
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.

Parameters
profileNameName of the profile to modify
levelNew touch screen vibration level to set for the profile.
See also
touchscreenVibrationLevel(QString profileName)
Returns
status. If operation succeeds, returns true, false otherways.

◆ setVibration

bool Profile::setVibration ( QString  profileName,
bool  enabled 
)
slot

Set vibration.

Parameters
profileNameName of the profile to modify
enabledTrue to set the vibration enabled, false to set vibration disabled.
See also
isVibrationEnabled(QString profileName)
Returns
status. If operation succeeds, returns true, false otherways.

◆ setVolumeLevel

bool Profile::setVolumeLevel ( QString  profileName,
int  level 
)
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.

Parameters
profileNameName of the profile to modify
levelNew volume level to set for the profile.
See also
getVolumeLevel(QString profileName)
Returns
status. If operation succeeds, returns true, false otherways.

◆ touchscreenVibrationLevel

int Profile::touchscreenVibrationLevel ( QString  profileName)
slot

Returns touch screen vibration level. Touch screen vibration level range is 0 - 2 where 0 means no vibration.

Parameters
profileNameName of the profile interested of.
Returns
level of the vibration.
See also
setTouchscreenVibrationLevel(QString profileName, int level)

◆ touchscreenVibrationLevelChanged

void Profile::touchscreenVibrationLevelChanged ( QString  profileName,
int  level 
)
signal

Signal emitted after changes to profile data Touchscreen vibration level range is 0 - 2 where 0 means no vibration.

Parameters
profileNameName of the changed profile
levelnew touch screen vibration level
See also
setTouchscreenVibrationLevel(QString profileName, int level),

◆ vibrationChanged

void Profile::vibrationChanged ( QString  profileName,
bool  enabled 
)
signal

Signal emitted after changes to profile data

Parameters
profileNameName of the changed profile
enabledTrue if the vibration is enabled, false if the vibration is disabled.
See also
isVibrationEnabled(QString profileName), setVibration(QString profileName, bool enabled)

◆ volumeLevel

int Profile::volumeLevel ( QString  profileName)
slot

Returns volume level. Volume level range is 0 - 100 where 0 means no ringing. Silent profile has always volume level 0.

Parameters
profileNameName of the profile interested of.
Returns
level of the volume.
See also
setVolumeLevel(QString profileName, int level)

◆ volumeLevelChanged

void Profile::volumeLevelChanged ( QString  profileName,
int  level 
)
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.

Parameters
profileNameName of the changed profile
levelnew volume level
See also
setVolumeLevel(QString profileName, int level),

The documentation for this class was generated from the following files:

Copyright © 2009 Nokia Corporation Generated on Mon Sep 4 2023 13:03:59
Doxygen 1.9.7
System Control UI