--- a/emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp Wed Sep 15 17:47:19 2010 +0300
+++ b/emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp Thu Sep 30 11:43:07 2010 +0300
@@ -48,15 +48,23 @@
doCancelOperation();
}
+
/*!
+ Handles fetching events.
- */
-void NmFwaMessagePartFetchingOperation::RequestResponseL(TFSProgress aEvent, TInt aRequestId)
+ \param aEvent
+ \param aRequestId
+*/
+void NmFwaMessagePartFetchingOperation::RequestResponseL(TFSProgress aEvent,
+ TInt aRequestId)
{
NM_FUNCTION;
if (aRequestId == mRequestId) {
- if (aEvent.iProgressStatus == TFSProgress::EFSStatus_RequestComplete ) {
+ if (aEvent.iError == KErrDiskFull) {
+ completeOperation(NmDiskFullError);
+ }
+ else if (aEvent.iProgressStatus == TFSProgress::EFSStatus_RequestComplete) {
completeOperation(aEvent.iError);
}
else if (aEvent.iProgressStatus == TFSProgress::EFSStatus_RequestCancelled) {
@@ -64,12 +72,14 @@
}
else if (aEvent.iProgressStatus == TFSProgress::EFSStatus_Status) {
int progress = 0;
+
if (aEvent.iMaxCount > 0) {
// calculate progress per cents
qreal counterValue = aEvent.iCounter;
qreal maxCount = aEvent.iMaxCount;
progress = (counterValue / maxCount)*100;
}
+
if (progress > mLastProgressValue) {
// send only increasing values to prevent downward changing percentage
mLastProgressValue = progress;
@@ -79,6 +89,7 @@
}
}
+
/*!
*/