Spectral/src/spectraluser.h

24 lines
521 B
C
Raw Normal View History

#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;
class SpectralUser : public User {
2018-09-10 01:51:02 +00:00
Q_OBJECT
Q_PROPERTY(QImage avatar READ getAvatar NOTIFY inheritedAvatarChanged)
public:
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
};
#endif // SpectralUser_H