libtdepim

weaverextensions.cpp
1 /*
2  This file implements the Weaver Extensions basics.
3 
4  $ Author: Mirko Boehm $
5  $ Copyright: (C) 2004, Mirko Boehm $
6  $ Contact: mirko@kde.org
7  http://www.kde.org
8  http://www.hackerbuero.org $
9  $ License: LGPL with the following explicit clarification:
10  This code may be linked against any version of the TQt toolkit
11  from Troll Tech, Norway. $
12 
13 */
14 
15 #include "weaverextensions.h"
16 #include "weaver.h"
17 
18 namespace KPIM {
19 namespace ThreadWeaver {
20 
21  WeaverExtension::WeaverExtension ( TQObject *parent, const char *name)
22  : TQObject (parent, name)
23  {
24  }
25 
27  {
28  connect (w, TQT_SIGNAL (threadCreated (Thread *) ),
29  TQT_SLOT (threadCreated (Thread *) ) );
30  connect (w, TQT_SIGNAL (threadDestroyed (Thread *) ),
31  TQT_SLOT (threadDestroyed (Thread *) ) );
32  connect (w, TQT_SIGNAL (threadBusy (Thread *) ),
33  TQT_SLOT (threadBusy (Thread *) ) );
34  connect (w, TQT_SIGNAL (threadSuspended (Thread *) ),
35  TQT_SLOT (threadSuspended (Thread *) ) );
36  }
37 
38  WeaverExtension::~WeaverExtension()
39  {
40  }
41 
42  void WeaverExtension::threadCreated (Thread *)
43  {
44  }
45 
46  void WeaverExtension::threadDestroyed (Thread *)
47  {
48  }
49 
50  void WeaverExtension::threadBusy (Thread *)
51  {
52  }
53 
54  void WeaverExtension::threadSuspended (Thread *)
55  {
56  }
57 
58 }
59 }
60 
61 #include "weaverextensions.moc"
A weaver is the manager of worker threads (Thread objects) to which it assigns jobs from it's queue...
Definition: weaver.h:296
void attach(Weaver *)
Attach() is a convenience method that will connect all our slots to signals emitted by the weaver...
TDEPIM classes for drag and drop of mails.
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: weaver.h:249