KPIM::ThreadWeaver::WeaverExtension Class Referenceabstract
#include <weaverextensions.h>
Inheritance diagram for KPIM::ThreadWeaver::WeaverExtension:
Public Slots | |
virtual void | threadCreated (Thread *) |
virtual void | threadDestroyed (Thread *) |
virtual void | threadBusy (Thread *) |
virtual void | threadSuspended (Thread *) |
Public Member Functions | |
WeaverExtension (TQObject *parent=0, const char *name=0) | |
void | attach (Weaver *) |
Detailed Description
A WeaverExtension can be attached to an existing Weaver object and will then receive signals on actions the Weaver takes, like starting to process a specific job, assigning a job to a thread or suspending a thread.
It can be used to monitor the state of a program, but also, for example, to provide visualization of the Weaver's work load in GUI programs. Derive from it to actually create an extension.
Definition at line 32 of file weaverextensions.h.
Member Function Documentation
◆ attach()
void KPIM::ThreadWeaver::WeaverExtension::attach | ( | Weaver * | w | ) |
Attach() is a convenience method that will connect all our slots to signals emitted by the weaver.
It is also possible to avoid attach() and only connect necessary signals.
Definition at line 26 of file weaverextensions.cpp.
The documentation for this class was generated from the following files: