--- a/bluetoothengine/btnotif/btdevicedialogplugin/src/btrecvprgrsdialogwidget.cpp Wed Jun 23 18:23:52 2010 +0300
+++ b/bluetoothengine/btnotif/btdevicedialogplugin/src/btrecvprgrsdialogwidget.cpp Tue Jul 06 14:27:09 2010 +0300
@@ -79,8 +79,9 @@
mFileName = qobject_cast<HbLabel*>(mLoader->findWidget("fileName"));
mFileSize = qobject_cast<HbLabel*>(mLoader->findWidget("fileSize"));
- mFileCount = qobject_cast<HbLabel*>(mLoader->findWidget("fileCount"));
-
+ mFileCount = qobject_cast<HbLabel*>(mLoader->findWidget("fileCount_label"));
+ mFileCount->setVisible(false);
+
//TODO - set icon based on the file icon.
mHide = qobject_cast<HbAction*>(mLoader->findObject("hideaction"));
@@ -93,7 +94,6 @@
{
case TBluetoothDialogParams::EReceive:
{
- //TODO - Localization
QString headingStr(hbTrId("txt_bt_title_receiving_files_from_1"));
QString senderName(parameters.value(QString::number(TBluetoothDeviceDialog::EDeviceName)).toString());
mHeading->setPlainText(headingStr.arg(senderName));
@@ -140,13 +140,15 @@
mFileSize->setPlainText(fileSzB);
}
- //TODO - Set the received file count
-/*
- int count = parameters.value(QString::number(TBluetoothDeviceDialog::EReceivedFileCount)).toInt();
- QString fileCntStr;
- fileCntStr.setNum(count);
- mFileCount->setPlainText(fileCntStr);
-*/
+ //Set the received file count
+ int fCnt = parameters.value(QString::number(TBluetoothDeviceDialog::EReceivedFileCount)).toInt();
+ if(fCnt > 0)
+ {
+ mFileCount->setVisible(true);
+
+ QString fCntStr(hbTrId("txt_bt_info_ln_files_already_received"));
+ mFileCount->setPlainText(fCntStr.arg(fCnt));
+ }
}
mDialog->setBackgroundFaded(false);