2019-02-06 22:44:28 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "auth-oauth.hpp"
|
|
|
|
|
2019-09-03 16:08:48 -07:00
|
|
|
class BrowserDock;
|
2019-02-06 22:44:28 -08:00
|
|
|
|
|
|
|
class MixerAuth : public OAuthStreamKey {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2019-09-03 16:08:48 -07:00
|
|
|
QSharedPointer<BrowserDock> chat;
|
2019-02-06 22:44:28 -08:00
|
|
|
QSharedPointer<QAction> chatMenu;
|
|
|
|
bool uiLoaded = false;
|
|
|
|
|
|
|
|
std::string name;
|
|
|
|
std::string id;
|
|
|
|
|
|
|
|
virtual bool RetryLogin() override;
|
|
|
|
|
|
|
|
virtual void SaveInternal() override;
|
|
|
|
virtual bool LoadInternal() override;
|
|
|
|
|
2019-02-26 07:24:22 -08:00
|
|
|
bool GetChannelInfo(bool allow_retry = true);
|
2019-02-06 22:44:28 -08:00
|
|
|
|
|
|
|
virtual void LoadUI() override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
MixerAuth(const Def &d);
|
|
|
|
|
|
|
|
static std::shared_ptr<Auth> Login(QWidget *parent);
|
|
|
|
};
|