examples/ForumNokia/ThreadAndActiveObjectsEx/inc/threadlistener.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 #ifndef __THREAD_LISTENER_H__
00007 #define __THREAD_LISTENER_H__
00008 
00009 //INCLUDES
00010 #include <e32base.h> //CActive
00011 #include <e32std.h>
00012 
00013 // CLASS DECLARATION
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    // From CActive
00048    void RunL();
00049    void DoCancel();
00050  
00051 private: // Basic two-phase Symbian OS constructors
00052 
00059         CThreadListener();
00060 
00065         void ConstructL(RThread& aThread);
00066         
00067 private:
00068         RThread iMonitoredThread;
00069         };
00070 
00071 #endif // __THREAD_LISTENER_H__

Generated by  doxygen 1.6.2