diff options
Diffstat (limited to 'src/libsync/account.h')
-rw-r--r-- | src/libsync/account.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsync/account.h b/src/libsync/account.h index 635caeac8..d96597dee 100644 --- a/src/libsync/account.h +++ b/src/libsync/account.h @@ -83,6 +83,7 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject Q_PROPERTY(QString id MEMBER _id) Q_PROPERTY(QString davUser MEMBER _davUser) Q_PROPERTY(QString displayName MEMBER _displayName) + Q_PROPERTY(QString prettyName READ prettyName NOTIFY prettyNameChanged) Q_PROPERTY(QUrl url MEMBER _url) public: @@ -113,6 +114,11 @@ public: /// The name of the account as shown in the toolbar [[nodiscard]] QString displayName() const; + /// The name of the account that is displayed as nicely as possible, + /// e.g. the actual name of the user (John Doe). If this cannot be + /// provided, defaults to davUser (e.g. johndoe) + [[nodiscard]] QString prettyName() const; + [[nodiscard]] QColor accentColor() const; [[nodiscard]] QColor headerColor() const; [[nodiscard]] QColor headerTextColor() const; @@ -319,6 +325,7 @@ signals: void accountChangedAvatar(); void accountChangedDisplayName(); + void prettyNameChanged(); /// Used in RemoteWipe void appPasswordRetrieved(QString); |