2019-02-14 10:35:47 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "auth-oauth.hpp"
|
|
|
|
|
2019-09-03 16:08:48 -07:00
|
|
|
class BrowserDock;
|
2019-02-14 10:35:47 -08:00
|
|
|
|
|
|
|
class RestreamAuth : public OAuthStreamKey {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2019-09-03 16:08:48 -07:00
|
|
|
QSharedPointer<BrowserDock> chat;
|
|
|
|
QSharedPointer<BrowserDock> info;
|
|
|
|
QSharedPointer<BrowserDock> channels;
|
2019-07-16 05:14:22 -07:00
|
|
|
|
2019-02-14 10:35:47 -08:00
|
|
|
QSharedPointer<QAction> chatMenu;
|
|
|
|
QSharedPointer<QAction> infoMenu;
|
2019-07-16 05:14:22 -07:00
|
|
|
QSharedPointer<QAction> channelMenu;
|
|
|
|
|
2019-02-14 10:35:47 -08:00
|
|
|
bool uiLoaded = false;
|
|
|
|
|
|
|
|
virtual bool RetryLogin() override;
|
|
|
|
|
|
|
|
virtual void SaveInternal() override;
|
|
|
|
virtual bool LoadInternal() override;
|
|
|
|
|
|
|
|
bool GetChannelInfo();
|
|
|
|
|
|
|
|
virtual void LoadUI() override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RestreamAuth(const Def &d);
|
|
|
|
|
2021-06-27 05:01:50 -07:00
|
|
|
static std::shared_ptr<Auth> Login(QWidget *parent,
|
|
|
|
const std::string &service_name);
|
2019-02-14 10:35:47 -08:00
|
|
|
};
|