KDECore
k3resolvermanager.cpp
Go to the documentation of this file.
467 //qDebug("KResolverManager::handleFinished(%u): %d requests to notify", pid, doneRequests.count());
virtual KResolverWorkerBase * create() const =0
void releaseData(KResolverThread *id, RequestData *data)
Definition: k3resolvermanager.cpp:409
void enqueue(const T &t)
T dequeue()
void initStandardWorkers() KDE_NO_EXPORT
Definition: k3resolverstandardworkers.cpp:1038
KResolverResults results
Derived classes will put their resolved data in this list, or will leave it empty in case of error...
Definition: k3resolverworkerbase.h:128
void unlock()
void registerThread(KResolverThread *id)
Definition: k3resolvermanager.cpp:343
Definition: k3resolver_p.h:101
void unregisterThread(KResolverThread *id)
Definition: k3resolvermanager.cpp:347
void start(Priority priority)
bool empty() const
Definition: k3resolver.h:443
void terminate()
bool isEmpty() const
~KResolverManager()
Definition: k3resolvermanager.cpp:334
QWaitCondition notifyWaiters
Definition: k3resolver_p.h:168
Definition: k3resolver.h:438
bool wait(QMutex *mutex, unsigned long time)
void remove()
Definition: k3resolver.h:439
virtual bool run()=0
This is the function that should be overridden in derived classes.
static KResolverManager * manager() KDE_NO_EXPORT
Definition: k3resolvermanager.cpp:318
void lock()
bool isRunning() const
bool hasNext() const
void dispatch(RequestData *data)
Definition: k3resolvermanager.cpp:692
const KNetwork::Internal::InputData * input
Definition: k3resolver_p.h:145
RequestData * requestData(KResolverThread *id, int maxWaitTime)
Definition: k3resolvermanager.cpp:353
void registerNewWorker(KNetwork::KResolverWorkerFactoryBase *factory)
Definition: k3resolvermanager.cpp:506
bool checkResolver()
Definition: k3resolvermanager.cpp:293
void enqueue(KNetwork::KResolver *obj, RequestData *requestor)
Definition: k3resolvermanager.cpp:650
T & next()
void acquireResolver()
Definition: k3resolvermanager.cpp:298
void setAddress(const QString &host, const QString &service)
Sets the new nodename and service name.
Definition: k3resolver.cpp:260
virtual bool postprocess()
This function gets called during post processing for this class.
Definition: k3resolverworkerbase.cpp:105
virtual bool preprocess()=0
This function gets called during pre processing for this class and you must override it...
Definition: k3resolver.h:412
void dequeue(KNetwork::KResolver *obj)
Definition: k3resolvermanager.cpp:827
KNetwork::KResolverWorkerBase * worker
Definition: k3resolver_p.h:146
void postEvent(QObject *receiver, QEvent *event)
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
void releaseResolver()
Definition: k3resolvermanager.cpp:307
void wakeAll()
Definition: k3resolver.h:441
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.