|
Sayonara Player
|
Public Types | |
| using | Modificator = std::function<MetaDataList(MetaDataList)> |
Public Member Functions | |
| Playlist (int playlistIndex, const QString &name, PlayManager *playManager, const std::shared_ptr< Util::FileSystem > &fileSystem) | |
| int | createPlaylist (const MetaDataList &tracks) |
| int | findCurrentTrackIndex () const |
| bool | isCurrentTrack (int index) const |
| int | index () const |
| void | setIndex (int idx) |
| Mode | mode () const |
| void | setMode (const Mode &mode) |
| void | play () |
| void | stop () |
| void | previous () |
| void | next () |
| bool | continueFromStop () |
| bool | canContinueFromStop () const |
| void | toggleStopAfterTrack (int index) |
| bool | isLastTrackBeforeStop (int index) const |
| int | findLastIndexBeforeStop () const |
| int | count () const |
| bool | isBusy () const |
| void | setBusy (bool b) |
| const MetaDataList & | tracks () const override |
| bool | changeTrack (int index, MilliSeconds positionMs=0) |
| bool | prepareTrack (int index) |
| bool | wasChanged () const override |
| void | resetChangedStatus () |
| void | modifyTracks (Modificator &&modificator, Reason reason, Operation operation) |
| int | id () const |
| void | setId (int databaseId) |
| QString | name () const |
| void | setName (const QString &name) |
| bool | isTemporary () const |
| void | setTemporary (bool b) |
| bool | isLocked () const |
| virtual void | setLocked (bool b) |
| bool | lock () |
| bool | unlock () |
| Util::SaveAsAnswer | save () |
| Util::SaveAsAnswer | saveAs (const QString &newName) |
| Util::SaveAsAnswer | rename (const QString &newName) |
| bool | deletePlaylist () |
Protected Member Functions | |
| void | setChanged (bool b) override |
| void | emitLockChanged () override |
Friends | |
| class | Handler |
|
overrideprotectedvirtual |
Implements Playlist::DBInterface.
|
overrideprotectedvirtual |
Implements Playlist::DBInterface.
|
nodiscardoverridevirtual |
Implements Playlist::DBInterface.
|
nodiscardoverridevirtual |
Implements Playlist::DBInterface.