diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-15 15:19:50 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-08-04 13:34:52 +0000 |
commit | 2f190e21c82c7b20f6cf1b9e5671316cd831f684 (patch) | |
tree | 14c7fbd2226842894518b0c964f7e6ce97796ea1 /src/plugins/qmltooling/shared/qqmldebugserverconnection.h | |
parent | a010f3a8f92a9a364e9d17d12b06074fde6f8a17 (diff) |
Use QQmlDebugPluginManager for loading connection plugins
Also remove all the hacks that deal with static builds, QT_NO_LIBRARY
and friends. QQmlDebugPluginManager handles those cases.
Change-Id: I62f13b787292108fa25d09fabc775332394989be
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling/shared/qqmldebugserverconnection.h')
-rw-r--r-- | src/plugins/qmltooling/shared/qqmldebugserverconnection.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/qmltooling/shared/qqmldebugserverconnection.h b/src/plugins/qmltooling/shared/qqmldebugserverconnection.h index 04e4c056ac..03cbe19321 100644 --- a/src/plugins/qmltooling/shared/qqmldebugserverconnection.h +++ b/src/plugins/qmltooling/shared/qqmldebugserverconnection.h @@ -66,9 +66,15 @@ public: virtual void flush() = 0; }; -#define QQmlDebugServerConnection_iid "org.qt-project.Qt.QQmlDebugServerConnection" +class QQmlDebugServerConnectionFactory : public QObject +{ + Q_OBJECT +public: + virtual QQmlDebugServerConnection *create(const QString &key) = 0; +}; -Q_DECLARE_INTERFACE(QQmlDebugServerConnection, QQmlDebugServerConnection_iid) +#define QQmlDebugServerConnectionFactory_iid "org.qt-project.Qt.QQmlDebugServerConnectionFactory" +Q_DECLARE_INTERFACE(QQmlDebugServerConnectionFactory, QQmlDebugServerConnectionFactory_iid) QT_END_NAMESPACE |