tdebluez
media1Proxy.cpp
Go to the documentation of this file.
1// File autogenerated
2
3// declaration include
4#include "media1Proxy.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
20namespace org
21{
22namespace bluez
23{
24
25Media1Proxy::Media1Proxy(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.Media1");
30 m_baseProxy->setPath(path);
31 m_baseProxy->setService(service);
32
33}
34
39
41{
42 m_baseProxy->setConnection(connection);
43}
44
46{
48
49 parameters << TQT_DBusData::fromObjectPath(endpoint);
51
52 TQT_DBusMessage reply = m_baseProxy->sendWithReply("RegisterEndpoint", parameters, &error);
53
54 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
55 return true;
56}
57
59{
61
62 parameters << TQT_DBusData::fromObjectPath(endpoint);
63
64 TQT_DBusMessage reply = m_baseProxy->sendWithReply("UnregisterEndpoint", parameters, &error);
65
66 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
67 return true;
68}
69
71{
73
74 parameters << TQT_DBusData::fromObjectPath(player);
76
77 TQT_DBusMessage reply = m_baseProxy->sendWithReply("RegisterPlayer", parameters, &error);
78
79 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
80 return true;
81}
82
84{
86
87 parameters << TQT_DBusData::fromObjectPath(player);
88
89 TQT_DBusMessage reply = m_baseProxy->sendWithReply("UnregisterPlayer", parameters, &error);
90
91 if (reply.type() != TQT_DBusMessage::ReplyMessage) return false;
92 return true;
93}
94
95}; // namespace bluez
96
97}; // namespace org
98
99#include "media1Proxy.moc"
100
101// End of File
102
virtual bool UnregisterEndpoint(const TQT_DBusObjectPath &endpoint, TQT_DBusError &error)
TQT_DBusProxy * m_baseProxy
Definition media1Proxy.h:48
virtual bool RegisterPlayer(const TQT_DBusObjectPath &player, const TQMap< TQString, TQT_DBusVariant > &properties, TQT_DBusError &error)
void setConnection(const TQT_DBusConnection &connection)
Media1Proxy(const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0)
virtual bool UnregisterPlayer(const TQT_DBusObjectPath &player, TQT_DBusError &error)
virtual bool RegisterEndpoint(const TQT_DBusObjectPath &endpoint, const TQMap< TQString, TQT_DBusVariant > &properties, TQT_DBusError &error)