#include <jdnsshared.h>
Signals | |
| void | readyRead () |
Public Member Functions | |
| JDnsSharedDebug (QObject *parent=0) | |
| ~JDnsSharedDebug () | |
| QStringList | readDebugLines () |
Friends | |
| class | JDnsShared |
Example use:
JDnsSharedDebug *db = new JDnsSharedDebug; connect(db, SIGNAL(debugLinesReady(const QStringList &)), SLOT(db_debugLinesReady(const QStringList &))); JDnsShared *jdnsShared1 = new JDnsShared(JDnsShared::UnicastInternet); jdnsShared1->setDebug(db, "U"); JDnsShared *jdnsShared2 = new JDnsShared(JDnsShared::UnicastLocal); jdnsShared2->setDebug(db, "L"); ... void db_debugLinesReady(const QStringList &lines) { foreach(QString line, lines) printf("%s\n", qPrintable(line)); }
JDnsShared 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 JDnsSharedDebug until all of the JDnsShared objects associated with it have been destroyed.
|
|
Constructs a new object with the given parent.
|
|
|
Destroys the object.
|
|
|
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.
|
|
|
Emitted when there is debug information to report.
|
1.4.6