File indexing completed on 2025-01-05 05:14:50

0001 #pragma once
0002 
0003 #include <QLabel>
0004 #include <QNetworkAccessManager>
0005 
0006 class AvatarView : public QLabel
0007 {
0008     Q_OBJECT
0009 
0010 public:
0011     AvatarView(QWidget *parent = nullptr);
0012 
0013     Q_REQUIRED_RESULT QString userEmail() const;
0014     void setUserEmail(const QString &userEmail);
0015 
0016 private Q_SLOTS:
0017     void slotAvatarDownloadFinished();
0018 
0019 private:
0020     QString mUserEmail;
0021     QString mAvatarFileName;
0022     QNetworkAccessManager mNet;
0023 };