#include <Bookmarks.h>
The Bookmarks logic class.
fetch all bookmarks for current track
- Returns
- all bookmarks for current track
MetaData Bookmarks::get_cur_track |
( |
| ) |
const |
get the current played track
- Returns
- return current played track
bool Bookmarks::jump_next |
( |
| ) |
|
Jump to next bookmark.
- Returns
- true if successful, false else
bool Bookmarks::jump_prev |
( |
| ) |
|
Jump to previous bookmark.
- Returns
- true if successful, false else
bool Bookmarks::jump_to |
( |
int |
idx | ) |
|
Jump to specific bookmark.
- Parameters
-
- Returns
- true if index was valid
bool Bookmarks::remove |
( |
int |
idx | ) |
|
remove single bookmark from database for current track
- Parameters
-
- Returns
bool Bookmarks::remove_all |
( |
| ) |
|
Remove all bookmarks from database for current track.
- Returns
- true if successful, false if not
create a new bookmark for current track and current position
- Returns
- true if successful, else false
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
void Bookmarks::sig_bookmarks_changed |
( |
const QList< Bookmark > & |
bookmarks | ) |
|
|
signal |
emitted when bookmarks have changed
- Parameters
-
void Bookmarks::sig_next_changed |
( |
const Bookmark & |
bm | ) |
|
|
signal |
next bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::is_valid() |
void Bookmarks::sig_prev_changed |
( |
const Bookmark & |
bm | ) |
|
|
signal |
previous bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::is_valid() |