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: CXmlParserNodePath |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XMLPARSERNODEPATH__ |
|
22 #define __XMLPARSERNODEPATH__ |
|
23 |
|
24 // INCLUDES |
|
25 //#include <parser.h> |
|
26 #include <e32base.h> |
|
27 #include <badesca.h> |
|
28 #include <contenthandler.h> |
|
29 |
|
30 class CXdmXmlParser; |
|
31 class CXdmDocumentNode; |
|
32 class MXmlNodePathInterface; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 NONSHARABLE_CLASS( CXmlParserNodePath ) : public CBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Copies the request data |
|
41 * @param aRequestData Data to be sent |
|
42 */ |
|
43 static CXmlParserNodePath* NewL( CXdmXmlParser& aParserMain, |
|
44 TXdmElementType iElementType, |
|
45 const CXdmDocumentNode& aTargetNode, |
|
46 MXmlNodePathInterface* aPathInterface ); |
|
47 |
|
48 /** |
|
49 * Copies the request data |
|
50 * @param aRequestData Data to be sent |
|
51 */ |
|
52 TBool CheckNextNode( const CXdmDocumentNode& aNextNode ); |
|
53 |
|
54 /** |
|
55 * Copies the request data |
|
56 * @param aRequestData Data to be sent |
|
57 */ |
|
58 TBool CheckNextNodeL( const TDesC8& aNextElement, |
|
59 const Xml::RAttributeArray& aAttributes ); |
|
60 |
|
61 /** |
|
62 * Copies the request data |
|
63 * @param aRequestData Data to be sent |
|
64 */ |
|
65 virtual ~CXmlParserNodePath(); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * Copies the request data |
|
71 * @param aRequestData Data to be sent |
|
72 */ |
|
73 CXmlParserNodePath( CXdmXmlParser& aParserMain, |
|
74 TXdmElementType aElementType, |
|
75 MXmlNodePathInterface* aPathInterface ); |
|
76 |
|
77 /** |
|
78 * Copies the request data |
|
79 * @param aRequestData Data to be sent |
|
80 */ |
|
81 void ConstructL( const CXdmDocumentNode& aTargetNode ); |
|
82 |
|
83 private: //Data |
|
84 |
|
85 TInt iIndex; |
|
86 TBool iComplete; |
|
87 TXdmElementType iElementType; |
|
88 MXmlNodePathInterface* iPathInterface; |
|
89 RPointerArray<CXdmDocumentNode> iNodes; |
|
90 CXdmXmlParser& iParserMain; |
|
91 }; |
|
92 |
|
93 #endif //__XMLPARSERNODEPATH__ |
|
94 |
|
95 |
|
96 // End of File |
|
97 |
|