00001 #ifndef CRECENTCALLS_H
00002 #define CRECENTCALLS_H
00003
00004 #include <e32base.h>
00005 #include <logcli.h>
00006 #include <logview.h>
00007 #include <f32file.h>
00008
00009 enum TTask {
00010 EGetRecent,
00011 ESleep
00012 };
00013
00014 class CRecentCalls : public CActive
00015 {
00016
00017 public:
00021 CRecentCalls();
00022
00026 static CRecentCalls* NewL();
00027
00031 static CRecentCalls* NewLC();
00032
00036 ~CRecentCalls();
00037
00041 void ReadRecentEventsL();
00042
00043 private:
00047 void ConstructL();
00048
00052 void RunL();
00053
00057 TInt RunError(TInt anError);
00058
00062 void DoCancel();
00063
00067 void HandleRecentEventL(const CLogEvent& anEvent);
00068
00069 private:
00070 RFs iFs;
00071
00072 CLogClient* iLogClient;
00073 CLogViewRecent* iLogViewRecent;
00074
00075 TTask iTask;
00076 };
00077
00078 #endif // CRECENTCALLS_H