2009-12-26 18:19:14 +01:00
|
|
|
#ifndef LASTFMCONFIG_H
|
|
|
|
#define LASTFMCONFIG_H
|
|
|
|
|
2010-02-03 19:32:48 +01:00
|
|
|
#include <QWidget>
|
2009-12-26 18:19:14 +01:00
|
|
|
|
|
|
|
#include "ui_lastfmconfig.h"
|
|
|
|
|
|
|
|
class LastFMService;
|
|
|
|
|
2010-02-03 19:32:48 +01:00
|
|
|
class LastFMConfig : public QWidget {
|
2009-12-26 18:19:14 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2010-02-03 19:32:48 +01:00
|
|
|
LastFMConfig(QWidget* parent = 0);
|
2009-12-26 18:19:14 +01:00
|
|
|
|
2010-02-03 19:32:48 +01:00
|
|
|
bool NeedsValidation() const;
|
2009-12-26 18:19:14 +01:00
|
|
|
|
2010-02-03 19:32:48 +01:00
|
|
|
public slots:
|
|
|
|
void Validate();
|
|
|
|
void Load();
|
|
|
|
void Save();
|
2009-12-29 21:48:50 +01:00
|
|
|
|
|
|
|
signals:
|
2010-02-03 19:32:48 +01:00
|
|
|
void ValidationComplete(bool success);
|
2009-12-29 21:48:50 +01:00
|
|
|
|
2009-12-26 18:19:14 +01:00
|
|
|
private slots:
|
|
|
|
void AuthenticationComplete(bool success);
|
|
|
|
|
|
|
|
private:
|
|
|
|
LastFMService* service_;
|
2010-02-03 19:32:48 +01:00
|
|
|
Ui::LastFMConfig ui_;
|
2009-12-26 18:19:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LASTFMCONFIG_H
|