diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/dummy__backup_8cpp_source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/dummy__backup_8cpp_source.html Tue Mar 30 16:16:55 2010 +0100 @@ -0,0 +1,66 @@ + + +
+ +00001 //dummy_backup.cpp +00002 // +00003 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +00004 // All rights reserved. +00005 // This component and the accompanying materials are made available +00006 // under the terms of "Eclipse Public License v1.0" +00007 // which accompanies this distribution, and is available +00008 // at the URL "http://www.eclipse.org/legal/epl-v10.html". +00009 // +00010 // Initial Contributors: +00011 // Nokia Corporation - initial contribution. +00012 // +00013 // Contributors: +00014 // +00015 // Description: this is a dummy back up application which gets launched when +00016 // the System State changes to Back-Up state. This prints a series of console statements. +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(); // Get and ignore character. +00035 delete console; // delete the console object. +00036 } +00037 +00038 extern TInt E32Main() +00039 { +00040 __UHEAP_MARK; +00041 CTrapCleanup* cleanup=CTrapCleanup::New(); // Get clean-up stack. +00042 if(cleanup!=NULL) +00043 { +00044 TRAPD (error,callExampleL()); +00045 __ASSERT_ALWAYS(!error,User::Panic(KTxtExampleCode,error)); +00046 } +00047 delete cleanup; // Destroy clean-up stack. +00048 __UHEAP_MARKEND; +00049 return KErrNone; +00050 } +