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 
27 class QFrame;
28 
29 UI_FWD(GUI_SoundcloudLibrary)
30 
31 namespace SC
32 {
33  class Library;
34  class GUI_ArtistSearch;
35 
36  class GUI_Library :
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 
64  ::Library::SearchBar* leSearch() const override;
65 
66  void showEvent(QShowEvent* e) override;
67  };
68 }
69 #endif // GUI_SOUNDCLOUDLIBRARY_H
Library::GUI_AbstractLibrary
The GUI_AbstractLibrary class.
Definition: GUI_AbstractLibrary.h:47
Library::TableView
The TableView class.
Definition: TableView.h:38
QList
Definition: EngineUtils.h:33
Library
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
SC::GUI_Library
Definition: GUI_SoundcloudLibrary.h:38
Library::TrackDeletionMode
TrackDeletionMode
The TrackDeletionMode enum.
Definition: LibraryNamespaces.h:37
Library::SearchBar
The searchbar has a special context menu which allows to select the search mode. A special search mod...
Definition: Searchbar.h:39
SC::Library
Definition: SoundcloudLibrary.h:39