#pragma once #include "concurrentmap.hpp" #include #include namespace Ui { class AccountPopup; } namespace chatterino { class Channel; namespace widgets { class AccountPopupWidget : public QWidget { Q_OBJECT public: AccountPopupWidget(std::shared_ptr &channel); void setName(const QString &name); private: Ui::AccountPopup *_ui; void getUserId(); void getUserData(); void loadAvatar(const QUrl &avatarUrl); std::shared_ptr &_channel; QString userID; QPixmap avatar; ConcurrentMap avatarMap; protected: virtual void focusOutEvent(QFocusEvent *event) override; }; } // namespace widgets } // namespace chatterino