25 #ifndef QMDNSENGINE_MESSAGE_H 26 #define QMDNSENGINE_MESSAGE_H 28 #include <QHostAddress> 31 #include "qmdnsengine_export.h" 39 class QMDNSENGINE_EXPORT MessagePrivate;
90 QHostAddress address()
const;
99 void setAddress(
const QHostAddress &address);
108 quint16 port()
const;
117 void setPort(quint16 port);
125 quint16 transactionId()
const;
133 void setTransactionId(quint16 transactionId);
138 bool isResponse()
const;
143 void setResponse(
bool isResponse);
148 QList<Query> queries()
const;
153 void addQuery(
const Query &query);
158 QList<Record> records()
const;
163 void addRecord(
const Record &record);
172 void reply(
const Message &other);
176 MessagePrivate *
const d;
181 #endif // QMDNSENGINE_MESSAGE_H DNS message.
Definition: message.h:60
Definition: abstractserver.h:32
DNS record.
Definition: record.h:59
DNS query.
Definition: query.h:51