browserutilities/browserdialogsprovider/Src/BrowserUploadProgressNote.cpp
branchRCL_3
changeset 47 e1bea15f9a39
parent 26 cb62a4f66ebe
child 48 79859ed3eea9
equal deleted inserted replaced
46:30342f40acbf 47:e1bea15f9a39
    84 // CBrowserUploadProgressNote::UpdateL
    84 // CBrowserUploadProgressNote::UpdateL
    85 // ----------------------------------------------------------------------------
    85 // ----------------------------------------------------------------------------
    86 //
    86 //
    87 void CBrowserUploadProgressNote::UpdateL( TInt aChunkSize )
    87 void CBrowserUploadProgressNote::UpdateL( TInt aChunkSize )
    88 	{ 
    88 	{ 
       
    89     //In access point roaming scenarios, aChunkSize will come as "0" (zero) in between uploading files, as we start upload again from begining.
       
    90     if( aChunkSize == 0) 
       
    91         iUploaded = 0;
       
    92 
    89     iUploaded+=aChunkSize; // Set the uploaded size.
    93     iUploaded+=aChunkSize; // Set the uploaded size.
    90 
    94 
    91     // ...Length() + 20 because if we substitute the uploaded, 
    95     // ...Length() + 20 because if we substitute the uploaded, 
    92     // and the max upload strings into the
    96     // and the max upload strings into the
    93     // "Uploaded:\ %U / %U" string, there should be enough space in the buffer.
    97     // "Uploaded:\ %U / %U" string, there should be enough space in the buffer.