20#ifndef SAYONARA_PLAYER_PLAYLISTINTERFACE_H
21#define SAYONARA_PLAYER_PLAYLISTINTERFACE_H
30 class LocalPathPlaylistCreator;
37using PlaylistPtr = std::shared_ptr<::Playlist::Playlist>;
44 virtual int activeIndex()
const = 0;
45 virtual PlaylistPtr activePlaylist() = 0;
47 virtual int currentIndex()
const = 0;
48 virtual void setCurrentIndex(
int playlistIndex) = 0;
50 virtual PlaylistPtr playlist(
int playlistIndex) = 0;
51 virtual PlaylistPtr playlistById(
int playlistId) = 0;
53 virtual int count()
const = 0;
61 virtual PlaylistPtr playlist(
int playlistIndex) = 0;
62 virtual PlaylistPtr playlistById(
int playlistId) = 0;
64 virtual QString requestNewPlaylistName(
const QString& prefix = QString())
const = 0;
67 createPlaylist(
const MetaDataList& tracks,
const QString& name = QString(),
bool temporary =
true,
68 bool isLocked =
false) = 0;
70 createPlaylist(
const QStringList& pathList,
const QString& name = QString(),
bool temporary =
true,
72 virtual int createPlaylist(
const CustomPlaylist& customPlaylist) = 0;
73 virtual int createEmptyPlaylist(
bool override =
false) = 0;
74 virtual int createCommandLinePlaylist(
const QStringList& pathList,
Definition CustomPlaylist.h:30
Definition PlaylistInterface.h:40
Definition PlaylistInterface.h:57
Definition LocalPathPlaylistCreator.h:35