9#ifndef KDNSSDPUBLICSERVICE_H
10#define KDNSSDPUBLICSERVICE_H
12#include "servicebase.h"
18class PublicServicePrivate;
80 const QString &type = QString(),
81 unsigned int port = 0,
82 const QString &domain = QString(),
83 const QStringList &subtypes = QStringList());
215 void virtual_hook(
int,
void *)
override;
218 friend class PublicServicePrivate;
Represents a service to be published.
Definition publicservice.h:48
void stop()
Stops publishing or aborts an incomplete publish request.
bool publish()
Publish the service synchronously.
void setServiceName(const QString &serviceName)
Sets the name of the service.
void setDomain(const QString &domain)
Sets the domain where the service is published.
void setSubTypes(const QStringList &subtypes)
Sets the subtypetypes of the service.
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.
void setPort(unsigned short port)
Sets the port.
void setType(const QString &type)
Sets the service type.
void published(bool successful)
Emitted when publishing is complete.
bool isPublished() const
Whether the service is currently published.
void setTextData(const QMap< QString, QByteArray > &textData)
Sets new text properties.
void publishAsync()
Publish the service asynchronously.
QStringList subtypes() const
The subtypes of service.
Describes a service.
Definition servicebase.h:41