21 #ifndef STATEHANDLER_H
22 #define STATEHANDLER_H
25 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
28 # include <QRecursiveMutex>
55 void dispatch(qint64 elapsed,
int bitrate);
65 void dispatch(qint64 duration);
74 void dispatch(
const QHash<QString, QString> &info);
83 void dispatchBuffer(
int percent);
87 qint64 elapsed()
const;
91 qint64 duration()
const;
107 void sendNextTrackRequest();
122 void elapsedChanged(qint64 time);
127 void bitrateChanged(
int bitrate);
137 void bufferingProgress(
int progress);
140 qint64 m_elapsed = -1;
141 qint64 m_duration = 0;
142 bool m_sendAboutToFinish =
true;
149 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
150 mutable QMutex m_mutex;
AudioParameters m_audioParameters
The AudioParameters class keeps information about audio settings.
The StateHandler class allows one to track information about playback progress.
The TrackInfo class stores metadata and other information about track.
static StateHandler * m_instance
QHash< QString, QString > m_streamInfo