19 #ifndef LIB_QUENTIER_UTILITY_APPLICATION_SETTINGS_H 20 #define LIB_QUENTIER_UTILITY_APPLICATION_SETTINGS_H 22 #include <quentier/types/Account.h> 54 const Account & account,
const QString & settingsName = {});
73 const Account & account,
const char * settingsName,
74 const int settingsNameSize = -1);
79 virtual ~ApplicationSettings()
override;
88 ArrayCloser(ApplicationSettings & settings) : m_settings(settings) {}
92 m_settings.endArray();
96 ApplicationSettings & m_settings;
105 GroupCloser(ApplicationSettings & settings) : m_settings(settings) {}
109 m_settings.endGroup();
113 ApplicationSettings & m_settings;
123 void beginGroup(
const QString & prefix);
135 void beginGroup(
const char * prefix,
const int size = -1);
144 int beginReadArray(
const QString & prefix);
156 int beginReadArray(
const char * prefix,
const int size = -1);
168 void beginWriteArray(
const QString & prefix,
const int arraySize = -1);
184 void beginWriteArray(
185 const char * prefix,
const int arraySize = -1,
186 const int prefixSize = -1);
195 bool contains(
const QString & key)
const;
208 bool contains(
const char * key,
const int size = -1)
const;
216 void remove(
const QString & key);
228 void remove(
const char * key,
const int size = -1);
237 void setValue(
const QString & key,
const QVariant & value);
251 const char * key,
const QVariant & value,
const int keySize = -1);
264 const QString & key,
const QVariant & defaultValue = {})
const;
282 const QVariant & defaultValue = {},
283 const int keySize = -1)
const;
286 virtual QTextStream & print(QTextStream & strm)
const override;
289 Q_DISABLE_COPY(ApplicationSettings)
294 #endif // LIB_QUENTIER_UTILITY_APPLICATION_SETTINGS_H Definition: DecryptedTextManager.h:26
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:37
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:38
The ApplicationSettings class enhances the functionality of QSettings, in particular it simplifies th...
Definition: ApplicationSettings.h:33
Definition: ApplicationSettings.h:86
Definition: ApplicationSettings.h:103