File indexing completed on 2024-04-28 15:22:05
0001 /* 0002 * This file was generated by dbusxml2cpp version 0.6 0003 * Command line was: dbusxml2cpp -m -p avahi_server_interface /home/qba/src/kdelibs/dnssd/org.freedesktop.Avahi.Server.xml 0004 * 0005 * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved. 0006 * 0007 * This is an auto-generated file. 0008 * This file may have been hand-edited. Look for HAND-EDIT comments 0009 * before re-generating it. 0010 */ 0011 0012 #include "avahi_server_interface.h" 0013 #include "servicebase.h" 0014 #include <QDBusMetaType> 0015 #include <QUrl> 0016 /* 0017 * Implementation of interface class OrgFreedesktopAvahiServerInterface 0018 */ 0019 0020 OrgFreedesktopAvahiServerInterface::OrgFreedesktopAvahiServerInterface(const QString &service, 0021 const QString &path, 0022 const QDBusConnection &connection, 0023 QObject *parent) 0024 : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) 0025 { 0026 } 0027 0028 OrgFreedesktopAvahiServerInterface::~OrgFreedesktopAvahiServerInterface() 0029 { 0030 } 0031 0032 namespace KDNSSD 0033 { 0034 void registerTypes() 0035 { 0036 static bool registered = false; 0037 if (!registered) { 0038 qDBusRegisterMetaType<QList<QByteArray>>(); 0039 registered = true; 0040 } 0041 } 0042 0043 QString domainToDNS(const QString &domain) 0044 { 0045 if (domainIsLocal(domain)) { 0046 return domain; 0047 } else { 0048 return QUrl::toAce(domain); 0049 } 0050 } 0051 0052 QString DNSToDomain(const QString &domain) 0053 { 0054 if (domainIsLocal(domain)) { 0055 return domain; 0056 } else { 0057 return QUrl::fromAce(domain.toLatin1()); 0058 } 0059 } 0060 } 0061 0062 #include "moc_avahi_server_interface.cpp"