syncmlfw/ds/dsutils/dbcaps/src/NSmlCtCapData.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:04:06 +0300
branchRCL_3
changeset 25 b183ec05bd8c
parent 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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