Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QDeviceProfile Class

The QDeviceProfile class provides details for the profile of the device. More...

 #include <QDeviceProfile>

Inherits: QObject.

Public Types

enum ProfileType { UnknownProfile, SilentProfile, NormalProfile, VibrationProfile, BeepProfile }

Properties

  • 1 property inherited from QObject

Public Functions

QDeviceProfile(QObject * parent = 0)
virtual ~QDeviceProfile()
ProfileType currentProfileType() const
bool isVibrationActivated() const
int messageRingtoneVolume() const
int voiceRingtoneVolume() const
  • 31 public functions inherited from QObject

Signals

void currentProfileTypeChanged(QDeviceProfile::ProfileType profile)
void messageRingtoneVolumeChanged(int volume)
void vibrationActivatedChanged(bool activated)
void voiceRingtoneVolumeChanged(int volume)

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QDeviceProfile class provides details for the profile of the device.

Member Type Documentation

enum QDeviceProfile::ProfileType

This enum describes the type of the current profile.

ConstantValueDescription
QDeviceProfile::UnknownProfile0Profile unknown, profile type requested but no result received yet or an error occured.
QDeviceProfile::SilentProfile1Neither sound nor vibration is on.
QDeviceProfile::NormalProfile2Normal sound is on.
QDeviceProfile::VibrationProfile3Only vibration is on, and sound is off.
QDeviceProfile::BeepProfile4Only beep is on.

Property Documentation

currentProfileType : const ProfileType

This property holds the current activated profile.

Returns the type for this profile.

Access functions:

ProfileType currentProfileType() const

Notifier signal:

void currentProfileTypeChanged(QDeviceProfile::ProfileType profile)

isVibrationActivated : const bool

This property holds vibration activated or deactivated.

Returns whether the vibration is active for this profile.

Access functions:

bool isVibrationActivated() const

Notifier signal:

void vibrationActivatedChanged(bool activated)

messageRingtoneVolume : const int

This property holds the message ringtone volume.

Returns the message ringtone volume for this profile, from 0 to 100. If this information is unknown, message volume requested but no result received yet or error occurs the -1 is returned.

Access functions:

int messageRingtoneVolume() const

Notifier signal:

void messageRingtoneVolumeChanged(int volume)

voiceRingtoneVolume : const int

This property holds the voice ringtone volume.

Returns the voice ringtone volume for this profile, from 0 to 100. If this information is unknown, voice volume requested but no result received yet or error occurs the -1 is returned.

Access functions:

int voiceRingtoneVolume() const

Notifier signal:

void voiceRingtoneVolumeChanged(int volume)

Member Function Documentation

QDeviceProfile::QDeviceProfile(QObject * parent = 0)

Constructs a QDeviceProfile object with the given parent.

QDeviceProfile::~QDeviceProfile() [virtual]

Destroys the object

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web