KDNSSD
avahi-publicservice.cpp
26PublicService::PublicService(const QString &name, const QString &type, unsigned int port, const QString &domain, const QStringList &subtypes)
52void PublicServicePrivate::gotGlobalStateChanged(int state, const QString &error, QDBusMessage msg)
183 m_group = new org::freedesktop::Avahi::EntryGroup("org.freedesktop.Avahi", m_dbusObjectPath, QDBusConnection::systemBus());
203 QDBusReply<void> ret = m_group->AddService(-1, -1, 0, m_serviceName, m_type, domainToDNS(m_domain), m_hostName, m_port, txt);
261 d->m_server = new org::freedesktop::Avahi::Server(QStringLiteral("org.freedesktop.Avahi"), QStringLiteral("/"), QDBusConnection::systemBus());
262 connect(d->m_server, SIGNAL(StateChanged(int, QString)), d, SLOT(serverStateChanged(int, QString)));
void stop()
Stops publishing or aborts an incomplete publish request.
Definition avahi-publicservice.cpp:142
void setServiceName(const QString &serviceName)
Sets the name of the service.
Definition avahi-publicservice.cpp:60
void setDomain(const QString &domain)
Sets the domain where the service is published.
Definition avahi-publicservice.cpp:70
void setSubTypes(const QStringList &subtypes)
Sets the subtypetypes of the service.
Definition avahi-publicservice.cpp:90
PublicService(const QString &name=QString(), const QString &type=QString(), unsigned int port=0, const QString &domain=QString(), const QStringList &subtypes=QStringList())
Creates a service description that can be published.
Definition avahi-publicservice.cpp:26
bool isPublished() const
Whether the service is currently published.
Definition avahi-publicservice.cpp:126
void setTextData(const QMap< QString, QByteArray > &textData)
Sets new text properties.
Definition avahi-publicservice.cpp:116
QMap< QString, QByteArray > textData() const
Additional text data associated with the service.
Definition servicebase.cpp:52
void processEvents(QEventLoop::ProcessEventsFlags flags)
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
QDBusConnection systemBus()
QString name() const const
const QDBusError & error()
bool isValid() const const
ExcludeUserInputEvents
void append(QList< T > &&value)
const_iterator constEnd() const const
ConstIterator
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.