25#ifndef QMDNSENGINE_MESSAGE_H
26#define QMDNSENGINE_MESSAGE_H
28#include <QHostAddress>
31#include "qmdnsengine_export.h"
39class QMDNSENGINE_EXPORT MessagePrivate;
186 MessagePrivate *
const d;
QHostAddress address() const
Retrieve the address for the message.
void addRecord(const Record &record)
Add a record to the message.
Message(const Message &other)
Create a copy of an existing message.
QList< Query > queries() const
Retrieve a list of queries in the message.
void setPort(quint16 port)
Set the port for the message.
void setAddress(const QHostAddress &address)
Set the address for the message.
quint16 transactionId() const
Retrieve the transaction ID for the message.
QList< Record > records() const
Retrieve a list of records in the message.
quint16 port() const
Retrieve the port for the message.
void setTruncated(bool isTruncated)
Set whether the message is truncated.
void setTransactionId(quint16 transactionId)
Set the transaction ID for the message.
void setResponse(bool isResponse)
Set whether the message is a response.
Message()
Create an empty message.
Message & operator=(const Message &other)
Assignment operator.
virtual ~Message()
Destroy the message.
void addQuery(const Query &query)
Add a query to the message.
void reply(const Message &other)
Reply to another message.
bool isTruncated() const
Determine if the message is truncated.
bool isResponse() const
Determine if the message is a response.
DNS query.
Definition query.h:52
DNS record.
Definition record.h:60