|
| AccountSettings (const QString &accountId, QObject *parent=nullptr) |
|
QString | userId () const |
|
QUrl | homeserver () const |
|
void | setHomeserver (const QUrl &url) |
|
QByteArray | encryptionAccountPickle () |
|
void | setEncryptionAccountPickle (const QByteArray &encryptionAccountPickle) |
|
Q_INVOKABLE void | clearEncryptionAccountPickle () |
|
| SettingsGroup (QString path, QObject *parent=nullptr) |
|
Q_INVOKABLE bool | contains (const QString &key) const |
|
Q_INVOKABLE QVariant | value (const QString &key, const QVariant &defaultValue={}) const |
|
template<typename T > |
T | get (const QString &key, const T &defaultValue={}) const |
|
Q_INVOKABLE QString | group () const |
| Get the path for this settings group.
|
|
Q_INVOKABLE QStringList | childGroups () const |
|
Q_INVOKABLE void | setValue (const QString &key, const QVariant &value) |
|
Q_INVOKABLE void | remove (const QString &key) |
|
| Settings (QObject *parent=nullptr) |
|
Q_INVOKABLE void | setValue (const QString &key, const QVariant &value) |
| Set the value for a given key.
|
|
Q_INVOKABLE void | remove (const QString &key) |
| Remove the value from both the primary and legacy locations.
|
|
Q_INVOKABLE QVariant | value (const QString &key, const QVariant &defaultValue={}) const |
| Obtain a value for a given key.
|
|
template<typename T > |
T | get (const QString &key, const T &defaultValue={}) const |
| Obtain a value for a given key, coerced to the given type.
|
|
Q_INVOKABLE bool | contains (const QString &key) const |
|
Q_INVOKABLE QStringList | childGroups () const |
| Obtain the list of child groups from the current or, if missing, legacy settings.
|
|
A group of settings for one Matrix account.
This class provides typesafe accessors to common account settings such as user and device id. User id (aka MXID) is stored as a group name. Although QSettings does not protect forward- and backslashes inside group names, AccountSettings covers for that, percent-encoding the user id before passing it to QSettings.
Definition at line 139 of file settings.h.