Sayonara Player
GUI_SoundcloudLibrary.h
1/* GUI_SoundCloudLibrary.h */
2
3/* Copyright (C) 2011-2020 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 GUI_SOUNDCLOUDLIBRARY_H
22#define GUI_SOUNDCLOUDLIBRARY_H
23
24#include "Gui/Library/GUI_AbstractLibrary.h"
25#include "Utils/Pimpl.h"
26
27class QFrame;
28
29UI_FWD(GUI_SoundcloudLibrary)
30
31namespace SC
32{
33 class Library;
34 class GUI_ArtistSearch;
35
38 {
39 Q_OBJECT
40 UI_CLASS(GUI_SoundcloudLibrary)
41 PIMPL(GUI_Library)
42
43 public:
44 explicit GUI_Library(SC::Library* library, QWidget* parent=nullptr);
45 ~GUI_Library() override;
46
47 QMenu* getMenu() const;
48 QFrame* headerFrame() const;
49
50 QList<::Library::Filter::Mode> searchOptions() const override;
51
52 private slots:
53 void btnAddClicked();
54
55 protected:
56 void languageChanged() override;
57
58 ::Library::TrackDeletionMode showDeleteDialog(int n_tracks) override;
59
60 ::Library::TableView* lvArtist() const override;
61 ::Library::TableView* lvAlbum() const override;
62 ::Library::TableView* lvTracks() const override;
63 QList<QAbstractItemView*> allViews() const override;
64
65 ::Library::SearchBar* leSearch() const override;
66
67 void showEvent(QShowEvent* e) override;
68 };
69}
70#endif // GUI_SOUNDCLOUDLIBRARY_H
The GUI_AbstractLibrary class.
Definition: GUI_AbstractLibrary.h:50
Definition: Searchbar.h:40
The TableView class.
Definition: TableView.h:38
Definition: EngineUtils.h:33
Definition: GUI_SoundcloudLibrary.h:38
Definition: SoundcloudLibrary.h:38
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
TrackDeletionMode
The TrackDeletionMode enum.
Definition: LibraryNamespaces.h:37