2018-09-17 13:01:02 +00:00
|
|
|
#ifndef SpectralUser_H
|
|
|
|
#define SpectralUser_H
|
2018-09-10 01:51:02 +00:00
|
|
|
|
|
|
|
#include "user.h"
|
|
|
|
#include "room.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
using namespace QMatrixClient;
|
|
|
|
|
2018-09-17 13:01:02 +00:00
|
|
|
class SpectralUser : public User {
|
2018-09-10 01:51:02 +00:00
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QImage avatar READ getAvatar NOTIFY inheritedAvatarChanged)
|
|
|
|
public:
|
2018-09-17 13:01:02 +00:00
|
|
|
SpectralUser(QString userId, Connection* connection);
|
2018-09-10 01:51:02 +00:00
|
|
|
|
2018-09-10 07:01:01 +00:00
|
|
|
QImage getAvatar() { return avatar(128); }
|
2018-09-10 01:51:02 +00:00
|
|
|
|
|
|
|
signals:
|
2018-09-10 03:56:32 +00:00
|
|
|
void inheritedAvatarChanged(User* user, const Room* roomContext); // https://bugreports.qt.io/browse/QTBUG-7684
|
2018-09-10 01:51:02 +00:00
|
|
|
};
|
|
|
|
|
2018-09-17 13:01:02 +00:00
|
|
|
#endif // SpectralUser_H
|