| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include <QDialog>
- #include <QTimer>
- #include <string>
- #include <memory>
- #include "auth-oauth.hpp"
- class TwitchWidget;
- class TwitchAuth : public OAuthStreamKey {
- Q_OBJECT
- friend class TwitchLogin;
- QSharedPointer<TwitchWidget> chat;
- QSharedPointer<TwitchWidget> info;
- QSharedPointer<TwitchWidget> stat;
- QSharedPointer<QAction> chatMenu;
- QSharedPointer<QAction> infoMenu;
- QSharedPointer<QAction> statMenu;
- 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();
- };
|