serviceproviders/sapi_applicationmanager/appmanagerservice/src/launcher.cpp
branchRCL_3
changeset 67 5146369cfdc9
parent 19 989d2f495d90
equal deleted inserted replaced
66:a9c0808a1095 67:5146369cfdc9
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 #include <eikappui.h>
    24 #include <eikappui.h>
    25 #include <eikenv.h>
    25 #include <eikenv.h>
    26 #include <e32base.h>
    26 #include <e32base.h>
    27 #include <f32file.h>
    27 #include <f32file.h>
    28 //#include <documenthandler.h>
    28 #include <documenthandler.h>
    29 
    29 
    30 #include "launcher.h"
    30 #include "launcher.h"
    31 #include "launcherobserver.h"
    31 #include "launcherobserver.h"
    32 #include "appmanagerservice.h"
    32 #include "appmanagerservice.h"
    33 
    33 
       
    34 
    34 _LIT(KBackground ,"Background");
    35 _LIT(KBackground ,"Background");
    35 _LIT(KChained,"Chained");
    36 //_LIT(KChained,"Chained");
    36 _LIT(KScheme,"s60uid://0x");
    37 _LIT(KScheme,"s60uid://0x");
    37 const TInt KDocMaxDigitsInHexString = 8; // 32 bits.
    38 const TInt KDocMaxDigitsInHexString = 8; // 32 bits.
    38 
    39 
    39 const TInt KLen = 2; // "//" for count these
    40 const TInt KLen = 2; // "//" for count these
    40 
    41 
   149 
   150 
   150 
   151 
   151     return threadNotUsed;
   152     return threadNotUsed;
   152     }
   153     }
   153 
   154 
   154 
   155  // -----------------------------------------------------------------------------
       
   156  // CLauncher::LaunchDocumentL
       
   157  // This function Launch the Given Document in synchronous chained mode
       
   158  // -----------------------------------------------------------------------------
       
   159  void CLauncher::LaunchDocumentL( TDocument& aCriteria ) 
       
   160      {
       
   161      if( !iDocHandler )
       
   162          {
       
   163          iDocHandler = CDocumentHandler::NewL();
       
   164          }
       
   165      TDataType dataType;
       
   166      User::LeaveIfError(iDocHandler->OpenFileEmbeddedL(aCriteria.iPath, dataType));
       
   167      }
   155 // -----------------------------------------------------------------------------
   168 // -----------------------------------------------------------------------------
   156 // CLauncher::LaunchDocumentL
   169 // CLauncher::LaunchDocumentL
   157 // This function Launch the Given Document
   170 // This function Launch the Given Document
   158 // -----------------------------------------------------------------------------
   171 // -----------------------------------------------------------------------------
   159 
   172 
   398 // Destructor
   411 // Destructor
   399 // -----------------------------------------------------------------------------
   412 // -----------------------------------------------------------------------------
   400 CLauncher::~CLauncher( )
   413 CLauncher::~CLauncher( )
   401 
   414 
   402 	{
   415 	{
   403 
   416     if( iDocHandler )
       
   417         {
       
   418         delete iDocHandler;
       
   419         }
   404 	}
   420 	}
   405 
   421 
   406 
   422 
   407 	
   423