browserutilities/browserdialogsprovider/Src/BrowserUploadProgressNote.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    18 */
    18 */
    19 
    19 
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include "BrowserUploadProgressNote.h"
    22 #include "BrowserUploadProgressNote.h"
    23 #include "BrowserDialogsProviderObserver.h"
    23 #include <browserdialogsproviderobserver.h>
    24 
    24 
    25 #include <BrowserDialogsProvider.rsg>
    25 #include <BrowserDialogsProvider.rsg>
    26 #include <StringLoader.h>
    26 #include <StringLoader.h>
    27 
    27 
    28 // ----------------------------------------------------------------------------
    28 // ----------------------------------------------------------------------------
    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.