diff -r 7333d7932ef7 -r 8b7f4e561641 appinstaller/AppinstUi/sisxsifplugin/inc/sisxsifpluginuihandlerbase.h --- a/appinstaller/AppinstUi/sisxsifplugin/inc/sisxsifpluginuihandlerbase.h Tue Aug 31 15:21:33 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Base class for SISX SIF plugin UI handlers. -* -*/ - -#ifndef C_SISXSIFPLUGUIHANDLERBASE_H -#define C_SISXSIFPLUGUIHANDLERBASE_H - -#include // CBase -#include // MUiHandler -#include // RFs -#include // CSifUi -#include // CComponentInfo::CNode -#include // TSifOperationSubPhase, TErrorCategory - - -namespace Usif -{ - class CComponentEntry; - class CSisxSifPluginInstallParams; - class CSisxSifPluginErrorHandler; - - - /** - * Base class for SISX SIF plugin UI handlers. - */ - class CSisxSifPluginUiHandlerBase : public CBase, public Swi::MUiHandler - { - public: // constructors and destructor - CSisxSifPluginUiHandlerBase( RFs& aFs, CSisxSifPluginErrorHandler& aErrorHandler ); - ~CSisxSifPluginUiHandlerBase(); - - public: // new functions - virtual void DisplayPreparingInstallL( const TDesC& aFileName ) = 0; - virtual void DisplayCompleteL() = 0; - virtual void DisplayFailedL( const CSisxSifPluginErrorHandler& aError ) = 0; - - public: // new functions - void SetInstallParamsL( const CSisxSifPluginInstallParams& aInstallParams ); - void SetMaxInstalledSize( TInt aSize ); - void SetDriveSelectionRequired( TBool aIsRequired ); - TBool IsOcspMandatoryL() const; - - // functions to publish operation progress - void PublishStartL( const CComponentInfo::CNode& aRootNode ); - void PublishStartL( const CComponentEntry& aEntry ); - void PublishProgressL( TSifOperationSubPhase aSubPhase ); - void PublishCompletionL(); - - protected: // new functions - void SetErrorL( TInt aErrorCode, TInt aExtErrorCode ); - void SetErrorL( TInt aErrorCode, TInt aExtErrorCode, const TDesC& aErrMsgDetails ); - void SetErrorSwiErrorL( Swi::TErrorDialog aType, const TDesC& aParam ); - void SetOcspErrorL( Swi::TRevocationDialogMessage aMessage ); - TBool ShowQuestionL( const TDesC& aText ) const; - void ShowQuestionWithContinueL( const TDesC& aText ) const; - - protected: // data - RFs& iFs; - CSisxSifPluginErrorHandler& iErrorHandler; - TInt iMaxInstalledSize; - TBool iIsDriveSelectionRequired; - CSisxSifPluginInstallParams* iInstallParams; - - // members for publishing operation progress - CPublishSifOperationInfo* iPublishSifOperationInfo; - TSifOperationPhase iOperationPhase; - HBufC* iGlobalComponentId; - TInt iProgressBarCurrentValue; - TInt iProgressBarFinalValue; - }; - -} // namespace Usif - -#endif // C_SISXSIFPLUGUIHANDLERBASE_H -