0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/UI/auth-twitch.hpp

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

49 lines
911 B
C++
Raw Normal View History

2019-02-07 07:45:06 +01:00
#pragma once
#include <QDialog>
#include <QTimer>
#include <string>
#include <memory>
#include "auth-oauth.hpp"
class BrowserDock;
2019-02-07 07:45:06 +01:00
class TwitchAuth : public OAuthStreamKey {
Q_OBJECT
friend class TwitchLogin;
QSharedPointer<BrowserDock> chat;
QSharedPointer<BrowserDock> info;
QSharedPointer<BrowserDock> stat;
QSharedPointer<BrowserDock> feed;
2019-02-07 07:45:06 +01:00
QSharedPointer<QAction> chatMenu;
QSharedPointer<QAction> infoMenu;
QSharedPointer<QAction> statMenu;
QSharedPointer<QAction> feedMenu;
2019-02-07 07:45:06 +01:00
bool uiLoaded = false;
std::string name;
virtual bool RetryLogin() override;
virtual void SaveInternal() override;
virtual bool LoadInternal() override;
bool GetChannelInfo();
virtual void LoadUI() override;
public:
TwitchAuth(const Def &d);
static std::shared_ptr<Auth> Login(QWidget *parent);
QTimer uiLoadTimer;
public slots:
void TryLoadSecondaryUIPanes();
void LoadSecondaryUIPanes();
};