equal
deleted
inserted
replaced
42 { |
42 { |
43 WRITELOG( "CMMCMonitorAO::ConstructL" ); // DEBUG INFO |
43 WRITELOG( "CMMCMonitorAO::ConstructL" ); // DEBUG INFO |
44 |
44 |
45 User::LeaveIfError( iFs.Connect() ); |
45 User::LeaveIfError( iFs.Connect() ); |
46 CActiveScheduler::Add( this ); |
46 CActiveScheduler::Add( this ); |
47 for( TInt i=0; i<KMaxDrives; i++ ) |
47 for( TInt i = KMaxDrives - 1; i >=0; i-- ) |
48 { |
48 { |
49 iMediaIdList[i] = 0; |
49 iMediaIdList[i] = 0; |
50 } |
50 } |
51 } |
51 } |
52 |
52 |
110 |
110 |
111 Cancel(); |
111 Cancel(); |
112 return ETrue; |
112 return ETrue; |
113 } |
113 } |
114 |
114 |
115 TBool CMMCMonitorAO::Resume() |
|
116 { |
|
117 WRITELOG( "CMMCMonitorAO::Resume" ); // DEBUG INFO |
|
118 |
|
119 iPreviousDriveList.Zero(); |
|
120 iPreviousDriveList.Copy( iDriveList ); |
|
121 |
|
122 BuildDriveList(); |
|
123 CompareDriveLists(); |
|
124 StartNotify(); |
|
125 |
|
126 return ETrue; |
|
127 } |
|
128 |
|
129 TBool CMMCMonitorAO::Pause() |
|
130 { |
|
131 WRITELOG( "CMMCMonitorAO::Pause" ); // DEBUG INFO |
|
132 |
|
133 return StopMonitoring(); |
|
134 } |
|
135 |
|
136 void CMMCMonitorAO::RunL() |
115 void CMMCMonitorAO::RunL() |
137 { |
116 { |
138 #ifdef _DEBUG |
117 #ifdef _DEBUG |
139 WRITELOG1( "CMMCMonitorAO::RunL iStatus: %d", iStatus.Int() ); // DEBUG INFO |
118 WRITELOG1( "CMMCMonitorAO::RunL iStatus: %d", iStatus.Int() ); // DEBUG INFO |
140 #endif |
119 #endif |