260 DriveInfo::EDefaultPhoneMemory, drive ) == KErrNone |
260 DriveInfo::EDefaultPhoneMemory, drive ) == KErrNone |
261 && QChar('A'+ i) == QChar(drive)) |
261 && QChar('A'+ i) == QChar(drive)) |
262 { |
262 { |
263 drives = drives.append( |
263 drives = drives.append( |
264 HbParameterLengthLimiter("txt_applib_dialog_1_device_memory").arg( |
264 HbParameterLengthLimiter("txt_applib_dialog_1_device_memory").arg( |
265 QString(QChar('A'+ i)).append(":"))); |
265 QString(QChar('A'+ i)))); |
266 } |
266 } |
267 else if(DriveInfo::GetDefaultDrive( |
267 else if(DriveInfo::GetDefaultDrive( |
268 DriveInfo::EDefaultMassStorage, drive ) == KErrNone |
268 DriveInfo::EDefaultMassStorage, drive ) == KErrNone |
269 && QChar('A'+ i) == QChar(drive)) |
269 && QChar('A'+ i) == QChar(drive)) |
270 { |
270 { |
271 drives = drives.append( |
271 drives = drives.append( |
272 HbParameterLengthLimiter("txt_applib_dialog_1_mass_storage").arg( |
272 HbParameterLengthLimiter("txt_applib_dialog_1_mass_storage").arg( |
273 QString(QChar('A'+ i)).append(":"))); |
273 QString(QChar('A'+ i)))); |
274 } |
274 } |
275 else if(DriveInfo::GetDefaultDrive( |
275 else if(DriveInfo::GetDefaultDrive( |
276 DriveInfo::EDefaultRemovableMassStorage, drive ) == KErrNone |
276 DriveInfo::EDefaultRemovableMassStorage, drive ) == KErrNone |
277 && QChar('A'+ i) == QChar(drive)) |
277 && QChar('A'+ i) == QChar(drive)) |
278 { |
278 { |
285 DriveInfo::EDefaultRemovableMassStorage, driveNumber ); |
285 DriveInfo::EDefaultRemovableMassStorage, driveNumber ); |
286 qt_symbian_throwIfError(fs.Volume(tv, driveNumber)); |
286 qt_symbian_throwIfError(fs.Volume(tv, driveNumber)); |
287 if(tv.iName.Length()) { |
287 if(tv.iName.Length()) { |
288 drives = drives.append( |
288 drives = drives.append( |
289 HbParameterLengthLimiter("txt_applib_dialog_1_2").arg( |
289 HbParameterLengthLimiter("txt_applib_dialog_1_2").arg( |
290 QString(QChar('A'+ i)).append(":")).arg( |
290 QString(QChar('A'+ i))).arg( |
291 XQConversions::s60DescToQString(tv.iName))); |
291 XQConversions::s60DescToQString(tv.iName))); |
292 } |
292 } |
293 else { |
293 else { |
294 drives = drives.append( |
294 drives = drives.append( |
295 HbParameterLengthLimiter("txt_applib_dialog_1_memory_card").arg( |
295 HbParameterLengthLimiter("txt_applib_dialog_1_memory_card").arg( |
296 QString(QChar('A'+ i)).append(":"))); |
296 QString(QChar('A'+ i)))); |
297 } |
297 } |
298 } |
298 } |
299 } else { |
299 } else { |
300 drives = drives.append(QChar('A'+ i)).append(":"); |
300 drives = drives.append(QChar('A'+ i)).append(":"); |
301 } |
301 } |
307 |
307 |
308 static const TInt64 KKilo = 1024; |
308 static const TInt64 KKilo = 1024; |
309 static const TInt64 KMega = KKilo * KKilo; |
309 static const TInt64 KMega = KKilo * KKilo; |
310 if(entry.ComponentSize() >= KMega) { |
310 if(entry.ComponentSize() >= KMega) { |
311 detailMap[CaSoftwareRegistry::componentSizeKey()] = |
311 detailMap[CaSoftwareRegistry::componentSizeKey()] = |
312 HbParameterLengthLimiter("txt_applib_dialog_l1_mb").arg(QString().setNum( |
312 HbParameterLengthLimiter("txt_applib_dialog_l1_mb").arg( |
313 static_cast<double>(entry.ComponentSize() / KMega))); |
313 static_cast<double>(entry.ComponentSize() / KMega)); |
314 } |
314 } |
315 else { |
315 else { |
316 detailMap[CaSoftwareRegistry::componentSizeKey()] = |
316 detailMap[CaSoftwareRegistry::componentSizeKey()] = |
317 HbParameterLengthLimiter("txt_applib_dialog_l1_kb").arg(QString().setNum( |
317 HbParameterLengthLimiter("txt_applib_dialog_l1_kb").arg( |
318 static_cast<double>(entry.ComponentSize() / KKilo))); |
318 static_cast<double>(entry.ComponentSize() / KKilo)); |
319 } |
319 } |
320 |
320 |
321 |
321 |
322 detailMap[CaSoftwareRegistry::componentTypeKey()] = |
322 detailMap[CaSoftwareRegistry::componentTypeKey()] = |
323 XQConversions::s60DescToQString(entry.SoftwareType()); |
323 XQConversions::s60DescToQString(entry.SoftwareType()); |