localconnectivityservice/obexsendservices/obexservicesendutils/src/BTSBIPController.cpp
equal
deleted
inserted
replaced
233 iObserverPtr->ControllerComplete( EBTSGettingFailed ); |
233 iObserverPtr->ControllerComplete( EBTSGettingFailed ); |
234 } |
234 } |
235 } |
235 } |
236 else if( aStatus != KErrAbort && aGetResponse->BytesReceived()==0 ) |
236 else if( aStatus != KErrAbort && aGetResponse->BytesReceived()==0 ) |
237 { |
237 { |
238 TRAPD( error,iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize() ) ); |
238 TRAPD( error,iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize(),iListPtr->ImageCount() ) ); |
239 error=KErrNone; |
239 error=KErrNone; |
240 TRAP(error, SendL() ); |
240 TRAP(error, SendL() ); |
241 if ( error != KErrNone ) |
241 if ( error != KErrNone ) |
242 { |
242 { |
243 iObserverPtr->ControllerComplete( EBTSPuttingFailed ); |
243 iObserverPtr->ControllerComplete( EBTSPuttingFailed ); |
288 |
288 |
289 // Send image |
289 // Send image |
290 // |
290 // |
291 |
291 |
292 TBTSUImageParam imageparam = iListPtr->ImageAtL( iFileIndex ); |
292 TBTSUImageParam imageparam = iListPtr->ImageAtL( iFileIndex ); |
|
293 RBuf filename; |
|
294 filename.CreateL(256); |
|
295 CleanupClosePushL(filename); |
|
296 imageparam.iFile.Name(filename); |
293 |
297 |
|
298 iObserverPtr->UpdateProgressNoteL(imageparam.iFileSize,iFileIndex,filename); |
|
299 CleanupStack::PopAndDestroy(&filename); |
294 |
300 |
295 iListPtr->MarkAsSendL(iFileIndex); |
301 iListPtr->MarkAsSendL(iFileIndex); |
296 |
302 |
297 |
303 |
298 iClient->PutObjectL( headerList, imageparam.iFile ); |
304 iClient->PutObjectL( headerList, imageparam.iFile ); |
299 |
305 |
300 |
306 |
301 CleanupStack::Pop(4); // headerList, imageDescriptorHeader, typeHeader, imagedescriptor |
307 CleanupStack::Pop(4); // headerList, imageDescriptorHeader, typeHeader, imagedescriptor |
302 delete imagedescriptor; |
308 delete imagedescriptor; |
303 headerList.Close(); |
309 headerList.Close(); |
304 } |
310 } |
305 else |
311 else |
630 |
636 |
631 if(confirm==EAknSoftkeyYes) |
637 if(confirm==EAknSoftkeyYes) |
632 { |
638 { |
633 // Everything went ok. Start sending images |
639 // Everything went ok. Start sending images |
634 // |
640 // |
635 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize() ); |
641 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize(),iListPtr->ImageCount() ); |
636 |
642 |
637 // Start sending images |
643 // Start sending images |
638 // |
644 // |
639 SendL(); |
645 SendL(); |
640 } |
646 } |
649 |
655 |
650 if(confirm==EAknSoftkeyYes) |
656 if(confirm==EAknSoftkeyYes) |
651 { |
657 { |
652 // Everything went ok. Start sending the images |
658 // Everything went ok. Start sending the images |
653 // |
659 // |
654 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize() ); |
660 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize(),iListPtr->ImageCount() ); |
655 |
661 |
656 // Start sending images |
662 // Start sending images |
657 // |
663 // |
658 SendL(); |
664 SendL(); |
659 } |
665 } |
660 } |
666 } |
661 else if( allSupported ) |
667 else if( allSupported ) |
662 { |
668 { |
663 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize() + iListPtr->ObjectListSizeL()); |
669 iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ImageListSize() + iListPtr->ObjectListSizeL(),iListPtr->ImageCount() + iListPtr->ObjectCount()); |
664 |
670 |
665 // Start sending images |
671 // Start sending images |
666 // |
672 // |
667 SendL(); |
673 SendL(); |
668 } |
674 } |
669 |
675 |
670 |
676 |
671 FLOG(_L("[BTSU]\t CBTSBIPController::HandleGetCompleteIndicationL() #3")); |
677 FLOG(_L("[BTSU]\t CBTSBIPController::HandleGetCompleteIndicationL() #3")); |