equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <e32base.h> |
19 #include <e32base.h> |
20 #include <f32file.h> |
20 #include <f32file.h> |
21 #ifdef RD_MULTIPLE_DRIVE |
|
22 #include <driveinfo.h> |
21 #include <driveinfo.h> |
23 #endif //RD_MULTIPLE_DRIVE |
|
24 #include <mpxlog.h> |
22 #include <mpxlog.h> |
25 #include "mpxfsformatmonitor.h" |
23 #include "mpxfsformatmonitor.h" |
26 |
24 |
27 #ifdef RD_MULTIPLE_DRIVE |
25 static const TInt KDriveCount = 2; |
28 static const TInt KDriveCount = 2; |
|
29 #else |
|
30 static const TInt KDriveCount = 1; |
|
31 #endif |
|
32 |
26 |
33 // ======== MEMBER FUNCTIONS ======== |
27 // ======== MEMBER FUNCTIONS ======== |
34 |
28 |
35 // --------------------------------------------------------------------------- |
29 // --------------------------------------------------------------------------- |
36 // Default Constructor |
30 // Default Constructor |
140 iObserver.HandleSystemEventL(EFormatStartEvent, iBackupDrives[i]); |
134 iObserver.HandleSystemEventL(EFormatStartEvent, iBackupDrives[i]); |
141 } |
135 } |
142 } |
136 } |
143 else // TOperationType::EEnd or TOperationType::EAbort |
137 else // TOperationType::EEnd or TOperationType::EAbort |
144 { |
138 { |
|
139 //Ignore if formatting is ongoing |
|
140 TBool formatting = iBackupSession->IsBackupOperationRunning(); |
|
141 if ( formatting ) |
|
142 { |
|
143 return; |
|
144 } |
145 for(TInt i=0; i<KDriveCount; ++i) |
145 for(TInt i=0; i<KDriveCount; ++i) |
146 { |
146 { |
147 iObserver.HandleSystemEventL(EFormatEndEvent, iBackupDrives[i]); |
147 iObserver.HandleSystemEventL(EFormatEndEvent, iBackupDrives[i]); |
148 } |
148 } |
149 } |
149 } |