24 #include "Components/PlayManager/PlayState.h" 25 #include "Utils/Pimpl.h" 64 explicit Bookmarks(QObject *parent=
nullptr);
74 enum class CreationStatus : uint8_t
87 Bookmarks::CreationStatus
create();
113 bool remove(
int idx);
130 int get_size()
const;
138 void pos_changed_ms(uint64_t pos);
144 void track_changed(
const MetaData& md);
157 void reload_bookmarks();
162 void sort_bookmarks();
165 #endif // BOOKMARKS_H Definition: Bookmark.h:31
PlayState
The PlayState enum.
Definition: PlayState.h:28
bool jump_prev()
Jump to previous bookmark.
bool jump_next()
Jump to next bookmark.
void sig_prev_changed(const Bookmark &bm)
previous bookmark has changed
MetaData current_track() const
get the current played track
bool jump_to(int idx)
Jump to specific bookmark.
bool set_loop(bool b)
tries to set the loop between the current two indices
void sig_next_changed(const Bookmark &bm)
next bookmark has changed
void sig_bookmarks_changed()
emitted when bookmarks have changed
Bookmarks::CreationStatus create()
create a new bookmark for current track and current position
The Bookmarks logic class.
Definition: Bookmarks.h:37
const QList< Bookmark > & bookmarks() const
fetch all bookmarks for current track
Definition: org_mpris_media_player2_adaptor.h:20