libkdepim
weaverlogger.h
00001 /* -*- C++ -*- 00002 00003 This file declares the Thread Logger. 00004 00005 $ Author: Mirko Boehm $ 00006 $ Copyright: (C) 2004, Mirko Boehm $ 00007 $ Contact: mirko@kde.org 00008 http://www.kde.org 00009 http://www.hackerbuero.org $ 00010 $ License: LGPL with the following explicit clarification: 00011 This code may be linked against any version of the Qt toolkit 00012 from Troll Tech, Norway. $ 00013 00014 */ 00015 00016 #ifndef WEAVERLOGGER_H 00017 #define WEAVERLOGGER_H 00018 00019 #include "weaverextensions.h" 00020 00021 namespace KPIM { 00022 namespace ThreadWeaver { 00023 00026 class WeaverThreadLogger : public WeaverExtension 00027 { 00028 Q_OBJECT 00029 public: 00030 WeaverThreadLogger( QObject *parent = 0, const char *name = 0); 00031 ~WeaverThreadLogger(); 00032 void threadCreated (Thread *); 00033 void threadDestroyed (Thread *); 00034 void threadBusy (Thread *); 00035 void threadSuspended (Thread *); 00036 }; 00037 00038 } 00039 } 00040 00041 #endif // WEAVERLOGGER_H