Sayonara Player
GUI_SoundcloudArtistSearch.h
1 /* GUI_SoundcloudArtistSearch.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_SOUNDCLOUDARTISTSEARCH_H
22 #define GUI_SOUNDCLOUDARTISTSEARCH_H
23 
24 #include "Helper/Pimpl.h"
25 #include "GUI/Helper/SayonaraWidget/SayonaraDialog.h"
26 
27 class SoundcloudLibrary;
28 class ArtistList;
29 class MetaDataList;
30 class AlbumList;
31 
32 namespace Ui { class GUI_SoundcloudArtistSearch; }
33 
35  public SayonaraDialog
36 {
37  Q_OBJECT
38 
40 
41 public:
42  explicit GUI_SoundcloudArtistSearch(SoundcloudLibrary* library, QWidget *parent=nullptr);
44 
45 private slots:
46  void search_clicked();
47  void clear_clicked();
48  void add_clicked();
49  void close_clicked();
50 
51  void artists_fetched(const ArtistList& artists);
52  void artists_ext_fetched(const ArtistList& artists);
53  void albums_fetched(const AlbumList& albums);
54  void tracks_fetched(const MetaDataList& tracks);
55 
56  void artist_selected(int idx);
57 
58  void language_changed() override;
59 
60 private:
62 
63 private:
64  void set_tracks_label(int n_tracks);
65  void set_playlist_label(int n_playlists);
66 };
67 
68 #endif // GUI_SOUNDCLOUDARTISTSEARCH_H
Definition: SoundcloudLibrary.h:28
Definition: GUI_SoundcloudArtistSearch.h:34
Definition: ui_GUI_SomaFM.h:216
Definition: MetaDataList.h:39
The AlbumList class.
Definition: Album.h:78
ArtistList.
Definition: Artist.h:60
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()...
Definition: SayonaraDialog.h:33
Definition: ui_GUI_SoundcloudArtistSearch.h:184