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