21 #include <quentier/types/Account.h> 25 #include <string_view> 63 const Account & account,
const QString & settingsName = {});
82 const Account & account,
const char * settingsName,
83 int settingsNameSize = -1);
115 m_settings.endArray();
132 m_settings.endGroup();
145 void beginGroup(
const QString & prefix);
157 void beginGroup(
const char * prefix,
int size = -1);
168 void beginGroup(std::string_view prefix);
177 [[nodiscard]]
int beginReadArray(
const QString & prefix);
189 [[nodiscard]]
int beginReadArray(
const char * prefix,
int size = -1);
198 [[nodiscard]]
int beginReadArray(std::string_view prefix);
210 void beginWriteArray(
const QString & prefix,
int arraySize = -1);
226 void beginWriteArray(
227 const char * prefix,
int arraySize = -1,
int prefixSize = -1);
240 void beginWriteArray(std::string_view prefix,
int arraySize = -1);
249 [[nodiscard]]
bool contains(
const QString & key)
const;
262 [[nodiscard]]
bool contains(
const char * key,
int size = -1)
const;
272 [[nodiscard]]
bool contains(std::string_view key)
const;
280 void remove(
const QString & key);
292 void remove(
const char * key,
int size = -1);
301 void remove(std::string_view key);
310 void setValue(
const QString & key,
const QVariant & value);
323 void setValue(
const char * key,
const QVariant & value,
int keySize = -1);
333 void setValue(std::string_view key,
const QVariant & value);
345 [[nodiscard]] QVariant value(
346 const QString & key,
const QVariant & defaultValue = {})
const;
362 [[nodiscard]] QVariant value(
363 const char * key,
const QVariant & defaultValue = {},
364 int keySize = -1)
const;
377 [[nodiscard]] QVariant value(
378 std::string_view key,
const QVariant & defaultValue = {})
const;
381 QTextStream & print(QTextStream & strm)
const override;
384 Q_DISABLE_COPY(ApplicationSettings)
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:37
Definition: ApplicationSettings.h:27
Definition: ApplicationSettings.h:126
Definition: ApplicationSettings.h:109
The ApplicationSettings class enhances the functionality of QSettings, in particular it simplifies th...
Definition: ApplicationSettings.h:34