libQuotient
A Qt library for building matrix clients
settings.h File Reference
#include "util.h"
#include <QtCore/QSettings>
#include <QtCore/QUrl>
#include <QtCore/QStringBuilder>
Include dependency graph for settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Quotient::Settings
 
class  Quotient::SettingsGroup
 
class  Quotient::AccountSettings
 

Namespaces

 Quotient
 

Macros

#define QUO_DECLARE_SETTING(type, propname, setter)
 
#define QUO_DEFINE_SETTING(classname, type, propname, qsettingname, defaultValue, setter)
 

Macro Definition Documentation

◆ QUO_DECLARE_SETTING

#define QUO_DECLARE_SETTING (   type,
  propname,
  setter 
)
Value:
Q_PROPERTY(type propname READ propname WRITE setter) \
public: \
type propname() const; \
void setter(type newValue); \
\
private:

Definition at line 109 of file settings.h.

◆ QUO_DEFINE_SETTING

#define QUO_DEFINE_SETTING (   classname,
  type,
  propname,
  qsettingname,
  defaultValue,
  setter 
)
Value:
type classname::propname() const { return get<type>(qsettingname##_L1, defaultValue); } \
void classname::setter(type newValue) { setValue(qsettingname##_L1, std::move(newValue)); }

Definition at line 117 of file settings.h.