9#ifndef KDNSSDSERVICEBASE_H
10#define KDNSSDSERVICEBASE_H
12#include "kdnssd_export.h"
13#include <QExplicitlySharedDataPointer>
20class ServiceBasePrivate;
43 typedef QExplicitlySharedDataPointer<ServiceBase> Ptr;
63 const QString &type = QString(),
64 const QString &domain = QString(),
65 const QString &host = QString(),
66 unsigned short port = 0);
176 KDNSSD_NO_EXPORT
explicit ServiceBase(ServiceBasePrivate *
const d);
178 virtual void virtual_hook(
int,
void *);
181 std::unique_ptr<ServiceBasePrivate>
const d;
197bool domainIsLocal(
const QString &domain);
Describes a service.
Definition servicebase.h:41
ServiceBase(const QString &name=QString(), const QString &type=QString(), const QString &domain=QString(), const QString &host=QString(), unsigned short port=0)
Creates a ServiceBase object.
bool operator==(const ServiceBase &o) const
Compares services based on name, type and domain.
bool operator!=(const ServiceBase &o) const
Compares services based on name, type and domain.
QString serviceName() const
The name of the service.
unsigned short port() const
The port number of the service.
QMap< QString, QByteArray > textData() const
Additional text data associated with the service.
QString domain() const
The domain that the service belongs to.
QString hostName() const
The hostname of the service.
QString type() const
The type of the service.