realtimenetprots/sipfw/ProfileAgent/Profile/Src/sipconcreteprofilecomparison.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2007-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 // Name        : sipconcreteprofilecomparison.cpp
       
    15 // Part of     : SIP / SIP Profile Agent / SIP Concrete Profile
       
    16 // Implementation
       
    17 // Version     : %version: 2.1.1 %
       
    18 //
       
    19 
       
    20 
       
    21 
       
    22 //  INCLUDE FILES
       
    23 #include "sipconcreteprofilecomparison.h"
       
    24  
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // SIPConcreteProfileComparison::ValueModified
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 EXPORT_C TBool SIPConcreteProfileComparison::ValueModified(
       
    32     const CSIPConcreteProfile::TComparison aValue,
       
    33     CSIPConcreteProfile& aOldProfile,
       
    34     const CSIPConcreteProfile& aNewProfile)
       
    35 	{
       
    36 	if (!(aOldProfile == aNewProfile))
       
    37 		{
       
    38 		if (aOldProfile.LastCompareResult() == aValue)
       
    39 			{
       
    40 			return ETrue;
       
    41 			}
       
    42 		}
       
    43 	return EFalse;
       
    44 	}
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // SIPConcreteProfileComparison::ValuesModified
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 EXPORT_C TBool SIPConcreteProfileComparison::ValuesModified(
       
    51     const TInt32 aValue,
       
    52     CSIPConcreteProfile& aOldProfile,
       
    53     const CSIPConcreteProfile& aNewProfile)
       
    54 	{
       
    55 	if (!(aOldProfile == aNewProfile))
       
    56 		{
       
    57 		if (aOldProfile.LastCompareResult() == aValue)
       
    58 			{
       
    59 			return ETrue;
       
    60 			}
       
    61 		}
       
    62 	return EFalse;
       
    63 	}