applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/TProxyInfo.cpp
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 #include "tproxyinfo.h"
       
    17 
       
    18 TBool TProxyInfo::operator==(const TProxyInfo& aProxyInfo) const
       
    19 	{
       
    20 	TBool equal = iProxyAddress == aProxyInfo.iProxyAddress;
       
    21 	if( equal )
       
    22 		equal = iBearer == aProxyInfo.iBearer;
       
    23 	if( equal )
       
    24 		equal = iSessionType == aProxyInfo.iSessionType;
       
    25 	if( equal )
       
    26 		equal = iSecureConnection == aProxyInfo.iSecureConnection;
       
    27 	if( equal )
       
    28 		{
       
    29 		// Check the bearer dependent stuff
       
    30 		if( iBearer == EIP )
       
    31 			{
       
    32 			equal = iLocalPort == aProxyInfo.iLocalPort;
       
    33 			if( equal )
       
    34 				equal = iRemotePort == aProxyInfo.iRemotePort;
       
    35 			}
       
    36 		else
       
    37 			{
       
    38 			equal = iServiceCentreNumber == aProxyInfo.iServiceCentreNumber;
       
    39 			}
       
    40 		}
       
    41 	return equal;
       
    42 	}
       
    43