equal
deleted
inserted
replaced
207 TBool CFileManagerMemoryStoreView::DriveAvailableL( |
207 TBool CFileManagerMemoryStoreView::DriveAvailableL( |
208 TBool aShowRemoteNotConnected ) |
208 TBool aShowRemoteNotConnected ) |
209 { |
209 { |
210 HBufC* error = NULL; |
210 HBufC* error = NULL; |
211 TFileManagerDriveInfo& drvInfo( DriveInfo() ); |
211 TFileManagerDriveInfo& drvInfo( DriveInfo() ); |
212 TInt usb_err( KErrNone ); |
|
213 if ( drvInfo.iState & ( |
212 if ( drvInfo.iState & ( |
214 TFileManagerDriveInfo::EDriveRemovable | |
213 TFileManagerDriveInfo::EDriveRemovable | |
215 TFileManagerDriveInfo::EDriveRemote ) ) |
214 TFileManagerDriveInfo::EDriveRemote ) ) |
216 { |
215 { |
217 TRAP( usb_err , RefreshDriveInfoL() ); |
216 TRAP_IGNORE( RefreshDriveInfoL() ); |
218 } |
217 } |
219 if( usb_err != KErrNone ) |
218 |
220 { |
219 TInt drvNum = drvInfo.iDrive; |
221 error = StringLoader::LoadLC( R_QTN_MEMC_MAINPAGE_ERROR1 ); |
220 iEngine.GetDriveInfoL(drvNum,drvInfo); |
222 } |
|
223 |
221 |
224 INFO_LOG1( "CFileManagerMemoryStoreView::DriveAvailableL-drvState=%d", |
222 INFO_LOG1( "CFileManagerMemoryStoreView::DriveAvailableL-drvState=%d", |
225 drvInfo.iState ) |
223 drvInfo.iState ) |
226 |
224 |
227 if ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) |
225 if ( drvInfo.iState & TFileManagerDriveInfo::EDriveRemote ) |