equal
deleted
inserted
replaced
37 MNcdOperationProxyRemoveHandler* aRemoveHandler, |
37 MNcdOperationProxyRemoveHandler* aRemoveHandler, |
38 CNcdNodeProxy* aNode, |
38 CNcdNodeProxy* aNode, |
39 CNcdNodeManagerProxy* aNodeManager, |
39 CNcdNodeManagerProxy* aNodeManager, |
40 MNcdInstallOperationObserver* aObserver, |
40 MNcdInstallOperationObserver* aObserver, |
41 MNcdInstallationService& aInstallationService, |
41 MNcdInstallationService& aInstallationService, |
42 const SwiUI::TInstallOptions& aInstallOptions ) |
42 Usif::COpaqueNamedParams* aInstallOptions ) |
43 { |
43 { |
44 CNcdSilentInstallOperationProxy* self = |
44 CNcdSilentInstallOperationProxy* self = |
45 new( ELeave ) CNcdSilentInstallOperationProxy( aInstallationService, |
45 new( ELeave ) CNcdSilentInstallOperationProxy( aInstallationService, |
46 aInstallOptions ); |
46 aInstallOptions ); |
47 |
47 |
57 // Constructor |
57 // Constructor |
58 // --------------------------------------------------------------------------- |
58 // --------------------------------------------------------------------------- |
59 // |
59 // |
60 CNcdSilentInstallOperationProxy::CNcdSilentInstallOperationProxy( |
60 CNcdSilentInstallOperationProxy::CNcdSilentInstallOperationProxy( |
61 MNcdInstallationService& aInstallationService, |
61 MNcdInstallationService& aInstallationService, |
62 const SwiUI::TInstallOptions& aInstallOptions ) |
62 /*const*/ Usif::COpaqueNamedParams* aInstallOptions ) |
63 : CNcdInstallOperationProxy( aInstallationService ) |
63 : CNcdInstallOperationProxy( aInstallationService ) |
64 { |
64 { |
65 // Copy all the install options into the buffer that will be used |
65 // Copy all the install options into the buffer that will be used |
66 // when silent installation is delegated to the installer. |
66 // when silent installation is delegated to the installer. |
67 iInstallOptionsPackage = aInstallOptions; |
67 iInstallOptions = aInstallOptions; |
68 } |
68 } |
69 |
|
70 |
69 |
71 // --------------------------------------------------------------------------- |
70 // --------------------------------------------------------------------------- |
72 // Destructor |
71 // Destructor |
73 // --------------------------------------------------------------------------- |
72 // --------------------------------------------------------------------------- |
74 // |
73 // |
188 { |
187 { |
189 Installer().SilentInstallL( |
188 Installer().SilentInstallL( |
190 iFileHandle, |
189 iFileHandle, |
191 aFile.MimeType(), |
190 aFile.MimeType(), |
192 aFile.Purpose(), |
191 aFile.Purpose(), |
193 SilentInstallOptionsPackage() ); |
192 SilentInstallOptions() ); |
194 break; |
193 break; |
195 } |
194 } |
196 |
195 |
197 case CNcdInstallInfo::ENcdInstallJar: // flow through |
196 case CNcdInstallInfo::ENcdInstallJar: // flow through |
198 case CNcdInstallInfo::ENcdInstallJad: |
197 case CNcdInstallInfo::ENcdInstallJad: |
199 { |
198 { |
200 Installer().SilentInstallJavaL( |
199 Installer().SilentInstallJavaL( |
201 iFileHandle, |
200 iFileHandle, |
202 aFile.MimeType(), |
201 aFile.MimeType(), |
203 aFile.Data(), |
202 aFile.Data(), |
204 SilentInstallOptionsPackage() ); |
203 SilentInstallOptions() ); |
205 break; |
204 break; |
206 } |
205 } |
207 |
206 |
208 // Call the corresponding installing function according to the type value. |
207 // Call the corresponding installing function according to the type value. |
209 // MimeType info is missing here but SWI will figure out the mimetype via file handler |
208 // MimeType info is missing here but SWI will figure out the mimetype via file handler |
210 // and call the corresponding plugin. |
209 // and call the corresponding plugin. |
211 case CNcdInstallInfo::ENcdInstallWidget: |
210 case CNcdInstallInfo::ENcdInstallWidget: |
212 { |
211 { |
213 Installer().SilentInstallWidgetL( |
212 Installer().SilentInstallWidgetL( |
214 iFileHandle, |
213 iFileHandle, |
215 SilentInstallOptionsPackage() ); |
214 SilentInstallOptions() ); |
216 |
215 |
217 break; |
216 break; |
218 } |
217 } |
219 |
218 |
220 default: |
219 default: |
225 } |
224 } |
226 } |
225 } |
227 DLTRACEOUT(("")); |
226 DLTRACEOUT(("")); |
228 } |
227 } |
229 |
228 |
230 |
229 const Usif::COpaqueNamedParams* CNcdSilentInstallOperationProxy::SilentInstallOptions() const |
231 const SwiUI::TInstallOptionsPckg& CNcdSilentInstallOperationProxy::SilentInstallOptionsPackage() const |
|
232 { |
230 { |
233 DLTRACEIN(("")); |
231 DLTRACEIN(("")); |
234 return iInstallOptionsPackage; |
232 return iInstallOptions; |
235 } |
233 } |