aboutsummaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-28 12:42:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-28 12:42:03 +0900
commit357625eb55e2f4569bb487ffe14a9236188e25f3 (patch)
treed39340ab74f25a23a5855f679973628f7457fd87 /user.h
parent94e6636d8225a0561ed7df3fa8081c5b0183610c (diff)
parent8f762a2458db773f6db24b568b2e944427297c2b (diff)
downloadlibquotient-357625eb55e2f4569bb487ffe14a9236188e25f3.tar.gz
libquotient-357625eb55e2f4569bb487ffe14a9236188e25f3.zip
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'user.h')
-rw-r--r--user.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/user.h b/user.h
index 79a6f5db..148ed64d 100644
--- a/user.h
+++ b/user.h
@@ -20,6 +20,7 @@
#include <QtCore/QString>
#include <QtCore/QObject>
+#include "avatar.h"
namespace QMatrixClient
{
@@ -30,7 +31,7 @@ namespace QMatrixClient
Q_OBJECT
public:
User(QString userId, Connection* connection);
- virtual ~User();
+ ~User() override;
/**
* Returns the id of the user
@@ -52,14 +53,14 @@ namespace QMatrixClient
*/
Q_INVOKABLE QString bridged() const;
+ Avatar& avatarObject();
QPixmap avatar(int requestedWidth, int requestedHeight);
- const QUrl& avatarUrl() const;
+ QUrl avatarUrl() const;
void processEvent(Event* event);
public slots:
- void requestAvatar();
void rename(const QString& newName);
signals: