equal
deleted
inserted
replaced
187 TInt aFunctionId, |
187 TInt aFunctionId, |
188 const CMsvEntrySelection& aSel, |
188 const CMsvEntrySelection& aSel, |
189 const TDesC8& aParams ) |
189 const TDesC8& aParams ) |
190 { |
190 { |
191 FUNC_LOG; |
191 FUNC_LOG; |
192 |
192 |
193 TMsvEntry tEntry; |
193 TMsvEntry tEntry; |
194 TMsvId service; |
194 TMsvId service; |
195 if ( aSel.Count() ) |
195 if ( aSel.Count() ) |
196 { |
196 { |
197 iMsvSession.GetEntry( aSel.At(0), service, tEntry ); |
197 iMsvSession.GetEntry( aSel.At(0), service, tEntry ); |
240 } |
240 } |
241 // </qmail> |
241 // </qmail> |
242 } |
242 } |
243 } |
243 } |
244 |
244 |
|
245 |
|
246 // ---------------------------------------------------------------------------- |
|
247 // CIpsPlgOnlineOperation::EnoughDiskSpaceOnCurrentDrive() |
|
248 // Returns true if there is enough space on the disk for a file with given |
|
249 // file size. |
|
250 // ---------------------------------------------------------------------------- |
|
251 // |
|
252 TBool CIpsPlgOnlineOperation::EnoughDiskSpaceOnCurrentDrive( |
|
253 const TInt aFileSize ) const |
|
254 { |
|
255 TDriveUnit driveUnit; |
|
256 TRAP_IGNORE( driveUnit = iMsvSession.CurrentDriveL() ); |
|
257 RFs rfs( iMsvSession.FileSession() ); |
|
258 |
|
259 TBool belowCriticalLevel( EFalse ); |
|
260 |
|
261 TRAP_IGNORE( belowCriticalLevel = |
|
262 SysUtil::DiskSpaceBelowCriticalLevelL( &rfs, aFileSize, driveUnit ) ); |
|
263 |
|
264 return !belowCriticalLevel; |
|
265 } |
|
266 |
|
267 |
245 // <qmail> removed IpsOpType() |
268 // <qmail> removed IpsOpType() |
246 |
269 |
247 // <qmail> makes more sence to have this method here in "base" online op than in every derived class |
270 // <qmail> makes more sence to have this method here in "base" online op than in every derived class |
248 // ---------------------------------------------------------------------------- |
271 // ---------------------------------------------------------------------------- |
249 // ---------------------------------------------------------------------------- |
272 // ---------------------------------------------------------------------------- |