Sayonara Player
Signals | Public Member Functions | List of all members
Bookmarks Class Reference

The Bookmarks logic class. More...

#include <Bookmarks.h>

Inheritance diagram for Bookmarks:

Signals

void sigBookmarksChanged ()
 emitted when bookmarks have changed More...
 
void sigPreviousChanged (const Bookmark &bm)
 previous bookmark has changed More...
 
void sigNextChanged (const Bookmark &bm)
 next bookmark has changed More...
 

Public Member Functions

 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 MetaDatacurrentTrack () const
 

Detailed Description

The Bookmarks logic class.

Member Function Documentation

◆ 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
idxbookmark index
Returns
true if index was valid

◆ setLoop()

bool Bookmarks::setLoop ( bool  b)

tries to set the loop between the current two indices

Parameters
bswitch loop on or off
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
bookmarksnew bookmarks

◆ sigNextChanged

void Bookmarks::sigNextChanged ( const Bookmark bm)
signal

next bookmark has changed

Parameters
bmnew bookmark. Check for Bookmark::isValid()

◆ sigPreviousChanged

void Bookmarks::sigPreviousChanged ( const Bookmark bm)
signal

previous bookmark has changed

Parameters
bmnew bookmark. Check for Bookmark::isValid()