33 #include <tqdbusproxy.h>
34 #include <tqdbusmessage.h>
35 #include <tqdbusobjectpath.h>
36 #include <tqdbusdatamap.h>
37 #include <tqdbusdata.h>
39 #include <tqstringlist.h>
42 #include "../libtdebluez/btuuids.h"
48 org::freedesktop::DBus::ObjectManagerProxy(service, path, parent, name)
50 kdDebug() << k_funcinfo << endl;
57 kdDebug() << k_funcinfo << endl;
69 kdDebug() << k_funcinfo << endl;
84 kdDebug() << k_funcinfo << endl;
95 kdDebug() << k_funcinfo << endl;
107 kdDebug() << k_funcinfo << endl;
128 kdDebug() << k_funcinfo << endl;
132 kdError() <<
"Failed to open connection to system message bus: " <<
dBusConn.lastError().message() << endl;
133 TQTimer::singleShot(4000,
this, TQ_SLOT(
reconnect()));
139 TQT_DBusError dbuserror;
142 tqDebug(i18n(
"GetManagedObjects(objects, dbuserror) failed: %1").arg(dbuserror.message()));
147 for (it; it != objects.end(); ++it)
153 tqWarning(i18n(
"Failed to convert dbus data to string map: %1").arg(it.key()));
170 kdDebug() << k_funcinfo << endl;
180 kdDebug() << k_funcinfo << endl;
186 kdDebug() << k_funcinfo << endl;
189 for (it1; it1 != interfaces.end(); it1++)
191 TQString
interface = it1.key();
192 if (interface ==
"org.bluez.obex.AgentManager1")
201 tqDebug(i18n(
"org.bluez.obex.AgentManager1 initialization failed"));
204 else if (interface ==
"org.bluez.obex.Client1")
213 tqDebug(i18n(
"org.bluez.obex.Client1 initialization failed"));
216 else if (interface ==
"org.bluez.obex.Session1")
225 tqDebug(i18n(
"org.bluez.obex.Session1 initialization failed"));
228 else if (interface ==
"org.bluez.obex.FileTransfer1")
237 tqDebug(i18n(
"org.bluez.obex.FileTransfer1 initialization failed"));
240 else if (interface ==
"org.freedesktop.DBus.Introspectable")
246 tqWarning(i18n(
"Interface not implemented: %1").arg(interface));
253 kdDebug() << k_funcinfo << endl;
255 for (TQValueListConstIterator<TQString> it = interfaces.begin();
256 it != interfaces.end(); ++it)
258 if ((*it) ==
"org.bluez.obex.AgentManager1")
262 else if ((*it) ==
"org.bluez.obex.Client1")
266 else if ((*it) ==
"org.bluez.obex.Session1")
270 else if ((*it) ==
"org.bluez.obex.FileTransfer1")
276 tqWarning(i18n(
"Interface not implemented: %1").arg((*it)));
284 #include "obexobjectmanagerImpl.moc"