obs-studio/UI/auth-restream.hpp
Yuriy Chumak 63ad0642ae UI: Specify exact service to auth login callbacks
(Jim note: This gives the ability for auth login callbacks to know which
specific service type is being used. For example, with something like
YouTube, there's multiple variants: RTMP, RTMPS, and HLS. This way, the
service login callback can determine how it wants to treat the login
procedure depending on the specific type of service.)
2021-07-24 15:50:59 -07:00

35 lines
673 B
C++

#pragma once
#include "auth-oauth.hpp"
class BrowserDock;
class RestreamAuth : public OAuthStreamKey {
Q_OBJECT
QSharedPointer<BrowserDock> chat;
QSharedPointer<BrowserDock> info;
QSharedPointer<BrowserDock> channels;
QSharedPointer<QAction> chatMenu;
QSharedPointer<QAction> infoMenu;
QSharedPointer<QAction> channelMenu;
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,
const std::string &service_name);
};