Spectral/src/matriqueuser.h

24 lines
521 B
C
Raw Normal View History

2018-09-10 01:51:02 +00:00
#ifndef MATRIQUEUSER_H
#define MATRIQUEUSER_H
#include "user.h"
#include "room.h"
#include <QObject>
using namespace QMatrixClient;
class MatriqueUser : public User {
Q_OBJECT
Q_PROPERTY(QImage avatar READ getAvatar NOTIFY inheritedAvatarChanged)
public:
MatriqueUser(QString userId, Connection* connection);
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 // MATRIQUEUSER_H