equal
deleted
inserted
replaced
222 // |
222 // |
223 delete iObexObject; |
223 delete iObexObject; |
224 iObexObject = NULL; |
224 iObexObject = NULL; |
225 TRAP_IGNORE(TObexUtilsMessageHandler::RemoveTemporaryRFileL (iFullPathFilename)); |
225 TRAP_IGNORE(TObexUtilsMessageHandler::RemoveTemporaryRFileL (iFullPathFilename)); |
226 iFs.Close(); |
226 iFs.Close(); |
|
227 iFileCount = 0; |
227 } |
228 } |
228 |
229 |
229 // --------------------------------------------------------- |
230 // --------------------------------------------------------- |
230 // PutRequestIndication() |
231 // PutRequestIndication() |
231 // --------------------------------------------------------- |
232 // --------------------------------------------------------- |
343 else |
344 else |
344 { |
345 { |
345 retVal = HandlePutCompleteIndication(); |
346 retVal = HandlePutCompleteIndication(); |
346 iObexTransferState = ETransferIdle; |
347 iObexTransferState = ETransferIdle; |
347 CloseReceivingIndicator(); |
348 CloseReceivingIndicator(); |
|
349 iFileCount++; |
348 } |
350 } |
349 TRACE_FUNC_EXIT |
351 TRACE_FUNC_EXIT |
350 return retVal; |
352 return retVal; |
351 } |
353 } |
352 |
354 |
760 CleanupStack::PushL(fileSz); |
762 CleanupStack::PushL(fileSz); |
761 TBuf16<6> fileSzKey; |
763 TBuf16<6> fileSzKey; |
762 fileSzKey.Num(TBluetoothDeviceDialog::EReceivingFileSize); |
764 fileSzKey.Num(TBluetoothDeviceDialog::EReceivingFileSize); |
763 User::LeaveIfError(variantMap->Add(fileSzKey, fileSz)); |
765 User::LeaveIfError(variantMap->Add(fileSzKey, fileSz)); |
764 CleanupStack::Pop(fileSz); |
766 CleanupStack::Pop(fileSz); |
765 |
767 |
|
768 CHbSymbianVariant* fileCnt = CHbSymbianVariant::NewL( (TAny*) &iFileCount, |
|
769 CHbSymbianVariant::EInt ); |
|
770 CleanupStack::PushL(fileCnt); |
|
771 TBuf16<6> fileCntKey; |
|
772 fileCntKey.Num(TBluetoothDeviceDialog::EReceivedFileCount); |
|
773 User::LeaveIfError(variantMap->Add(fileCntKey, fileCnt)); |
|
774 CleanupStack::Pop(fileCnt); |
|
775 |
766 iDialogActive = ETrue; |
776 iDialogActive = ETrue; |
767 iProgressDialog->Show( KBTDevDialogId(), *variantMap, this ); |
777 iProgressDialog->Show( KBTDevDialogId(), *variantMap, this ); |
768 CleanupStack::PopAndDestroy(variantMap); |
778 CleanupStack::PopAndDestroy(variantMap); |
769 } |
779 } |
770 else |
780 else |