JDNS
Loading...
Searching...
No Matches
Signals | Public Member Functions | Friends | List of all members
QJDnsSharedDebug Class Reference

Collects debugging information from QJDnsShared. More...

#include <qjdnsshared.h>

Inheritance diagram for QJDnsSharedDebug:

Signals

void readyRead ()
 Emitted when there is debug information to report. More...
 

Public Member Functions

 QJDnsSharedDebug (QObject *parent=0)
 Constructs a new object with the given parent.
 
 ~QJDnsSharedDebug ()
 Destroys the object.
 
QStringList readDebugLines ()
 Read the available debug information. More...
 

Friends

class QJDnsShared
 
class QJDnsSharedPrivate
 
class QJDnsSharedDebugPrivate
 

Detailed Description

Collects debugging information from QJDnsShared.

Note
Iris users should utilize NetNames for DNS capabilities, not QJDnsSharedDebug. See the QJDnsShared documentation for more information.

QJDnsSharedDebug is used to collect debugging information from one or many QJDnsShared objects. To use it, simply create it and pass it to QJDnsShared::setDebug().

Example use:

connect(db, SIGNAL(debugLinesReady(QStringList)),
SLOT(db_debugLinesReady(QStringList)));
jdnsShared1->setDebug(db, "U");
jdnsShared2->setDebug(db, "L");
...
void db_debugLinesReady(const QStringList &lines)
{
foreach(QString line, lines)
printf("%s\n", qPrintable(line));
}
Collects debugging information from QJDnsShared.
Definition: qjdnsshared.h:77
Abstraction layer on top of QJDns.
Definition: qjdnsshared.h:525
void setDebug(QJDnsSharedDebug *db, const QString &name)
Sets the debug object to report to.
@ UnicastInternet
For regular DNS resolution.
Definition: qjdnsshared.h:537
@ UnicastLocal
Perform regular DNS resolution using the Multicast DNS address.
Definition: qjdnsshared.h:543

QJDnsShared reports debug lines with the name and interface number prepended to each line. For example, if there is debug information to report about the second interface added to jdnsShared2 in the above example, the lines would be prepended with "L1: ".

Do not destroy QJDnsSharedDebug until all of the QJDnsShared objects associated with it have been destroyed.

See also
QJDnsShared QJDnsSharedRequest

Member Function Documentation

◆ readDebugLines()

QStringList QJDnsSharedDebug::readDebugLines ( )

Read the available debug information.

Debug information is reported as a series of lines. The lines are of reasonable length, and so if you're storing a backlog of the most recent debug information, it should be safe to make the cut-off point based on lines.

See also
readyRead

◆ readyRead

void QJDnsSharedDebug::readyRead ( )
signal

Emitted when there is debug information to report.

See also
readDebugLines

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