Clementine Adore Mod
 All Classes Namespaces Files Functions Variables Macros Pages
adoresettingspage.h
Go to the documentation of this file.
1 /* This file is part of Clementine.
2  Copyright 2009-2011, 2013, David Sansome <me@davidsansome.com>
3  Copyright 2011, Andrea Decorte <adecorte@gmail.com>
4  Copyright 2014, Krzysztof Sobiecki <sobkas@gmail.com>
5  Copyright 2014, John Maguire <john.maguire@gmail.com>
6  Copyright 2015, Thomas Mielke <thomas.mielke@c3s.cc>
7 
8  Clementine is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  Clementine is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Clementine. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef INTERNET_ADORE_ADORESETTINGSPAGE_H_
23 #define INTERNET_ADORE_ADORESETTINGSPAGE_H_
24 
25 #include "ui/settingspage.h"
26 //#include "adoreservice.h"
27 
28 class AdoreService;
29 class Ui_AdoreSettingsPage;
30 
33 class AdoreSettingsPage : public SettingsPage {
34  Q_OBJECT
35 
36  public:
37  explicit AdoreSettingsPage(SettingsDialog* dialog);
39 
40  void Load();
41  void Save();
42 
43  private slots:
44  void RegisterToken();
45  void AuthenticationComplete(bool success, const QString& error_message);
46  void Logout();
47 
48  private:
50  Ui_AdoreSettingsPage* ui_;
51 
53 
54  void RefreshControls(bool authenticated);
55 };
56 
57 #endif // INTERNET_ADORE_ADORESETTINGSPAGE_H_
void AuthenticationComplete(bool success, const QString &error_message)
remnant of the lastfm implementation. maybe use it in the future for better ui integration.
Definition: adoresettingspage.cpp:91
void Load()
Load Settings from the config file.
Definition: adoresettingspage.cpp:113
~AdoreSettingsPage()
Definition: adoresettingspage.cpp:57
void Logout()
Definition: adoresettingspage.cpp:137
void RegisterToken()
Definition: adoresettingspage.cpp:61
This class handles the settings dialog.
Definition: adoresettingspage.h:33
void RefreshControls(bool authenticated)
this controls the 'logged in' status control of the Adore settings page
Definition: adoresettingspage.cpp:144
Ui_AdoreSettingsPage * ui_
Definition: adoresettingspage.h:50
AdoreSettingsPage(SettingsDialog *dialog)
Definition: adoresettingspage.cpp:37
The central class of the Adore mod, controlling all other AdoreXXX classes.
Definition: adoreservice.h:155
void Save()
Save settings to the config file.
Definition: adoresettingspage.cpp:125
AdoreService * service_
Definition: adoresettingspage.h:49
bool waiting_for_auth_
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
Definition: adoresettingspage.h:52