KDNSSD

avahi_server_interface.h
1 /*
2  * This file was generated by dbusxml2cpp version 0.6
3  * Command line was: dbusxml2cpp -m -p avahi_server_interface /home/qba/src/kdelibs/dnssd/org.freedesktop.Avahi.Server.xml
4  *
5  * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
6  *
7  * This is an auto-generated file.
8  * Do not edit! All changes made to it will be lost.
9  */
10 
11 #ifndef AVAHI_SERVER_INTERFACE_H_1175535514
12 #define AVAHI_SERVER_INTERFACE_H_1175535514
13 
14 #include <QObject>
15 #include <QByteRef>
16 #include <QList>
17 #include <QMap>
18 #include <QString>
19 #include <QStringList>
20 #include <QVariant>
21 #include <QDBusConnection>
22 #include <QDBusReply>
23 #include <QDBusAbstractInterface>
24 
25 // wait 100ms after last service
26 #define TIMEOUT_LAST_SERVICE 100
27 // and at least 700ms for first WAN answer
28 #define TIMEOUT_START_WAN 700
29 
30 /*
31  * Proxy class for interface org.freedesktop.Avahi.Server
32  */
33 class OrgFreedesktopAvahiServerInterface: public QDBusAbstractInterface
34 {
35  Q_OBJECT
36 public:
37  static inline const char *staticInterfaceName()
38  {
39  return "org.freedesktop.Avahi.Server";
40  }
41 
42 public:
43  OrgFreedesktopAvahiServerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
44 
45  ~OrgFreedesktopAvahiServerInterface();
46 
47 public Q_SLOTS: // METHODS
48  inline QDBusReply<QDBusObjectPath> AddressResolverNew(int interface, int protocol, const QString &address, uint flags)
49  {
50  QList<QVariant> argumentList;
51  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags);
52  return callWithArgumentList(QDBus::Block, QLatin1String("AddressResolverNew"), argumentList);
53  }
54 
55  inline QDBusReply<QDBusObjectPath> DomainBrowserNew(int interface, int protocol, const QString &domain, int btype, uint flags)
56  {
57  QList<QVariant> argumentList;
58  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(btype) << QVariant::fromValue(flags);
59  return callWithArgumentList(QDBus::Block, QLatin1String("DomainBrowserNew"), argumentList);
60  }
61 
62  inline QDBusReply<QDBusObjectPath> EntryGroupNew()
63  {
64  QList<QVariant> argumentList;
65  return callWithArgumentList(QDBus::Block, QLatin1String("EntryGroupNew"), argumentList);
66  }
67 
68  inline QDBusReply<uint> GetAPIVersion()
69  {
70  QList<QVariant> argumentList;
71  return callWithArgumentList(QDBus::Block, QLatin1String("GetAPIVersion"), argumentList);
72  }
73 
74  inline QDBusReply<QString> GetAlternativeHostName(const QString &name)
75  {
76  QList<QVariant> argumentList;
77  argumentList << QVariant::fromValue(name);
78  return callWithArgumentList(QDBus::Block, QLatin1String("GetAlternativeHostName"), argumentList);
79  }
80 
81  inline QDBusReply<QString> GetAlternativeServiceName(const QString &name)
82  {
83  QList<QVariant> argumentList;
84  argumentList << QVariant::fromValue(name);
85  return callWithArgumentList(QDBus::Block, QLatin1String("GetAlternativeServiceName"), argumentList);
86  }
87 
88  inline QDBusReply<QString> GetDomainName()
89  {
90  QList<QVariant> argumentList;
91  return callWithArgumentList(QDBus::Block, QLatin1String("GetDomainName"), argumentList);
92  }
93 
94  inline QDBusReply<QString> GetHostName()
95  {
96  QList<QVariant> argumentList;
97  return callWithArgumentList(QDBus::Block, QLatin1String("GetHostName"), argumentList);
98  }
99 
100  inline QDBusReply<QString> GetHostNameFqdn()
101  {
102  QList<QVariant> argumentList;
103  return callWithArgumentList(QDBus::Block, QLatin1String("GetHostNameFqdn"), argumentList);
104  }
105 
106  inline QDBusReply<uint> GetLocalServiceCookie()
107  {
108  QList<QVariant> argumentList;
109  return callWithArgumentList(QDBus::Block, QLatin1String("GetLocalServiceCookie"), argumentList);
110  }
111 
112  inline QDBusReply<int> GetNetworkInterfaceIndexByName(const QString &name)
113  {
114  QList<QVariant> argumentList;
115  argumentList << QVariant::fromValue(name);
116  return callWithArgumentList(QDBus::Block, QLatin1String("GetNetworkInterfaceIndexByName"), argumentList);
117  }
118 
119  inline QDBusReply<QString> GetNetworkInterfaceNameByIndex(int index)
120  {
121  QList<QVariant> argumentList;
122  argumentList << QVariant::fromValue(index);
123  return callWithArgumentList(QDBus::Block, QLatin1String("GetNetworkInterfaceNameByIndex"), argumentList);
124  }
125 
126  inline QDBusReply<int> GetState()
127  {
128  QList<QVariant> argumentList;
129  return callWithArgumentList(QDBus::Block, QLatin1String("GetState"), argumentList);
130  }
131 
132  inline QDBusReply<QString> GetVersionString()
133  {
134  QList<QVariant> argumentList;
135  return callWithArgumentList(QDBus::Block, QLatin1String("GetVersionString"), argumentList);
136  }
137 
138  inline QDBusReply<QDBusObjectPath> HostNameResolverNew(int interface, int protocol, const QString &name, int aprotocol, uint flags)
139  {
140  QList<QVariant> argumentList;
141  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
142  return callWithArgumentList(QDBus::Block, QLatin1String("HostNameResolverNew"), argumentList);
143  }
144 
145  inline QDBusReply<bool> IsNSSSupportAvailable()
146  {
147  QList<QVariant> argumentList;
148  return callWithArgumentList(QDBus::Block, QLatin1String("IsNSSSupportAvailable"), argumentList);
149  }
150 
151  inline QDBusReply<QDBusObjectPath> RecordBrowserNew(int interface, int protocol, const QString &name, ushort clazz, ushort type, uint flags)
152  {
153  QList<QVariant> argumentList;
154  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(clazz) << QVariant::fromValue(type) << QVariant::fromValue(flags);
155  return callWithArgumentList(QDBus::Block, QLatin1String("RecordBrowserNew"), argumentList);
156  }
157 
158  inline QDBusReply<int> ResolveAddress(int interface, int protocol, const QString &address, uint flags, int &protocol_, int &aprotocol, QString &address_, QString &name, uint &flags_)
159  {
160  QList<QVariant> argumentList;
161  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags);
162  QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveAddress"), argumentList);
163  if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) {
164  protocol_ = qdbus_cast<int>(reply.arguments().at(1));
165  aprotocol = qdbus_cast<int>(reply.arguments().at(2));
166  address_ = qdbus_cast<QString>(reply.arguments().at(3));
167  name = qdbus_cast<QString>(reply.arguments().at(4));
168  flags_ = qdbus_cast<uint>(reply.arguments().at(5));
169  }
170  return reply;
171  }
172 
173  inline QDBusReply<int> ResolveHostName(int interface, int protocol, const QString &name, int aprotocol, uint flags, int &protocol_, QString &name_, int &aprotocol_, QString &address, uint &flags_)
174  {
175  QList<QVariant> argumentList;
176  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
177  QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveHostName"), argumentList);
178  if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) {
179  protocol_ = qdbus_cast<int>(reply.arguments().at(1));
180  name_ = qdbus_cast<QString>(reply.arguments().at(2));
181  aprotocol_ = qdbus_cast<int>(reply.arguments().at(3));
182  address = qdbus_cast<QString>(reply.arguments().at(4));
183  flags_ = qdbus_cast<uint>(reply.arguments().at(5));
184  }
185  return reply;
186  }
187 
188  inline QDBusReply<int> ResolveService(int interface, int protocol, const QString &name, const QString &type, const QString &domain, int aprotocol, uint flags, int &protocol_, QString &name_, QString &type_, QString &domain_, QString &host, int &aprotocol_, QString &address, ushort &port, QList<QByteArray> &txt, uint &flags_)
189  {
190  QList<QVariant> argumentList;
191  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
192  QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveService"), argumentList);
193  if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 11) {
194  protocol_ = qdbus_cast<int>(reply.arguments().at(1));
195  name_ = qdbus_cast<QString>(reply.arguments().at(2));
196  type_ = qdbus_cast<QString>(reply.arguments().at(3));
197  domain_ = qdbus_cast<QString>(reply.arguments().at(4));
198  host = qdbus_cast<QString>(reply.arguments().at(5));
199  aprotocol_ = qdbus_cast<int>(reply.arguments().at(6));
200  address = qdbus_cast<QString>(reply.arguments().at(7));
201  port = qdbus_cast<ushort>(reply.arguments().at(8));
202  txt = qdbus_cast<QList<QByteArray> >(reply.arguments().at(9));
203  flags_ = qdbus_cast<uint>(reply.arguments().at(10));
204  }
205  return reply;
206  }
207 
208  inline QDBusReply<QDBusObjectPath> ServiceBrowserNew(int interface, int protocol, const QString &type, const QString &domain, uint flags)
209  {
210  QList<QVariant> argumentList;
211  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(flags);
212  return callWithArgumentList(QDBus::Block, QLatin1String("ServiceBrowserNew"), argumentList);
213  }
214 
215  inline QDBusReply<QDBusObjectPath> ServiceResolverNew(int interface, int protocol, const QString &name, const QString &type, const QString &domain, int aprotocol, uint flags)
216  {
217  QList<QVariant> argumentList;
218  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
219  return callWithArgumentList(QDBus::Block, QLatin1String("ServiceResolverNew"), argumentList);
220  }
221 
222  inline QDBusReply<QDBusObjectPath> ServiceTypeBrowserNew(int interface, int protocol, const QString &domain, uint flags)
223  {
224  QList<QVariant> argumentList;
225  argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(flags);
226  return callWithArgumentList(QDBus::Block, QLatin1String("ServiceTypeBrowserNew"), argumentList);
227  }
228 
229  inline QDBusReply<void> SetHostName(const QString &name)
230  {
231  QList<QVariant> argumentList;
232  argumentList << QVariant::fromValue(name);
233  return callWithArgumentList(QDBus::Block, QLatin1String("SetHostName"), argumentList);
234  }
235 
236 Q_SIGNALS: // SIGNALS
237  void StateChanged(int state, const QString &error);
238 };
239 
240 namespace KDNSSD
241 {
242 void registerTypes();
243 QString domainToDNS(const QString &domain);
244 QString DNSToDomain(const QString &domain);
245 }
246 
247 namespace org
248 {
249 namespace freedesktop
250 {
251 namespace Avahi
252 {
253 typedef ::OrgFreedesktopAvahiServerInterface Server;
254 }
255 }
256 }
257 #endif
QList< QVariant > arguments() const const
QDBusMessage::MessageType type() const const
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
QVariant fromValue(const T &value)
Q_SLOTSQ_SLOTS
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 25 2020 22:40:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.