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