#ifndef SOUNDPLAYER_H #define SOUNDPLAYER_H #include #include #include class SoundPlayer : public QObject { Q_OBJECT public: static void play(const QString &filename); signals: public slots: private: static QMap map; static QSound *current; }; #endif // SOUNDPLAYER_H