17 using CbHook = std::function<bool(
const QFileInfo &fileInfo)>;
23 bool loadSettings(
const QFileInfo &fileInfo);
24 QFileInfo getPath()
const;
26 void groupBegin(TOOLBOXQT_QTCOMPAT_STR_VIEW keyGroup);
29 void setValue(TOOLBOXQT_QTCOMPAT_STR_VIEW key,
const QVariant &value);
31 bool contains(TOOLBOXQT_QTCOMPAT_STR_VIEW key)
const;
32 QVariant getValue(TOOLBOXQT_QTCOMPAT_STR_VIEW key,
const QVariant &defaultValue = QVariant())
const;
33 QString getString(TOOLBOXQT_QTCOMPAT_STR_VIEW key,
const QString &defaultValue = QString())
const;
36 void setHooksPreLoadSettings(
CbHook hookPreload);
37 void setHooksPostLoadSettings(
CbHook hookPostload);
40 static bool defaultHook(
const QFileInfo &fileInfo);
43 std::unique_ptr<QSettings> m_settings;
std::function< bool(const QFileInfo &fileInfo)> CbHook
Custom callback hook use to implement custom behaviour.
Definition settingsini.h:17