Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QBluetoothAudioGateway class provides an interface to a Bluetooth Audio Gateway. More...
#include <QBluetoothAudioGateway>
Inherits QCommInterface.
Inherited by QBluetoothHandsfreeAudioGatewayServer and QBluetoothHeadsetAudioGatewayServer.
The QBluetoothAudioGateway class provides an interface to a Bluetooth Audio Gateway.
The Bluetooth Audio Gateway usually has an audio device associated with it. Clients can also control speaker and microphone volume of the device, connect and disconnect remote clients and find status information of the audio gateway.
The QBluetoothAudioGateway is used to control the Headset and Handsfree profile implementations in Qtopia. Both use a control RFCOMM channel and a SCO voice data channel. This class should be used by client applications that wish to control the state of Handsfree / Headset implementations (e.g. a Bluetooth Audio settings application.)
See also QCommInterface.
Construct a new audio gateway object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.
If service is empty, this class will use the first available service that supports bluetooth audio gateway. If there is more than one service that supports bluetooth audio gateway, the caller should enumerate them with QCommServiceManager::supports() and create separate QBluetoothAudioGateway objects for each.
See also QAbstractIpcInterfaceGroup::supports().
Destroys the audio gateway.
Returns whether the voice data information is being passed to the device. This is true once an SCO connection has been established between the remote device (headset) and the audio gateway. All audio information should now be routed over the device associated with this audio gateway.
See also isConnected() and remotePeer().
This signal is emitted whenever the state of the audio data stream has changed. E.g. the audio stream (SCO connection) has been disconnected or connected. Use audioEnabled() to find out the state of the audio stream.
See also audioEnabled().
Attempts to establish an Audio Gateway initiated RFCOMM control connection to the headset. The addr contains the address of the remote device and rfcomm_channel contains the service channel to connect on.
The connectResult() signal will be sent once the connection succeeds or fails.
See also connectResult().
Asks the Audio Gateway to establish an SCO data connection with the currently connected peer. All audio data should now be routed to the associated audio device.
See also releaseAudio().
This signal is sent after the connect method has been called on the Audio Gateway object. The success parameter is true if the connection succeeded, and false otherwise. If the connection failed, the msg parameter holds the error string.
See also connect().
Disconnect the currently active client from the Audio Gateway. The headsetDisconnected() signal will be sent once the headset is disconnected().
See also headsetDisconnected().
This signal is sent whenever a headset has disconnected from the audio gateway.
See also disconnect().
Returns true if a client is connected. This is true once an RFCOMM control connection has been established between the remote device and the audio gateway.
See also audioEnabled() and remotePeer().
Returns the current microphone volume of the device. The volume can be between 0 and 15.
See also setMicrophoneVolume().
This signal is sent whenever the microphone volume of the remote device has been changed.
See also microphoneVolume() and setMicrophoneVolume().
This signal is sent whenever a client has connected to the Audio Gateway. It is only sent on remote device initiated connections. The addr parameter holds the address of the connected remote device.
See also connect().
Asks the Audio Gateway to release the SCO audio data connection. No audio should be routed through the associated audio device.
See also connectAudio().
Returns the address of the connected remote device. If there is no connection an invalid QBluetoothAddress is returned.
See also isConnected().
Requests the Audio Gateway to notify the remote device to update its microphone volume to volume. The volume range must be between 0 and 15.
See also microphoneVolume().
Requests the Audio Gateway to notify the remote device to update its speaker volume to volume. The volume range must be between 0 and 15.
See also speakerVolume().
Returns the current speaker volume of the device. The volume can be between 0 and 15.
See also setSpeakerVolume().
This signal is sent whenever the microphone volume of the remote device has been changed.
See also speakerVolume() and setSpeakerVolume().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |