29#ifndef PLAYLISTHANDLER_H_
30#define PLAYLISTHANDLER_H_
32#include "PlaylistDBInterface.h"
34#include "Interfaces/PlaylistInterface.h"
36#include "Utils/Pimpl.h"
37#include "Utils/Playlist/PlaylistFwd.h"
38#include "Utils/Library/LibraryNamespaces.h"
81 PlaylistPtr
playlist(
int playlistIndex)
override;
82 PlaylistPtr playlistById(
int playlistId)
override;
84 int activeIndex()
const override;
85 PlaylistPtr activePlaylist()
override;
87 int currentIndex()
const override;
88 void setCurrentIndex(
int playlistIndex)
override;
119 bool temporary =
true)
override;
120 int createCommandLinePlaylist(
const QStringList& pathList)
override;
144 int addNewPlaylist(
const QString& name,
bool editable);
145 int exists(
const QString& name)
const;
148 void trackChanged(
int oldIndex,
int newIndex);
152 void playstateChanged(PlayState state);
153 void wwwTrackFinished(
const MetaData& track);
154 void playlistRenamed(
int id,
const QString& oldNamde,
const QString& newName);
155 void playlistDeleted(
int id);
175 void sigActivePlaylistChanged(
int playlistIndex);
184 void sigPlaylistClosed(
int playlistIndex);
Definition: CustomPlaylist.h:30
Global handler for current playback state (Singleton)
Definition: PlayManager.h:36
Definition: PlaylistInterface.h:39
Definition: PlaylistInterface.h:56
Global handler for playlists.
Definition: PlaylistHandler.h:56
int count() const override
Returns number of playlists.
int createPlaylist(const CustomPlaylist &customPlaylist) override
create a new playlist (overloaded)
QString requestNewPlaylistName(const QString &prefix=QString()) const override
Request a new name for the playlist (usually New %1 is returned). If the prefix differs,...
void sigTrackDeletionRequested(const MetaDataList &tracks, Library::TrackDeletionMode deletion_mode)
emitted when a track deletion was triggered over the Ui
PlaylistPtr playlist(int playlistIndex) override
get specific playlist at given index
int createPlaylist(const MetaDataList &tracks, const QString &name=QString(), bool temporary=true) override
create a new playlist
void sigNewPlaylistAdded(int playlistIndex)
emitted when new playlist has been added
int createEmptyPlaylist(bool override=false) override
create a new empty playlist
void shutdown()
Call this before the program stops. Singletons and Destructors don't work out so well.
int createPlaylist(const QStringList &pathList, const QString &name=QString(), bool temporary=true) override
create a new playlist (overloaded)
void closePlaylist(int playlistIndex)
close playlist
void sigPlaylistNameChanged(int playlistIndex)
emitted when playlist name has changed
void sigCurrentPlaylistChanged(int playlistIndex)
emitted when tracks were added/removed or have changed
TrackDeletionMode
The TrackDeletionMode enum.
Definition: LibraryNamespaces.h:37