JDnsSharedDebug Class Reference

Collects debugging information from JDnsShared. More...

#include <jdnsshared.h>

List of all members.

Signals

void readyRead ()

Public Member Functions

 JDnsSharedDebug (QObject *parent=0)
 ~JDnsSharedDebug ()
QStringList readDebugLines ()

Friends

class JDnsShared


Detailed Description

Collects debugging information from JDnsShared.

Note:
Iris users should utilize NetNames for DNS capabilities, not JDnsSharedDebug. See the JDnsShared documentation for more information.
JDnsSharedDebug is used to collect debugging information from one or many JDnsShared objects. To use it, simply create it and pass it to JDnsShared::setDebug().

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.

See also:
JDnsShared JDnsSharedRequest


Constructor & Destructor Documentation

JDnsSharedDebug::JDnsSharedDebug QObject *  parent = 0  ) 
 

Constructs a new object with the given parent.

JDnsSharedDebug::~JDnsSharedDebug  ) 
 

Destroys the object.


Member Function Documentation

QStringList JDnsSharedDebug::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

void JDnsSharedDebug::readyRead  )  [signal]
 

Emitted when there is debug information to report.

See also:
readDebugLines


The documentation for this class was generated from the following file:
Generated on Sun Mar 18 17:58:50 2007 for IrisNet by  doxygen 1.4.6