libkdepim Library API Documentation

KPIM::ThreadWeaver::WeaverExtension Class Reference

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. More...

#include <weaverextensions.h>

Inheritance diagram for KPIM::ThreadWeaver::WeaverExtension:

QObject KPIM::ThreadWeaver::WeaverThreadLogger List of all members.

Public Slots

virtual void threadCreated (Thread *)
virtual void threadDestroyed (Thread *)
virtual void threadBusy (Thread *)
virtual void threadSuspended (Thread *)

Public Methods

 WeaverExtension (QObject *parent=0, const char *name=0)
void attach (Weaver *)
virtual ~WeaverExtension ()=0

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 33 of file weaverextensions.h.


Member Function Documentation

void KPIM::ThreadWeaver::WeaverExtension::attach Weaver  
 

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 27 of file weaverextensions.cpp.

References QObject::connect().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:32 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003