|
1 /* |
|
2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Source for TNSmlCtCapData class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <badesca.h> |
|
21 |
|
22 #include <nsmldebug.h> |
|
23 #include "nsmldbcaps.h" |
|
24 #include "smldevinfdtd.h" |
|
25 #include "smlmetinfdtd.h" |
|
26 #include "smldevinftags.h" |
|
27 |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // TNSmlCtCapData::TNSmlCtCapData |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C TNSmlCtCapData::TNSmlCtCapData( TNSmlCtCapTag aTag, const TDesC8& aValue ) |
|
36 : iTag(aTag), iValue(aValue) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // TNSmlCtCapData::Compare |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C TInt TNSmlCtCapData::Compare( const TNSmlCtCapData& aFirst, const TNSmlCtCapData& aSecond ) |
|
45 { |
|
46 if( aFirst.iTag == aSecond.iTag ) |
|
47 { |
|
48 return aFirst.iValue.Compare(aSecond.iValue); |
|
49 } |
|
50 return aFirst.iTag - aSecond.iTag; |
|
51 } |
|
52 |
|
53 // End of File |
|
54 |