equal
deleted
inserted
replaced
124 { |
124 { |
125 FUNC_LOG |
125 FUNC_LOG |
126 |
126 |
127 delete iSubscriber; |
127 delete iSubscriber; |
128 delete iCenRep; |
128 delete iCenRep; |
|
129 delete iSystemStateMonitor; |
129 Cancel(); |
130 Cancel(); |
130 } |
131 } |
131 |
132 |
132 // --------------------------------------------------------------------------- |
133 // --------------------------------------------------------------------------- |
133 // CFileManagerSchBackupTask::RunL |
134 // CFileManagerSchBackupTask::RunL |
196 { |
197 { |
197 TLex parse; |
198 TLex parse; |
198 parse.Assign( data ); |
199 parse.Assign( data ); |
199 User::LeaveIfError( parse.Val( iDay ) ); |
200 User::LeaveIfError( parse.Val( iDay ) ); |
200 } |
201 } |
|
202 |
|
203 // Get pointer to system state monitor |
|
204 iSystemStateMonitor = CFmSystemStateMonitor::NewL( *this ); |
201 |
205 |
202 Retry(); |
206 Retry(); |
203 } |
207 } |
204 |
208 |
205 // --------------------------------------------------------------------------- |
209 // --------------------------------------------------------------------------- |
244 // CFileManagerSchBackupTask::CheckPhoneStateL |
248 // CFileManagerSchBackupTask::CheckPhoneStateL |
245 // --------------------------------------------------------------------------- |
249 // --------------------------------------------------------------------------- |
246 // |
250 // |
247 TBool CFileManagerSchBackupTask::CheckPhoneStateL() |
251 TBool CFileManagerSchBackupTask::CheckPhoneStateL() |
248 { |
252 { |
|
253 |
|
254 // Check phone is normal state or not |
|
255 if ( !iSystemStateMonitor->IsSystemStateNormal() ) |
|
256 { |
|
257 INFO_LOG( "CFileManagerSchBackupTask::CheckPhoneStateL()-System State is not normal" ) |
|
258 iSystemStateMonitor->StartMonitor( ESsmNormal ); |
|
259 return EFalse; |
|
260 } |
|
261 |
249 // Check call state |
262 // Check call state |
250 TInt callState( 0 ); |
263 TInt callState( 0 ); |
251 RProperty::Get( |
264 RProperty::Get( |
252 KPSUidCtsyCallInformation, KCTsyCallState, callState ); |
265 KPSUidCtsyCallInformation, KCTsyCallState, callState ); |
253 if ( callState != EPSCTsyCallStateNone ) |
266 if ( callState != EPSCTsyCallStateNone ) |
469 // Backup was not started, try starting it again |
482 // Backup was not started, try starting it again |
470 Retry(); |
483 Retry(); |
471 } |
484 } |
472 } |
485 } |
473 |
486 |
|
487 // --------------------------------------------------------------------------- |
|
488 // CFileManagerSchBackupTask::SystemStateChangedEvent |
|
489 // --------------------------------------------------------------------------- |
|
490 // |
|
491 void CFileManagerSchBackupTask::SystemStateChangedEvent() |
|
492 { |
|
493 FUNC_LOG |
|
494 |
|
495 // Backup was not started, try starting it again |
|
496 Retry(); |
|
497 } |
|
498 |
474 // End of file |
499 // End of file |