|
@@ -83,6 +83,7 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject
|
|
|
Q_PROPERTY(QString id MEMBER _id)
|
|
Q_PROPERTY(QString id MEMBER _id)
|
|
|
Q_PROPERTY(QString davUser MEMBER _davUser)
|
|
Q_PROPERTY(QString davUser MEMBER _davUser)
|
|
|
Q_PROPERTY(QString displayName MEMBER _displayName)
|
|
Q_PROPERTY(QString displayName MEMBER _displayName)
|
|
|
|
|
+ Q_PROPERTY(QString prettyName READ prettyName NOTIFY prettyNameChanged)
|
|
|
Q_PROPERTY(QUrl url MEMBER _url)
|
|
Q_PROPERTY(QUrl url MEMBER _url)
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
@@ -113,6 +114,11 @@ public:
|
|
|
/// The name of the account as shown in the toolbar
|
|
/// The name of the account as shown in the toolbar
|
|
|
[[nodiscard]] QString displayName() const;
|
|
[[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 accentColor() const;
|
|
|
[[nodiscard]] QColor headerColor() const;
|
|
[[nodiscard]] QColor headerColor() const;
|
|
|
[[nodiscard]] QColor headerTextColor() const;
|
|
[[nodiscard]] QColor headerTextColor() const;
|
|
@@ -319,6 +325,7 @@ signals:
|
|
|
|
|
|
|
|
void accountChangedAvatar();
|
|
void accountChangedAvatar();
|
|
|
void accountChangedDisplayName();
|
|
void accountChangedDisplayName();
|
|
|
|
|
+ void prettyNameChanged();
|
|
|
|
|
|
|
|
/// Used in RemoteWipe
|
|
/// Used in RemoteWipe
|
|
|
void appPasswordRetrieved(QString);
|
|
void appPasswordRetrieved(QString);
|