auth-restream.hpp 472 B

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