CopperSpice API  1.9.1
QDnsMailExchangeRecord Class Reference

The QDnsMailExchangeRecord class stores information about a DNS MX record. More...

Public Methods

 QDnsMailExchangeRecord ()
 QDnsMailExchangeRecord (const QDnsMailExchangeRecord &other)
 ~QDnsMailExchangeRecord ()
QString exchange () const
QString name () const
QDnsMailExchangeRecord & operator= (const QDnsMailExchangeRecord &other)
QDnsMailExchangeRecord & operator= (QDnsMailExchangeRecord &&other)
quint16 preference () const
void swap (QDnsMailExchangeRecord &other)
quint32 timeToLive () const

Detailed Description

When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsMailExchangeRecord instance.

The meaning of the fields is defined in RFC 1035.

See also

Constructor & Destructor Documentation

QDnsMailExchangeRecord::QDnsMailExchangeRecord ( )

Constructs an empty mail exchange record object.

QDnsMailExchangeRecord::QDnsMailExchangeRecord ( const QDnsMailExchangeRecord &  other)

Constructs a copy of other.

QDnsMailExchangeRecord::~QDnsMailExchangeRecord ( )

Destroys a mail exchange record.

Method Documentation

QString QDnsMailExchangeRecord::exchange ( ) const

Returns the domain name of the mail exchange for this record.

QString QDnsMailExchangeRecord::name ( ) const

Returns the name for this text record.

QDnsMailExchangeRecord & QDnsMailExchangeRecord::operator= ( const QDnsMailExchangeRecord &  other)

Copy assigns from other and returns a reference to this object.

QDnsMailExchangeRecord & QDnsMailExchangeRecord::operator= ( QDnsMailExchangeRecord &&  other)

Move assigns from other and returns a reference to this object.

quint16 QDnsMailExchangeRecord::preference ( ) const

Returns the preference for this record.

void QDnsMailExchangeRecord::swap ( QDnsMailExchangeRecord &  other)

Swaps this mail exchange record with other. This method is very fast and never fails.

quint32 QDnsMailExchangeRecord::timeToLive ( ) const

Returns the duration in seconds for which this record is valid.