equal
deleted
inserted
replaced
16 #include "IMSK.H" |
16 #include "IMSK.H" |
17 #include <imutcon.h> |
17 #include <imutcon.h> |
18 #include "IMSKSCR.H" |
18 #include "IMSKSCR.H" |
19 #include "IMUTDLL.H" |
19 #include "IMUTDLL.H" |
20 #include "cimsocketidletimer.h" |
20 #include "cimsocketidletimer.h" |
21 |
21 #include <miutlog.h> |
22 #include <e32hal.h> |
22 #include <e32hal.h> |
23 #include <securesocket.h> |
23 #include <securesocket.h> |
24 |
24 |
25 #include <bautils.h> |
25 #include <bautils.h> |
26 #include <barsread.h> |
26 #include <barsread.h> |
27 |
27 #include <mentact.h> // CMsgActive |
28 #include <es_enum.h> |
28 #include <es_enum.h> |
29 #include <ssl_internal.h> |
29 #include <ssl_internal.h> |
30 |
30 |
|
31 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
32 #include "timrfc822datefield.h" |
|
33 #endif |
31 |
34 |
32 /************************************************************* |
35 /************************************************************* |
33 * Notes: |
36 * Notes: |
34 * |
37 * |
35 * GetIAPBearer won't work if a new bearer is added, |
38 * GetIAPBearer won't work if a new bearer is added, |
217 // |
220 // |
218 // 2nd stage of construction |
221 // 2nd stage of construction |
219 // |
222 // |
220 void CImTextServerSession::ConstructL() |
223 void CImTextServerSession::ConstructL() |
221 { |
224 { |
222 iBuffer = HBufC8::NewL(KImMailMaxBufferSize*2 +2); |
225 iBuffer = HBufC8::NewL(KMailMaxBufferSize*2 +2); |
223 |
226 |
224 if (!iClientOwnsConnection) |
227 if (!iClientOwnsConnection) |
225 { |
228 { |
226 User::LeaveIfError(iServ.Connect()); |
229 User::LeaveIfError(iServ.Connect()); |
227 } |
230 } |
336 iConnect = CImConnect::NewL(*iIAPPreferences,*this); |
339 iConnect = CImConnect::NewL(*iIAPPreferences,*this); |
337 } |
340 } |
338 #if defined(__IMSK_SIMULATION) |
341 #if defined(__IMSK_SIMULATION) |
339 iConnect->SetIAPsToFail(ReadConfigNum(KFailIAPConfigFile)); |
342 iConnect->SetIAPsToFail(ReadConfigNum(KFailIAPConfigFile)); |
340 #endif //(__IMSK_SIMULATION) |
343 #endif //(__IMSK_SIMULATION) |
341 |
344 |
|
345 iConnect->SetSilentConnection(iIsSilent); |
342 // if local textseversession is active, then connect the session using existing RConnection |
346 // if local textseversession is active, then connect the session using existing RConnection |
343 if(iPrimaryTextServerSession) |
347 if(iPrimaryTextServerSession) |
344 { |
348 { |
345 // Attaching the existing RConnection. |
349 // Attaching the existing RConnection. |
346 iConnect->SecondaryStartL(iPrimaryTextServerSession); |
350 iConnect->SecondaryStartL(iPrimaryTextServerSession); |
508 // |
512 // |
509 EXPORT_C void CImTextServerSession::Send(TRequestStatus &aStatus, TRefByValue<const TDesC8> aFmt,...) |
513 EXPORT_C void CImTextServerSession::Send(TRequestStatus &aStatus, TRefByValue<const TDesC8> aFmt,...) |
510 { |
514 { |
511 VA_LIST list; |
515 VA_LIST list; |
512 VA_START(list,aFmt); |
516 VA_START(list,aFmt); |
513 TBuf8<2*KImMailMaxBufferSize+2>aBuf; |
517 TBuf8<2*KMailMaxBufferSize+2>aBuf; |
514 aBuf.AppendFormatList(aFmt,list); |
518 aBuf.AppendFormatList(aFmt,list); |
515 |
519 |
516 Send(aStatus, aBuf); |
520 Send(aStatus, aBuf); |
517 } |
521 } |
518 |
522 |
541 // |
545 // |
542 EXPORT_C void CImTextServerSession::SendQueueReceive(TRequestStatus &aStatus, TRefByValue<const TDesC8> aFmt,...) |
546 EXPORT_C void CImTextServerSession::SendQueueReceive(TRequestStatus &aStatus, TRefByValue<const TDesC8> aFmt,...) |
543 { |
547 { |
544 VA_LIST list; |
548 VA_LIST list; |
545 VA_START(list,aFmt); |
549 VA_START(list,aFmt); |
546 TBuf8<2*KImMailMaxBufferSize+2>aBuf; |
550 TBuf8<2*KMailMaxBufferSize+2>aBuf; |
547 aBuf.AppendFormatList(aFmt,list); |
551 aBuf.AppendFormatList(aFmt,list); |
548 |
552 |
549 SendQueueReceive(aStatus, aBuf); |
553 SendQueueReceive(aStatus, aBuf); |
550 } |
554 } |
551 |
555 |