0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/UI/auth-listener.hpp
Yuriy Chumak 0654675f32 UI: Add support for external browser OAuth
(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.)
2021-07-24 15:50:59 -07:00

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();
};