diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/configuiplugin.h')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/configuiplugin.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/configuiplugin.h b/SQLiteStudio3/guiSQLiteStudio/configuiplugin.h new file mode 100644 index 0000000..3fa3860 --- /dev/null +++ b/SQLiteStudio3/guiSQLiteStudio/configuiplugin.h @@ -0,0 +1,24 @@ +#ifndef CONFIGUIPLUGIN_H
+#define CONFIGUIPLUGIN_H
+
+#include <QtPlugin>
+
+class CfgEntry;
+
+class ConfigUiPlugin
+{
+ public:
+ virtual ~ConfigUiPlugin() {}
+
+ virtual bool isEligible(CfgEntry* key, QWidget *widget, const QVariant& value) const = 0;
+ virtual void loadConfigToWidget(CfgEntry* key, QWidget *widget, const QVariant& value) = 0;
+ virtual QVariant saveConfigFromWidget(CfgEntry* key, QWidget *widget) = 0;
+ virtual bool init() = 0;
+ virtual void deinit() = 0;
+};
+
+#define ConfigUiPluginInterface "pl.sqlitestudio.ConfigUiPlugin/1.0"
+Q_DECLARE_INTERFACE(ConfigUiPlugin, ConfigUiPluginInterface)
+
+
+#endif // CONFIGUIPLUGIN_H
|
