auth-mixer.hpp 533 B

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