00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _STELAUDIOMGR_HPP_
00020 #define _STELAUDIOMGR_HPP_
00021
00022 #ifdef HAVE_QT_PHONON
00023 #include <phonon/mediaobject.h>
00024 #endif
00025
00026 #include <QObject>
00027 #include <QMap>
00028 #include <QString>
00029
00030 class StelAudioMgr : public QObject
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 StelAudioMgr();
00036 ~StelAudioMgr();
00037
00038 public slots:
00039 void loadSound(const QString& filename, const QString& id);
00040 void playSound(const QString& id);
00041 void pauseSound(const QString& id);
00042 void stopSound(const QString& id);
00043 void dropSound(const QString& id);
00044
00045 private:
00046 #ifdef HAVE_QT_PHONON
00047 QMap<QString, Phonon::MediaObject*> audioObjects;
00048 #endif
00049
00050 };
00051
00052 #endif // _STELAUDIOMGR_HPP_