equal
deleted
inserted
replaced
289 if (!iConnect) |
289 if (!iConnect) |
290 { |
290 { |
291 iState = EStateCreatingConnection; |
291 iState = EStateCreatingConnection; |
292 |
292 |
293 iConnect = CImConnect::NewL(iSettings->IapPrefs(), iServ); |
293 iConnect = CImConnect::NewL(iSettings->IapPrefs(), iServ); |
|
294 iConnect->SetSilentConnection(iIsSilent); |
294 iConnect->StartL(iStatus); |
295 iConnect->StartL(iStatus); |
295 SetActive(); |
296 SetActive(); |
296 } |
297 } |
297 else |
298 else |
298 { |
299 { |
317 void CSmtpSessionManager::CreateSessionL() |
318 void CSmtpSessionManager::CreateSessionL() |
318 { |
319 { |
319 iState = EStateCreatingSession; |
320 iState = EStateCreatingSession; |
320 |
321 |
321 iSession = CImSmtpSession::NewL(*iServerEntry, *iSettings, iServ, *iConnect, iServiceId); |
322 iSession = CImSmtpSession::NewL(*iServerEntry, *iSettings, iServ, *iConnect, iServiceId); |
322 iSession->ConnectL(iStatus); |
323 iSession->ConnectL(iStatus, iIsSilent); |
323 SetActive(); |
324 SetActive(); |
324 } |
325 } |
325 |
326 |
326 /** |
327 /** |
327 Stores the created session via the reference passed by the client |
328 Stores the created session via the reference passed by the client |
368 return iConnect->GetIAPValue(aAccessPointId); |
369 return iConnect->GetIAPValue(aAccessPointId); |
369 } |
370 } |
370 |
371 |
371 return KErrNotFound; |
372 return KErrNotFound; |
372 } |
373 } |
|
374 |
|
375 /** |
|
376 Sets whether connection to the network has to be established silently or not |
|
377 |
|
378 @param aIsSilent If ETrue then Silent connection is chosen. |
|
379 */ |
|
380 void CSmtpSessionManager::SetSilentConnection(TBool aIsSilent) |
|
381 { |
|
382 iIsSilent = aIsSilent; |
|
383 } |