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 QVariant getValue(TOOLBOXQT_QTCOMPAT_STR_VIEW key,
const QVariant &defaultValue = QVariant())
const;
32 QString getString(TOOLBOXQT_QTCOMPAT_STR_VIEW key,
const QString &defaultValue = QString())
const;
35 void setHooksPreLoadSettings(
CbHook hookPreload);
36 void setHooksPostLoadSettings(
CbHook hookPostload);
39 static bool defaultHook(
const QFileInfo &fileInfo);
42 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