1 #ifndef QTMVVM_ISETTINGSACCESSOR_H 2 #define QTMVVM_ISETTINGSACCESSOR_H 6 #include <QtCore/qobject.h> 7 #include <QtCore/qstring.h> 8 #include <QtCore/qvariant.h> 10 #include "QtMvvmCore/qtmvvmcore_global.h" 23 static void setDefaultAccessor();
25 static void setDefaultAccessor(
int typeId);
34 virtual bool contains(
const QString &key)
const = 0;
40 virtual void remove(
const QString &key) = 0;
44 virtual void sync() = 0;
50 void entryRemoved(
const QString &key);
53 static int _DefaultAccessorType;
59 static_assert(std::is_base_of<T, ISettingsAccessor>::value,
"T must implement the QtMvvm::ISettingsAccessor interface");
66 #define QtMvvm_ISettingsAccessorIID "de.skycoder42.qtmvvm.core.ISettingsAccessor" 70 #endif // QTMVVM_ISETTINGSACCESSOR_H An interface to provide a generic way to access settings of any origin.
static void setDefaultAccessor()
#define QtMvvm_ISettingsAccessorIID
The IID of the QtMvvm::IPresenter class.
The primary namespace of the QtMvvm library.