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
20NetworkServer1Proxy::NetworkServer1Proxy(const TQString& service, const TQString& path, TQObject* parent, const char* name)
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
31{
32 delete m_baseProxy;
33}
34
35void NetworkServer1Proxy::setConnection(const TQT_DBusConnection& connection)
36{
37 m_baseProxy->setConnection(connection);
38}
39
40bool NetworkServer1Proxy::Register(const TQString& uuid, const TQString& bridge, TQT_DBusError& error)
41{
42 TQValueList<TQT_DBusData> parameters;
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
53bool NetworkServer1Proxy::Unregister(const TQString& uuid, TQT_DBusError& error)
54{
55 TQValueList<TQT_DBusData> parameters;
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)