30 lines
533 B
C++
30 lines
533 B
C++
#pragma once
|
|
|
|
#include "auth-oauth.hpp"
|
|
|
|
class MixerChat;
|
|
|
|
class MixerAuth : public OAuthStreamKey {
|
|
Q_OBJECT
|
|
|
|
QSharedPointer<MixerChat> chat;
|
|
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);
|
|
|
|
virtual void LoadUI() override;
|
|
|
|
public:
|
|
MixerAuth(const Def &d);
|
|
|
|
static std::shared_ptr<Auth> Login(QWidget *parent);
|
|
};
|