diff -r a9c0808a1095 -r 5146369cfdc9 serviceproviders/sapi_applicationmanager/appmanagerservice/src/launcher.cpp --- a/serviceproviders/sapi_applicationmanager/appmanagerservice/src/launcher.cpp Wed Sep 01 12:28:47 2010 +0100 +++ b/serviceproviders/sapi_applicationmanager/appmanagerservice/src/launcher.cpp Tue Sep 14 22:59:08 2010 +0300 @@ -25,14 +25,15 @@ #include #include #include -//#include +#include #include "launcher.h" #include "launcherobserver.h" #include "appmanagerservice.h" + _LIT(KBackground ,"Background"); -_LIT(KChained,"Chained"); +//_LIT(KChained,"Chained"); _LIT(KScheme,"s60uid://0x"); const TInt KDocMaxDigitsInHexString = 8; // 32 bits. @@ -151,7 +152,19 @@ return threadNotUsed; } - + // ----------------------------------------------------------------------------- + // CLauncher::LaunchDocumentL + // This function Launch the Given Document in synchronous chained mode + // ----------------------------------------------------------------------------- + void CLauncher::LaunchDocumentL( TDocument& aCriteria ) + { + if( !iDocHandler ) + { + iDocHandler = CDocumentHandler::NewL(); + } + TDataType dataType; + User::LeaveIfError(iDocHandler->OpenFileEmbeddedL(aCriteria.iPath, dataType)); + } // ----------------------------------------------------------------------------- // CLauncher::LaunchDocumentL // This function Launch the Given Document @@ -400,7 +413,10 @@ CLauncher::~CLauncher( ) { - + if( iDocHandler ) + { + delete iDocHandler; + } }