Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PHONON_GLOBALCONFIG_H
00024 #define PHONON_GLOBALCONFIG_H
00025
00026 #include "phonon_export.h"
00027 #include "phononnamespace.h"
00028 #include "phonondefs.h"
00029
00030 QT_BEGIN_HEADER
00031 QT_BEGIN_NAMESPACE
00032
00033 namespace Phonon
00034 {
00035 class GlobalConfigPrivate;
00036
00037 class PHONON_EXPORT GlobalConfig
00038 {
00039 K_DECLARE_PRIVATE(GlobalConfig)
00040 public:
00041 GlobalConfig();
00042 virtual ~GlobalConfig();
00043
00044 enum DevicesToHideFlag {
00045 ShowUnavailableDevices = 0,
00046 ShowAdvancedDevices = 0,
00047 HideAdvancedDevices = 1,
00048 AdvancedDevicesFromSettings = 2,
00049 HideUnavailableDevices = 4
00050 };
00051 bool hideAdvancedDevices() const;
00052 void setHideAdvancedDevices(bool hide = true);
00053 void setAudioOutputDeviceListFor(Phonon::Category category, QList<int> order);
00054 QList<int> audioOutputDeviceListFor(Phonon::Category category, int override = AdvancedDevicesFromSettings) const;
00055 int audioOutputDeviceFor(Phonon::Category category, int override = AdvancedDevicesFromSettings) const;
00056
00057 #ifndef QT_NO_PHONON_AUDIOCAPTURE
00058 void setAudioCaptureDeviceListFor(Phonon::Category category, QList<int> order);
00059 QList<int> audioCaptureDeviceListFor(Phonon::Category category, int override = AdvancedDevicesFromSettings) const;
00060 int audioCaptureDeviceFor(Phonon::Category category, int override = AdvancedDevicesFromSettings) const;
00061 #endif //QT_NO_PHONON_AUDIOCAPTURE
00062
00063 protected:
00064 GlobalConfigPrivate *const k_ptr;
00065 };
00066 }
00067
00068 QT_END_NAMESPACE
00069 QT_END_HEADER
00070
00071 #endif // PHONON_GLOBALCONFIG_H