Sayonara Player
GUI_SoundcloudLibrary.h
1 /* GUI_SoundCloudLibrary.h */
2 
3 /* Copyright (C) 2011-2016 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 
22 
23 #ifndef GUI_SOUNDCLOUDLIBRARY_H
24 #define GUI_SOUNDCLOUDLIBRARY_H
25 
26 #include "3rdParty/Soundcloud/ui_GUI_SoundcloudLibrary.h"
27 
28 #include "GUI/Library/GUI_AbstractLibrary.h"
29 
30 #include "3rdParty/Soundcloud/src/SoundcloudLibrary.h"
31 #include "3rdParty/Soundcloud/ui/GUI_SoundcloudArtistSearch.h"
32 
33 #include <QtGlobal>
34 
36  public GUI_AbstractLibrary,
38 {
39  friend class GUI_AbstractLibrary;
40  Q_OBJECT
41 
42 
43 public:
44  explicit GUI_SoundCloudLibrary(SoundcloudLibrary* library, QWidget *parent=nullptr);
45 
46  QComboBox* get_libchooser() const;
47  QMenu* get_menu() const;
48 
49 
50 protected:
51  virtual Library::TrackDeletionMode show_delete_dialog(int n_tracks) override;
52  virtual void init_shortcuts() override;
53 
54 protected slots:
55  void btn_add_clicked();
56 
57 
58 private:
59  GUI_SoundcloudArtistSearch* _artist_search=nullptr;
60  QMenu* _library_menu=nullptr;
61 
62 };
63 
64 
65 
66 #endif // GUI_SOUNDCLOUDLIBRARY_H
Definition: SoundcloudLibrary.h:29
Definition: GUI_SoundcloudArtistSearch.h:33
Definition: ui_GUI_SoundcloudLibrary.h:284
Definition: GUI_SoundcloudLibrary.h:35
Definition: GUI_AbstractLibrary.h:54