/* * This file was generated by dbusxml2cpp version 0.6 * Command line was: dbusxml2cpp -m -p avahi_server_interface /home/qba/src/kdelibs/dnssd/org.freedesktop.Avahi.Server.xml * * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved. * * This is an auto-generated file. * Do not edit! All changes made to it will be lost. */ #ifndef AVAHI_SERVER_INTERFACE_H_1175535514 #define AVAHI_SERVER_INTERFACE_H_1175535514 #include #include #include #include #include #include #include #include #include // wait 100ms after last service #define TIMEOUT_LAST_SERVICE 100 // and at least 700ms for first WAN answer #define TIMEOUT_START_WAN 700 /* * Proxy class for interface org.freedesktop.Avahi.Server */ class OrgFreedesktopAvahiServerInterface : public QDBusAbstractInterface { Q_OBJECT public: static inline const char *staticInterfaceName() { return "org.freedesktop.Avahi.Server"; } public: OrgFreedesktopAvahiServerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); ~OrgFreedesktopAvahiServerInterface() override; public Q_SLOTS: // METHODS inline QDBusReply AddressResolverNew(int interface, int protocol, const QString &address, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("AddressResolverNew"), argumentList); } inline QDBusReply DomainBrowserNew(int interface, int protocol, const QString &domain, int btype, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(btype) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("DomainBrowserNew"), argumentList); } inline QDBusReply EntryGroupNew() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("EntryGroupNew"), argumentList); } inline QDBusReply GetAPIVersion() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetAPIVersion"), argumentList); } inline QDBusReply GetAlternativeHostName(const QString &name) { QList argumentList; argumentList << QVariant::fromValue(name); return callWithArgumentList(QDBus::Block, QLatin1String("GetAlternativeHostName"), argumentList); } inline QDBusReply GetAlternativeServiceName(const QString &name) { QList argumentList; argumentList << QVariant::fromValue(name); return callWithArgumentList(QDBus::Block, QLatin1String("GetAlternativeServiceName"), argumentList); } inline QDBusReply GetDomainName() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetDomainName"), argumentList); } inline QDBusReply GetHostName() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetHostName"), argumentList); } inline QDBusReply GetHostNameFqdn() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetHostNameFqdn"), argumentList); } inline QDBusReply GetLocalServiceCookie() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetLocalServiceCookie"), argumentList); } inline QDBusReply GetNetworkInterfaceIndexByName(const QString &name) { QList argumentList; argumentList << QVariant::fromValue(name); return callWithArgumentList(QDBus::Block, QLatin1String("GetNetworkInterfaceIndexByName"), argumentList); } inline QDBusReply GetNetworkInterfaceNameByIndex(int index) { QList argumentList; argumentList << QVariant::fromValue(index); return callWithArgumentList(QDBus::Block, QLatin1String("GetNetworkInterfaceNameByIndex"), argumentList); } inline QDBusReply GetState() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetState"), argumentList); } inline QDBusReply GetVersionString() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("GetVersionString"), argumentList); } inline QDBusReply HostNameResolverNew(int interface, int protocol, const QString &name, int aprotocol, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("HostNameResolverNew"), argumentList); } inline QDBusReply IsNSSSupportAvailable() { QList argumentList; return callWithArgumentList(QDBus::Block, QLatin1String("IsNSSSupportAvailable"), argumentList); } inline QDBusReply RecordBrowserNew(int interface, int protocol, const QString &name, ushort clazz, ushort type, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(clazz) << QVariant::fromValue(type) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("RecordBrowserNew"), argumentList); } inline QDBusReply ResolveAddress(int interface, int protocol, const QString &address, uint flags, int &protocol_, int &aprotocol, QString &address_, QString &name, uint &flags_) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(address) << QVariant::fromValue(flags); QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveAddress"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { protocol_ = qdbus_cast(reply.arguments().at(1)); aprotocol = qdbus_cast(reply.arguments().at(2)); address_ = qdbus_cast(reply.arguments().at(3)); name = qdbus_cast(reply.arguments().at(4)); flags_ = qdbus_cast(reply.arguments().at(5)); } return reply; } inline QDBusReply ResolveHostName(int interface, int protocol, const QString &name, int aprotocol, uint flags, int &protocol_, QString &name_, int &aprotocol_, QString &address, uint &flags_) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags); QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveHostName"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 6) { protocol_ = qdbus_cast(reply.arguments().at(1)); name_ = qdbus_cast(reply.arguments().at(2)); aprotocol_ = qdbus_cast(reply.arguments().at(3)); address = qdbus_cast(reply.arguments().at(4)); flags_ = qdbus_cast(reply.arguments().at(5)); } return reply; } inline QDBusReply 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 &txt, uint &flags_) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags); QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("ResolveService"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 11) { protocol_ = qdbus_cast(reply.arguments().at(1)); name_ = qdbus_cast(reply.arguments().at(2)); type_ = qdbus_cast(reply.arguments().at(3)); domain_ = qdbus_cast(reply.arguments().at(4)); host = qdbus_cast(reply.arguments().at(5)); aprotocol_ = qdbus_cast(reply.arguments().at(6)); address = qdbus_cast(reply.arguments().at(7)); port = qdbus_cast(reply.arguments().at(8)); txt = qdbus_cast>(reply.arguments().at(9)); flags_ = qdbus_cast(reply.arguments().at(10)); } return reply; } inline QDBusReply ServiceBrowserNew(int interface, int protocol, const QString &type, const QString &domain, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("ServiceBrowserNew"), argumentList); } inline QDBusReply ServiceResolverNew(int interface, int protocol, const QString &name, const QString &type, const QString &domain, int aprotocol, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(name) << QVariant::fromValue(type) << QVariant::fromValue(domain) << QVariant::fromValue(aprotocol) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("ServiceResolverNew"), argumentList); } inline QDBusReply ServiceTypeBrowserNew(int interface, int protocol, const QString &domain, uint flags) { QList argumentList; argumentList << QVariant::fromValue(interface) << QVariant::fromValue(protocol) << QVariant::fromValue(domain) << QVariant::fromValue(flags); return callWithArgumentList(QDBus::Block, QLatin1String("ServiceTypeBrowserNew"), argumentList); } inline QDBusReply SetHostName(const QString &name) { QList argumentList; argumentList << QVariant::fromValue(name); return callWithArgumentList(QDBus::Block, QLatin1String("SetHostName"), argumentList); } Q_SIGNALS: // SIGNALS void StateChanged(int state, const QString &error); }; namespace KDNSSD { void registerTypes(); QString domainToDNS(const QString &domain); QString DNSToDomain(const QString &domain); } namespace org { namespace freedesktop { namespace Avahi { typedef ::OrgFreedesktopAvahiServerInterface Server; } } } #endif