Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QAudioStateManager Class Reference
[QtBluetoothModule, QtMediaModule, QtPimModule, QtTelephonyModule]

The QAudioStateManager class manages QAudioStatePlugin objects. More...

    #include <QAudioStateManager>

Inherits QObject.

Public Functions

Additional Inherited Members


Detailed Description

The QAudioStateManager class manages QAudioStatePlugin objects.

This class performs basic management of the audio device and various audio states. It is responsible for loading all QAudioStatePlugin objects and obtaining all available audio states described by the QAudioState object(s).

You generally do not need to use this class unless you are writing your own media server responsible for managing the audio device.

See also QAudioState and QAudioStatePlugin.


Member Function Documentation

QAudioStateManager::QAudioStateManager ( QObject * parent = 0 )

Construct a new QAudioStateManager object with parent

QAudioStateManager::~QAudioStateManager ()

Destroys a QAudioStateManager object.

bool QAudioStateManager::setDomain ( const QByteArray & domain, QAudio::AudioCapability capability )

Ask the manager to enter into a particular domain. The audio state with the highest priority (lowest number) for this domain will be used. The audio state will be set with the capability.

Returns true if the domain could be entered and false otherwise.

See also setProfile() and setState().

bool QAudioStateManager::setProfile ( const QByteArray & profile )

Ask the manager to set a particular profile. The profile is given by profile. It is an error to call this function if no domain is currently active. Effectively this sets the audio state with the same domain and capabilities but different inputs/outputs.

Returns true if the profile could be set and false otherwise.

See also setDomain() and setState().

bool QAudioStateManager::setState ( const QAudioStateInfo & state, QAudio::AudioCapability capability )

Ask the manager to set a particular state. The state to set is given by state. The capability to set is given by capability.

Returns true if the state could be set and false otherwise.

See also setProfile() and setDomain().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3