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 <QtCore/QUrl> |
15 | #ifndef KDE_USE_FINAL |
16 | Q_DECLARE_METATYPE(QList<QByteArray>) |
17 | #endif |
18 | /* |
19 | * Implementation of interface class OrgFreedesktopAvahiServerInterface |
20 | */ |
21 | |
22 | OrgFreedesktopAvahiServerInterface::OrgFreedesktopAvahiServerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) |
23 | : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) |
24 | { |
25 | } |
26 | |
27 | OrgFreedesktopAvahiServerInterface::~OrgFreedesktopAvahiServerInterface() |
28 | { |
29 | } |
30 | |
31 | namespace DNSSD { |
32 | |
33 | |
34 | void registerTypes() |
35 | { |
36 | static bool registered=false; |
37 | if (!registered) { |
38 | qDBusRegisterMetaType<QList<QByteArray> >(); |
39 | registered=true; |
40 | } |
41 | } |
42 | |
43 | QString domainToDNS(const QString &domain) |
44 | { |
45 | if (domainIsLocal(domain)) return domain; |
46 | else return QUrl::toAce(domain); |
47 | } |
48 | |
49 | QString DNSToDomain(const QString& domain) |
50 | { |
51 | if (domainIsLocal(domain)) return domain; |
52 | else return QUrl::fromAce(domain.toLatin1()); |
53 | } |
54 | } |
55 | |
56 | #include "avahi_server_interface.moc" |
57 |