creator/src/engine.cpp
changeset 51 b048e15729d6
parent 31 e7a04a6385be
child 52 36d60d12b4af
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
    55 #include <apparc.h>
    55 #include <apparc.h>
    56 #include <eikappui.h>
    56 #include <eikappui.h>
    57 #include <eikapp.h>
    57 #include <eikapp.h>
    58 #include <bitmaptransforms.h>
    58 #include <bitmaptransforms.h>
    59 
    59 
    60 _LIT(KEDriveError, "Not available");
       
    61 _LIT(KTempPathDrive, "d");
    60 _LIT(KTempPathDrive, "d");
    62 _LIT(KTempPath, ":\\Creator\\");
    61 _LIT(KTempPath, ":\\Creator\\");
    63 const TInt KRegisterDrive = EDriveC;
    62 const TInt KRegisterDrive = EDriveC;
    64 _LIT(KRegisterFileName, "creator_created_items.dat");
    63 _LIT(KRegisterFileName, "creator_created_items.dat");
    65 _LIT(KResourceFileName, "z:\\Resource\\apps\\datacreator.RSC");
    64 _LIT(KResourceFileName, "z:\\Resource\\apps\\datacreator.RSC");
   621 
   620 
   622 		//iProgressDialog->ProcessFinishedL();
   621 		//iProgressDialog->ProcessFinishedL();
   623 		
   622 		
   624 		// remove the progress dialog from the screen
   623 		// remove the progress dialog from the screen
   625         iEngineWrapper->CloseProgressbar();
   624         iEngineWrapper->CloseProgressbar();
   626 		//ProgressDialogCancelledL();
       
   627 		
   625 		
   628 		if (iFailedCommands == 0)
   626 		if (iFailedCommands == 0)
   629 		    {
   627 		    {
   630 		    iEngineWrapper->ShowNote(_L("Done"));
   628 		    iEngineWrapper->ShowNote(_L("Done"));
   631 		    }
   629 		    }
   677                 delete iCommandArray->At(i).iParameters;
   675                 delete iCommandArray->At(i).iParameters;
   678                 iCommandArray->At(i).iParameters = NULL;
   676                 iCommandArray->At(i).iParameters = NULL;
   679 				}
   677 				}
   680             }
   678             }
   681 
   679 
   682         if ( iPhonebook /*&& iPhonebook->IsActive()*/ )
   680         if ( iDecoder  )
   683             {
       
   684             // virtual phonebook is known to require asynchronous
       
   685             // cancelling of operation
       
   686             }
       
   687         else if ( iDecoder  )
       
   688             {
   681             {
   689             iDecoder->Cancel();
   682             iDecoder->Cancel();
   690             // CancelComplete() will be called from GenerateSourceImageFileL
   683             // CancelComplete() will be called from GenerateSourceImageFileL
   691             }
   684             }
   692         else if ( iScaler )
   685         else if ( iScaler )
  1835 	return lIAPid;
  1828 	return lIAPid;
  1836 	}
  1829 	}
  1837 
  1830 
  1838 // ---------------------------------------------------------------------------
  1831 // ---------------------------------------------------------------------------
  1839 
  1832 
  1840 TUint32 CCreatorEngine::AccessPointNameToIdL(const TDesC& aAPName, TBool aAnyIfNotFound )
  1833 TUint32 CCreatorEngine::AccessPointNameToIdL(const TDesC& /*aAPName*/, TBool /*aAnyIfNotFound*/ )
  1841     {
  1834     {
  1842     LOGSTRING("Creator: CCreatorEngine::AccessPointNameToIdL");
  1835     LOGSTRING("Creator: CCreatorEngine::AccessPointNameToIdL");
  1843     // Accespoint impl moved from engine to accespoint implementations for supporting 3.0-3.1 and 3.2->
  1836     // Accespoint impl moved from engine to accespoint implementations for supporting 3.0-3.1 and 3.2->
  1844     //return iAccessPoints->AccessPointNameToIdL(aAPName, aAnyIfNotFound );
  1837     //return iAccessPoints->AccessPointNameToIdL(aAPName, aAnyIfNotFound );
  1845     return 0;
  1838     return 0;