equal
deleted
inserted
replaced
130 TInt r (KErrNone); |
130 TInt r (KErrNone); |
131 TUsbMsDrivesStatus allDrivesStatus; |
131 TUsbMsDrivesStatus allDrivesStatus; |
132 if( iKey != EWidgetMMCAltered && iKey != EWidgetMassStorageMode ) |
132 if( iKey != EWidgetMMCAltered && iKey != EWidgetMassStorageMode ) |
133 { |
133 { |
134 iProperty.Get( KPropertyCat, iKey, value ); |
134 iProperty.Get( KPropertyCat, iKey, value ); |
135 } |
135 } |
136 else if( iKey == EWidgetMMCAltered ) |
|
137 { |
|
138 r = iProperty.Get( KPSUidUikon, KUikMMCInserted , value ); |
|
139 } |
|
140 else |
136 else |
141 { |
137 { |
142 r = iProperty.Get( allDrivesStatus ); |
138 r = iProperty.Get( allDrivesStatus ); |
143 } |
139 } |
144 if( r == KErrNone ) |
140 if( r == KErrNone ) |
152 iHarvester->ClearAllOperations(); |
148 iHarvester->ClearAllOperations(); |
153 SetValue(1); |
149 SetValue(1); |
154 } |
150 } |
155 else if( iKey == EWidgetRegAltered && value == 1 ) |
151 else if( iKey == EWidgetRegAltered && value == 1 ) |
156 { |
152 { |
157 iHarvester->UpdateL(); |
153 iHarvester->UpdateL(); |
158 } |
|
159 else if( iKey == EWidgetMMCAltered ) |
|
160 { |
|
161 iHarvester->UpdateL(); |
|
162 } |
|
163 else if( iKey == EWidgetMassStorageMode ) |
|
164 { |
|
165 TInt count = allDrivesStatus.Length()/2; |
|
166 for ( TInt i = 0; i < count; i++ ) |
|
167 { |
|
168 TInt driveNumber = allDrivesStatus[2*i]; |
|
169 TInt driveStatus = allDrivesStatus[2*i+1]; |
|
170 switch( driveStatus ) |
|
171 { |
|
172 case EUsbMsDriveState_Connected: |
|
173 case EUsbMsDriveState_Disconnected: |
|
174 { |
|
175 iHarvester->UpdateL(); |
|
176 } |
|
177 break; |
|
178 default: |
|
179 break; |
|
180 } |
|
181 } |
|
182 } |
154 } |
183 } |
155 } |
184 } |
156 } |
185 |
157 |
186 // --------------------------------------------------------------------------- |
158 // --------------------------------------------------------------------------- |