JDNS
|
Collects debugging information from QJDnsShared. More...
#include <qjdnsshared.h>
Signals | |
void | readyRead () |
Emitted when there is debug information to report. | |
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. | |
Friends | |
class | QJDnsShared |
class | QJDnsSharedPrivate |
class | QJDnsSharedDebugPrivate |
Collects debugging information from QJDnsShared.
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:
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.
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.
|
signal |
Emitted when there is debug information to report.