aboutsummaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 01:13:13 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 09:17:40 +0200
commit2bf912d6e6ddd9ff81a92ff28ac8c4c1d8f2d7e1 (patch)
treef2a1299e13f48a23e0c29467f286ee3209182b00 /user.h
parent608e7a7163583e2e30cd6c3e9de7449c41651ca4 (diff)
downloadlibquotient-2bf912d6e6ddd9ff81a92ff28ac8c4c1d8f2d7e1.tar.gz
libquotient-2bf912d6e6ddd9ff81a92ff28ac8c4c1d8f2d7e1.zip
Support of changing the display name
Note that although the mechanism is generic enough to change any user's display name, The Spec states that power rules are very strict about it.
Diffstat (limited to 'user.h')
-rw-r--r--user.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/user.h b/user.h
index a2d58908..cf7d4e0a 100644
--- a/user.h
+++ b/user.h
@@ -60,11 +60,15 @@ namespace QMatrixClient
public slots:
void requestAvatar();
+ void rename(const QString& newName);
signals:
void nameChanged(User*, QString);
void avatarChanged(User* user);
+ private slots:
+ void setName(const QString& newName);
+
private:
class Private;
Private* d;