Commit dcda6b3c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add support for generating qmltypes file

parent 3b7d51dc
Pipeline #61310 passed with stage
in 4 minutes and 34 seconds
......@@ -34,6 +34,7 @@ include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory)
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMGenerateQmlTypes)
if (NOT SAILFISHOS)
include(ECMQMLModules)
endif()
......
......@@ -13,6 +13,8 @@ target_link_libraries(kdeconnectdeclarativeplugin
install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
ecm_generate_qmltypes(org.kde.kdeconnect 1.0 DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kdeconnect)
# So qml apps using this plugin can be run from build/bin directory
add_custom_target(copy_to_build_dir_bin)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/org/kde/kdeconnect)
......
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 org.kde.kdeconnect 1.0 qml'
Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "BigscreenDbusInterface"
prototype: "OrgKdeKdeconnectDeviceBigscreenInterface"
exports: ["org.kde.kdeconnect/BigscreenDbusInterface 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
}
Component {
name: "CommandsModel"
prototype: "QAbstractListModel"
exports: ["org.kde.kdeconnect/CommandsModel 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "deviceId"; type: "string" }
Signal {
name: "deviceIdChanged"
Parameter { name: "value"; type: "string" }
}
Signal { name: "rowsChanged" }
Method {
name: "removeCommand"
Parameter { name: "index"; type: "int" }
}
Method {
name: "addCommand"
Parameter { name: "name"; type: "string" }
Parameter { name: "command"; type: "string" }
}
}
Component {
name: "DBusAsyncResponse"
prototype: "QObject"
exports: ["org.kde.kdeconnect/DBusAsyncResponse 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "autoDelete"; type: "bool" }
Signal {
name: "success"
Parameter { name: "result"; type: "QVariant" }
}
Signal {
name: "error"
Parameter { name: "message"; type: "string" }
}
Method {
name: "setPendingCall"
Parameter { name: "e"; type: "QVariant" }
}
}
Component {
name: "DaemonDbusInterface"
prototype: "OrgKdeKdeconnectDaemonInterface"
exports: ["org.kde.kdeconnect/DaemonDbusInterface 1.0"]
isCreatable: false
isSingleton: true
exportMetaObjectRevisions: [0]
Property { name: "customDevices"; type: "QStringList" }
Signal {
name: "deviceAdded"
Parameter { name: "id"; type: "string" }
}
Signal { name: "pairingRequestsChangedProxy" }
Signal { name: "customDevicesChangedProxy" }
}
Component {
name: "DeviceDbusInterface"
prototype: "OrgKdeKdeconnectDeviceInterface"
exports: ["org.kde.kdeconnect/DeviceDbusInterface 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Property { name: "isReachable"; type: "bool"; isReadonly: true }
Property { name: "isTrusted"; type: "bool"; isReadonly: true }
Property { name: "name"; type: "string"; isReadonly: true }
Property { name: "hasPairingRequests"; type: "bool"; isReadonly: true }
Signal {
name: "nameChangedProxy"
Parameter { name: "name"; type: "string" }
}
Signal {
name: "trustedChangedProxy"
Parameter { name: "paired"; type: "bool" }
}
Signal {
name: "reachableChangedProxy"
Parameter { name: "reachable"; type: "bool" }
}
Signal {
name: "hasPairingRequestsChangedProxy"
Parameter { type: "bool" }
}
Method { name: "id"; type: "string" }
Method {
name: "pluginCall"
Parameter { name: "plugin"; type: "string" }
Parameter { name: "method"; type: "string" }
}
}
Component {
name: "DevicesModel"
prototype: "QAbstractListModel"
exports: ["org.kde.kdeconnect/DevicesModel 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "ModelRoles"
values: {
"NameModelRole": 0,
"IconModelRole": 1,
"StatusModelRole": 14,
"IdModelRole": 256,
"IconNameRole": 257,
"DeviceRole": 258
}
}
Enum {
name: "StatusFilterFlag"
values: {
"NoFilter": 0,
"Paired": 1,
"Reachable": 2
}
}
Enum {
name: "StatusFilterFlags"
values: {
"NoFilter": 0,
"Paired": 1,
"Reachable": 2
}
}
Property { name: "displayFilter"; type: "int" }
Property { name: "count"; type: "int"; isReadonly: true }
Signal { name: "rowsChanged" }
Method {
name: "getDevice"
type: "DeviceDbusInterface*"
Parameter { name: "row"; type: "int" }
}
Method {
name: "rowForDevice"
type: "int"
Parameter { name: "id"; type: "string" }
}
}
Component {
name: "DevicesSortProxyModel"
prototype: "QSortFilterProxyModel"
exports: ["org.kde.kdeconnect/DevicesSortProxyModel 1.0"]
exportMetaObjectRevisions: [0]
}
Component {
name: "FindMyPhoneDeviceDbusInterface"
prototype: "OrgKdeKdeconnectDeviceFindmyphoneInterface"
exports: ["org.kde.kdeconnect/FindMyPhoneDbusInterface 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
}
Component {
name: "KdeConnectPluginConfig"
prototype: "QObject"
exports: ["org.kde.kdeconnect/KdeConnectPluginConfig 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "deviceId"; type: "string" }
Property { name: "pluginName"; type: "string" }
Signal { name: "configChanged" }
Method {
name: "set"
Parameter { name: "key"; type: "string" }
Parameter { name: "value"; type: "QVariant" }
}
Method {
name: "getString"
type: "string"
Parameter { name: "key"; type: "string" }
Parameter { name: "defaultValue"; type: "string" }
}
Method {
name: "getBool"
type: "bool"
Parameter { name: "key"; type: "string" }
Parameter { name: "defaultValue"; type: "bool" }
}
Method {
name: "getInt"
type: "int"
Parameter { name: "key"; type: "string" }
Parameter { name: "defaultValue"; type: "int" }
}
Method {
name: "getByteArray"
type: "QByteArray"
Parameter { name: "key"; type: "string" }
Parameter { name: "defaultValue"; type: "QByteArray" }
}
}
Component {
name: "LockDeviceDbusInterface"
prototype: "OrgKdeKdeconnectDeviceLockdeviceInterface"
exports: ["org.kde.kdeconnect/LockDeviceDbusInterface 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Property { name: "isLocked"; type: "bool" }
Signal {
name: "lockedChangedProxy"
Parameter { name: "isLocked"; type: "bool" }
}
}
Component {
name: "MprisDbusInterface"
prototype: "OrgKdeKdeconnectDeviceMprisremoteInterface"
exports: ["org.kde.kdeconnect/MprisDbusInterface 1.0"]
isCreatable: false
exportMetaObjectRevisions: [0]
Property { name: "isPlaying"; type: "bool"; isReadonly: true }
Property { name: "length"; type: "int"; isReadonly: true }
Property { name: "nowPlaying"; type: "string"; isReadonly: true }
Property { name: "title"; type: "string"; isReadonly: true }
Property { name: "artist"; type: "string"; isReadonly: true }
Property { name: "album"; type: "string"; isReadonly: true }
Property { name: "playerList"; type: "QStringList"; isReadonly: true }
Property { name: "volume"; type: "int" }
Property { name: "position"; type: "int" }
Property { name: "canSeek"; type: "bool"; isReadonly: true }
Signal { name: "propertiesChangedProxy" }
}
Component {
name: "NotificationsModel"
prototype: "QAbstractListModel"
exports: ["org.kde.kdeconnect/NotificationsModel 1.0"]
exportMetaObjectRevisions: [0]
Property { name: "deviceId"; type: "string" }
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "isAnyDimissable"; type: "bool"; isReadonly: true }
Signal {
name: "deviceIdChanged"
Parameter { name: "value"; type: "string" }
}
Signal { name: "anyDismissableChanged" }
Signal { name: "rowsChanged" }
Method { name: "dismissAll" }
Method { name: "isAnyDimissable"; type: "bool" }
}
Component {
name: "ObjectFactory"
prototype: "QObject"
exports: [
"org.kde.kdeconnect/BigscreenDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/DeviceBatteryDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/DeviceConnectivityReportDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/DeviceDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/FindMyPhoneDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/LockDeviceDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/MprisDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/RemoteCommandsDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/RemoteControlDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/RemoteKeyboardDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/RemoteSystemVolumeDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/SftpDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/ShareDbusInterfaceFactory 1.0",
"org.kde.kdeconnect/SmsDbusInterfaceFactory 1.0"
]
isCreatable: false
isSingleton: true
exportMetaObjectRevisions: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Method { name: "create"; type: "QObject*" }
Method {
name: "create"
type: "QObject*"
Parameter { name: "arg1"; type: "QVariant" }
}
Method {
name: "create"
type: "QObject*"
Parameter { name: "arg1"; type: "QVariant" }
Parameter { name: "arg2"; type: "QVariant" }
}
}
Component {
name: "OrgKdeKdeconnectDaemonInterface"
prototype: "QDBusAbstractInterface"
Property { name: "customDevices"; type: "QStringList" }
Property { name: "isDiscoveringDevices"; type: "bool"; isReadonly: true }
Property { name: "pairingRequests"; type: "QStringList"; isReadonly: true }
Signal {
name: "announcedNameChanged"
Parameter { name: "announcedName"; type: "string" }
}
Signal {
name: "customDevicesChanged"
Parameter { name: "customDevices"; type: "QStringList" }
}
Signal {
name: "deviceAdded"
Parameter { name: "id"; type: "string" }
}
Signal { name: "deviceListChanged" }
Signal {
name: "deviceRemoved"
Parameter { name: "id"; type: "string" }
}
Signal {
name: "deviceVisibilityChanged"
Parameter { name: "id"; type: "string" }
Parameter { name: "isVisible"; type: "bool" }
}
Method {
name: "acquireDiscoveryMode"
type: "QDBusPendingReply<>"
Parameter { name: "id"; type: "string" }
}
Method { name: "announcedName"; type: "QDBusPendingReply<QString>" }
Method {
name: "deviceIdByName"
type: "QDBusPendingReply<QString>"
Parameter { name: "name"; type: "string" }
}
Method { name: "devices"; type: "QDBusPendingReply<QStringList>" }
Method {
name: "devices"
type: "QDBusPendingReply<QStringList>"
Parameter { name: "onlyReachable"; type: "bool" }
}
Method {
name: "devices"
type: "QDBusPendingReply<QStringList>"
Parameter { name: "onlyReachable"; type: "bool" }
Parameter { name: "onlyPaired"; type: "bool" }
}
Method { name: "forceOnNetworkChange"; type: "QDBusPendingReply<>" }
Method { name: "openConfiguration"; type: "QDBusPendingReply<>" }
Method {
name: "openConfiguration"
type: "QDBusPendingReply<>"
Parameter { name: "deviceId"; type: "string" }
}
Method {
name: "openConfiguration"
type: "QDBusPendingReply<>"
Parameter { name: "deviceId"; type: "string" }
Parameter { name: "pluginId"; type: "string" }
}
Method {
name: "releaseDiscoveryMode"
type: "QDBusPendingReply<>"
Parameter { name: "id"; type: "string" }
}
Method { name: "selfId"; type: "QDBusPendingReply<QString>" }
Method {
name: "sendSimpleNotification"
type: "QDBusPendingReply<>"
Parameter { name: "eventId"; type: "string" }
Parameter { name: "title"; type: "string" }
Parameter { name: "text"; type: "string" }
Parameter { name: "iconName"; type: "string" }
}
Method {
name: "setAnnouncedName"
type: "QDBusPendingReply<>"
Parameter { name: "name"; type: "string" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceBigscreenInterface"
prototype: "QDBusAbstractInterface"
Signal {
name: "messageReceived"
Parameter { name: "message"; type: "string" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceFindmyphoneInterface"
prototype: "QDBusAbstractInterface"
Method { name: "ring"; type: "QDBusPendingReply<>" }
}
Component {
name: "OrgKdeKdeconnectDeviceInterface"
prototype: "QDBusAbstractInterface"
Property { name: "hasPairingRequests"; type: "bool"; isReadonly: true }
Property { name: "iconName"; type: "string"; isReadonly: true }
Property { name: "isReachable"; type: "bool"; isReadonly: true }
Property { name: "isTrusted"; type: "bool"; isReadonly: true }
Property { name: "name"; type: "string"; isReadonly: true }
Property { name: "statusIconName"; type: "string"; isReadonly: true }
Property { name: "supportedPlugins"; type: "QStringList"; isReadonly: true }
Property { name: "type"; type: "string"; isReadonly: true }
Signal {
name: "hasPairingRequestsChanged"
Parameter { name: "hasPairingRequests"; type: "bool" }
}
Signal {
name: "nameChanged"
Parameter { name: "name"; type: "string" }
}
Signal {
name: "pairingError"
Parameter { name: "error"; type: "string" }
}
Signal { name: "pluginsChanged" }
Signal {
name: "reachableChanged"
Parameter { name: "reachable"; type: "bool" }
}
Signal {
name: "trustedChanged"
Parameter { name: "trusted"; type: "bool" }
}
Signal {
name: "typeChanged"
Parameter { name: "type"; type: "string" }
}
Method { name: "acceptPairing"; type: "QDBusPendingReply<>" }
Method { name: "availableLinks"; type: "QDBusPendingReply<QStringList>" }
Method { name: "encryptionInfo"; type: "QDBusPendingReply<QString>" }
Method { name: "hasPairingRequests"; type: "QDBusPendingReply<bool>" }
Method {
name: "hasPlugin"
type: "QDBusPendingReply<bool>"
Parameter { name: "name"; type: "string" }
}
Method {
name: "isPluginEnabled"
type: "QDBusPendingReply<bool>"
Parameter { name: "pluginName"; type: "string" }
}
Method { name: "isTrusted"; type: "QDBusPendingReply<bool>" }
Method { name: "loadedPlugins"; type: "QDBusPendingReply<QStringList>" }
Method {
name: "pluginIconName"
type: "QDBusPendingReply<QString>"
Parameter { name: "pluginName"; type: "string" }
}
Method { name: "pluginsConfigFile"; type: "QDBusPendingReply<QString>" }
Method { name: "rejectPairing"; type: "QDBusPendingReply<>" }
Method { name: "reloadPlugins"; type: "QDBusPendingReply<>" }
Method { name: "requestPair"; type: "QDBusPendingReply<>" }
Method {
name: "setPluginEnabled"
type: "QDBusPendingReply<>"
Parameter { name: "pluginName"; type: "string" }
Parameter { name: "enabled"; type: "bool" }
}
Method { name: "unpair"; type: "QDBusPendingReply<>" }
Method { name: "verificationKey"; type: "QDBusPendingReply<QByteArray>" }
}
Component {
name: "OrgKdeKdeconnectDeviceLockdeviceInterface"
prototype: "QDBusAbstractInterface"
Property { name: "isLocked"; type: "bool" }
Signal {
name: "lockedChanged"
Parameter { name: "locked"; type: "bool" }
}
Method {
name: "setLocked"
type: "QDBusPendingReply<>"
Parameter { name: "in0"; type: "bool" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceMprisremoteInterface"
prototype: "QDBusAbstractInterface"
Property { name: "album"; type: "string"; isReadonly: true }
Property { name: "artist"; type: "string"; isReadonly: true }
Property { name: "canSeek"; type: "bool"; isReadonly: true }
Property { name: "isPlaying"; type: "bool"; isReadonly: true }
Property { name: "length"; type: "int"; isReadonly: true }
Property { name: "nowPlaying"; type: "string"; isReadonly: true }
Property { name: "player"; type: "string" }
Property { name: "playerList"; type: "QStringList"; isReadonly: true }
Property { name: "position"; type: "int" }
Property { name: "title"; type: "string"; isReadonly: true }
Property { name: "volume"; type: "int" }
Signal { name: "propertiesChanged" }
Method { name: "requestPlayerList"; type: "QDBusPendingReply<>" }
Method {
name: "seek"
type: "QDBusPendingReply<>"
Parameter { name: "offset"; type: "int" }
}
Method {
name: "sendAction"
type: "QDBusPendingReply<>"
Parameter { name: "action"; type: "string" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceRemotecommandsInterface"
prototype: "QDBusAbstractInterface"
Property { name: "canAddCommand"; type: "bool"; isReadonly: true }
Property { name: "commands"; type: "QByteArray"; isReadonly: true }
Property { name: "deviceId"; type: "string"; isReadonly: true }
Signal {
name: "commandsChanged"
Parameter { name: "commands"; type: "QByteArray" }
}
Method { name: "editCommands"; type: "QDBusPendingReply<>" }
Method {
name: "triggerCommand"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceRemotekeyboardInterface"
prototype: "QDBusAbstractInterface"
Property { name: "remoteState"; type: "bool"; isReadonly: true }
Signal {
name: "keyPressReceived"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
Parameter { name: "shift"; type: "bool" }
Parameter { name: "ctrl"; type: "bool" }
Parameter { name: "alt"; type: "bool" }
}
Signal {
name: "remoteStateChanged"
Parameter { name: "state"; type: "bool" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
Parameter { name: "shift"; type: "bool" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
Parameter { name: "shift"; type: "bool" }
Parameter { name: "ctrl"; type: "bool" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
Parameter { name: "shift"; type: "bool" }
Parameter { name: "ctrl"; type: "bool" }
Parameter { name: "alt"; type: "bool" }
}
Method {
name: "sendKeyPress"
type: "QDBusPendingReply<>"
Parameter { name: "key"; type: "string" }
Parameter { name: "specialKey"; type: "int" }
Parameter { name: "shift"; type: "bool" }
Parameter { name: "ctrl"; type: "bool" }
Parameter { name: "alt"; type: "bool" }
Parameter { name: "sendAck"; type: "bool" }
}
Method {
name: "sendQKeyEvent"
type: "QDBusPendingReply<>"
Parameter { name: "keyEvent"; type: "QVariantMap" }
}
Method {
name: "sendQKeyEvent"
type: "QDBusPendingReply<>"
Parameter { name: "keyEvent"; type: "QVariantMap" }
Parameter { name: "sendAck"; type: "bool" }
}
Method {
name: "translateQtKey"
type: "QDBusPendingReply<int>"
Parameter { name: "qtKey"; type: "int" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceRemotesystemvolumeInterface"
prototype: "QDBusAbstractInterface"
Property { name: "deviceId"; type: "string"; isReadonly: true }
Property { name: "sinks"; type: "QByteArray"; isReadonly: true }
Signal {
name: "mutedChanged"
Parameter { name: "name"; type: "string" }
Parameter { name: "muted"; type: "bool" }
}
Signal {
name: "volumeChanged"
Parameter { name: "name"; type: "string" }
Parameter { name: "volume"; type: "int" }
}
Method {
name: "sendMuted"
type: "QDBusPendingReply<>"
Parameter { name: "name"; type: "string" }
Parameter { name: "muted"; type: "bool" }
}
Method {
name: "sendVolume"
type: "QDBusPendingReply<>"
Parameter { name: "name"; type: "string" }
Parameter { name: "volume"; type: "int" }
}
}
Component {
name: "OrgKdeKdeconnectDeviceShareInterface"
prototype: "QDBusAbstractInterface"
Signal {
name: "shareReceived"
Parameter { name: "url"; type: "string" }
}
Method {
name: "openFile"
type: "QDBusPendingReply<>"
Parameter { name: "file"; type: "string" }
}