aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'room.h')
-rw-r--r--room.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/room.h b/room.h
index 2d0453bc..2fa7e7d5 100644
--- a/room.h
+++ b/room.h
@@ -25,6 +25,7 @@
#include <QtCore/QStringList>
#include <QtCore/QObject>
#include <QtCore/QJsonObject>
+#include <QtGui/QPixmap>
#include "jobs/syncjob.h"
#include "events/roommessageevent.h"
@@ -79,7 +80,7 @@ namespace QMatrixClient
using rev_iter_t = Timeline::const_reverse_iterator;
Room(Connection* connection, QString id, JoinState initialJoinState);
- virtual ~Room();
+ ~Room() override;
Connection* connection() const;
User* localUser() const;
@@ -98,6 +99,12 @@ namespace QMatrixClient
Q_INVOKABLE int memberCount() const;
/**
+ * Returns a room avatar and requests it from the network if needed
+ * @return a pixmap with the avatar or a placeholder if there's none
+ * available yet
+ */
+ Q_INVOKABLE QPixmap avatar(int width, int height);
+ /**
* @brief Produces a disambiguated name for a given user in
* the context of the room
*/
@@ -181,6 +188,7 @@ namespace QMatrixClient
/** @brief The room displayname changed */
void displaynameChanged(Room* room);
void topicChanged();
+ void avatarChanged();
void userAdded(User* user);
void userRemoved(User* user);
void memberRenamed(User* user);