Quark  0.1
MDNSInet4AddressRecord Class Reference

#include <MDNSInet4AddressRecord.h++>

Inheritance diagram for MDNSInet4AddressRecord:

Public Member Functions

 MDNSInet4AddressRecord (QStringList name)
 
virtual ~MDNSInet4AddressRecord ()
 
QHostAddress address () const
 
void setAddress (QHostAddress address)
 
void readData (MDNSDataReader &reader) throw (IOException)
 
void writeData (MDNSDataWriter &writer) throw (IOException)
 
QString toString () const
 
bool hasData () const
 
void read (MDNSDataReader &reader) throw (IOException)
 
void write (MDNSDataWriter &writer) throw (IOException)
 
quint64 ttl () const
 
void setTtl (const quint64 &ttl)
 
size_t length () const
 
MDNSRecordType type () const
 
QStringList name () const
 

Static Public Member Functions

static QString labelsToName (const QStringList &labels)
 
static QStringList nameToLabels (const QString &name)
 
static QString typeToString (MDNSRecordType type)
 
static QString escapeLabel (const QString &label)
 
static QString unescapeLabel (const QString &label)
 

Protected Member Functions

QString toString (const QString &data) const
 

Constructor & Destructor Documentation

◆ MDNSInet4AddressRecord()

MDNSInet4AddressRecord ( QStringList  name)

◆ ~MDNSInet4AddressRecord()

virtual ~MDNSInet4AddressRecord ( )
virtual

Member Function Documentation

◆ address()

QHostAddress address ( ) const
inline

◆ escapeLabel()

static QString escapeLabel ( const QString &  label)
staticinherited

◆ hasData()

bool hasData ( ) const
virtualinherited

Implements MDNSRecord.

◆ labelsToName()

static QString labelsToName ( const QStringList &  labels)
staticinherited

◆ length()

size_t length ( ) const
inlineinherited

◆ name()

QStringList name ( ) const
inlineinherited

◆ nameToLabels()

static QStringList nameToLabels ( const QString &  name)
staticinherited

◆ read()

void read ( MDNSDataReader &  reader)
throw (IOException
)
virtualinherited

Reimplemented from MDNSRecord.

◆ readData()

void readData ( MDNSDataReader &  reader)
throw (IOException
)
virtual

Implements MDNSDataRecord.

◆ setAddress()

void setAddress ( QHostAddress  address)
inline

◆ setTtl()

void setTtl ( const quint64 &  ttl)
inlineinherited

◆ toString() [1/2]

QString toString ( ) const
virtual

Reimplemented from MDNSRecord.

◆ toString() [2/2]

QString toString ( const QString &  data) const
protectedinherited

◆ ttl()

quint64 ttl ( ) const
inlineinherited

◆ type()

MDNSRecordType type ( ) const
inlineinherited

◆ typeToString()

static QString typeToString ( MDNSRecordType  type)
staticinherited

◆ unescapeLabel()

static QString unescapeLabel ( const QString &  label)
staticinherited

◆ write()

void write ( MDNSDataWriter &  writer)
throw (IOException
)
virtualinherited

Reimplemented from MDNSRecord.

◆ writeData()

void writeData ( MDNSDataWriter &  writer)
throw (IOException
)
virtual

Implements MDNSDataRecord.


The documentation for this class was generated from the following file: