diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-19 14:29:33 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-19 15:09:36 (GMT) |
commit | af9bee69a9d902cffb4b590012cba79328fd2a1b (patch) | |
tree | 22619975d4743bafe8cef35ab7e517adaf86bfae /src/declarative/qml/qmlextensioninterface.h | |
parent | 94164f66a6f3272e63b2fe12f63fba91d16ab0f0 (diff) | |
download | Qt-af9bee69a9d902cffb4b590012cba79328fd2a1b.zip Qt-af9bee69a9d902cffb4b590012cba79328fd2a1b.tar.gz Qt-af9bee69a9d902cffb4b590012cba79328fd2a1b.tar.bz2 |
Added QmlExtensionPlugin and QmlExtensionInterface.
Diffstat (limited to 'src/declarative/qml/qmlextensioninterface.h')
-rw-r--r-- | src/declarative/qml/qmlextensioninterface.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlextensioninterface.h b/src/declarative/qml/qmlextensioninterface.h new file mode 100644 index 0000000..d336e6e --- /dev/null +++ b/src/declarative/qml/qmlextensioninterface.h @@ -0,0 +1,25 @@ +#ifndef QMLEXTENSIONINTERFACE_H +#define QMLEXTENSIONINTERFACE_H + +#include <QtCore/qobject.h> + +QT_BEGIN_HEADER + +QT_BEGIN_NAMESPACE + +QT_MODULE(Declarative) + +class QmlEngine; + +struct Q_DECLARATIVE_EXPORT QmlExtensionInterface +{ + virtual void initialize(QmlEngine *engine) = 0; +}; + +Q_DECLARE_INTERFACE(QmlExtensionInterface, "com.trolltech.Qt.QmlExtensionInterface/1.0") + +QT_END_NAMESPACE + +QT_END_HEADER + +#endif // QMLEXTENSIONINTERFACE_H |