#include <Bookmarks.h>
The Bookmarks logic class.
|
enum | CreationStatus : uint8_t {
Success,
AlreadyThere,
NoDBTrack,
DBError,
OtherError
} |
|
§ bookmarks()
fetch all bookmarks for current track
- Returns
- all bookmarks for current track
§ create()
Bookmarks::CreationStatus Bookmarks::create |
( |
| ) |
|
create a new bookmark for current track and current position
- Returns
- true if successful, else false
§ current_track()
MetaData Bookmarks::current_track |
( |
| ) |
const |
get the current played track
- Returns
- return current played track
§ jump_next()
bool Bookmarks::jump_next |
( |
| ) |
|
Jump to next bookmark.
- Returns
- true if successful, false else
§ jump_prev()
bool Bookmarks::jump_prev |
( |
| ) |
|
Jump to previous bookmark.
- Returns
- true if successful, false else
§ jump_to()
bool Bookmarks::jump_to |
( |
int |
idx | ) |
|
Jump to specific bookmark.
- Parameters
-
- Returns
- true if index was valid
§ remove()
bool Bookmarks::remove |
( |
int |
idx | ) |
|
remove single bookmark from database for current track
- Parameters
-
- Returns
§ set_loop()
bool Bookmarks::set_loop |
( |
bool |
b | ) |
|
tries to set the loop between the current two indices
- Parameters
-
- Returns
- false if the two current indices are invalid or if b == false. True else
§ sig_bookmarks_changed
void Bookmarks::sig_bookmarks_changed |
( |
| ) |
|
|
signal |
emitted when bookmarks have changed
- Parameters
-
§ sig_next_changed
void Bookmarks::sig_next_changed |
( |
const Bookmark & |
bm | ) |
|
|
signal |
next bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::is_valid() |
§ sig_prev_changed
void Bookmarks::sig_prev_changed |
( |
const Bookmark & |
bm | ) |
|
|
signal |
previous bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::is_valid() |