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 <QDBusMetaType>
15#include <QUrl>
16/*
17 * Implementation of interface class OrgFreedesktopAvahiServerInterface
18 */
19
20OrgFreedesktopAvahiServerInterface::OrgFreedesktopAvahiServerInterface(const QString &service,
21 const QString &path,
22 const QDBusConnection &connection,
23 QObject *parent)
24 : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
25{
26}
27
28OrgFreedesktopAvahiServerInterface::~OrgFreedesktopAvahiServerInterface()
29{
30}
31
32namespace KDNSSD
33{
34void registerTypes()
35{
36 static bool registered = false;
37 if (!registered) {
38 qDBusRegisterMetaType<QList<QByteArray>>();
39 registered = true;
40 }
41}
42
43QString domainToDNS(const QString &domain)
44{
45 if (domainIsLocal(domain)) {
46 return domain;
47 } else {
48 return QUrl::toAce(domain);
49 }
50}
51
52QString DNSToDomain(const QString &domain)
53{
54 if (domainIsLocal(domain)) {
55 return domain;
56 } else {
57 return QUrl::fromAce(domain.toLatin1());
58 }
59}
60}
61
62#include "moc_avahi_server_interface.cpp"
QString path(const QString &relativePath)
QByteArray toLatin1() const const
QString fromAce(const QByteArray &domain, AceProcessingOptions options)
QByteArray toAce(const QString &domain, AceProcessingOptions options)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.