diff --git a/src/libtomahawk/audio/AudioEngine_p.h b/src/libtomahawk/audio/AudioEngine_p.h new file mode 100644 index 000000000..f0e2be245 --- /dev/null +++ b/src/libtomahawk/audio/AudioEngine_p.h @@ -0,0 +1,55 @@ + +#include +#include +#include + +#include +#include +#include +#include + +class AudioEnginePrivate : public QObject +{ +Q_OBJECT + +public: + AudioEnginePrivate( AudioEngine* q ) + : q_ptr ( q ) + { + } + AudioEngine* q_ptr; + Q_DECLARE_PUBLIC ( AudioEngine ) + + +public slots: + void onStateChanged( Phonon::State newState, Phonon::State oldState ); + +private: + QSharedPointer input; + + Tomahawk::query_ptr stopAfterTrack; + Tomahawk::result_ptr currentTrack; + Tomahawk::playlistinterface_ptr playlist; + Tomahawk::playlistinterface_ptr currentTrackPlaylist; + Tomahawk::playlistinterface_ptr queue; + + Phonon::MediaObject* mediaObject; + Phonon::AudioOutput* audioOutput; + + unsigned int timeElapsed; + bool expectStop; + bool waitingOnNewTrack; + + mutable QStringList supportedMimeTypes; + + AudioState state; + QQueue< AudioState > stateQueue; + QTimer stateQueueTimer; + + uint_fast8_t underrunCount; + bool underrunNotified; + + QTemporaryFile* coverTempFile; + + static AudioEngine* s_instance; +};