Sayonara Player
GUI_LastFM.h
1 /* GUI_LastFM.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 
22 /*
23  * GUI_LastFM.h
24  *
25  * Created on: Apr 21, 2011
26  * Author: Lucio Carreras
27  */
28 
29 #ifndef GUI_LASTFM_H_
30 #define GUI_LASTFM_H_
31 
32 #include "Interfaces/PreferenceDialog/PreferenceWidgetInterface.h"
33 
34 namespace Ui { class GUI_LastFM; }
35 
36 class LastFM;
37 class GUI_LastFM :
39 {
40  Q_OBJECT
41 
42 public:
43  explicit GUI_LastFM(QWidget* parent=nullptr);
44  virtual ~GUI_LastFM();
45 
46  void commit() override;
47  void revert() override;
48 
49  QString get_action_name() const override;
50 
51 protected:
52  void init_ui() override;
53  void retranslate_ui() override;
54 
55 private:
56  Ui::GUI_LastFM* ui=nullptr;
57  LastFM* _lfm=nullptr;
58 
59 private slots:
60  void btn_login_clicked();
61  void active_changed(bool active);
62  void logged_in(bool success);
63 };
64 
65 #endif /* GUI_LASTFM_H_ */
Definition: LastFM.h:44
Definition: GUI_SomaFM.h:34
Abstract Interface you should use when creating a preferences item.
Definition: PreferenceWidgetInterface.h:39
Definition: GUI_LastFM.h:37
Definition: ui_GUI_LastFM.h:146