X-Git-Url: http://git.maemo.org/git/?p=jspeed;a=blobdiff_plain;f=src%2Fmediaplayer.h;h=9a9e37692c326a83a5c8a835b1634c53e3a187c9;hp=2bba0ec5e0c49ce0dfd744d53f1586a26706e44e;hb=1063106840d9aab949b2a3c676fff70f5cc2f06e;hpb=fa66fb373153edc684f4d575c56107b74a615a3b diff --git a/src/mediaplayer.h b/src/mediaplayer.h index 2bba0ec..9a9e376 100644 --- a/src/mediaplayer.h +++ b/src/mediaplayer.h @@ -22,12 +22,14 @@ #include #include #include -#include + +class QMediaPlayer; class MediaPlayer { public: enum Format {MP3, WAV, AAC, FORMAT_COUNT}; + static void init(); static bool play(QString const& file); static void getSupportedFormats(QList& formats); static QString getFormatPattern(); @@ -36,7 +38,7 @@ public: static QString const& getLocalSoundDir(); private: - static QMediaPlayer player_; + static QMediaPlayer* getPlayer(); }; #endif