27 |
27 |
28 |
28 |
29 namespace Usif |
29 namespace Usif |
30 { |
30 { |
31 class CSisxSifPluginInstallParams; |
31 class CSisxSifPluginInstallParams; |
|
32 class CSisxSifPluginErrorHandler; |
32 |
33 |
33 |
34 |
34 /** |
35 /** |
35 * Base class for SISX SIF plugin UI handlers. |
36 * Base class for SISX SIF plugin UI handlers. |
36 */ |
37 */ |
37 class CSisxSifPluginUiHandlerBase : public CBase, public Swi::MUiHandler |
38 class CSisxSifPluginUiHandlerBase : public CBase, public Swi::MUiHandler |
38 { |
39 { |
39 public: // constructors and destructor |
40 public: // constructors and destructor |
40 CSisxSifPluginUiHandlerBase( RFs& aFs ); |
41 CSisxSifPluginUiHandlerBase( RFs& aFs, CSisxSifPluginErrorHandler& aErrorHandler ); |
41 ~CSisxSifPluginUiHandlerBase(); |
42 ~CSisxSifPluginUiHandlerBase(); |
42 |
43 |
43 public: // new functions |
44 public: // new functions |
44 virtual void DisplayPreparingInstallL( const TDesC& aFileName ) = 0; |
45 virtual void DisplayPreparingInstallL( const TDesC& aFileName ) = 0; |
45 virtual void DisplayCompleteL() = 0; |
46 virtual void DisplayCompleteL() = 0; |
46 virtual void DisplayFailedL( TErrorCategory aCategory, TInt aErrorCode, |
47 virtual void DisplayFailedL( const CSisxSifPluginErrorHandler& aError ) = 0; |
47 const TDesC& aErrorMessage, const TDesC& aErrorDetails ) = 0; |
|
48 |
48 |
49 public: // new functions |
49 public: // new functions |
50 void SetInstallParamsL( const CSisxSifPluginInstallParams& aInstallParams ); |
50 void SetInstallParamsL( const CSisxSifPluginInstallParams& aInstallParams ); |
51 void SetMaxInstalledSize( TInt aSize ); |
51 void SetMaxInstalledSize( TInt aSize ); |
52 void SetDriveSelectionRequired( TBool aIsRequired ); |
52 void SetDriveSelectionRequired( TBool aIsRequired ); |
53 void PublishStartL( const CComponentInfo::CNode& aRootNode ); |
53 void PublishStartL( const CComponentInfo::CNode& aRootNode ); |
54 void PublishProgressL( TSifOperationPhase aPhase, TSifOperationSubPhase aSubPhase, |
54 void PublishProgressL( TSifOperationPhase aPhase, TSifOperationSubPhase aSubPhase, |
55 TInt aCurrentProgress, TInt aTotal ); |
55 TInt aCurrentProgress, TInt aTotal ); |
56 void PublishCompletionL( TErrorCategory aErrorCategory, TInt aErrorCode, |
56 void PublishCompletionL( const CSisxSifPluginErrorHandler& aError ); |
57 const TDesC& aErrorMessage, const TDesC& aErrorDetails ); |
57 |
|
58 protected: // new functions |
|
59 void SetDisplayErrorL( Swi::TErrorDialog aType, const TDesC& aParam ); |
58 |
60 |
59 protected: // data |
61 protected: // data |
60 RFs& iFs; |
62 RFs& iFs; |
|
63 CSisxSifPluginErrorHandler& iErrorHandler; |
61 TInt iMaxInstalledSize; |
64 TInt iMaxInstalledSize; |
62 TBool iIsDriveSelectionRequired; |
65 TBool iIsDriveSelectionRequired; |
63 CSisxSifPluginInstallParams* iInstallParams; |
66 CSisxSifPluginInstallParams* iInstallParams; |
64 HBufC* iGlobalComponentId; |
67 HBufC* iGlobalComponentId; |
65 CPublishSifOperationInfo* iPublishSifOperationInfo; |
68 CPublishSifOperationInfo* iPublishSifOperationInfo; |