Uses a signal emitted by a QObject as source and will dispatch the sources handler each time the signal is emitted. More...
#include <QtDispatch/qdispatchsource.h>
Inheritance diagram for QDispatchSourceTypeSignal:Signals | |
| void | ready (QObject *=NULL) |
| This signal shall be emitted each time the source the type represents has news available. | |
Public Member Functions | |
| QDispatchSourceTypeSignal (QObject *sender, const char *signal) | |
| ~QDispatchSourceTypeSignal () | |
Protected Member Functions | |
| virtual void | init (QThread *) |
Uses a signal emitted by a QObject as source and will dispatch the sources handler each time the signal is emitted.
This source type does not provide any useful data when calling QDispatchSource::data(), i.e. is always returning NULL.
Make sure to delete the object used in here when deleting the source.
Definition at line 90 of file qdispatchsource.h.
| QDispatchSourceTypeSignal::QDispatchSourceTypeSignal | ( | QObject * | sender, |
| const char * | signal | ||
| ) |
| virtual void QDispatchSourceTypeSignal::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()