76 */ |
76 */ |
77 virtual ~ChspsRomInstaller(); |
77 virtual ~ChspsRomInstaller(); |
78 |
78 |
79 public: // New functions |
79 public: // New functions |
80 |
80 |
81 /** |
81 |
82 * InstallTheme |
82 /** |
83 * Synchronous service for installing configurations from provided manifest files. |
83 * Installs all plugin configurations which can be found from ROM and C drives (UDA). |
|
84 * @since S60 5.2 |
|
85 */ |
|
86 void InstallL(); |
|
87 |
|
88 /** |
|
89 * Installs a plugin configuration from the provided manifest file (synchronous). |
84 * @since S60 5.0 |
90 * @since S60 5.0 |
85 * @param aFileName is name of the manifest file to be installed. |
91 * @param aFileName is name of the manifest file to be installed. |
86 * @return ThspsServiceCompletedMessage error code |
92 * @return ThspsServiceCompletedMessage error code |
87 */ |
93 */ |
88 ThspsServiceCompletedMessage InstallThemeL( |
94 ThspsServiceCompletedMessage InstallThemeL( |
89 const TDesC& aFileName ); |
95 const TDesC& aFileName ); |
90 |
96 |
91 /** |
97 /** |
92 * ReinstallThemeL. |
98 * Re-installs an application plugin configuration (synchronous). |
93 * Synchronous service for re-installing corrupted application configurations |
|
94 * from an import (imports\app_*.dat file). |
|
95 * @since S60 5.0 |
99 * @since S60 5.0 |
96 * @param aAppUid is UID of an application |
100 * @param aAppUid is UID of an application |
97 * @param aConfigurationUid is UID of a HSPS configuration |
101 * @param aConfigurationUid is UID of an application plugin configuration |
98 * @return ThspsServiceCompletedMessage error code |
102 * @return ThspsServiceCompletedMessage error code |
99 */ |
103 */ |
100 ThspsServiceCompletedMessage ReinstallThemeL( |
104 ThspsServiceCompletedMessage ReinstallThemeL( |
101 const TInt aAppUid, |
105 const TInt aAppUid, |
102 const TInt aConfigurationUid ); |
106 const TInt aConfigurationUid ); |
103 |
107 |
|
108 #ifdef HSPS_LOG_ACTIVE |
|
109 /** |
|
110 * Set log bus. |
|
111 */ |
|
112 void SetLogBus( ChspsLogBus* aLogBus ); |
|
113 #endif |
|
114 |
|
115 protected: // Functions from base classes |
|
116 |
|
117 /** |
|
118 * RunL. |
|
119 * From CActive, callback function. |
|
120 * Invoked to handle responses from the server. |
|
121 * @since S60 5.0 |
|
122 */ |
|
123 void RunL(); |
|
124 |
|
125 /** |
|
126 * DoCancel. |
|
127 * From CActive, cancels any outstanding operation. |
|
128 * @since S60 5.0 |
|
129 */ |
|
130 void DoCancel(); |
|
131 |
|
132 /** |
|
133 * RunError. |
|
134 * From CActive Called when asynchronous request has failed |
|
135 * @since S60 5.0 |
|
136 */ |
|
137 TInt RunError( |
|
138 TInt aError ); |
|
139 |
|
140 protected: |
|
141 |
|
142 /** |
|
143 * ChspsRomInstaller. |
|
144 * Performs the first phase of two phase construction. |
|
145 * @since S60 5.0 |
|
146 * @param aObserver The object to be used to handle updates from the server. |
|
147 * @param aFsSession is a reference to file server instance |
|
148 */ |
|
149 ChspsRomInstaller( |
|
150 ChspsThemeServer& aThemeServer, |
|
151 RFs& aFsSession ); |
|
152 |
|
153 /** |
|
154 * ConstructL. |
|
155 * Performs the second phase construction of a ChspsRomInstaller object. |
|
156 * @since S60 5.0 |
|
157 */ |
|
158 void ConstructL(); |
|
159 |
104 /** |
160 /** |
105 * Retrieves manifest files from both Z and C drives located in |
161 * Retrieves manifest files from both Z and C drives located in |
106 * \\private\200159C0\install\ paths. |
162 * \\private\200159C0\install\ paths. |
107 * @since S60 5.0 |
163 * @since S60 5.0 |
108 */ |
164 */ |
109 void FindInstallationFilesL( |
165 void FindInstallationFilesL( |
110 RPointerArray<HBufC>& aFolders ); |
166 RPointerArray<HBufC>& aFolders ); |
111 |
167 |
112 #ifdef HSPS_LOG_ACTIVE |
|
113 /** |
|
114 * Set log bus. |
|
115 */ |
|
116 void SetLogBus( ChspsLogBus* aLogBus ); |
|
117 #endif |
|
118 |
|
119 protected: // Functions from base classes |
|
120 |
|
121 /** |
|
122 * RunL. |
|
123 * From CActive, callback function. |
|
124 * Invoked to handle responses from the server. |
|
125 * @since S60 5.0 |
|
126 */ |
|
127 void RunL(); |
|
128 |
|
129 /** |
|
130 * DoCancel. |
|
131 * From CActive, cancels any outstanding operation. |
|
132 * @since S60 5.0 |
|
133 */ |
|
134 void DoCancel(); |
|
135 |
|
136 /** |
|
137 * RunError. |
|
138 * From CActive Called when asynchronous request has failed |
|
139 * @since S60 5.0 |
|
140 */ |
|
141 TInt RunError( |
|
142 TInt aError ); |
|
143 |
|
144 protected: |
|
145 |
|
146 /** |
|
147 * ChspsRomInstaller. |
|
148 * Performs the first phase of two phase construction. |
|
149 * @since S60 5.0 |
|
150 * @param aObserver The object to be used to handle updates from the server. |
|
151 * @param aFsSession is a reference to file server instance |
|
152 */ |
|
153 ChspsRomInstaller( |
|
154 ChspsThemeServer& aThemeServer, |
|
155 RFs& aFsSession ); |
|
156 |
|
157 /** |
|
158 * ConstructL. |
|
159 * Performs the second phase construction of a ChspsRomInstaller object. |
|
160 * @since S60 5.0 |
|
161 */ |
|
162 void ConstructL(); |
|
163 |
|
164 void DoFindInstallationFilesL( |
168 void DoFindInstallationFilesL( |
165 RPointerArray<HBufC>& aFolders, |
169 RPointerArray<HBufC>& aFolders, |
166 const TDesC& aPath ); |
170 const TDesC& aPath ); |
167 |
171 |
168 /** |
172 /** |