tdebluez
gattmanager1Proxy.cpp
Go to the documentation of this file.
1 // File autogenerated
2 
3 // declaration include
4 #include "gattmanager1Proxy.h"
5 
6 // TQt includes
7 #include <tqmap.h>
8 #include <tqstring.h>
9 
10 // TQt D-Bus includes
11 #include <tqdbusdata.h>
12 #include <tqdbusdatamap.h>
13 #include <tqdbuserror.h>
14 #include <tqdbusmessage.h>
15 #include <tqdbusobjectpath.h>
16 #include <tqdbusproxy.h>
17 #include <tqdbusvariant.h>
18 
19 
20 namespace org
21 {
22 namespace bluez
23 {
24 
25 GattManager1Proxy::GattManager1Proxy(const TQString& service, const TQString& path, TQObject* parent, const char* name)
26  : TQObject(parent, name),
27  m_baseProxy(new TQT_DBusProxy())
28 {
29  m_baseProxy->setInterface("org.bluez.GattManager1");
30  m_baseProxy->setPath(path);
31  m_baseProxy->setService(service);
32 
33 }
34 
36 {
37  delete m_baseProxy;
38 }
39 
40 void GattManager1Proxy::setConnection(const TQT_DBusConnection& connection)
41 {
42  m_baseProxy->setConnection(connection);
43 }
44 
45 bool GattManager1Proxy::RegisterApplication(const TQT_DBusObjectPath& application, const TQMap< TQString, TQT_DBusVariant >& options, TQT_DBusError& error)
46 {
47  TQValueList<TQT_DBusData> parameters;
48 
49  parameters << TQT_DBusData::fromObjectPath(application);
50  parameters << TQT_DBusData::fromStringKeyMap(TQT_DBusDataMap< TQString >(options));
51 
52  TQT_DBusMessage reply = m_baseProxy->sendWithReply("RegisterApplication", parameters, &error);
53 
54  if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
55  return true;
56 }
57 
58 bool GattManager1Proxy::UnregisterApplication(const TQT_DBusObjectPath& application, TQT_DBusError& error)
59 {
60  TQValueList<TQT_DBusData> parameters;
61 
62  parameters << TQT_DBusData::fromObjectPath(application);
63 
64  TQT_DBusMessage reply = m_baseProxy->sendWithReply("UnregisterApplication", parameters, &error);
65 
66  if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
67  return true;
68 }
69 
70 }; // namespace bluez
71 
72 }; // namespace org
73 
74 #include "gattmanager1Proxy.moc"
75 
76 // End of File
77 
GattManager1Proxy(const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0)
virtual bool UnregisterApplication(const TQT_DBusObjectPath &application, TQT_DBusError &error)
virtual bool RegisterApplication(const TQT_DBusObjectPath &application, const TQMap< TQString, TQT_DBusVariant > &options, TQT_DBusError &error)
void setConnection(const TQT_DBusConnection &connection)