00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KALPHONON_H
00020 #define KALPHONON_H
00021
00022 #include "kal_export.h"
00023
00024 #ifdef Q_WS_X11
00025 #include <Phonon/AudioOutput>
00026 #endif
00027 #ifdef Q_WS_MAC
00028 #include <Phonon/audiooutput.h>
00029 #endif
00030
00034
00035 class KALPhononPrivate;
00036
00042 class KAL_EXPORT KALPhonon : public QObject
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 KALPhonon( QObject* parent = 0 );
00048 ~KALPhonon();
00049
00050 void resetOutput();
00051
00052 QString alDevice() const;
00053 Phonon::AudioOutput* phononOutput() const;
00054 Phonon::Category category() const;
00055
00056 public Q_SLOTS:
00057 bool setCategory( Phonon::Category category );
00058
00059 Q_SIGNALS:
00060 void deviceChanged( const QString& deviceName );
00061
00062 private:
00063 Q_DISABLE_COPY( KALPhonon )
00064
00065 KALPhononPrivate* const d;
00066
00067 private Q_SLOTS:
00068 bool setDevice( const Phonon::AudioOutputDevice& device );
00069
00070 };
00071
00073 #endif // KALPHONON_H