Sayonara Player
Loading...
Searching...
No Matches
GuiSmartPlaylists.h
1/* GuiSmartPlaylists.h */
2/*
3 * Copyright (C) 2011-2024 Michael Lugmair
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 SAYONARA_PLAYER_GUISMARTPLAYLISTS_H
22#define SAYONARA_PLAYER_GUISMARTPLAYLISTS_H
23
24#include "Utils/Pimpl.h"
25#include "Gui/Utils/GuiClass.h"
26#include "Gui/Plugins/PlayerPluginBase.h"
27
28#include <QList>
29
31
33
34namespace Library
35{
36 class InfoAccessor;
37}
38
41{
42 Q_OBJECT
44 UI_CLASS(GuiSmartPlaylists)
45
46 public:
47 GuiSmartPlaylists(SmartPlaylistManager* smartPlaylistManager, Library::InfoAccessor* libraryManager,
48 QWidget* parent = nullptr);
49 ~GuiSmartPlaylists() noexcept override;
50
51 [[nodiscard]] QString name() const override;
52 [[nodiscard]] QString displayName() const override;
53
54 private slots:
55 void setupPlaylists();
56 void selectedIndexChanged(int index);
57 void newClicked();
58 void editClicked();
59 void deleteClicked();
60
61 private: // NOLINT(readability-redundant-access-specifiers)
62 void retranslate() override;
63 void initUi() override;
64};
65
66#endif //SAYONARA_PLAYER_GUISMARTPLAYLISTS_H
Definition: GuiSmartPlaylists.h:41
QString name() const override
must be overwritten
QString displayName() const override
must be overwritten
Definition: LibraryManager.h:36
Definition: PlayerPluginBase.h:40
Definition: SmartPlaylistManager.h:55