auth-restream.hpp 562 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "auth-oauth.hpp"
  3. class RestreamWidget;
  4. class RestreamAuth : public OAuthStreamKey {
  5. Q_OBJECT
  6. QSharedPointer<RestreamWidget> chat;
  7. QSharedPointer<RestreamWidget> info;
  8. QSharedPointer<QAction> chatMenu;
  9. QSharedPointer<QAction> infoMenu;
  10. bool uiLoaded = false;
  11. virtual bool RetryLogin() override;
  12. virtual void SaveInternal() override;
  13. virtual bool LoadInternal() override;
  14. bool GetChannelInfo();
  15. virtual void LoadUI() override;
  16. public:
  17. RestreamAuth(const Def &d);
  18. static std::shared_ptr<Auth> Login(QWidget *parent);
  19. };