diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-07-30 21:32:25 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-07-30 21:32:25 +0200 |
commit | 5010a78505a1a89b60cd5d3102e78717567354dd (patch) | |
tree | 8778fc1d95416fb228631ab8a682c876be2d6c1d /lib/user.h | |
parent | a4bcc4c95768e919d6b37fa3593104d71ad8ae22 (diff) | |
download | libquotient-5010a78505a1a89b60cd5d3102e78717567354dd.tar.gz libquotient-5010a78505a1a89b60cd5d3102e78717567354dd.zip |
User: minor cleanup; doc-comments
Diffstat (limited to 'lib/user.h')
-rw-r--r-- | lib/user.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -21,7 +21,6 @@ #include "avatar.h" #include <QtCore/QObject> -#include <QtCore/QString> namespace Quotient { class Connection; @@ -109,6 +108,10 @@ public: int hue() const; qreal hueF() const; + /// Get a reference to a user avatar object for a given room + /*! This reference should be considered short-lived: processing the next + * room member event for this user may (or may not) invalidate it. + */ const Avatar& avatarObject(const Room* room = nullptr) const; Q_INVOKABLE QImage avatar(int dimension, const Quotient::Room* room = nullptr); @@ -135,16 +138,16 @@ public slots: bool setAvatar(const QString& fileName); /** Upload contents of the QIODevice and set that as an avatar */ bool setAvatar(QIODevice* source); - /** Create or find a direct chat with this user - * The resulting chat is returned asynchronously via + /// Create or find a direct chat with this user + /*! The resulting chat is returned asynchronously via * Connection::directChatAvailable() */ void requestDirectChat(); - /** Add the user to the ignore list */ + /// Add the user to the ignore list void ignore(); - /** Remove the user from the ignore list */ + /// Remove the user from the ignore list void unmarkIgnore(); - /** Check whether the user is in ignore list */ + /// Check whether the user is in ignore list bool isIgnored() const; signals: |