00001
00002
00003
00004
00005
00006 #ifndef __THREAD_LISTENER_H__
00007 #define __THREAD_LISTENER_H__
00008
00009
00010 #include <e32base.h>
00011 #include <e32std.h>
00012
00013
00014
00020 class CThreadListener: public CActive
00021 {
00022 public:
00023
00031 static CThreadListener* NewL(RThread& aThread);
00032
00037 static CThreadListener* NewLC(RThread& aThread);
00038
00045 ~CThreadListener();
00046
00047
00048 void RunL();
00049 void DoCancel();
00050
00051 private:
00052
00059 CThreadListener();
00060
00065 void ConstructL(RThread& aThread);
00066
00067 private:
00068 RThread iMonitoredThread;
00069 };
00070
00071 #endif // __THREAD_LISTENER_H__