syncmlfw/ds/dsutils/dbcaps/src/NSmlCtCapData.cpp
changeset 0 b497e44ab2fc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syncmlfw/ds/dsutils/dbcaps/src/NSmlCtCapData.cpp	Thu Dec 17 09:07:52 2009 +0200
@@ -0,0 +1,54 @@
+/*
+* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Source for TNSmlCtCapData class
+*
+*/
+
+
+// INCLUDE FILES
+#include <badesca.h>
+
+#include <nsmldebug.h>
+#include "nsmldbcaps.h"
+#include "smldevinfdtd.h"
+#include "smlmetinfdtd.h"
+#include "smldevinftags.h"
+
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// TNSmlCtCapData::TNSmlCtCapData
+// -----------------------------------------------------------------------------
+//
+EXPORT_C TNSmlCtCapData::TNSmlCtCapData( TNSmlCtCapTag aTag, const TDesC8& aValue )
+ : iTag(aTag), iValue(aValue)
+	{
+	}
+
+// -----------------------------------------------------------------------------
+// TNSmlCtCapData::Compare
+// -----------------------------------------------------------------------------
+//
+EXPORT_C TInt TNSmlCtCapData::Compare( const TNSmlCtCapData& aFirst, const TNSmlCtCapData& aSecond )
+	{
+	if( aFirst.iTag == aSecond.iTag )
+		{
+		return aFirst.iValue.Compare(aSecond.iValue);
+		}
+	return aFirst.iTag - aSecond.iTag;
+	}
+
+//  End of File
+