Go to the documentation of this file.
34 class QJDnsSharedPrivate;
35 class QJDnsSharedRequestPrivate;
36 class QJDnsSharedDebugPrivate;
111 friend class QJDnsSharedPrivate;
112 friend class QJDnsSharedDebugPrivate;
113 QJDnsSharedDebugPrivate *d;
281 void query(
const QByteArray &name,
int type);
324 friend class QJDnsSharedPrivate;
325 friend class QJDnsSharedRequestPrivate;
326 QJDnsSharedRequestPrivate *d;
641 friend class QJDnsSharedPrivate;
642 QJDnsSharedPrivate *d;
void publish(QJDns::PublishMode m, const QJDns::Record &record)
Perform a publish operation.
void publishUpdate(const QJDns::Record &record)
Update a record that is currently published.
void removeInterface(const QHostAddress &addr)
Removes a previously-added interface.
~QJDnsSharedDebug()
Destroys the object.
QList< QJDns::Record > results() const
Returns the results of the operation.
Abstraction layer on top of QJDns.
Definition: qjdnsshared.h:525
void setDebug(QJDnsSharedDebug *db, const QString &name)
Sets the debug object to report to.
Error
Request error.
Definition: qjdnsshared.h:252
void shutdownFinished()
Indicates the object has been shut down.
Performs a DNS operation using QJDnsShared.
Definition: qjdnsshared.h:236
@ ErrorNXDomain
The name looked up does not exist.
Definition: qjdnsshared.h:256
bool success() const
Indicates whether or not the operation was successful.
QStringList readDebugLines()
Read the available debug information.
void cancel()
Cancels the current operation.
Mode
The mode to operate in.
Definition: qjdnsshared.h:532
@ Query
Query operation, initiated by query()
Definition: qjdnsshared.h:244
Type
Operation type.
Definition: qjdnsshared.h:243
Collects debugging information from QJDnsShared.
Definition: qjdnsshared.h:77
QJDnsSharedDebug(QObject *parent=0)
Constructs a new object with the given parent.
void query(const QByteArray &name, int type)
Perform a query operation.
bool addInterface(const QHostAddress &addr)
Adds an interface to operate on.
QJDnsShared(Mode mode, QObject *parent=0)
Constructs a new object with the given mode and parent.
static void waitForShutdown(const QList< QJDnsShared * > &instances)
Performs a blocking shutdown of many QJDnsShared instances.
~QJDnsShared()
Destroys the object.
void shutdown()
Shuts down the object.
~QJDnsSharedRequest()
Destroys the object.
Error error() const
Returns the reason for error.
Type type()
The type of operation being performed.
QJDnsSharedRequest(QJDnsShared *jdnsShared, QObject *parent=0)
Constructs a new object with the given jdnsShared and parent.
@ ErrorTimeout
The operation timed out.
Definition: qjdnsshared.h:257
static QList< QByteArray > domains()
The domains to search in.
@ UnicastLocal
Perform regular DNS resolution using the Multicast DNS address.
Definition: qjdnsshared.h:543
void readyRead()
Emitted when there is debug information to report.
void resultsReady()
Indicates that the operation has something to report.
@ UnicastInternet
For regular DNS resolution.
Definition: qjdnsshared.h:537
@ ErrorGeneric
Generic error during the operation.
Definition: qjdnsshared.h:255