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