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 <QDBusAbstractInterface>
15#include <QDBusConnection>
16#include <QDBusReply>
17#include <QList>
18#include <QMap>
19#include <QObject>
20#include <QString>
21#include <QStringList>
22#include <QVariant>
23
24// wait 100ms after last service
25#define TIMEOUT_LAST_SERVICE 100
26// and at least 700ms for first WAN answer
27#define TIMEOUT_START_WAN 700
28
29/*
30 * Proxy class for interface org.freedesktop.Avahi.Server
31 */
32class OrgFreedesktopAvahiServerInterface : public QDBusAbstractInterface
33{
35public:
36 static inline const char *staticInterfaceName()
37 {
38 return "org.freedesktop.Avahi.Server";
39 }
40
41public:
42 OrgFreedesktopAvahiServerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
43
44 ~OrgFreedesktopAvahiServerInterface() override;
45
46public Q_SLOTS: // METHODS
47 inline QDBusReply<QDBusObjectPath> AddressResolverNew(int interface, int protocol, const QString &address, uint flags)
48 {
49 QList<QVariant> argumentList;
50 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags);
51 return callWithArgumentList(QDBus::Block, QLatin1String("AddressResolverNew"), argumentList);
52 }
53
54 inline QDBusReply<QDBusObjectPath> DomainBrowserNew(int interface, int protocol, const QString &domain, int btype, uint flags)
55 {
56 QList<QVariant> argumentList;
57 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(btype)
58 << 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)
142 << QVariant::fromValue(flags);
143 return callWithArgumentList(QDBus::Block, QLatin1String("HostNameResolverNew"), argumentList);
144 }
145
146 inline QDBusReply<bool> IsNSSSupportAvailable()
147 {
148 QList<QVariant> argumentList;
149 return callWithArgumentList(QDBus::Block, QLatin1String("IsNSSSupportAvailable"), argumentList);
150 }
151
152 inline QDBusReply<QDBusObjectPath> RecordBrowserNew(int interface, int protocol, const QString &name, ushort clazz, ushort type, uint flags)
153 {
154 QList<QVariant> argumentList;
155 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(clazz)
156 << QVariant::fromValue(type) << QVariant::fromValue(flags);
157 return callWithArgumentList(QDBus::Block, QLatin1String("RecordBrowserNew"), argumentList);
158 }
159
160 inline QDBusReply<int> ResolveAddress(int interface,
161 int protocol,
162 const QString &address,
163 uint flags,
164 int &protocol_,
165 int &aprotocol,
166 QString &address_,
167 QString &name,
168 uint &flags_)
169 {
170 QList<QVariant> argumentList;
171 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags);
172 QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveAddress"), argumentList);
173 if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) {
174 protocol_ = qdbus_cast<int>(reply.arguments().at(1));
175 aprotocol = qdbus_cast<int>(reply.arguments().at(2));
176 address_ = qdbus_cast<QString>(reply.arguments().at(3));
177 name = qdbus_cast<QString>(reply.arguments().at(4));
178 flags_ = qdbus_cast<uint>(reply.arguments().at(5));
179 }
180 return reply;
181 }
182
183 inline QDBusReply<int> ResolveHostName(int interface,
184 int protocol,
185 const QString &name,
186 int aprotocol,
187 uint flags,
188 int &protocol_,
189 QString &name_,
190 int &aprotocol_,
191 QString &address,
192 uint &flags_)
193 {
194 QList<QVariant> argumentList;
195 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(aprotocol)
196 << QVariant::fromValue(flags);
197 QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveHostName"), argumentList);
198 if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) {
199 protocol_ = qdbus_cast<int>(reply.arguments().at(1));
200 name_ = qdbus_cast<QString>(reply.arguments().at(2));
201 aprotocol_ = qdbus_cast<int>(reply.arguments().at(3));
202 address = qdbus_cast<QString>(reply.arguments().at(4));
203 flags_ = qdbus_cast<uint>(reply.arguments().at(5));
204 }
205 return reply;
206 }
207
208 inline QDBusReply<int> ResolveService(int interface,
209 int protocol,
210 const QString &name,
211 const QString &type,
212 const QString &domain,
213 int aprotocol,
214 uint flags,
215 int &protocol_,
216 QString &name_,
217 QString &type_,
218 QString &domain_,
219 QString &host,
220 int &aprotocol_,
221 QString &address,
222 ushort &port,
224 uint &flags_)
225 {
226 QList<QVariant> argumentList;
227 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type)
228 << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
229 QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveService"), argumentList);
230 if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 11) {
231 protocol_ = qdbus_cast<int>(reply.arguments().at(1));
232 name_ = qdbus_cast<QString>(reply.arguments().at(2));
233 type_ = qdbus_cast<QString>(reply.arguments().at(3));
234 domain_ = qdbus_cast<QString>(reply.arguments().at(4));
235 host = qdbus_cast<QString>(reply.arguments().at(5));
236 aprotocol_ = qdbus_cast<int>(reply.arguments().at(6));
237 address = qdbus_cast<QString>(reply.arguments().at(7));
238 port = qdbus_cast<ushort>(reply.arguments().at(8));
239 txt = qdbus_cast<QList<QByteArray>>(reply.arguments().at(9));
240 flags_ = qdbus_cast<uint>(reply.arguments().at(10));
241 }
242 return reply;
243 }
244
245 inline QDBusReply<QDBusObjectPath> ServiceBrowserNew(int interface, int protocol, const QString &type, const QString &domain, uint flags)
246 {
247 QList<QVariant> argumentList;
248 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(type) << QVariant::fromValue(domain)
249 << QVariant::fromValue(flags);
250 return callWithArgumentList(QDBus::Block, QLatin1String("ServiceBrowserNew"), argumentList);
251 }
252
254 ServiceResolverNew(int interface, int protocol, const QString &name, const QString &type, const QString &domain, int aprotocol, uint flags)
255 {
256 QList<QVariant> argumentList;
257 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type)
258 << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags);
259 return callWithArgumentList(QDBus::Block, QLatin1String("ServiceResolverNew"), argumentList);
260 }
261
262 inline QDBusReply<QDBusObjectPath> ServiceTypeBrowserNew(int interface, int protocol, const QString &domain, uint flags)
263 {
264 QList<QVariant> argumentList;
265 argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(flags);
266 return callWithArgumentList(QDBus::Block, QLatin1String("ServiceTypeBrowserNew"), argumentList);
267 }
268
269 inline QDBusReply<void> SetHostName(const QString &name)
270 {
271 QList<QVariant> argumentList;
272 argumentList << QVariant::fromValue(name);
273 return callWithArgumentList(QDBus::Block, QLatin1String("SetHostName"), argumentList);
274 }
275
276Q_SIGNALS: // SIGNALS
277 void StateChanged(int state, const QString &error);
278};
279
280namespace KDNSSD
281{
282void registerTypes();
283QString domainToDNS(const QString &domain);
284QString DNSToDomain(const QString &domain);
285}
286
287namespace org
288{
289namespace freedesktop
290{
291namespace Avahi
292{
293typedef ::OrgFreedesktopAvahiServerInterface Server;
294}
295}
296}
297#endif
PostalAddress address(const QVariant &location)
QString name(StandardAction id)
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString interface() const const
QString path() const const
QString service() const const
QList< QVariant > arguments() const const
MessageType type() const const
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.