equal
deleted
inserted
replaced
33 |
33 |
34 // ---------------------------------------------------------------------------- |
34 // ---------------------------------------------------------------------------- |
35 // CIpsPlgOnlineOperation::CIpsPlgOnlineOperation() |
35 // CIpsPlgOnlineOperation::CIpsPlgOnlineOperation() |
36 // ---------------------------------------------------------------------------- |
36 // ---------------------------------------------------------------------------- |
37 // <qmail> priority parameter has been removed |
37 // <qmail> priority parameter has been removed |
|
38 // <qmail> MFSMailRequestObserver& changed to pointer |
|
39 // <qmail> aSignallingAllowed parameter has been removed |
38 CIpsPlgOnlineOperation::CIpsPlgOnlineOperation( |
40 CIpsPlgOnlineOperation::CIpsPlgOnlineOperation( |
39 CMsvSession& aMsvSession, |
41 CMsvSession& aMsvSession, |
40 TRequestStatus& aObserverRequestStatus, |
42 TRequestStatus& aObserverRequestStatus, |
41 CIpsPlgTimerOperation& aActivityTimer, |
43 CIpsPlgTimerOperation& aActivityTimer, |
42 TFSMailMsgId aFSMailBoxId, |
44 TFSMailMsgId aFSMailBoxId, |
46 CIpsPlgBaseOperation( |
48 CIpsPlgBaseOperation( |
47 aMsvSession, |
49 aMsvSession, |
48 aObserverRequestStatus, |
50 aObserverRequestStatus, |
49 aFSRequestId, |
51 aFSRequestId, |
50 aFSMailBoxId ), |
52 aFSMailBoxId ), |
51 iActivityTimer( aActivityTimer ), |
53 iActivityTimer( &aActivityTimer ), |
52 iBaseMtm( NULL ), |
54 iBaseMtm( NULL ), |
53 iMtmReg( NULL ), |
55 iMtmReg( NULL ), |
54 iSubOperation( NULL ), |
56 iSubOperation( NULL ), |
55 iError( KErrNone ), |
57 iError( KErrNone ), |
56 iFSOperationObserver( aFSOperationObserver ) |
58 iFSOperationObserver( aFSOperationObserver ) |
66 { |
68 { |
67 FUNC_LOG; |
69 FUNC_LOG; |
68 // reset timer, if operation not completed after timer fires causes |
70 // reset timer, if operation not completed after timer fires causes |
69 // disconnection |
71 // disconnection |
70 // <qmail> remove cheking of existence of this reference member |
72 // <qmail> remove cheking of existence of this reference member |
71 iActivityTimer.ResetTimerOperation(); |
73 if (iActivityTimer) |
|
74 { |
|
75 iActivityTimer->ResetTimerOperation(); |
|
76 } |
72 |
77 |
73 iMtmReg = CClientMtmRegistry::NewL( iMsvSession ); |
78 iMtmReg = CClientMtmRegistry::NewL( iMsvSession ); |
74 iBaseMtm = iMtmReg->NewMtmL( aMtmType ); |
79 iBaseMtm = iMtmReg->NewMtmL( aMtmType ); |
75 iObserverRequestStatus = KRequestPending; |
80 iObserverRequestStatus = KRequestPending; |
76 CActiveScheduler::Add(this); |
81 CActiveScheduler::Add(this); |
127 // <qmail> |
132 // <qmail> |
128 // removed checks to prevent unwanted disconnections |
133 // removed checks to prevent unwanted disconnections |
129 //if connected, reset activitytimer. if not, there is no reason to. |
134 //if connected, reset activitytimer. if not, there is no reason to. |
130 if ( Connected() ) |
135 if ( Connected() ) |
131 { |
136 { |
132 iActivityTimer.ResetTimerOperation(); |
137 iActivityTimer->ResetTimerOperation(); |
133 } |
138 } |
134 else |
139 else |
135 { |
140 { |
136 iActivityTimer.Cancel(); |
141 iActivityTimer->Cancel(); |
137 } |
142 } |
138 // </qmail> |
143 // </qmail> |
139 User::RequestComplete(status, aStatus); |
144 User::RequestComplete(status, aStatus); |
140 } |
145 } |
141 } |
146 } |