From b3a703901e9adbe80e67ca4700c589596d009247 Mon Sep 17 00:00:00 2001 From: axis Date: Mon, 17 Aug 2009 10:41:03 +0200 Subject: Use custom S60 framework construction instead of RunApplication(). Conflicts: src/s60main/qts60main.cpp --- src/s60main/qts60main.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/s60main/qts60main.cpp b/src/s60main/qts60main.cpp index 4112424..c6e74c3 100644 --- a/src/s60main/qts60main.cpp +++ b/src/s60main/qts60main.cpp @@ -42,6 +42,9 @@ // INCLUDE FILES #include #include +#include +#include + #include "qts60mainapplication_p.h" /** @@ -58,5 +61,17 @@ LOCAL_C CApaApplication* NewApplication() */ GLDEF_C TInt E32Main() { - return EikStart::RunApplication(NewApplication); + TApaApplicationFactory factory(NewApplication); + CApaCommandLine* commandLine=NULL; + TInt err = CApaCommandLine::GetCommandLineFromProcessEnvironment(commandLine); + CEikonEnv* coe=new CEikonEnv; + TRAP(err, coe->ConstructAppFromCommandLineL(factory,*commandLine)); + delete commandLine; + + CActiveScheduler::Start(); + + coe->PrepareToExit(); + coe->DestroyEnvironment(); + + return 0; } -- cgit v0.12