Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QVibrateAccessory class provides access to the vibrate device on a phone. More...
#include <QVibrateAccessory>
Inherits QHardwareInterface.
Inherited by QVibrateAccessoryProvider.
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.
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().
Destroys the vibrate accessory.
Turns the vibrate device on if value is true; otherwise it is turned off.
See also vibrateNow().
Sets the vibrateOnRing() attribute to value.
See also vibrateOnRing().
Returns true if the vibrate device supports the vibrateNow() feature; otherwise returns false.
Returns true if the vibrate device supports the vibrateOnRing() feature; otherwise returns false.
Returns true if the vibrate device is currently vibrating; otherwise returns false.
See also setVibrateNow().
Signal that is emitted when vibrateNow() is modified.
Returns true if the vibrate device will vibrate when an incoming call is detected; otherwise returns false.
See also setVibrateOnRing().
Signal that is emitted when vibrateOnRing() is modified.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |