tdebluez
networkserver1Proxy.cpp
Go to the documentation of this file.
1// File autogenerated
2
3// declaration include
5
6// TQt includes
7#include <tqstring.h>
8
9// TQt D-Bus includes
10#include <tqdbuserror.h>
11#include <tqdbusmessage.h>
12#include <tqdbusproxy.h>
13
14
15namespace org
16{
17namespace bluez
18{
19
21 : TQObject(parent, name),
22 m_baseProxy(new TQT_DBusProxy())
23{
24 m_baseProxy->setInterface("org.bluez.NetworkServer1");
25 m_baseProxy->setPath(path);
26 m_baseProxy->setService(service);
27
28}
29
34
36{
37 m_baseProxy->setConnection(connection);
38}
39
41{
43
44 parameters << TQT_DBusData::fromString(uuid);
45 parameters << TQT_DBusData::fromString(bridge);
46
47 TQT_DBusMessage reply = m_baseProxy->sendWithReply("Register", parameters, &error);
48
49 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
50 return true;
51}
52
54{
56
57 parameters << TQT_DBusData::fromString(uuid);
58
59 TQT_DBusMessage reply = m_baseProxy->sendWithReply("Unregister", parameters, &error);
60
61 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
62 return true;
63}
64
65}; // namespace bluez
66
67}; // namespace org
68
69#include "networkserver1Proxy.moc"
70
71// End of File
72
virtual bool Unregister(const TQString &uuid, TQT_DBusError &error)
NetworkServer1Proxy(const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0)
virtual bool Register(const TQString &uuid, const TQString &bridge, TQT_DBusError &error)
void setConnection(const TQT_DBusConnection &connection)