Base class of all source types supported by QDispatchSource. 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. | |
Protected Member Functions | |
virtual void | init (QThread *)=0 |
Base class of all source types supported by QDispatchSource.
Subclass this to create your own sourcetype. Make sure to emit the ready signal whenever you want to indicate that your source is ready and the configured handler should be executed.
Definition at line 57 of file qdispatchsource.h.
virtual void QDispatchSourceType::init | ( | QThread * | ) | [protected, pure virtual] |
void QDispatchSourceType::ready | ( | QObject * | = NULL | ) | [signal] |
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()