25 interfaceElement.setAttribute(
"name",
"org.bluez.obex.Agent1");
27 TQDomDocument document = interfaceElement.ownerDocument();
28 TQDomElement methodElement = document.createElement(
"method");
29 TQDomElement asyncAnnotationElement = document.createElement(
"annotation");
30 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
31 asyncAnnotationElement.setAttribute(
"value",
"true");
32 methodElement.appendChild(asyncAnnotationElement);
33 methodElement.setAttribute(
"name",
"Release");
35 interfaceElement.appendChild(methodElement);
37 methodElement = document.createElement(
"method");
38 asyncAnnotationElement = document.createElement(
"annotation");
39 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
40 asyncAnnotationElement.setAttribute(
"value",
"true");
41 methodElement.appendChild(asyncAnnotationElement);
42 methodElement.setAttribute(
"name",
"AuthorizePush");
44 TQDomElement argumentElement = document.createElement(
"arg");
45 argumentElement.setAttribute(
"name",
"transfer");
46 argumentElement.setAttribute(
"type",
"o");
47 argumentElement.setAttribute(
"direction",
"in");
48 methodElement.appendChild(argumentElement);
50 argumentElement = document.createElement(
"arg");
51 argumentElement.setAttribute(
"name",
"filepath");
52 argumentElement.setAttribute(
"type",
"s");
53 argumentElement.setAttribute(
"direction",
"out");
54 methodElement.appendChild(argumentElement);
56 interfaceElement.appendChild(methodElement);
58 methodElement = document.createElement(
"method");
59 asyncAnnotationElement = document.createElement(
"annotation");
60 asyncAnnotationElement.setAttribute(
"name",
"org.freedesktop.DBus.GLib.Async");
61 asyncAnnotationElement.setAttribute(
"value",
"true");
62 methodElement.appendChild(asyncAnnotationElement);
63 methodElement.setAttribute(
"name",
"Cancel");
65 interfaceElement.appendChild(methodElement);