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"
154 kdError() <<
"Failed to open connection to system message bus: " <<
dBusConn.lastError().message() <<
endl;
211 for (
it1;
it1 != interfaces.end();
it1++)
214 if (interface ==
"org.bluez.obex.AgentManager1")
224 tqDebug(
i18n(
"org.bluez.obex.AgentManager1 initialization failed"));
228 else if (interface ==
"org.bluez.obex.Client1")
238 tqDebug(
i18n(
"org.bluez.obex.Client1 initialization failed"));
242 else if (interface ==
"org.bluez.obex.Session1")
252 tqDebug(
i18n(
"org.bluez.obex.Session1 initialization failed"));
256 else if (interface ==
"org.bluez.obex.FileTransfer1")
266 tqDebug(
i18n(
"org.bluez.obex.FileTransfer1 initialization failed"));
270 else if (interface ==
"org.freedesktop.DBus.Introspectable")
286 it != interfaces.end(); ++
it)
288 if ((*
it) ==
"org.bluez.obex.AgentManager1")
292 else if ((*
it) ==
"org.bluez.obex.Client1")
296 else if ((*
it) ==
"org.bluez.obex.Session1")
300 else if ((*
it) ==
"org.bluez.obex.FileTransfer1")
314#include "obexobjectmanagerImpl.moc"
ObexObjectManagerImpl(const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0)
org::bluez::obex::AgentManager1Proxy * mAgentManager
org::bluez::obex::Client1Proxy * mClient
org::bluez::obex::AgentManager1Proxy * getAgentManager()
bool isConnectedToDBUS()
to get information if TDEBluez is connected to D-Bus
org::bluez::obex::Client1Proxy * getClient()
void slotInterfacesRemoved(const TQT_DBusObjectPath &object, const TQStringList &interfaces)
bool close()
to close the connection to D-Bus
TQT_DBusConnection dBusConn
TQt connection to D-Bus.
virtual ~ObexObjectManagerImpl()
void slotInterfacesAdded(const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces)
TQT_DBusConnection * getConnection()
pointer to the D-Bus connection
org::bluez::obex::FileTransfer1Proxy * mFileTransfer
org::bluez::obex::Session1Proxy * mSession
void setConnection(const TQT_DBusConnection &connection)
void setConnection(const TQT_DBusConnection &connection)
void setConnection(const TQT_DBusConnection &connection)
void setConnection(const TQT_DBusConnection &connection)
virtual bool GetManagedObjects(TQT_DBusDataMap< TQT_DBusObjectPath > &objects, TQT_DBusError &error)
void InterfacesAdded(const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces)
void setConnection(const TQT_DBusConnection &connection)
void InterfacesRemoved(const TQT_DBusObjectPath &object, const TQStringList &interfaces)