applayerpluginsandutils/httptransportplugins/httptransporthandler/mconnectionprefsprovider.h
branchRCL_3
changeset 18 5f1cd966e0d9
parent 0 b16258d2340f
child 19 c0c2f28ace9c
equal deleted inserted replaced
17:a2a70ce3d4e8 18:5f1cd966e0d9
    66 								provided.
    66 								provided.
    67 */
    67 */
    68 	virtual void GetSecurityPrefs(TBool& aDialogPrompt, MSecurityPolicy*& aSecurityPolicy) =0;
    68 	virtual void GetSecurityPrefs(TBool& aDialogPrompt, MSecurityPolicy*& aSecurityPolicy) =0;
    69 
    69 
    70 /**
    70 /**
       
    71 	Callback used by the transport layer to query a client to provide security 
       
    72 	preferences.
       
    73 	@param		aDialogPref	indicating whether clients should be 
       
    74 								prompted or not.
       
    75 	@param		aSecurityPolicy	The security policy provider, can be NULL if not
       
    76 								provided.
       
    77 */
       
    78 	virtual void GetSecurityPrefs(MSecurityPolicy*& aSecurityPolicy, TInt& aDialogPref) =0;
       
    79 
       
    80 /**
    71 	Callback function that indicates the socket shutdown mode. This method instructs the
    81 	Callback function that indicates the socket shutdown mode. This method instructs the
    72 	transport layer to shutdown	the socket immediately.
    82 	transport layer to shutdown	the socket immediately.
    73 	@return		A boolean indicating whether the socket should be shutdown immediately or not.
    83 	@return		A boolean indicating whether the socket should be shutdown immediately or not.
    74 */
    84 */
    75 	virtual TBool ImmediateSocketShutdown() =0;
    85 	virtual TBool ImmediateSocketShutdown() =0;
    85 /**
    95 /**
    86 	Callback function used by the transport layer to get the maximum receive buffer size.
    96 	Callback function used by the transport layer to get the maximum receive buffer size.
    87 	@return    Returns the receive buffer size.
    97 	@return    Returns the receive buffer size.
    88 */
    98 */
    89 	virtual TInt GetRecvBufferSize() = 0;
    99 	virtual TInt GetRecvBufferSize() = 0;
       
   100 	
       
   101 /*
       
   102  *  Callback function used by the transport layer to get the socket timeout value. The result is either a non-negative integer, or an error code.
       
   103       
       
   104     @Returns the socket close timeout value to set the lingering value for socket.
       
   105  */
       
   106     virtual TInt GetSocketImmediateCloseTimeout()=0;    
    90 
   107 
    91 	};
   108 	};
    92 
   109 
    93 #endif	// __MCONNECTIONPREFSPROVIDER_H__
   110 #endif	// __MCONNECTIONPREFSPROVIDER_H__
    94 
   111