The Bookmarks logic class.
More...
#include <Bookmarks.h>
|
| Bookmarks (PlayManager *playManager, QObject *parent=nullptr) |
|
bool | jumpTo (int idx) |
| Jump to specific bookmark. More...
|
|
bool | jumpNext () |
| Jump to next bookmark. More...
|
|
bool | jumpPrevious () |
| Jump to previous bookmark. More...
|
|
bool | setLoop (bool b) |
| tries to set the loop between the current two indices More...
|
|
int | count () const |
|
BookmarkStorage::CreationStatus | create () |
|
bool | remove (int index) |
|
const QList< Bookmark > & | bookmarks () const |
|
const MetaData & | currentTrack () const |
|
The Bookmarks logic class.
◆ jumpNext()
bool Bookmarks::jumpNext |
( |
| ) |
|
Jump to next bookmark.
- Returns
- true if successful, false else
◆ jumpPrevious()
bool Bookmarks::jumpPrevious |
( |
| ) |
|
Jump to previous bookmark.
- Returns
- true if successful, false else
◆ jumpTo()
bool Bookmarks::jumpTo |
( |
int |
idx | ) |
|
Jump to specific bookmark.
- Parameters
-
- Returns
- true if index was valid
◆ setLoop()
bool Bookmarks::setLoop |
( |
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
◆ sigBookmarksChanged
void Bookmarks::sigBookmarksChanged |
( |
| ) |
|
|
signal |
emitted when bookmarks have changed
- Parameters
-
◆ sigNextChanged
void Bookmarks::sigNextChanged |
( |
const Bookmark & |
bm | ) |
|
|
signal |
next bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::isValid() |
◆ sigPreviousChanged
void Bookmarks::sigPreviousChanged |
( |
const Bookmark & |
bm | ) |
|
|
signal |
previous bookmark has changed
- Parameters
-
bm | new bookmark. Check for Bookmark::isValid() |