diff options
-rw-r--r-- | src/s60main/qts60main.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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 <exception> #include <eikstart.h> +#include <apparc.h> +#include <eikenv.h> + #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; } |