libQuotient
A Qt library for building matrix clients
Quotient::AccountSettings Class Reference

#include <settings.h>

Inheritance diagram for Quotient::AccountSettings:
Collaboration diagram for Quotient::AccountSettings:

Public Member Functions

 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 ()
 
- Public Member Functions inherited from Quotient::SettingsGroup
 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 >
get (const QString &key, const T &defaultValue={}) const
 
Q_INVOKABLE QString group () const
 
Q_INVOKABLE QStringList childGroups () const
 
Q_INVOKABLE void setValue (const QString &key, const QVariant &value)
 
Q_INVOKABLE void remove (const QString &key)
 
- Public Member Functions inherited from Quotient::Settings
 Settings (QObject *parent=nullptr)
 
Q_INVOKABLE void setValue (const QString &key, const QVariant &value)
 Set the value for a given key. More...
 
Q_INVOKABLE void remove (const QString &key)
 Remove the value from both the primary and legacy locations. More...
 
Q_INVOKABLE QVariant value (const QString &key, const QVariant &defaultValue={}) const
 Obtain a value for a given key. More...
 
template<typename T >
get (const QString &key, const T &defaultValue={}) const
 Obtain a value for a given key, coerced to the given type. More...
 
Q_INVOKABLE bool contains (const QString &key) const
 
Q_INVOKABLE QStringList childGroups () const
 

Properties

QString userId
 
QByteArray encryptionAccountPickle
 

Additional Inherited Members

- Static Public Member Functions inherited from Quotient::Settings
static void setLegacyNames (const QString &organizationName, const QString &applicationName={})
 Add a legacy organisation/application name to migrate settings from. More...
 
- Protected Attributes inherited from Quotient::Settings
QSettings legacySettings { legacyOrganizationName, legacyApplicationName }
 

Detailed Description

Definition at line 121 of file settings.h.

Constructor & Destructor Documentation

◆ AccountSettings()

Quotient::AccountSettings::AccountSettings ( const QString &  accountId,
QObject *  parent = nullptr 
)
inlineexplicit

Definition at line 130 of file settings.h.

Member Function Documentation

◆ clearEncryptionAccountPickle()

Q_INVOKABLE void Quotient::AccountSettings::clearEncryptionAccountPickle ( )

◆ encryptionAccountPickle()

QByteArray Quotient::AccountSettings::encryptionAccountPickle ( )

◆ homeserver()

QUrl Quotient::AccountSettings::homeserver ( ) const

◆ setEncryptionAccountPickle()

void Quotient::AccountSettings::setEncryptionAccountPickle ( const QByteArray &  encryptionAccountPickle)

◆ setHomeserver()

void Quotient::AccountSettings::setHomeserver ( const QUrl &  url)

◆ userId()

QString Quotient::AccountSettings::userId ( ) const

Property Documentation

◆ encryptionAccountPickle

QByteArray Quotient::AccountSettings::encryptionAccountPickle
readwrite

Definition at line 106 of file settings.h.

◆ userId

QString Quotient::AccountSettings::userId
read

Definition at line 106 of file settings.h.


The documentation for this class was generated from the following file: