equal
deleted
inserted
replaced
64 iImapSettings(aImapSettings), |
64 iImapSettings(aImapSettings), |
65 iFetchBodyInfo(aFetchBodyInfo), |
65 iFetchBodyInfo(aFetchBodyInfo), |
66 iImapMailStore(aImapMailStore), |
66 iImapMailStore(aImapMailStore), |
67 iParent(aParent), |
67 iParent(aParent), |
68 iFetchBodyResponse(aFetchBodyResponse), |
68 iFetchBodyResponse(aFetchBodyResponse), |
69 iSendFetch(ETrue), |
69 iSendFetch(ETrue) |
70 iCancelled(EFalse) |
|
71 { |
70 { |
72 } |
71 } |
73 |
72 |
74 CImapFetchBody::~CImapFetchBody() |
73 CImapFetchBody::~CImapFetchBody() |
75 { |
74 { |
85 Overrides CImapCommand::Cancel() by cancelling any outstanding mail store operation. |
84 Overrides CImapCommand::Cancel() by cancelling any outstanding mail store operation. |
86 */ |
85 */ |
87 void CImapFetchBody::Cancel() |
86 void CImapFetchBody::Cancel() |
88 { |
87 { |
89 __LOG_TEXT(iLogId, "CImapFetchBody::Cancel()"); // Overrides CImapCommand::Cancel() |
88 __LOG_TEXT(iLogId, "CImapFetchBody::Cancel()"); // Overrides CImapCommand::Cancel() |
90 iCancelled = ETrue; |
89 |
91 iImapMailStore.CancelRequest(*this); |
90 iImapMailStore.CancelRequest(*this); |
92 CImapCommand::Cancel(); |
91 CImapCommand::Cancel(); |
93 } |
92 } |
94 |
93 |
95 void CImapFetchBody::StoreOperationComplete(TMsvId /*aId*/,TInt aErrorCode) |
94 void CImapFetchBody::StoreOperationComplete(TMsvId /*aId*/,TInt aErrorCode) |
225 */ |
224 */ |
226 void CImapFetchBody::SendMessageL(TInt aTagId, MOutputStream& aStream) |
225 void CImapFetchBody::SendMessageL(TInt aTagId, MOutputStream& aStream) |
227 { |
226 { |
228 iOutStream=&aStream; |
227 iOutStream=&aStream; |
229 |
228 |
230 if(iCancelled) |
|
231 { |
|
232 return; |
|
233 } |
|
234 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT) |
229 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT) |
235 // check for BINARY capability |
230 // check for BINARY capability |
236 const CImapCapabilityInfo& capabilityInfo = iParent.CapabilityInfo(); |
231 const CImapCapabilityInfo& capabilityInfo = iParent.CapabilityInfo(); |
237 TBool binaryCapExist = capabilityInfo.QueryFlag(CImapCapabilityInfo::EBinaryCap); |
232 TBool binaryCapExist = capabilityInfo.QueryFlag(CImapCapabilityInfo::EBinaryCap); |
238 if(binaryCapExist && iFetchBodyInfo.IsText()) |
233 if(binaryCapExist && iFetchBodyInfo.IsText()) |