25 #ifndef QMDNSENGINE_SERVICE_H 26 #define QMDNSENGINE_SERVICE_H 29 #include <QHostAddress> 33 #include "qmdnsengine_export.h" 38 class QMDNSENGINE_EXPORT ServicePrivate;
72 bool operator==(
const Service &other)
const;
77 bool operator!=(
const Service &other)
const;
87 QByteArray type()
const;
94 void setType(
const QByteArray &type);
99 QByteArray name()
const;
107 void setName(
const QByteArray &name);
112 QByteArray hostname()
const;
117 void setHostname(
const QByteArray &hostname);
122 quint16 port()
const;
127 void setPort(quint16 port);
135 QMap<QByteArray, QByteArray> attributes()
const;
140 void setAttributes(
const QMap<QByteArray, QByteArray> &attributes);
145 void addAttribute(
const QByteArray &key,
const QByteArray &value);
149 ServicePrivate *
const d;
154 #endif // QMDNSENGINE_SERVICE_H Definition: abstractserver.h:32
Service available on the local network
Definition: service.h:50