applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/TProxyInfo.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __TPROXYINFO_H__
       
    17 #define __TPROXYINFO_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <stringpool.h>
       
    21 #include <wsp/wsptypes.h>
       
    22 
       
    23 // Types used for arguments in this file (e.g. TWspBearer) are from the Wap namespace
       
    24 using namespace Wap;
       
    25 
       
    26 /**	The TProxyInfo type contains the information that defines a connection to
       
    27 	a proxy that is capable of establishing a WSP session. As a T-class the
       
    28 	destructor does no cleanup. A Close() function has been supplied to do the
       
    29 	cleanup - i.e. it closes the RStringF data members.
       
    30 */
       
    31 //##ModelId=3C4C419F02FC
       
    32 class TProxyInfo
       
    33 	{
       
    34 public:	// Methods
       
    35 
       
    36 /**	@fn				operator==(const TProxyInfo& aProxyInfo) const
       
    37 	Intended Usage	:	Equality operator.
       
    38 	@since			7.0
       
    39 	@return			A boolean value of ETrue if aProxyInfo matches this object.
       
    40 */
       
    41 	//##ModelId=3C4C419F0374
       
    42 	TBool operator==(const TProxyInfo& aProxyInfo) const;
       
    43 
       
    44 /**	@fn				operator!=(const TProxyInfo& aProxyInfo) const
       
    45 	Intended Usage	:	Inequality operator.
       
    46 	@since			7.0
       
    47 	@return			A boolean value of ETrue if aProxyInfo does not match this 
       
    48 					object.
       
    49 */
       
    50 	//##ModelId=3C4C419F036A
       
    51 	inline TBool operator!=(const TProxyInfo& aProxyInfo) const;
       
    52 
       
    53 /**	@fn				Close()
       
    54 	Intended Usage	:	Cleans up the resource usage in this class. Closes the
       
    55 						RStringFs for the proxy address and the service number.
       
    56 	@since			7.0
       
    57 	@post			The string members have been closed.
       
    58 */
       
    59 	//##ModelId=3C4C419F0360
       
    60 	inline void Close();
       
    61 
       
    62 public:	// Attributes
       
    63 
       
    64 	/** The proxy address. This class is not responsible for the cleanup of this
       
    65 		string.
       
    66 	*/
       
    67 	//##ModelId=3C4C419F0358
       
    68 	RStringF			iProxyAddress;
       
    69 
       
    70 	/** The bearer type.
       
    71 	*/
       
    72 	//##ModelId=3C4C419F034E
       
    73 	TWspBearer			iBearer;
       
    74 
       
    75 	/** The local port number (only for IP bearer).
       
    76 	*/
       
    77 	//##ModelId=3C4C419F0344
       
    78 	TUint16				iLocalPort;
       
    79 
       
    80 	/** The remote port number (only for IP bearer).
       
    81 	*/
       
    82 	//##ModelId=3C4C419F033A
       
    83 	TUint16				iRemotePort;
       
    84 
       
    85 	/** The service number for the proxy (only for SMS bearer). This class is 
       
    86 		not responsible for the cleanup of this string.
       
    87 	*/
       
    88 	//##ModelId=3C4C419F0326
       
    89 	RStringF			iServiceCentreNumber;
       
    90 
       
    91 	/** The Wsp Session Service type.
       
    92 	*/
       
    93 	//##ModelId=3C4C419F031C
       
    94 	TWspSession			iSessionType;
       
    95 
       
    96 	/** A flag indicating whether the WSP session should be secured.
       
    97 	*/
       
    98 	//##ModelId=3C4C419F0312
       
    99 	TBool				iSecureConnection;
       
   100 
       
   101 	};
       
   102 
       
   103 #include "TProxyInfo.inl"
       
   104 
       
   105 #endif	// __TPROXYINFO_H__