This type will dispatch the handler each time the given network manager finished a QNetworkReply. More...
#include <QtDispatch/qdispatchsource.h>
Signals | |
void | ready (QObject *=NULL) |
This signal shall be emitted each time the source the type represents has news available. | |
Public Member Functions | |
QDispatchSourceTypeNetworkManager (QNetworkAccessManager *) | |
~QDispatchSourceTypeNetworkManager () | |
Protected Member Functions | |
void | init (QThread *) |
This type will dispatch the handler each time the given network manager finished a QNetworkReply.
The finished reply can be obtained by using QDispatchSource::data() from within your handler. Please note that equal to using QNetworkManager's finished() signal directly, you shoud delete the QNetworkReply when done with it.
The deletion of the network manager is your own responsibility
Definition at line 185 of file qdispatchsource.h.
QDispatchSourceTypeNetworkManager::QDispatchSourceTypeNetworkManager | ( | QNetworkAccessManager * | ) |
void QDispatchSourceTypeNetworkManager::init | ( | QThread * | ) | [protected, virtual] |
Implements QDispatchSourceType.
void QDispatchSourceType::ready | ( | QObject * | = NULL | ) | [signal, inherited] |
This signal shall be emitted each time the source the type represents has news available.
The passed QObject* shall either be the new data available or a pointer to another QObject associated with the source.
The pointer passed here can later be obtained by the handler by using QDispatchSource::data()