From 606bc1c51e89c56e57887528779756839e387904 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sat, 25 May 2013 15:02:08 +0200 Subject: [PATCH] Forgotten files are forgotten --- src/libtomahawk/audio/AudioEngine_p.h | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/libtomahawk/audio/AudioEngine_p.h 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; +};