auth-restream.hpp 464 B

1234567891011121314151617181920212223242526
  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, const std::string &service_name);
  16. };