00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <e32cons.h>
00020
00021 _LIT(KTxtExampleCode,"SsManagerExample");
00022 _LIT(KTextPressAnyKey," [press any key]");
00023
00024 static void callExampleL()
00025 {
00026 _LIT(KTxtBackUp,"\n Backing up all the Contacts \n \
00027 Backing up all the Messages \n \
00028 Backing up all the Multimedia files \n \
00029 Backing up all the other files \n \
00030 Back up of all files successfully completed \n");
00031 CConsoleBase* console = Console::NewL(KTxtExampleCode,TSize(KConsFullScreen,KConsFullScreen));
00032 console->Printf(KTxtBackUp);
00033 console->Printf(KTextPressAnyKey);
00034 console->Getch();
00035 delete console;
00036 }
00037
00038 extern TInt E32Main()
00039 {
00040 __UHEAP_MARK;
00041 CTrapCleanup* cleanup=CTrapCleanup::New();
00042 if(cleanup!=NULL)
00043 {
00044 TRAPD (error,callExampleL());
00045 __ASSERT_ALWAYS(!error,User::Panic(KTxtExampleCode,error));
00046 }
00047 delete cleanup;
00048 __UHEAP_MARKEND;
00049 return KErrNone;
00050 }