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"
132 kdError() <<
"Failed to open connection to system message bus: " <<
dBusConn.lastError().message() <<
endl;
189 for (
it1;
it1 != interfaces.end();
it1++)
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")
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")
284#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)