KDNSSD

avahi_server_interface.cpp
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  * This file may have been hand-edited. Look for HAND-EDIT comments
9  * before re-generating it.
10  */
11 
12 #include "avahi_server_interface.h"
13 #include "servicebase.h"
14 #include <QUrl>
15 #include <QDBusMetaType>
16 /*
17  * Implementation of interface class OrgFreedesktopAvahiServerInterface
18  */
19 
20 OrgFreedesktopAvahiServerInterface::OrgFreedesktopAvahiServerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
21  : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
22 {
23 }
24 
25 OrgFreedesktopAvahiServerInterface::~OrgFreedesktopAvahiServerInterface()
26 {
27 }
28 
29 namespace KDNSSD
30 {
31 
32 void registerTypes()
33 {
34  static bool registered = false;
35  if (!registered) {
36  qDBusRegisterMetaType<QList<QByteArray> >();
37  registered = true;
38  }
39 }
40 
41 QString domainToDNS(const QString &domain)
42 {
43  if (domainIsLocal(domain)) {
44  return domain;
45  } else {
46  return QUrl::toAce(domain);
47  }
48 }
49 
50 QString DNSToDomain(const QString &domain)
51 {
52  if (domainIsLocal(domain)) {
53  return domain;
54  } else {
55  return QUrl::fromAce(domain.toLatin1());
56  }
57 }
58 }
59 
60 #include "moc_avahi_server_interface.cpp"
QString fromAce(const QByteArray &domain)
QByteArray toAce(const QString &domain)
QByteArray toLatin1() const const
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.