diff -r 6743bfee309e -r 23264c07fd05 localconnectivityservice/obexsendservices/obexservicesendutils/src/BTSOPPController.cpp --- a/localconnectivityservice/obexsendservices/obexservicesendutils/src/BTSOPPController.cpp Fri May 14 16:44:53 2010 +0300 +++ b/localconnectivityservice/obexsendservices/obexservicesendutils/src/BTSOPPController.cpp Thu May 27 13:45:56 2010 +0300 @@ -160,11 +160,15 @@ { FLOG(_L("[BTSS]\t CBTSOPPController::Send()")); + TInt error(KErrNone); if ( iListPtr->ObjectCount() > 0 && iFileIndex < iListPtr->ObjectCount() ) { - RArray headerList; // the array does not need to be closed - TRAPD( error, iClient->PutObjectL( headerList, iListPtr->ObjectAtL( iFileIndex ) )); + RArray headerList; // the array does not need to be closed + + TRAP( error, { + UpdateProgressNoteL(); + iClient->PutObjectL( headerList, iListPtr->ObjectAtL( iFileIndex )); }); if ( error ) { @@ -214,9 +218,22 @@ } } } - iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ObjectListSizeL() ); + iObserverPtr->LaunchProgressNoteL( iClient, iListPtr->ObjectListSizeL(),iListPtr->ObjectCount() ); iFileIndex = 0; + UpdateProgressNoteL(); Send(); } + +void CBTSOPPController::UpdateProgressNoteL() + { + TInt size; + RBuf filename; + iListPtr->ObjectAtL( iFileIndex ).Size(size); + filename.CreateL(255); + iListPtr->ObjectAtL( iFileIndex ).Name(filename); + iObserverPtr->UpdateProgressNoteL(size,iFileIndex,filename); + filename.Close(); + } + // End of File