obs-studio/UI/auth-mixer.hpp

31 lines
537 B
C++
Raw Normal View History

2019-02-06 22:44:28 -08:00
#pragma once
#include "auth-oauth.hpp"
class BrowserDock;
2019-02-06 22:44:28 -08:00
class MixerAuth : public OAuthStreamKey {
Q_OBJECT
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;
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);
};