From 3f73fbb0746d7895c0846fc1216cb3f76c25ecf7 Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Thu, 10 May 2018 06:15:09 +0200 Subject: [PATCH] [connectionagent] Add plugins.qmltypes. Contributes to JB#41605 --- .../connectionagentplugin.pro | 7 +- connectionagentplugin/plugins.qmltypes | 72 +++++++++++++++++++ connectionagentplugin/qmldir | 1 + 3 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 connectionagentplugin/plugins.qmltypes diff --git a/connectionagentplugin/connectionagentplugin.pro b/connectionagentplugin/connectionagentplugin.pro index 638ca90..edb1a35 100644 --- a/connectionagentplugin/connectionagentplugin.pro +++ b/connectionagentplugin/connectionagentplugin.pro @@ -17,13 +17,16 @@ connectiond_interface.files = ../connd/com.jollamobile.Connectiond.xml connectiond_interface.header_flags = "-c ConnectionManagerInterface" connectiond_interface.source_flags = "-c ConnectionManagerInterface" -OTHER_FILES = qmldir +OTHER_FILES = qmldir plugins.qmltypes MODULENAME = com/jolla/connection TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME target.path = $$TARGETPATH -qmldir.files += qmldir +qmldir.files += qmldir plugins.qmltypes qmldir.path = $$TARGETPATH +qmltypes.commands = qmlplugindump -nonrelocatable com.jolla.connection 1.0 > $$PWD/plugins.qmltypes +QMAKE_EXTRA_TARGETS += qmltypes + INSTALLS += target qmldir diff --git a/connectionagentplugin/plugins.qmltypes b/connectionagentplugin/plugins.qmltypes new file mode 100644 index 0000000..f267cb5 --- /dev/null +++ b/connectionagentplugin/plugins.qmltypes @@ -0,0 +1,72 @@ +import QtQuick.tooling 1.2 + +// This file describes the plugin-supplied types contained in the library. +// It is used for QML tooling purposes only. +// +// This file was auto-generated by: +// 'qmlplugindump -nonrelocatable com.jolla.connection 1.0' + +Module { + dependencies: [] + Component { + name: "DeclarativeConnectionAgent" + prototype: "QObject" + exports: ["com.jolla.connection/ConnectionAgent 1.0"] + exportMetaObjectRevisions: [0] + Signal { + name: "userInputRequested" + Parameter { name: "servicePath"; type: "string" } + Parameter { name: "fields"; type: "QVariantMap" } + } + Signal { name: "userInputCanceled" } + Signal { + name: "errorReported" + Parameter { name: "servicePath"; type: "string" } + Parameter { name: "error"; type: "string" } + } + Signal { name: "connectionRequest" } + Signal { + name: "configurationNeeded" + Parameter { name: "type"; type: "string" } + } + Signal { + name: "connectionState" + Parameter { name: "state"; type: "string" } + Parameter { name: "type"; type: "string" } + } + Signal { + name: "browserRequested" + Parameter { name: "url"; type: "string" } + } + Signal { + name: "tetheringFinished" + Parameter { type: "bool" } + } + Method { + name: "sendUserReply" + Parameter { name: "input"; type: "QVariantMap" } + } + Method { + name: "sendConnectReply" + Parameter { name: "replyMessage"; type: "string" } + Parameter { name: "timeout"; type: "int" } + } + Method { + name: "sendConnectReply" + Parameter { name: "replyMessage"; type: "string" } + } + Method { + name: "connectToType" + Parameter { name: "type"; type: "string" } + } + Method { + name: "startTethering" + Parameter { name: "type"; type: "string" } + } + Method { + name: "stopTethering" + Parameter { name: "keepPowered"; type: "bool" } + } + Method { name: "stopTethering" } + } +} diff --git a/connectionagentplugin/qmldir b/connectionagentplugin/qmldir index 50a4495..28b6617 100644 --- a/connectionagentplugin/qmldir +++ b/connectionagentplugin/qmldir @@ -1,2 +1,3 @@ module com.jolla.connection plugin connectionagentplugin +typeinfo plugins.qmltypes