Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Components
Playlist
PlaylistChooser.h
1
/* PlaylistChooser.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (Lucio Carreras)
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef PLAYLISTCHOOSER_H_
22
#define PLAYLISTCHOOSER_H_
23
24
#include "Utils/Pimpl.h"
25
#include "Utils/globals.h"
26
27
#include <QList>
28
#include <QObject>
29
30
class
CustomPlaylist
;
31
32
namespace
Playlist
33
{
34
class
Creator
;
35
class
Chooser :
36
public
QObject
37
{
38
Q_OBJECT
39
PIMPL(Chooser)
40
41
signals:
42
void
sigPlaylistsChanged();
43
44
public
:
45
Chooser(
Creator
* playlistCreator, QObject* parent);
46
~Chooser()
override
;
47
48
void
loadSinglePlaylist(
int
id
);
49
[[nodiscard]]
int
findPlaylist(
const
QString& playlist)
const
;
50
51
const
QList<CustomPlaylist>
& playlists();
52
53
Util::SaveAsAnswer renamePlaylist(
int
id
,
const
QString& newName);
54
bool
deletePlaylist(
int
id
);
55
56
private
slots:
57
void
playlistsChanged();
58
59
void
playlistDeleted(
int
id
);
60
void
playlistAdded(
int
id
,
const
QString& name);
61
void
playlistRenamed(
int
id
,
const
QString& old_name,
const
QString& new_name);
62
};
63
}
64
65
#endif
/* PLAYLISTS_H_ */
CustomPlaylist
Definition
CustomPlaylist.h:30
Playlist::Creator
Definition
PlaylistInterface.h:59
QList
Definition
EngineUtils.h:33
Generated on
for Sayonara Player by
1.17.0