installationservices/swi/inc/progressbar.h
branchRCL_3
changeset 40 f8cf9d484c15
parent 0 ba25891c3a9e
child 65 7333d7932ef7
equal deleted inserted replaced
36:f9033e605ee2 40:f8cf9d484c15
     1 /*
     1 /*
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2010 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".
    28 namespace Swi
    28 namespace Swi
    29 	{
    29 	{
    30 	/// How many increments to update the bar on the uninstall of a file
    30 	/// How many increments to update the bar on the uninstall of a file
    31 	const static TInt KProgressBarUninstallAmount=1;
    31 	const static TInt KProgressBarUninstallAmount=1;
    32 	
    32 	
    33 	/// How many bytes to copy before updating the progress bar by one increment
    33 	/// How many bytes to copy before updating the progress bar by one increment.
    34 	const static TInt KProgressBarInstallChunkSize=32767;
    34 	const static TInt KProgressBarInstallChunkSize=1048576;  //1MB
    35 
    35 
    36 	/// The extra increment we add onto the end to make there always be some progress.
    36 	/// The extra increment we add onto the end to make there always be some progress.
    37 	const static TInt KProgressBarEndIncrement=1;
    37 	const static TInt KProgressBarEndIncrement=1;
    38 	
    38 	
       
    39 	/// Percentage of completion required before updating the progress bar.
       
    40     const static TInt KProgressBarIncrement=1;
       
    41 
    39 	/**
    42 	/**
    40 	 * Utility function to get how much to update the progress bar for a certain
    43 	 * Utility function to get how much to update the progress bar for a certain
    41 	 * size of file copied. The smallest increment is KProgressBarEndIncrement since we always want to show that 
    44 	 * size of file copied. The smallest increment is KProgressBarEndIncrement since we always want to show that 
    42 	 * some progress has occurred.
    45 	 * some progress has occurred.
    43 	 */
    46 	 */