19 #ifndef LIB_QUENTIER_UTILITY_APPLICATION_SETTINGS_H 20 #define LIB_QUENTIER_UTILITY_APPLICATION_SETTINGS_H 22 #include <quentier/types/Account.h> 60 const Account & account,
const QString & settingsName = {});
79 const Account & account,
const char * settingsName,
80 const int settingsNameSize = -1);
85 virtual ~ApplicationSettings()
override;
94 ArrayCloser(ApplicationSettings & settings) : m_settings(settings) {}
98 m_settings.endArray();
102 ApplicationSettings & m_settings;
111 GroupCloser(ApplicationSettings & settings) : m_settings(settings) {}
115 m_settings.endGroup();
119 ApplicationSettings & m_settings;
129 void beginGroup(
const QString & prefix);
141 void beginGroup(
const char * prefix,
const int size = -1);
150 int beginReadArray(
const QString & prefix);
162 int beginReadArray(
const char * prefix,
const int size = -1);
174 void beginWriteArray(
const QString & prefix,
const int arraySize = -1);
190 void beginWriteArray(
191 const char * prefix,
const int arraySize = -1,
192 const int prefixSize = -1);
201 bool contains(
const QString & key)
const;
214 bool contains(
const char * key,
const int size = -1)
const;
222 void remove(
const QString & key);
234 void remove(
const char * key,
const int size = -1);
243 void setValue(
const QString & key,
const QVariant & value);
257 const char * key,
const QVariant & value,
const int keySize = -1);
270 const QString & key,
const QVariant & defaultValue = {})
const;
287 const char * key,
const QVariant & defaultValue = {},
288 const int keySize = -1)
const;
291 virtual QTextStream & print(QTextStream & strm)
const override;
294 Q_DISABLE_COPY(ApplicationSettings)
299 #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:92
Definition: ApplicationSettings.h:109