equal
deleted
inserted
replaced
121 result.iError = iStatus.Int(); |
121 result.iError = iStatus.Int(); |
122 } |
122 } |
123 return result; |
123 return result; |
124 } |
124 } |
125 |
125 |
126 // ---------------------------------------------------------------------------- |
126 // <qmail> Connected() moved to base class |
127 // CIpsPlgDisconnectOp::Connected() |
127 |
128 // ---------------------------------------------------------------------------- |
128 // ---------------------------------------------------------------------------- |
129 // |
129 |
130 TBool CIpsPlgDisconnectOp::Connected() const |
|
131 { |
|
132 FUNC_LOG; |
|
133 return iTEntry.Connected(); |
|
134 } |
|
135 |
|
136 // ---------------------------------------------------------------------------- |
|
137 // CIpsPlgDisconnectOp::DoRunL() |
130 // CIpsPlgDisconnectOp::DoRunL() |
138 // ---------------------------------------------------------------------------- |
131 // ---------------------------------------------------------------------------- |
139 // |
132 // |
140 void CIpsPlgDisconnectOp::DoRunL() |
133 void CIpsPlgDisconnectOp::DoRunL() |
141 { |
134 { |
147 } |
140 } |
148 else |
141 else |
149 { |
142 { |
150 if ( iDoRemoveAfterDisconnect ) |
143 if ( iDoRemoveAfterDisconnect ) |
151 { |
144 { |
152 CIpsSetDataApi* settings = CIpsSetDataApi::NewL( iMsvSession ); |
145 //CIpsSetDataApi* settings = CIpsSetDataApi::NewL( iMsvSession ); |
153 CleanupStack::PushL( settings ); |
146 //CleanupStack::PushL( settings ); |
154 settings->RemoveAccountL( iTEntry, iMsvSession ); |
147 //settings->RemoveAccountL( iTEntry, iMsvSession ); |
155 CleanupStack::PopAndDestroy( settings ); |
148 //CleanupStack::PopAndDestroy( settings ); |
156 |
|
157 // delete the activitytimer here and set it to null so we don't try |
|
158 // to use it in CompleteObserver. This is a special case that |
|
159 // relates to deleting a connected mailbox. |
|
160 delete iActivityTimer; |
|
161 iActivityTimer = NULL; |
|
162 } |
149 } |
163 |
|
164 CompleteObserver( KErrNone ); |
150 CompleteObserver( KErrNone ); |
165 } |
151 } |
166 } |
152 } |
167 |
153 |
168 // ---------------------------------------------------------------------------- |
154 // ---------------------------------------------------------------------------- |