0654675f32
(Jim note: Adds abstraction to the OAuth class to allow the ability to perform OAuth via external browser, and adds an AuthListener to act as the local auth server.)
22 lines
303 B
C++
22 lines
303 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QtNetwork/QTcpServer>
|
|
|
|
class AuthListener : public QObject {
|
|
Q_OBJECT
|
|
|
|
QTcpServer *server;
|
|
|
|
signals:
|
|
void ok(const QString &code);
|
|
void fail();
|
|
|
|
protected:
|
|
void NewConnection();
|
|
|
|
public:
|
|
explicit AuthListener(QObject *parent = 0);
|
|
quint16 GetPort();
|
|
};
|