#ifndef SOUNDENGINE_H #define SOUNDENGINE_H #include #include #include #include class QSound; typedef QMap QStringMap; class SoundEngine : public QObject { Q_OBJECT public: SoundEngine(QObject *parent = 0); ~SoundEngine(); void playSound(QString fileName); QStringMap &getAvailableThemes(); private: bool enabled; QSound * engine; QStringMap availableThemes; protected: void ensureThemeDirectoryExists(); private slots: void soundEnabledChanged(); void themeChangedSlot(); public slots: void testSound(); }; extern SoundEngine *soundEngine; #endif