From da9a3a88efbc60df892fdf6ede2ba82e3c04ba85 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 25 Sep 2013 18:14:43 +0200 Subject: Update QML plugin meta data for Qt Creator Change-Id: Ie5a9f5f0844adbd1e27753f3f6970b9431d5d741 Reviewed-by: Fabian Bumberger Reviewed-by: Alex Blasche --- src/imports/bluetooth/plugins.qmltypes | 62 ++++++++++++++++++++++++----- src/imports/nfc/plugins.qmltypes | 73 ++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+), 10 deletions(-) create mode 100644 src/imports/nfc/plugins.qmltypes diff --git a/src/imports/bluetooth/plugins.qmltypes b/src/imports/bluetooth/plugins.qmltypes index 578cd711..ba4b1bc7 100644 --- a/src/imports/bluetooth/plugins.qmltypes +++ b/src/imports/bluetooth/plugins.qmltypes @@ -3,7 +3,8 @@ import QtQuick.tooling 1.1 // This file describes the plugin-supplied types contained in the library. // It is used for QML tooling purposes only. // -// This file was auto-generated with the command 'qmlplugindump -notrelocatable QtBluetooth 5.0'. +// This file was auto-generated by: +// 'qmlplugindump -notrelocatable QtBluetooth 5.0' Module { Component { @@ -11,18 +12,33 @@ Module { prototype: "QAbstractListModel" exports: ["QtBluetooth/BluetoothDiscoveryModel 5.0"] exportMetaObjectRevisions: [0] - Property { name: "error"; type: "string"; isReadonly: true } - Property { name: "minimalDiscovery"; type: "bool" } - Property { name: "discovery"; type: "bool" } + Enum { + name: "DiscoveryMode" + values: { + "MinimalServiceDiscovery": 0, + "FullServiceDiscovery": 1, + "DeviceDiscovery": 2 + } + } + Enum { + name: "Error" + values: { + "NoError": 0, + "InputOutputError": 1, + "PoweredOffError": 2, + "UnknownError": 3 + } + } + Property { name: "error"; type: "Error"; isReadonly: true } + Property { name: "discoveryMode"; type: "DiscoveryMode" } + Property { name: "running"; type: "bool" } Property { name: "uuidFilter"; type: "string" } + Property { name: "remoteAddress"; type: "string" } Signal { name: "newServiceDiscovered" Parameter { name: "service"; type: "QDeclarativeBluetoothService"; isPointer: true } } - Method { - name: "setDiscovery" - Parameter { name: "discovery_"; type: "bool" } - } + Signal { name: "newDeviceDiscovered" } } Component { name: "QDeclarativeBluetoothService" @@ -78,11 +94,37 @@ Module { prototype: "QObject" exports: ["QtBluetooth/BluetoothSocket 5.0"] exportMetaObjectRevisions: [0] + Enum { + name: "Error" + values: { + "NoError": -2, + "UnknownSocketError": -1, + "HostNotFoundError": 2, + "ServiceNotFoundError": 9, + "NetworkError": 7, + "UnsupportedProtocolError": 8, + "NoSocketerror": 9 + } + } + Enum { + name: "SocketState" + values: { + "Unconnected": 0, + "ServiceLookup": 1, + "Connecting": 2, + "Connected": 3, + "Bound": 4, + "Closing": 6, + "Listening": 5, + "NoServiceSet": 6 + } + } Property { name: "service"; type: "QDeclarativeBluetoothService"; isPointer: true } Property { name: "connected"; type: "bool" } - Property { name: "error"; type: "string"; isReadonly: true } - Property { name: "state"; type: "string"; isReadonly: true } + Property { name: "error"; type: "Error"; isReadonly: true } + Property { name: "socketState"; type: "SocketState"; isReadonly: true } Property { name: "stringData"; type: "string" } + Signal { name: "stateChanged" } Signal { name: "dataAvailable" } Method { name: "setService" diff --git a/src/imports/nfc/plugins.qmltypes b/src/imports/nfc/plugins.qmltypes new file mode 100644 index 00000000..2d8eef8e --- /dev/null +++ b/src/imports/nfc/plugins.qmltypes @@ -0,0 +1,73 @@ +import QtQuick.tooling 1.1 + +// 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 -notrelocatable QtNfc 5.0' + +Module { + Component { + name: "QDeclarativeNdefFilter" + prototype: "QObject" + exports: ["QtNfc/NdefFilter 5.0"] + exportMetaObjectRevisions: [0] + Property { name: "type"; type: "string" } + Property { name: "minimum"; type: "int" } + Property { name: "maximum"; type: "int" } + } + Component { + name: "QDeclarativeNdefMimeRecord" + prototype: "QDeclarativeNdefRecord" + exports: ["QtNfc/NdefMimeRecord 5.0"] + exportMetaObjectRevisions: [0] + Property { name: "uri"; type: "string"; isReadonly: true } + } + Component { + name: "QDeclarativeNdefRecord" + prototype: "QObject" + exports: ["QtNfc/NdefRecord 5.0"] + exportMetaObjectRevisions: [0] + Property { name: "recordType"; type: "string" } + Property { name: "record"; type: "QNdefRecord" } + } + Component { + name: "QDeclarativeNdefTextRecord" + prototype: "QDeclarativeNdefRecord" + exports: ["QtNfc/NdefTextRecord 5.0"] + exportMetaObjectRevisions: [0] + Enum { + name: "LocaleMatch" + values: { + "LocaleMatchedNone": 0, + "LocaleMatchedEnglish": 1, + "LocaleMatchedLanguage": 2, + "LocaleMatchedLanguageAndCountry": 3 + } + } + Property { name: "text"; type: "string" } + Property { name: "locale"; type: "string" } + Property { name: "localeMatch"; type: "LocaleMatch"; isReadonly: true } + } + Component { + name: "QDeclarativeNdefUriRecord" + prototype: "QDeclarativeNdefRecord" + exports: ["QtNfc/NdefUriRecord 5.0"] + exportMetaObjectRevisions: [0] + Property { name: "uri"; type: "string" } + } + Component { + name: "QDeclarativeNearField" + prototype: "QObject" + exports: ["QtNfc/NearField 5.0"] + exportMetaObjectRevisions: [0] + Property { + name: "messageRecords" + type: "QDeclarativeNdefRecord" + isList: true + isReadonly: true + } + Property { name: "filter"; type: "QDeclarativeNdefFilter"; isList: true; isReadonly: true } + Property { name: "orderMatch"; type: "bool" } + } +} -- cgit v1.2.3