24 lines
521 B
C++
24 lines
521 B
C++
#ifndef SpectralUser_H
|
|
#define SpectralUser_H
|
|
|
|
#include "user.h"
|
|
#include "room.h"
|
|
|
|
#include <QObject>
|
|
|
|
using namespace QMatrixClient;
|
|
|
|
class SpectralUser : public User {
|
|
Q_OBJECT
|
|
Q_PROPERTY(QImage avatar READ getAvatar NOTIFY inheritedAvatarChanged)
|
|
public:
|
|
SpectralUser(QString userId, Connection* connection);
|
|
|
|
QImage getAvatar() { return avatar(128); }
|
|
|
|
signals:
|
|
void inheritedAvatarChanged(User* user, const Room* roomContext); // https://bugreports.qt.io/browse/QTBUG-7684
|
|
};
|
|
|
|
#endif // SpectralUser_H
|