#ifndef AUDIOPLAYER_H #define AUDIOPLAYER_H #include #include namespace Phonon { class MediaObject; class AudioOutput; } class AudioPlayer : public QObject { Q_OBJECT public: AudioPlayer(); static AudioPlayer *self(); void stop(); void setMuted(bool mute = true); void playIntro(); signals: void finished(); private slots: void finished_p(); void stateChanged_p(Phonon::State newstate, Phonon::State oldstate); private: Phonon::MediaObject *m_player; Phonon::AudioOutput *m_output; static AudioPlayer *m_instance; }; #endif // AUDIOPLAYER_H