From a575626bd20223f7a906162dcfb74963291a1330 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Thu, 10 Oct 2013 13:55:28 +0200 Subject: Update QML type description for Bluetooth QML API due to API changes. Change-Id: I30ae8567823e9d48a51654f18048bf66babc6e5a Reviewed-by: Jerome Pasion Reviewed-by: Fabian Bumberger --- src/imports/bluetooth/plugins.qmltypes | 46 +++++++++++----------------------- 1 file changed, 14 insertions(+), 32 deletions(-) (limited to 'src/imports') diff --git a/src/imports/bluetooth/plugins.qmltypes b/src/imports/bluetooth/plugins.qmltypes index ba4b1bc7..89db5407 100644 --- a/src/imports/bluetooth/plugins.qmltypes +++ b/src/imports/bluetooth/plugins.qmltypes @@ -35,54 +35,36 @@ Module { Property { name: "uuidFilter"; type: "string" } Property { name: "remoteAddress"; type: "string" } Signal { - name: "newServiceDiscovered" + name: "serviceDiscovered" Parameter { name: "service"; type: "QDeclarativeBluetoothService"; isPointer: true } } - Signal { name: "newDeviceDiscovered" } + Signal { + name: "deviceDiscovered" + Parameter { name: "device"; type: "string" } + } } Component { name: "QDeclarativeBluetoothService" prototype: "QObject" exports: ["QtBluetooth/BluetoothService 5.0"] exportMetaObjectRevisions: [0] + Enum { + name: "Protocol" + values: { + "RfcommProtocol": 2, + "L2CapProtocol": 1, + "UnknownProtocol": 0 + } + } Property { name: "deviceName"; type: "string"; isReadonly: true } Property { name: "deviceAddress"; type: "string" } Property { name: "serviceName"; type: "string" } Property { name: "serviceDescription"; type: "string" } Property { name: "serviceUuid"; type: "string" } - Property { name: "serviceProtocol"; type: "string" } - Property { name: "servicePort"; type: "int" } + Property { name: "serviceProtocol"; type: "Protocol" } Property { name: "registered"; type: "bool" } Signal { name: "detailsChanged" } Signal { name: "newClient" } - Method { - name: "setServiceName" - Parameter { name: "name"; type: "string" } - } - Method { - name: "setDeviceAddress" - Parameter { name: "address"; type: "string" } - } - Method { - name: "setServiceDescription" - Parameter { name: "description"; type: "string" } - } - Method { - name: "setServiceUuid" - Parameter { name: "uuid"; type: "string" } - } - Method { - name: "setServiceProtocol" - Parameter { name: "protocol"; type: "string" } - } - Method { - name: "setServicePort" - Parameter { name: "port"; type: "int" } - } - Method { - name: "setRegistered" - Parameter { name: "registered"; type: "bool" } - } Method { name: "nextClient"; type: "QDeclarativeBluetoothSocket*" } Method { name: "assignNextClient" -- cgit v1.2.3