examples/SFExamples/NotifierExample/Launchers/ExeLauncher_UIQ3/src/ExeLauncher_UIQ3AppUi.cpp

00001 /*
00002 ============================================================================
00003  Name           : CExeLauncher_UIQ3AppUi from ExeLauncher_UIQ3AppUi.h
00004  Author   : Hamish Willee
00005  Version         :
00006  Copyright   : (C) Symbian 2007
00007  Description : CExeLauncher_UIQ3AppUi implementation
00008 ============================================================================
00009 */
00010 
00011 #include "ExeLauncher_UIQ3AppUi.h"
00012 #include "ExeLauncher_UIQ3View.h"
00013 
00019 void CExeLauncher_UIQ3AppUi::ConstructL()
00020         {
00021         // Calls ConstructL that initiate the standard values.
00022         CQikAppUi::ConstructL();
00023         _LIT(KTestCodeFileName,"NotifierTestConsole.exe");
00024         _LIT(KNullDesc,"");
00025         // [[[ begin generated region: do not modify [Generated Contents]
00026 
00027         
00028         //Launch process
00029         RProcess testexe;
00030         TInt err= testexe.Create(KTestCodeFileName, KNullDesc);
00031         if (err==KErrNone)
00032                 {
00033                 TRequestStatus stat;
00034                 testexe.Rendezvous(stat);
00035                 if (stat!=KRequestPending)
00036                         testexe.Kill(0);                // abort startup
00037                 else
00038                         testexe.Resume();       // logon OK - start the server
00039                 User::WaitForRequest(stat);             // wait for start or death
00040                 testexe.Close();
00041                 }
00042         Exit();
00043         
00044         // Create the view and add it to the framework
00045         CExeLauncher_UIQ3View* appView = CExeLauncher_UIQ3View::NewLC(*this);
00046         AddViewL(*appView);
00047         CleanupStack::Pop(appView);
00048         }

Generated by  doxygen 1.6.2