Spectral/src/spectraluser.h

26 lines
535 B
C
Raw Normal View History

#ifndef SpectralUser_H
#define SpectralUser_H
2018-09-10 01:51:02 +00:00
#include "room.h"
2018-11-02 11:05:15 +00:00
#include "user.h"
2018-09-10 01:51:02 +00:00
#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-11-02 11:05:15 +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