Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

StelAudioMgr.hpp

00001 /*
00002  * Copyright (C) 2008 Matthew Gates
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
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_
Generated on Thu Jan 31 14:05:40 2013 for Stellarium by  doxygen 1.6.3