emailuis/nmailui/src/nmattachmentmanager.cpp
changeset 44 c2d07d913565
parent 43 99bcbff212ad
child 47 f83bd4ae1fe3
equal deleted inserted replaced
43:99bcbff212ad 44:c2d07d913565
   153             QObject::connect(mMsgFetchOperation,
   153             QObject::connect(mMsgFetchOperation,
   154                     SIGNAL(operationCompleted(int)),
   154                     SIGNAL(operationCompleted(int)),
   155                     this,
   155                     this,
   156                     SLOT(completeMessageFetch(int)));
   156                     SLOT(completeMessageFetch(int)));
   157         }
   157         }
       
   158         else {
       
   159             completeMessageFetch(NmGeneralError);
       
   160         }
   158         
   161         
   159     }
   162     }
   160     else {
   163     else {
   161         completeMessageFetch(NmNoError);
   164         completeMessageFetch(NmNoError);
   162     }
   165     }
   255                 fetchAttachments(
   258                 fetchAttachments(
   256                     mFetchMsg->envelope().mailboxId(),
   259                     mFetchMsg->envelope().mailboxId(),
   257                     mFetchMsg->envelope().folderId(),
   260                     mFetchMsg->envelope().folderId(),
   258                     mFetchMsg->envelope().messageId(),
   261                     mFetchMsg->envelope().messageId(),
   259                     partIds);
   262                     partIds);
   260                 
       
   261                 if (mFetchOperation) {
       
   262                     mAttaId = 0;
       
   263                     mIsFetching = true;
       
   264                     QObject::connect(mFetchOperation, SIGNAL(operationCompleted(int)),
       
   265                             this, SLOT(completeAttachmentFetch(int)));
       
   266                     
       
   267                     QObject::connect(mFetchOperation, SIGNAL(operationProgressChanged(int)),
       
   268                             this, SLOT(changeProgress(int)));
       
   269                 
       
   270                     result = true;
       
   271                 }
       
   272             }
   263             }
   273             else {
   264             else {
   274                 mFetchObserver->fetchCompleted(NmNoError);
   265                 mFetchObserver->fetchCompleted(NmNoError);
   275             }
   266             }
   276         }
   267         }