installationservices/swi/inc/swi/sisuihandler.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
    36 {
    36 {
    37 class CUissCmd;
    37 class CUissCmd;
    38 class CWriteStream;
    38 class CWriteStream;
    39 class CProgressBarValuePublisher;
    39 class CProgressBarValuePublisher;
    40 
    40 
       
    41 
    41 /**
    42 /**
    42  * RClass which is used to make calls to the UI Support server using
    43  * RClass which is used to make calls to the UI Support server using
    43  * the client-server framework. The ExecuteL() method is passed a
    44  * the client-server framework. The ExecuteL() method is passed a
    44  * command, in order to display the associated dialog box.
    45  * command, in order to display the associated dialog box.
    45  */
    46  */
    61 	/**
    62 	/**
    62 	 * Helper function to update progress bar
    63 	 * Helper function to update progress bar
    63 	 */
    64 	 */
    64 	IMPORT_C void UpdateProgressBarL(const TAppInfo& aAppInfo, TInt aAmount);
    65 	IMPORT_C void UpdateProgressBarL(const TAppInfo& aAppInfo, TInt aAmount);
    65 	
    66 	
    66 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    67 	/** Sets a reference to the progress bar value publisher object. The ownership is NOT transferred. */
    67 	/** Sets a reference to the progress bar value publisher object. The ownership is NOT transferred. */
    68 	IMPORT_C void SetProgressBarValuePublisher(CProgressBarValuePublisher* aPublisher);
    68 	IMPORT_C void SetProgressBarValuePublisher(CProgressBarValuePublisher* aPublisher);
    69 private:
    69 private:
    70 	CProgressBarValuePublisher* iPublisher; // Owned by the state machine
    70 	CProgressBarValuePublisher* iPublisher; // Owned by the state machine
    71 #endif
       
    72 	};
    71 	};
    73 
    72 
    74 /**
    73 /**
    75  * Base class used for client classes, which marshall the arguments in order to make 
    74  * Base class used for client classes, which marshall the arguments in order to make 
    76  * a request to the server.  
    75  * a request to the server.  
   818 inline const TVersion& TAppInfo::AppVersion() const
   817 inline const TVersion& TAppInfo::AppVersion() const
   819 	{
   818 	{
   820 	return iAppVersion;
   819 	return iAppVersion;
   821 	}
   820 	}
   822 
   821 
   823 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   824 	NONSHARABLE_CLASS(CProgressBarValuePublisher) : public CBase
   822 	NONSHARABLE_CLASS(CProgressBarValuePublisher) : public CBase
   825 	/**
   823 	/**
   826 	 * This class is used to publish the percentage value of the installation progress bar.
   824 	 * This class is used to publish the percentage value of the installation progress bar.
   827 	 * The progress bar value is published by using a publish&subscribe property. @see Swi::KUidSwiProgressBarValueKey.
   825 	 * The progress bar value is published by using a publish&subscribe property. @see Swi::KUidSwiProgressBarValueKey.
   828 	 */
   826 	 */
   833 		
   831 		
   834 		/** Sets the final value of the installation progress bar. */
   832 		/** Sets the final value of the installation progress bar. */
   835 		IMPORT_C void SetFinalProgressBarValue(TInt aValue);
   833 		IMPORT_C void SetFinalProgressBarValue(TInt aValue);
   836 		
   834 		
   837 		/** Updates the value of the progress bar value property by adding the given value to the current value. */
   835 		/** Updates the value of the progress bar value property by adding the given value to the current value. */
   838 		IMPORT_C TInt UpdateProgressBarValueL(TInt aValue);
   836 		IMPORT_C TInt CalculateProgressBarValue(TInt aValue);
   839 	
   837 	
   840 	private:
   838 	private:
   841 		CProgressBarValuePublisher();
   839 		CProgressBarValuePublisher();
   842 		void ConstructL();
   840 		void ConstructL();
   843 		
   841 		
   845 		TInt iCurrentProgressValue;
   843 		TInt iCurrentProgressValue;
   846 		TInt iFinalProgressValue;
   844 		TInt iFinalProgressValue;
   847 		TInt iLastPercentCompletion;
   845 		TInt iLastPercentCompletion;
   848 		TInt iLastProgressValue;
   846 		TInt iLastProgressValue;
   849 		};
   847 		};
   850 #endif
       
   851 
   848 
   852 } // namespace Swi
   849 } // namespace Swi
   853 
   850 
   854 #endif // #ifndef __SISUIHANDLER_H__
   851 #endif // #ifndef __SISUIHANDLER_H__