29 interfaceElement.setAttribute(
"name",
"org.bluez.Device1");
31 TQDomDocument document = interfaceElement.ownerDocument();
32 TQDomElement methodElement = document.createElement(
"method");
33 TQDomElement asyncAnnotationElement = document.createElement(
"annotation");
34 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
35 asyncAnnotationElement.setAttribute(
"value",
"true");
36 methodElement.appendChild(asyncAnnotationElement);
37 methodElement.setAttribute(
"name",
"Disconnect");
39 interfaceElement.appendChild(methodElement);
41 methodElement = document.createElement(
"method");
42 asyncAnnotationElement = document.createElement(
"annotation");
43 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
44 asyncAnnotationElement.setAttribute(
"value",
"true");
45 methodElement.appendChild(asyncAnnotationElement);
46 methodElement.setAttribute(
"name",
"Connect");
48 interfaceElement.appendChild(methodElement);
50 methodElement = document.createElement(
"method");
51 asyncAnnotationElement = document.createElement(
"annotation");
52 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
53 asyncAnnotationElement.setAttribute(
"value",
"true");
54 methodElement.appendChild(asyncAnnotationElement);
55 methodElement.setAttribute(
"name",
"ConnectProfile");
57 TQDomElement argumentElement = document.createElement(
"arg");
58 argumentElement.setAttribute(
"name",
"UUID");
59 argumentElement.setAttribute(
"type",
"s");
60 argumentElement.setAttribute(
"direction",
"in");
61 methodElement.appendChild(argumentElement);
63 interfaceElement.appendChild(methodElement);
65 methodElement = document.createElement(
"method");
66 asyncAnnotationElement = document.createElement(
"annotation");
67 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
68 asyncAnnotationElement.setAttribute(
"value",
"true");
69 methodElement.appendChild(asyncAnnotationElement);
70 methodElement.setAttribute(
"name",
"DisconnectProfile");
72 argumentElement = document.createElement(
"arg");
73 argumentElement.setAttribute(
"name",
"UUID");
74 argumentElement.setAttribute(
"type",
"s");
75 argumentElement.setAttribute(
"direction",
"in");
76 methodElement.appendChild(argumentElement);
78 interfaceElement.appendChild(methodElement);
80 methodElement = document.createElement(
"method");
81 asyncAnnotationElement = document.createElement(
"annotation");
82 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
83 asyncAnnotationElement.setAttribute(
"value",
"true");
84 methodElement.appendChild(asyncAnnotationElement);
85 methodElement.setAttribute(
"name",
"Pair");
87 interfaceElement.appendChild(methodElement);
89 methodElement = document.createElement(
"method");
90 asyncAnnotationElement = document.createElement(
"annotation");
91 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
92 asyncAnnotationElement.setAttribute(
"value",
"true");
93 methodElement.appendChild(asyncAnnotationElement);
94 methodElement.setAttribute(
"name",
"CancelPairing");
96 interfaceElement.appendChild(methodElement);