Skip to content

Commit

Permalink
[connectionagent] Add plugins.qmltypes. Contributes to JB#41605
Browse files Browse the repository at this point in the history
  • Loading branch information
martyone committed Aug 23, 2018
1 parent e1cd70e commit 3f73fbb
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
7 changes: 5 additions & 2 deletions connectionagentplugin/connectionagentplugin.pro
Expand Up @@ -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
72 changes: 72 additions & 0 deletions 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" }
}
}
1 change: 1 addition & 0 deletions connectionagentplugin/qmldir
@@ -1,2 +1,3 @@
module com.jolla.connection
plugin connectionagentplugin
typeinfo plugins.qmltypes

0 comments on commit 3f73fbb

Please sign in to comment.