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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QVibrateAccessory Class Reference
[QtBaseModule]

The QVibrateAccessory class provides access to the vibrate device on a phone. More...

    #include <QVibrateAccessory>

Inherits QHardwareInterface.

Inherited by QVibrateAccessoryProvider.

Public Functions

Public Slots

  • 1 public slot inherited from QObject

Signals

Additional Inherited Members


Detailed Description

The QVibrateAccessory class provides access to the vibrate device on a phone.

QVibrateAccessory can be used to control when the vibrate device activates with vibrateOnRing() and vibrateNow(). The usual way to turn on the vibrate device within a client application is as follows:

    QVibrateAccessory vib;
    vib.setVibrateNow( true );

Vibrate device implementations should inherit from QVibrateAccessoryProvider.

See also QVibrateAccessoryProvider and QHardwareInterface.


Member Function Documentation

QVibrateAccessory::QVibrateAccessory ( const QString & id = QString(), QObject * parent = 0, QAbstractIpcInterface::Mode mode = Client )

Construct a new vibrate abstraction object for provider id and attaches it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.

If id is empty, this class will use the first available provider that supports the vibrate interface. If there is more than one service that supports the vibrate interface, the caller should enumerate them with QHardwareManager::providers() and create separate QVibrateAccessory objects for each.

See also QHardwareManager::providers().

QVibrateAccessory::~QVibrateAccessory ()

Destroys the vibrate accessory.

void QVibrateAccessory::setVibrateNow ( const bool value )   [virtual slot]

Turns the vibrate device on if value is true; otherwise it is turned off.

See also vibrateNow().

void QVibrateAccessory::setVibrateOnRing ( const bool value )   [virtual slot]

Sets the vibrateOnRing() attribute to value.

See also vibrateOnRing().

bool QVibrateAccessory::supportsVibrateNow () const

Returns true if the vibrate device supports the vibrateNow() feature; otherwise returns false.

bool QVibrateAccessory::supportsVibrateOnRing () const

Returns true if the vibrate device supports the vibrateOnRing() feature; otherwise returns false.

bool QVibrateAccessory::vibrateNow () const

Returns true if the vibrate device is currently vibrating; otherwise returns false.

See also setVibrateNow().

void QVibrateAccessory::vibrateNowModified ()   [signal]

Signal that is emitted when vibrateNow() is modified.

bool QVibrateAccessory::vibrateOnRing () const

Returns true if the vibrate device will vibrate when an incoming call is detected; otherwise returns false.

See also setVibrateOnRing().

void QVibrateAccessory::vibrateOnRingModified ()   [signal]

Signal that is emitted when vibrateOnRing() is modified.

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 qtextended4.4
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