email/pop3andsmtpmtm/servermtmutils/inc/IMSK.H
changeset 76 60a8a215b0ec
parent 0 72b543305e3a
equal deleted inserted replaced
73:ecf6a73a9186 76:60a8a215b0ec
    26 
    26 
    27 #include <e32base.h>
    27 #include <e32base.h>
    28 #include <es_sock.h>
    28 #include <es_sock.h>
    29 #include <in_sock.h>
    29 #include <in_sock.h>
    30 #include <f32file.h>
    30 #include <f32file.h>
    31 #include <mentact.h>
       
    32 #include <miutlog.h>
       
    33 #include <miut_err.h>
    31 #include <miut_err.h>
    34 #include <miuthdr.h>
    32 #include <miuthdr.h>
    35 
    33 #include <mentact.h>        // CMsgActive
    36 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS  
       
    37 #include "timrfc822datefield.h"				
       
    38 #endif
       
    39 
    34 
    40 #ifdef _DEBUG
    35 #ifdef _DEBUG
    41 #define __IMSK_SIMULATION
    36 #define __IMSK_SIMULATION
    42 #endif
    37 #endif
    43 
    38 
    44 // Enable Scripting in Debug Builds only
    39 // Enable Scripting in Debug Builds only
    45 #ifdef _DEBUG
    40 #ifdef _DEBUG
    46 #define __IMSK_SCRIPTING
    41 #define __IMSK_SCRIPTING
    47 #endif
    42 #endif
    48 
    43 
       
    44 const TInt KMailMaxBufferSize     = 1000; // 1000 is defined by the SMTP spec as max space
       
    45 
    49 /** 
    46 /** 
    50 @publishedAll
    47 @publishedAll
    51 @released
    48 @released
    52 */
    49 */
    53 const TInt EActivePriorityHigh = 1;
    50 const TInt EActivePriorityHigh = 1;
    64 
    61 
    65 /** Maximum buffer size of the received data 
    62 /** Maximum buffer size of the received data 
    66 @publishedAll
    63 @publishedAll
    67 @released
    64 @released
    68 */
    65 */
    69 typedef TBuf8<KImMailMaxBufferSize> TImMailBuffer;
    66 typedef TBuf8<KMailMaxBufferSize> TImMailBuffer;
    70 
    67 
    71 /** received buffer data line type
    68 /** received buffer data line type
    72 @publishedAll
    69 @publishedAll
    73 @released
    70 @released
    74 */
    71 */
    85 class CImTextServerScript;
    82 class CImTextServerScript;
    86 class CImIAPPreferences;
    83 class CImIAPPreferences;
    87 class CImConnect;
    84 class CImConnect;
    88 class CSecureSocket;
    85 class CSecureSocket;
    89 class CImSocketIdleTimer;
    86 class CImSocketIdleTimer;
    90 
    87 class CMsgActive;
    91 /**
    88 /**
    92 Creates/opens socket and sends and receives data.
    89 Creates/opens socket and sends and receives data.
    93 
    90 
    94 @publishedAll
    91 @publishedAll
    95 @released	
    92 @released	
   382 	IMPORT_C static CImTextServerSession *NewLC (TImOperationMode aMode, RSocketServ &aServerServ);
   379 	IMPORT_C static CImTextServerSession *NewLC (TImOperationMode aMode, RSocketServ &aServerServ);
   383 	IMPORT_C static CImTextServerSession *NewL(RSocketServ &aServerServ);
   380 	IMPORT_C static CImTextServerSession *NewL(RSocketServ &aServerServ);
   384 	//Do not call SetSecurity.  Call SetSSLTLSResponseL
   381 	//Do not call SetSecurity.  Call SetSSLTLSResponseL
   385 	IMPORT_C TInt SetSecurity(TBool aSecurityOn, TBool aUnattendedMode = FALSE);
   382 	IMPORT_C TInt SetSecurity(TBool aSecurityOn, TBool aUnattendedMode = FALSE);
   386 	IMPORT_C void PerformLogging(TBool aLogging);
   383 	IMPORT_C void PerformLogging(TBool aLogging);
   387 
   384 	inline void SetSilentConnection(TBool aIsSilent);
   388 private:
   385 private:
   389 /**
   386 /**
   390 	//cat			Construction and Destruction
   387 	//cat			Construction and Destruction
   391 	@fn				CImTextServerSession()
   388 	@fn				CImTextServerSession()
   392 	Intended Usage	:	Constructor. First phase of two-phase construction method. Does 
   389 	Intended Usage	:	Constructor. First phase of two-phase construction method. Does 
   611 	TBool iClientOwnsConnection;
   608 	TBool iClientOwnsConnection;
   612 
   609 
   613 	/** SSL domain name for secure sockets */
   610 	/** SSL domain name for secure sockets */
   614 	HBufC8* iSSLDomainName;
   611 	HBufC8* iSSLDomainName;
   615 	TBool							iSocketIdleTimeSet;          // iSocketIdleTimeSet=ETrue, if smtp server did not responds within 10 seconds after sending "."
   612 	TBool							iSocketIdleTimeSet;          // iSocketIdleTimeSet=ETrue, if smtp server did not responds within 10 seconds after sending "."
       
   613 	TBool  iIsSilent;	//Silent Connection
   616 	};
   614 	};
   617 
   615 
       
   616 
       
   617 // Sets if Silent connection is required or not
       
   618 inline void CImTextServerSession::SetSilentConnection(TBool aIsSilent)
       
   619     {
       
   620     iIsSilent = aIsSilent;
       
   621     }
       
   622 
   618 #endif
   623 #endif