equal
deleted
inserted
replaced
64 |
64 |
65 iObserver = &aObserver; |
65 iObserver = &aObserver; |
66 |
66 |
67 BuildDriveList(); |
67 BuildDriveList(); |
68 |
68 |
69 for ( TInt i = 0; i < aMedias.Count(); i++ ) |
69 const TInt count( aMedias.Count() ); |
|
70 for ( TInt i = 0; i < count; i++ ) |
70 { |
71 { |
71 TInt drive(0); |
72 TInt drive(0); |
72 TInt err = iFs.CharToDrive( aMedias[i].iDrive, drive ); |
73 const TInt err = iFs.CharToDrive( aMedias[i].iDrive, drive ); |
73 if ( err == KErrNone ) |
74 if ( err == KErrNone ) |
74 { |
75 { |
75 WRITELOG2( "CMMCMonitorAO::StartMonitoring - set drive %d mediaid to %d ", drive, aMedias[i].iMediaId ); |
76 WRITELOG2( "CMMCMonitorAO::StartMonitoring - set drive %d mediaid to %d ", drive, aMedias[i].iMediaId ); |
76 iDriveList[drive] = 1; // fake value for startup (not KDriveAbsent) |
77 iDriveList[drive] = 1; // fake value for startup (not KDriveAbsent) |
77 iMediaIdList[drive] = aMedias[i].iMediaId; |
78 iMediaIdList[drive] = aMedias[i].iMediaId; |