25#ifndef QMDNSENGINE_SERVICE_H
26#define QMDNSENGINE_SERVICE_H
29#include <QHostAddress>
34#include "qmdnsengine_export.h"
39class QMDNSENGINE_EXPORT ServicePrivate;
150 ServicePrivate *
const d;
153QMDNSENGINE_EXPORT QDebug operator<<(QDebug debug,
const Service &service);
Service available on the local network
Definition service.h:52
QByteArray type() const
Retrieve the service type.
void setHostname(const QByteArray &hostname)
Set the hostname of the device providing the service.
bool operator!=(const Service &other) const
Inequality operator.
void setType(const QByteArray &type)
Set the service type.
void setName(const QByteArray &name)
Set the service name.
void setAttributes(const QMap< QByteArray, QByteArray > &attributes)
Set the attributes for the service.
void addAttribute(const QByteArray &key, const QByteArray &value)
Add an attribute to the service.
Service & operator=(const Service &other)
Assignment operator.
virtual ~Service()
Destroy the service.
bool operator==(const Service &other) const
Equality operator.
QByteArray hostname() const
Retrieve the hostname of the device providing the service.
QMap< QByteArray, QByteArray > attributes() const
Retrieve the attributes for the service.
void setPort(quint16 port)
Set the service port.
Service(const Service &other)
Create a copy of an existing service.
Service()
Create an uninitialized service.
QByteArray name() const
Retrieve the service name.
quint16 port() const
Retrieve the service port.