25#ifndef QMDNSENGINE_RECORD_H
26#define QMDNSENGINE_RECORD_H
29#include <QHostAddress>
32#include <qmdnsengine/bitmap.h>
34#include "qmdnsengine_export.h"
39class QMDNSENGINE_EXPORT RecordPrivate;
248 RecordPrivate *
const d;
251QMDNSENGINE_EXPORT QDebug operator<<(QDebug dbg,
const Record &record);
256-bit bitmap
Definition bitmap.h:42
DNS record.
Definition record.h:60
void setAttributes(const QMap< QByteArray, QByteArray > &attributes)
Set attributes for the record.
QHostAddress address() const
Retrieve the address for the record.
bool operator==(const Record &other) const
Equality operator.
void setFlushCache(bool flushCache)
Set whether to replace or append to existing records.
void addAttribute(const QByteArray &key, const QByteArray &value)
Add an attribute to the record.
QByteArray nextDomainName() const
Retrieve the next domain name.
Record()
Create an uninitialized record.
QByteArray target() const
Retrieve the target for the record.
void setWeight(quint16 weight)
Set the weight of the record.
void setNextDomainName(const QByteArray &nextDomainName)
Set the next domain name.
void setAddress(const QHostAddress &address)
Set the address for the record.
Record(const Record &other)
Create a copy of an existing record.
void setTarget(const QByteArray &target)
Set the target for the record.
void setType(quint16 type)
Set the type of the record.
void setPort(quint16 port)
Set the port for the record.
bool flushCache() const
Determine whether to replace or append to existing records.
bool operator!=(const Record &other) const
Inequality operator.
void setTtl(quint32 ttl)
Set the TTL (time to live) for the record.
QByteArray name() const
Retrieve the name of the record.
void setName(const QByteArray &name)
Set the name of the record.
virtual ~Record()
Destroy the record.
quint16 priority() const
Retrieve the priority for the record.
void setBitmap(const Bitmap &bitmap)
Set the bitmap for the record.
void setPriority(quint16 priority)
Set the priority for the record.
quint16 type() const
Retrieve the type of the record.
quint16 weight() const
Retrieve the weight of the record.
QMap< QByteArray, QByteArray > attributes() const
Retrieve attributes for the record.
quint16 port() const
Retrieve the port for the record.
Bitmap bitmap() const
Retrieve the bitmap for the record.
quint32 ttl() const
Retrieve the TTL (time to live) for the record.
Record & operator=(const Record &other)
Assignment operator.