examples/AppFramework/egsysStart/egSysStart.cpp

00001 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 #include <e32std.h>
00017 #include <e32cons.h>
00018  
00019 
00020 void SimpleL()
00021 {  
00022   CActiveScheduler* scheduler = new CActiveScheduler;
00023   CActiveScheduler::Install(scheduler);
00024   CConsoleBase* theConsole = Console::NewL(_L("Dummy app"),TSize(KConsFullScreen,KConsFullScreen));
00025   CleanupStack::PushL(theConsole);
00026   theConsole->Printf(_L("---System Startup---\n"));
00027   theConsole->Printf(_L("---Dummy exe -------\n"));
00028   theConsole->Printf(_L("---Exiting now------\n"));
00029   CleanupStack::PopAndDestroy(theConsole);
00030   delete scheduler;
00031 }
00032 
00033 GLDEF_C TInt E32Main()
00034         {
00035         CTrapCleanup* cleanupStack=CTrapCleanup::New();
00036         TRAPD(err,SimpleL());
00037                 _LIT(KTxtEGSYSSTART,"EGSYSSTART");
00038                 __ASSERT_ALWAYS(!err,User::Panic(KTxtEGSYSSTART,err));
00039         delete cleanupStack;
00040         return KErrNone;
00041         }

Generated by  doxygen 1.6.2