Quark  0.1
MDNSServiceRecord Class Reference

#include <MDNSServiceRecord.h++>

Inheritance diagram for MDNSServiceRecord:

Public Member Functions

 MDNSServiceRecord (QStringList name)
 
virtual ~MDNSServiceRecord ()
 
MDNSServiceType serviceType () const
 
void setServiceType (MDNSServiceType serviceType)
 
quint8 priority () const
 
void setPriority (quint8 priority)
 
quint8 weight () const
 
void setWeight (quint8 weight)
 
quint16 port () const
 
void setPort (quint8 port)
 
QStringList hostName () const
 
void setHostName (QStringList hostName)
 
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

◆ MDNSServiceRecord()

MDNSServiceRecord ( QStringList  name)

◆ ~MDNSServiceRecord()

virtual ~MDNSServiceRecord ( )
virtual

Member Function Documentation

◆ escapeLabel()

static QString escapeLabel ( const QString &  label)
staticinherited

◆ hasData()

bool hasData ( ) const
virtualinherited

Implements MDNSRecord.

◆ hostName()

QStringList hostName ( ) const
inline

◆ 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

◆ port()

quint16 port ( ) const
inline

◆ priority()

quint8 priority ( ) const
inline

◆ read()

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

Reimplemented from MDNSRecord.

◆ readData()

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

Implements MDNSDataRecord.

◆ serviceType()

MDNSServiceType serviceType ( ) const
inline

◆ setHostName()

void setHostName ( QStringList  hostName)
inline

◆ setPort()

void setPort ( quint8  port)
inline

◆ setPriority()

void setPriority ( quint8  priority)
inline

◆ setServiceType()

void setServiceType ( MDNSServiceType  serviceType)
inline

◆ setTtl()

void setTtl ( const quint64 &  ttl)
inlineinherited

◆ setWeight()

void setWeight ( quint8  weight)
inline

◆ toString() [1/2]

QString toString ( const QString &  data) const
protectedinherited

◆ toString() [2/2]

QString toString ( ) const
virtual

Reimplemented from MDNSRecord.

◆ 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

◆ weight()

quint8 weight ( ) const
inline

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