StelAudioMgr.hpp   StelAudioMgr.hpp 
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELAUDIOMGR_HPP_ #ifndef _STELAUDIOMGR_HPP_
#define _STELAUDIOMGR_HPP_ #define _STELAUDIOMGR_HPP_
#ifdef HAVE_QT_PHONON
#include <phonon/mediaobject.h>
#endif
#include <QObject> #include <QObject>
#include <QMap> #include <QMap>
#include <QString> #include <QString>
class QMediaPlayer;
class StelAudioMgr : public QObject class StelAudioMgr : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
StelAudioMgr(); StelAudioMgr();
~StelAudioMgr(); ~StelAudioMgr();
public slots: public slots:
void loadSound(const QString& filename, const QString& id); void loadSound(const QString& filename, const QString& id);
void playSound(const QString& id); void playSound(const QString& id);
void pauseSound(const QString& id); void pauseSound(const QString& id);
void stopSound(const QString& id); void stopSound(const QString& id);
void dropSound(const QString& id); void dropSound(const QString& id);
private: private:
#ifdef HAVE_QT_PHONON QMap<QString, QMediaPlayer*> audioObjects;
QMap<QString, Phonon::MediaObject*> audioObjects;
#endif
}; };
#endif // _STELAUDIOMGR_HPP_ #endif // _STELAUDIOMGR_HPP_
 End of changes. 3 change blocks. 
8 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/