QCommDeviceController Class Reference
|
Constant | Value | Description |
---|---|---|
QCommDeviceController::On | 0 | The device is on permanently. |
QCommDeviceController::Off | 1 | The device is off. |
QCommDeviceController::OnOneItem | 2 | The device is on until the last device session is closed. |
QCommDeviceController::OnTimed | 3 | The device is on for a specified period of time, at which time it is either turned off if there are no sessions open, or enters the OnOneItem state. |
Constructs a new QCommDeviceController object. The devId specifies the device id. This is usually equivalent to the hardware device id of the device. E.g. irdaX for Infrared devices and hciX for Bluetooth devices.
The parent parameter is passed to the QObject constructor.
See also deviceId().
Destructor.
Brings down the device. The device will attempt to enter the Off mode.
See also bringUp().
Brings up the device. The device will attempt to enter the On mode.
See also bringDown(), bringUpTimed(), and bringUpOneItem().
Brings up the device for one item. The device will attempt to enter the OnOneItem mode.
See also bringUp() and bringUpTimed().
Brings up the device in timed mode. The device will attempt to enter the OnTimed mode. The device will remain in this mode for secs seconds.
See also bringUp() and bringUpOneItem().
Returns the id of the device.
This signal is emitted when the device is turned off.
See also bringDown().
Returns true if the device is currently turned on. E.g. it is in On, OnTimed or OnOneItem mode.
See also bringUp(), bringDown(), and powerState().
Returns the current power state of the device.
See also isUp().
This signal is emitted when a device's power state has been changed. The state parameter holds the new power state.
See also powerState().
Returns true if there are applications using this device.
This signal is emitted when the device is turned on.
See also bringUp().
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 ! |
Copyright © 2000-2012 - www.developpez.com