installationservices/swi/source/swis/server/statemachine.h
branchRCL_3
changeset 25 7333d7932ef7
parent 19 f8cf9d484c15
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    42 
    42 
    43 
    43 
    44 namespace Swi
    44 namespace Swi
    45 {
    45 {
    46 class CPlan;
    46 class CPlan;
    47 class CProgressBarValuePublisher;
    47 
    48 /** Panic ID for panics raised in state machine */
    48 /** Panic ID for panics raised in state machine */
    49 enum StateMachinePanic
    49 enum StateMachinePanic
    50 	{
    50 	{
    51 	EStateError
    51 	EStateError
    52 	};
    52 	};
   106 	void CompleteSelf();
   106 	void CompleteSelf();
   107 
   107 
   108 	void FinalizeJournalsL(TInt aError);
   108 	void FinalizeJournalsL(TInt aError);
   109 	void CompleteClientL(TInt aError);
   109 	void CompleteClientL(TInt aError);
   110 	RUiHandler& UiHandler();
   110 	RUiHandler& UiHandler();
   111 	void SetFinalProgressBarValue(TInt aValue);
       
   112 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   111 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   113 	Usif::RStsSession& TransactionSession();
   112 	Usif::RStsSession& TransactionSession();
   114 	CRegistryWrapper& RegistryWrapper();
   113 	CRegistryWrapper& RegistryWrapper();
       
   114 	void SetFinalProgressBarValue(TInt aValue);
   115 	// Is the state machine runs in information extraction mode or normal installation/uninstallation mode?
   115 	// Is the state machine runs in information extraction mode or normal installation/uninstallation mode?
   116 	TBool iIsInInfoMode;
   116 	TBool iIsInInfoMode;
   117 #else
   117 #else
   118 	CIntegrityServices& IntegrityServicesL();
   118 	CIntegrityServices& IntegrityServicesL();
   119 #endif
   119 #endif
   149 	
   149 	
   150 private:
   150 private:
   151 	TState*             iState;             ///< Curent state
   151 	TState*             iState;             ///< Curent state
   152 	const RMessage2     iMessage;           ///< Message to complete when done
   152 	const RMessage2     iMessage;           ///< Message to complete when done
   153 	RUiHandler          iUiHandler;         ///< UI handler server session
   153 	RUiHandler          iUiHandler;         ///< UI handler server session
   154 	CProgressBarValuePublisher* iProgressPublisher; ///< Pointer to the progress bar value publisher object..
       
   155 
   154 
   156 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   155 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   157 	Usif::RStsSession	iStsSession;		///< Transaction service session handle
   156 	Usif::RStsSession	iStsSession;		///< Transaction service session handle
   158 	CRegistryWrapper* 	iRegistryWrapper;	///< Registry wrapper to access the registry
   157 	CRegistryWrapper* 	iRegistryWrapper;	///< Registry wrapper to access the registry
       
   158 	CProgressBarValuePublisher* iProgressPublisher;	///< Pointer to the progress bar value publisher object..
   159 #else
   159 #else
   160 	CIntegrityServices* iIntegrityServices; ///< Shared integrity services.
   160 	CIntegrityServices* iIntegrityServices; ///< Shared integrity services.
   161 #endif
   161 #endif
   162 
   162 
   163 	TBool iCancelled;
   163 	TBool iCancelled;