Quark  0.1
MDNSTextRecord Class Reference

#include <MDNSTextRecord.h++>

Inheritance diagram for MDNSTextRecord:

Public Member Functions

 MDNSTextRecord (QStringList name)
 
virtual ~MDNSTextRecord ()
 
QString getAttribute (const QString &key) const
 
bool setAttribute (const QString &key, const QString &value)
 
QStringList getAttributeKeys () const
 
void clearAttributes ()
 
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

◆ MDNSTextRecord()

MDNSTextRecord ( QStringList  name)

◆ ~MDNSTextRecord()

virtual ~MDNSTextRecord ( )
virtual

Member Function Documentation

◆ clearAttributes()

void clearAttributes ( )

◆ escapeLabel()

static QString escapeLabel ( const QString &  label)
staticinherited

◆ getAttribute()

QString getAttribute ( const QString &  key) const

◆ getAttributeKeys()

QStringList getAttributeKeys ( ) const

◆ 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.

◆ setAttribute()

bool setAttribute ( const QString &  key,
const QString &  value 
)

◆ 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: