1#ifndef PLAYBACKSTATE_H_
2#define PLAYBACKSTATE_H_
36 void QueryData(
const QString &filterFilename = QString());
Utility class to query playback state from database.
void Initialize()
Initializes playback state from database.
void Update(const QString &filename)
Updates playback state of video with specified filename.
bool AlwaysShowWatchedProgress() const
Returns cached setting "AlwaysShowWatchedProgress".
QMap< QString, Markup > m_fileMarkup
maps filename to markup
bool HasBookmark(const QString &filename) const
Query bookmark of video with the specified filename.
void QueryData(const QString &filterFilename=QString())
Query playback state from database, only for single video if a filename is specified.
uint64_t GetLastPlayPos(const QString &filename) const
Query last playback position of video with the specified filename.
uint GetWatchedPercent(const QString &filename) const
Query watched percent of video with the specified filename.
bool m_alwaysShowWatchedProgress
uint64_t lastPlayPos
last playing position
uint64_t bookmarkPos
bookmark position
uint64_t totalFrames
total frames