00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "CMessageSummaryGenerator.h"
00019 #include "CMessageSummaryEngine.h"
00020 #include "CSummaryScreenUI.h"
00021 #include "SummaryScreenLog.h"
00022
00023 _LIT(KSummaryScreenText,"Summary Screen");
00024 _LIT(KFormatFailed,"failed: leave code=%d");
00025 _LIT(KTxtOK,"ok");
00026 _LIT(KTxtPressAnyKey," [press any key]");
00027
00028 static CConsoleBase* console;
00029
00030 LOCAL_C void startUiL();
00031
00032 GLDEF_C TInt E32Main()
00033 {
00034 __UHEAP_MARK;
00035 CTrapCleanup* cleanup=CTrapCleanup::New();
00036 TRAPD(error,startUiL());
00037 __ASSERT_ALWAYS(!error,User::Panic(KSummaryScreenText,error));
00038 delete cleanup;
00039 __UHEAP_MARKEND;
00040 return 0;
00041 }
00042
00043 LOCAL_C void startUiL()
00044 {
00045 LOG(">> startUiL()");
00046 console=Console::NewL(KSummaryScreenText,TSize(KConsFullScreen,KConsFullScreen));
00047 CleanupStack::PushL(console);
00048
00049 CActiveScheduler scheduler;
00050 CActiveScheduler::Install(&scheduler);
00051
00052 CSummaryScreenUI* summaryScreen = CSummaryScreenUI::NewLC(*console);
00053
00054 summaryScreen->StartL();
00055
00056 CleanupStack::Pop(summaryScreen);
00057
00058 console->Printf(KTxtPressAnyKey);
00059 console->Getch();
00060 CleanupStack::PopAndDestroy();
00061 LOG("<< startUiL()");
00062 }