Sayonara Player
GUI_SoundcloudLibrary.h
1 /* GUI_SoundCloudLibrary.h */
2 
3 /* Copyright (C) 2011-2017 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 #include "3rdParty/Soundcloud/ui/GUI_SoundcloudArtistSearch.h"
28 
29 class QFrame;
30 
31 UI_FWD(GUI_SoundcloudLibrary)
32 
33 namespace SC
34 {
35  class Library;
36  class GUI_ArtistSearch;
37 
38  class GUI_Library :
40  {
41  Q_OBJECT
42  UI_CLASS(GUI_SoundcloudLibrary)
43  PIMPL(GUI_Library)
44 
45  public:
46  explicit GUI_Library(SC::Library* library, QWidget *parent=nullptr);
47  ~GUI_Library();
48 
49  QMenu* get_menu() const;
50  QFrame* header_frame() const;
51 
52  QList<::Library::Filter::Mode> search_options() const override;
53 
54  protected:
55  ::Library::TrackDeletionMode show_delete_dialog(int n_tracks) override;
56 
57  ::Library::TableView* lv_artist() const override;
58  ::Library::TableView* lv_album() const override;
59  ::Library::TableView* lv_tracks() const override;
60 
61  QLineEdit* le_search() const override;
62 
63  void showEvent(QShowEvent *e) override;
64 
65  protected slots:
66  void btn_add_clicked();
67  };
68 }
69 #endif // GUI_SOUNDCLOUDLIBRARY_H
TrackDeletionMode
The TrackDeletionMode enum.
Definition: LibraryNamespaces.h:35
Definition: GUI_AbstractLibrary.h:44
Definition: GUI_SoundcloudLibrary.h:38
Definition: SoundcloudLibrary.h:37
Definition: TableView.h:32
Definition: SoundcloudLibraryContainer.h:30
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:31
Definition: org_mpris_media_player2_adaptor.h:20