equal
deleted
inserted
replaced
258 } |
258 } |
259 |
259 |
260 switch(aCommand) |
260 switch(aCommand) |
261 { |
261 { |
262 case KPOP3MTMConnect: // KPop3MtmConnectUID |
262 case KPOP3MTMConnect: // KPop3MtmConnectUID |
263 DoConnectL(aStatus, aSelection); |
263 case KPOP3MTMSilentConnect: |
|
264 DoConnectL(aStatus, aSelection, aCommand); |
264 MOBILITY_TEST_MTM_STATE(iServiceId, KMobilityTestMtmStatePopConnecting); |
265 MOBILITY_TEST_MTM_STATE(iServiceId, KMobilityTestMtmStatePopConnecting); |
265 break; |
266 break; |
266 case KPOP3MTMDisconnect: |
267 case KPOP3MTMDisconnect: |
267 DoQuitL(aStatus); |
268 DoQuitL(aStatus); |
268 break; |
269 break; |
292 } |
293 } |
293 |
294 |
294 // |
295 // |
295 // |
296 // |
296 // |
297 // |
297 void CImppServerMtm::DoConnectL(TRequestStatus& aStatus, CMsvEntrySelection& aSelection) |
298 void CImppServerMtm::DoConnectL(TRequestStatus& aStatus, CMsvEntrySelection& aSelection, TInt aCommand) |
298 { |
299 { |
299 __ASSERT_ALWAYS(iServerEntry, Panic(EPopNullPointer)); |
300 __ASSERT_ALWAYS(iServerEntry, Panic(EPopNullPointer)); |
300 if(IsActive()) |
301 if(IsActive()) |
301 { |
302 { |
302 User::Leave(KErrPop3ServerAlreadyConnected); |
303 User::Leave(KErrPop3ServerAlreadyConnected); |
330 // create session manager |
331 // create session manager |
331 if (!iSessionManager) |
332 if (!iSessionManager) |
332 { |
333 { |
333 iSessionManager = CPopSessionManager::NewL(); |
334 iSessionManager = CPopSessionManager::NewL(); |
334 } |
335 } |
335 |
336 if(aCommand == KPOP3MTMSilentConnect) |
|
337 { |
|
338 iSessionManager->SetSilentConnection(ETrue); |
|
339 } |
|
340 else |
|
341 { |
|
342 iSessionManager->SetSilentConnection(EFalse); |
|
343 } |
336 #if (defined SYMBIAN_USER_PROMPT_SERVICE) |
344 #if (defined SYMBIAN_USER_PROMPT_SERVICE) |
337 // Connect to UPS server and check if connection to remote server is permitted. |
345 // Connect to UPS server and check if connection to remote server is permitted. |
338 iWaiter->AuthoriseAndConnectL(iPopSettings, iClientThreadId, iHasCapability, iStatus); |
346 iWaiter->AuthoriseAndConnectL(iPopSettings, iClientThreadId, iHasCapability, iStatus); |
339 #else |
347 #else |
340 // obtain a connected pop session |
348 // obtain a connected pop session |