obs-studio/UI/auth-restream.hpp
tytan652 e6873d3278 UI: Refactor integration and browser docks
Use the QAction provided by QDockWidget with new Qt connection rather
than creating a new one for each dock.

Separate extra browser docks from extra docks, the latter is meant for
plugin/integration docks.
2023-03-17 20:21:08 +11:00

28 lines
472 B
C++

#pragma once
#include "auth-oauth.hpp"
class BrowserDock;
class RestreamAuth : public OAuthStreamKey {
Q_OBJECT
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);
~RestreamAuth();
static std::shared_ptr<Auth> Login(QWidget *parent,
const std::string &service_name);
};