23 const TInt KIpsSetDataHeadersOnly = -2; |
23 const TInt KIpsSetDataHeadersOnly = -2; |
24 const TInt KIpsSetDataFullBodyAndAttas = -1; |
24 const TInt KIpsSetDataFullBodyAndAttas = -1; |
25 const TInt KIpsSetDataFullBodyOnly = -3; |
25 const TInt KIpsSetDataFullBodyOnly = -3; |
26 // </qmail> |
26 // </qmail> |
27 |
27 |
28 // ---------------------------------------------------------------------------- |
28 // <qmail> KIpsPlgIpsConnPanic removed |
29 // CIpsPlgImap4ConnOp::NewL() |
29 |
|
30 // ---------------------------------------------------------------------------- |
|
31 // CIpsPlgImap4ConnectOp::NewL() |
30 // ---------------------------------------------------------------------------- |
32 // ---------------------------------------------------------------------------- |
31 // <qmail> priority parameter has been removed |
33 // <qmail> priority parameter has been removed |
|
34 // <qmail> MFSMailRequestObserver& changed it to pointer |
|
35 // <qmail> aSignallingAllowed parameter has been removed |
32 CIpsPlgImap4ConnectOp* CIpsPlgImap4ConnectOp::NewL( |
36 CIpsPlgImap4ConnectOp* CIpsPlgImap4ConnectOp::NewL( |
33 CMsvSession& aMsvSession, |
37 CMsvSession& aMsvSession, |
34 TRequestStatus& aObserverRequestStatus, |
38 TRequestStatus& aObserverRequestStatus, |
35 TMsvId aService, |
39 TMsvId aService, |
36 CIpsPlgTimerOperation& aActivityTimer, |
40 CIpsPlgTimerOperation& aActivityTimer, |
60 |
64 |
61 // ---------------------------------------------------------------------------- |
65 // ---------------------------------------------------------------------------- |
62 // CIpsPlgImap4ConnectOp::CIpsPlgImap4ConnectOp() |
66 // CIpsPlgImap4ConnectOp::CIpsPlgImap4ConnectOp() |
63 // ---------------------------------------------------------------------------- |
67 // ---------------------------------------------------------------------------- |
64 // <qmail> priority parameter has been removed |
68 // <qmail> priority parameter has been removed |
|
69 // <qmail> MFSMailRequestObserver& changed it to pointer |
|
70 // <qmail> aSignallingAllowed parameter has been removed |
65 CIpsPlgImap4ConnectOp::CIpsPlgImap4ConnectOp( |
71 CIpsPlgImap4ConnectOp::CIpsPlgImap4ConnectOp( |
66 CMsvSession& aMsvSession, |
72 CMsvSession& aMsvSession, |
67 TRequestStatus& aObserverRequestStatus, |
73 TRequestStatus& aObserverRequestStatus, |
68 TMsvId aService, |
74 TMsvId aService, |
69 CIpsPlgTimerOperation& aActivityTimer, |
75 CIpsPlgTimerOperation& aActivityTimer, |
180 // might not never called, but gives something reasonable if called |
186 // might not never called, but gives something reasonable if called |
181 TFSProgress result = { TFSProgress::EFSStatus_Waiting, 0, 0, KErrNone }; |
187 TFSProgress result = { TFSProgress::EFSStatus_Waiting, 0, 0, KErrNone }; |
182 result.iError = KErrNone; |
188 result.iError = KErrNone; |
183 switch( iState ) |
189 switch( iState ) |
184 { |
190 { |
185 // <qmail> case EStateQueryingDetails removed |
191 // <qmail> cases EStateQueryingDetails/EStateQueryingDetailsBusy removed |
186 case EStateStartConnect: |
192 case EStateStartConnect: |
187 result.iProgressStatus = TFSProgress::EFSStatus_Started; |
193 result.iProgressStatus = TFSProgress::EFSStatus_Started; |
188 break; |
194 break; |
189 case EStateConnectAndSync: |
195 case EStateConnectAndSync: |
190 result.iProgressStatus = TFSProgress::EFSStatus_Connecting; |
196 result.iProgressStatus = TFSProgress::EFSStatus_Connecting; |
329 FUNC_LOG; |
335 FUNC_LOG; |
330 iBaseMtm->SwitchCurrentEntryL( iService ); |
336 iBaseMtm->SwitchCurrentEntryL( iService ); |
331 |
337 |
332 iSelection->ResizeL(0); |
338 iSelection->ResizeL(0); |
333 iSelection->AppendL(iService); |
339 iSelection->AppendL(iService); |
334 |
340 |
335 // <qmail> |
341 // <qmail> |
336 iStatus = KRequestPending; |
342 iStatus = KRequestPending; |
337 if ( iDoPlainConnect && !Connected() ) |
343 if ( iDoPlainConnect && !Connected() ) |
338 { |
344 { |
339 TBuf8<1> parameter; |
345 TBuf8<1> parameter; |
393 iMsvSession, |
399 iMsvSession, |
394 iStatus, |
400 iStatus, |
395 iService, |
401 iService, |
396 // <qmail> passing in activity timer; only place where NULL "reference" was used |
402 // <qmail> passing in activity timer; only place where NULL "reference" was used |
397 // <qmail> -> can get rid of checking existence of a reference memeber... |
403 // <qmail> -> can get rid of checking existence of a reference memeber... |
398 iActivityTimer, |
404 *iActivityTimer, |
399 info, |
405 info, |
400 *iSelection, |
406 *iSelection, |
401 iFSMailboxId, |
407 iFSMailboxId, |
402 NULL, // no observer for suboperation |
408 NULL, // no observer for suboperation |
403 0, // requestId can be 0 |
409 0, // requestId can be 0 |
413 CompleteThis(); |
419 CompleteThis(); |
414 } |
420 } |
415 iState = EStatePopulateAllCompleted; |
421 iState = EStatePopulateAllCompleted; |
416 } |
422 } |
417 |
423 |
418 // <qmail> remove CIpsPlgImap4ConnectOp::StartL() |
424 // <qmail> removed CIpsPlgImap4ConnectOp::StartL() |
419 // <qmail> remove CIpsPlgImap4ConnectOp::QueryUserPwdL() |
425 // <qmail> removed CIpsPlgImap4ConnectOp::QueryUserPwdL() |
420 // <qmail> remove CIpsPlgImap4ConnectOp::GetOperationErrorCodeL() |
426 // <qmail> removed CIpsPlgImap4ConnectOp::GetOperationErrorCodeL() |
421 |
427 |
422 // ---------------------------------------------------------------------------- |
428 // ---------------------------------------------------------------------------- |
423 // ---------------------------------------------------------------------------- |
429 // ---------------------------------------------------------------------------- |
424 void CIpsPlgImap4ConnectOp::SignalSyncStarted() |
430 void CIpsPlgImap4ConnectOp::SignalSyncStarted() |
425 { |
431 { |
446 } |
452 } |
447 } |
453 } |
448 |
454 |
449 // <qmail> Removing CIpsPlgImap4ConnectOp::CredientialsSetL |
455 // <qmail> Removing CIpsPlgImap4ConnectOp::CredientialsSetL |
450 |
456 |
451 // <qmail> |
457 // <qmail> new functions added |
452 // ---------------------------------------------------------------------------- |
458 // ---------------------------------------------------------------------------- |
453 // ---------------------------------------------------------------------------- |
459 // ---------------------------------------------------------------------------- |
454 void CIpsPlgImap4ConnectOp::ConstructImapPartialFetchInfo( |
460 void CIpsPlgImap4ConnectOp::ConstructImapPartialFetchInfo( |
455 TImImap4GetPartialMailInfo& aInfo, |
461 TImImap4GetPartialMailInfo& aInfo, |
456 const CImImap4Settings& aImap4Settings ) |
462 const CImImap4Settings& aImap4Settings ) |