summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlextensionplugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlextensionplugin.h')
-rw-r--r--src/declarative/qml/qmlextensionplugin.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlextensionplugin.h b/src/declarative/qml/qmlextensionplugin.h
new file mode 100644
index 0000000..8f3194f
--- /dev/null
+++ b/src/declarative/qml/qmlextensionplugin.h
@@ -0,0 +1,31 @@
+#ifndef QMLEXTENSIONPLUGIN_H
+#define QMLEXTENSIONPLUGIN_H
+
+#include <QtCore/qplugin.h>
+
+#include "qmlextensioninterface.h"
+
+QT_BEGIN_HEADER
+
+QT_BEGIN_NAMESPACE
+
+QT_MODULE(Declarative)
+
+class QmlEngine;
+
+class Q_DECLARATIVE_EXPORT QmlExtensionPlugin : public QObject, public QmlExtensionInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(QmlExtensionInterface)
+public:
+ explicit QmlExtensionPlugin(QObject *parent = 0);
+ ~QmlExtensionPlugin();
+
+ virtual void initialize(QmlEngine *engine) = 0;
+};
+
+QT_END_NAMESPACE
+
+QT_END_HEADER
+
+#endif // QMLEXTENSIONPLUGIN_H