9#include <tqstringlist.h>
12#include <tqdbusconnection.h>
13#include <tqdbusmessage.h>
68 if (
path.isEmpty())
return false;
86 TQT_DBusObjectBase*
interface =
m_private;
89 name =
"org.bluez.obex.AgentManager1";
94 name =
"org.bluez.obex.Client1";
99 name =
"org.bluez.obex.FileTransfer1";
104 name =
"org.bluez.obex.ObjectPush1";
109 name =
"org.bluez.obex.Session1";
114 name =
"org.bluez.obex.Transfer1";
119 name =
"org.bluez.obex.Synchronization1";
124 name =
"org.bluez.obex.PhonebookAccess1";
129 name =
"org.freedesktop.DBus.Properties";
140 m_private->childrenNodes.append(
child);
143void obexNode::unregisterObject()
145 if (m_private->objectPath.isEmpty())
return;
147 m_private->connection.unregisterObject(m_private->objectPath);
156 if (
findIt == m_private->interfaces.end())
return false;
161obexNode::Private::~Private()
167 TQT_DBusObjectBase*
interface =
it.data();
177 if (introspectionData.isEmpty()) cacheIntrospectionData();
179 data = introspectionData;
186 connection.send(
reply);
189void obexNode::Private::cacheIntrospectionData()
194 if (!objectPath.isEmpty() && objectPath.compare(
"/") != 0)
199 if (interfaces.count()>1) {
241 if (!childrenNodes.isEmpty()) {
242 for (TQStringList::Iterator
it = childrenNodes.begin();
it != childrenNodes.end(); ++
it ) {
251 introspectionData =
"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n";
252 introspectionData +=
doc.toString();
virtual void handleMethodReply(const TQT_DBusMessage &reply)
TQT_DBusConnection connection
TQString introspectionData
TQMap< TQString, TQT_DBusObjectBase * > interfaces
void cacheIntrospectionData()
virtual bool Introspect(TQString &data, TQT_DBusError &error)
TQStringList childrenNodes
bool registerObject(const TQT_DBusConnection &connection, const TQString &path)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)
static void buildIntrospectionData(TQDomElement &interfaceElement)