Use new plugin system in qtbase.
[profile/ivi/qtbase.git] / examples / tools / echoplugin / plugin / echoplugin.h
index d5e24b3..47373fc 100644 (file)
@@ -42,6 +42,7 @@
 #define ECHOPLUGIN_H
 
 #include <QObject>
+#include <QtPlugin>
 #include "echoplugin.h"
 #include "echointerface.h"
 
@@ -49,6 +50,7 @@
 class EchoPlugin : public QObject, EchoInterface
 {
     Q_OBJECT
+    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.EchoInterface" FILE "echoplugin.json")
     Q_INTERFACES(EchoInterface)
 
 public: