|
1 /* |
|
2 * Copyright (c) 2002 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: XML element class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ------------------------------------------------------------------------------------------------ |
|
20 // Includes |
|
21 // ------------------------------------------------------------------------------------------------ |
|
22 |
|
23 #include "xmlelement.h" |
|
24 #include "smldtd.h" |
|
25 |
|
26 // ------------------------------------------------------------------------------------------------ |
|
27 // TElementParams |
|
28 // ------------------------------------------------------------------------------------------------ |
|
29 EXPORT_C TXMLElementParams::TXMLElementParams( TAny* aCallbacks, CNSmlStack<CXMLElement>* aCmdStack, CNSmlStack<CXMLElement>* aCleanupStack ) : |
|
30 iCallbacks(aCallbacks), iCmdStack(aCmdStack), iCleanupStack(aCleanupStack) |
|
31 { |
|
32 } |
|
33 |
|
34 // ------------------------------------------------------------------------------------------------ |
|
35 // CXMLElement |
|
36 // ------------------------------------------------------------------------------------------------ |
|
37 EXPORT_C CXMLElement::CXMLElement() |
|
38 { |
|
39 } |
|
40 |
|
41 EXPORT_C CXMLElement::~CXMLElement() |
|
42 { |
|
43 } |
|
44 |
|
45 EXPORT_C CXMLElement* CXMLElement::BeginElementL( TUint8 /*aTag*/, const TXMLElementParams& /*Params*/ ) |
|
46 { |
|
47 return 0; |
|
48 } |
|
49 |
|
50 // ------------------------------------------------------------------------------------------------ |
|
51 EXPORT_C CXMLElement::TAction CXMLElement::EndElementL( TAny* /*aCallbacks*/, TUint8 /*aTag*/ ) |
|
52 { |
|
53 return EPop; |
|
54 } |
|
55 |
|
56 |
|
57 // ------------------------------------------------------------------------------------------------ |
|
58 EXPORT_C TBool CXMLElement::NeedsCleanup() const |
|
59 { |
|
60 return EFalse; |
|
61 } |
|
62 |
|
63 // ------------------------------------------------------------------------------------------------ |
|
64 EXPORT_C void CXMLElement::SetDataL( const TDesC8& /*aData*/ ) |
|
65 { |
|
66 } |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------ |
|
69 EXPORT_C TPtrC8 CXMLElement::Data() const |
|
70 { |
|
71 return TPtrC8(); |
|
72 } |
|
73 |
|
74 // ------------------------------------------------------------------------------------------------ |
|
75 EXPORT_C TBool CXMLElement::Validate() |
|
76 { |
|
77 return ETrue; |
|
78 } |