installationservices/swi/test/tuiscriptadaptors/tswisstep.h
branchRCL_3
changeset 25 7333d7932ef7
parent 17 741e5bba2bd1
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
    30 #include "tswisserver.h"
    30 #include "tswisserver.h"
    31 #include "tuiscriptadaptors.h"
    31 #include "tuiscriptadaptors.h"
    32 #include <swi/sistruststatus.h>
    32 #include <swi/sistruststatus.h>
    33 
    33 
    34 #include <e32base.h>
    34 #include <e32base.h>
       
    35 
       
    36 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
    35 #ifndef SWI_TEXTSHELL_ROM		
    37 #ifndef SWI_TEXTSHELL_ROM		
    36 #include <apsidchecker.h>
    38 #include <apsidchecker.h>
    37 #else
    39 #else
    38 class CAppSidChecker;
    40 class CAppSidChecker;
       
    41 #endif
    39 #endif
    42 #endif
    40 
    43 
    41 namespace Swi
    44 namespace Swi
    42 	{
    45 	{
    43 	class CInstallPrefs;
    46 	class CInstallPrefs;
   219  * @internalComponent
   222  * @internalComponent
   220  */
   223  */
   221 class CSwisInstallStep : public CSwisTestStep
   224 class CSwisInstallStep : public CSwisTestStep
   222 	{
   225 	{
   223 public:
   226 public:
   224 	enum TInstallType { EUseFileHandle, EUseMemory, EUseFileName, EUseCAF, EUseOpenFileName, ECheckExitValue};
   227 	enum TInstallType { EUseFileHandle, EUseMemory, EUseFileName, EUseCAF, EUseOpenFileName, ECheckExitValue, ECheckInstallPerformance};
   225 
   228 
   226 	CSwisInstallStep(TInstallType aInstallType, TBool aDoCancelTest = EFalse);
   229 	CSwisInstallStep(TInstallType aInstallType, TBool aDoCancelTest = EFalse);
   227 	~CSwisInstallStep();
   230 	~CSwisInstallStep();
   228 	virtual TVerdict doTestStepPreambleL();
   231 	virtual TVerdict doTestStepPreambleL();
   229 	virtual TVerdict doTestStepPostambleL();
   232 	virtual TVerdict doTestStepPostambleL();
   230 	virtual TVerdict doTestStepL();
   233 	virtual TVerdict doTestStepL();
   231 private:
   234 private:
   232 	TInt DoInstallL(Swi::CInstallPrefs& aInstallPrefs);
   235 	TInt DoInstallL(Swi::CInstallPrefs& aInstallPrefs);
   233 	void GetFilesToHoldOpenL();
   236 	void GetFilesToHoldOpenL();
       
   237 	void PrintPerformanceLog(TTime aTime);
   234 
   238 
   235 private:
   239 private:
   236 	TFileName iSisFileName; // name of the file to install
   240 	TFileName iSisFileName; // name of the file to install
   237 	TFileName iXmlFileName; // name of the file containing dialog data
   241 	TFileName iXmlFileName; // name of the file containing dialog data
   238 	Swi::Test::CUIScriptAdaptor* iUi; // XML script-based UI implementation
   242 	Swi::Test::CUIScriptAdaptor* iUi; // XML script-based UI implementation
   330 	virtual TVerdict doTestStepL();
   334 	virtual TVerdict doTestStepL();
   331 	};
   335 	};
   332 #endif
   336 #endif
   333 
   337 
   334 _LIT(KSwisInstallStep, "InstallStep");
   338 _LIT(KSwisInstallStep, "InstallStep");
       
   339 _LIT(KSwisInstallPerformanceStep, "InstallPerformanceStep");
   335 _LIT(KSwisInstallFHStep, "InstallFHStep"); // install using file handles
   340 _LIT(KSwisInstallFHStep, "InstallFHStep"); // install using file handles
   336 _LIT(KSwisInstallMemStep, "InstallMemStep"); // install from memory
   341 _LIT(KSwisInstallMemStep, "InstallMemStep"); // install from memory
   337 _LIT(KSwisInstallCAFStep, "InstallCAFStep"); // install from CAF
   342 _LIT(KSwisInstallCAFStep, "InstallCAFStep"); // install from CAF
   338 _LIT(KSwisInstallOpenFileStep, "InstallOpenFileStep"); // install with already opened file
   343 _LIT(KSwisInstallOpenFileStep, "InstallOpenFileStep"); // install with already opened file
   339 _LIT(KSwisCheckedInstallStep, "CheckedInstallStep");
   344 _LIT(KSwisCheckedInstallStep, "CheckedInstallStep");
   485 private:
   490 private:
   486 	TMmcOperation iOperation;
   491 	TMmcOperation iOperation;
   487 	TInt iDrive;
   492 	TInt iDrive;
   488 	TInt iBootMode;
   493 	TInt iBootMode;
   489 	TChar iDriveChar;
   494 	TChar iDriveChar;
       
   495 
       
   496 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   490 #ifndef SWI_TEXTSHELL_ROM
   497 #ifndef SWI_TEXTSHELL_ROM
   491 	CAppSidChecker *iSwiSidChecker;
   498 	CAppSidChecker *iSwiSidChecker;
   492 #endif
   499 #endif
       
   500 #endif
       
   501 
   493 	};
   502 	};
   494 	
   503 	
   495 /**
   504 /**
   496  * Check Published Uid test step class
   505  * Check Published Uid test step class
   497  * @test
   506  * @test
   519 public:    
   528 public:    
   520     CSwisSetRemoveWithLastDependent();
   529     CSwisSetRemoveWithLastDependent();
   521     ~CSwisSetRemoveWithLastDependent();
   530     ~CSwisSetRemoveWithLastDependent();
   522     virtual TVerdict doTestStepL();
   531     virtual TVerdict doTestStepL();
   523     };
   532     };
   524 
       
   525 #endif // __TSWISSTEP_H__
   533 #endif // __TSWISSTEP_H__