Clementine-audio-player-Mac.../src/internet/ubuntuoneauthenticator.h

26 lines
520 B
C
Raw Normal View History

2012-11-27 15:38:05 +01:00
#ifndef UBUNTUONEAUTHENTICATOR_H
#define UBUNTUONEAUTHENTICATOR_H
#include <QObject>
class QNetworkReply;
class NetworkAccessManager;
class UbuntuOneAuthenticator : public QObject {
Q_OBJECT
public:
explicit UbuntuOneAuthenticator(QObject* parent = 0);
void StartAuthorisation(const QString& email, const QString& password);
signals:
void Finished();
private slots:
void AuthorisationFinished(QNetworkReply* reply);
private:
NetworkAccessManager* network_;
};
#endif // UBUNTUONEAUTHENTICATOR_H