yolobs-studio/UI/auth-restream.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
632 B
C++
Raw Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
#include "auth-oauth.hpp"
2019-09-22 21:19:10 +00:00
class BrowserDock;
2019-07-27 12:47:10 +00:00
class RestreamAuth : public OAuthStreamKey {
Q_OBJECT
2019-09-22 21:19:10 +00:00
QSharedPointer<BrowserDock> chat;
QSharedPointer<BrowserDock> info;
QSharedPointer<BrowserDock> channels;
2019-07-27 12:47:10 +00:00
QSharedPointer<QAction> chatMenu;
QSharedPointer<QAction> infoMenu;
2019-09-22 21:19:10 +00:00
QSharedPointer<QAction> channelMenu;
2019-07-27 12:47:10 +00: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);
static std::shared_ptr<Auth> Login(QWidget *parent);
};