author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2006-2007 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 the License "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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef XMLCONVERTOR_H |
|
22 |
#define XMLCONVERTOR_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
26 |
#include <liwservicehandler.h> |
19 | 27 |
#include <liwgenericparam.h> |
28 |
||
29 |
||
30 |
#include <gmxmlparser.h> |
|
31 |
#include <gmxmlnode.h> |
|
32 |
||
33 |
class CLiwGenericParamList; |
|
34 |
class CLiwDefaultMap; |
|
35 |
class CLiwDefaultList; |
|
36 |
||
37 |
using namespace LIW; |
|
38 |
||
39 |
||
40 |
||
41 |
||
42 |
class CXmlConvertor :public CBase |
|
43 |
{ |
|
44 |
public: // Constructors and destructor |
|
45 |
||
46 |
/** |
|
47 |
* Two-phased constructor. |
|
48 |
*/ |
|
49 |
static CXmlConvertor* NewL(); |
|
50 |
||
51 |
/** |
|
52 |
* Destructor. |
|
53 |
*/ |
|
54 |
virtual ~CXmlConvertor(); |
|
55 |
||
56 |
||
57 |
void BuildOutputTreeL(CLiwGenericParamList& aOutParamList,TPtrC& aPtr); |
|
58 |
||
59 |
private: |
|
60 |
||
61 |
||
62 |
/** |
|
63 |
* By default Symbian 2nd phase constructor is private. |
|
64 |
*/ |
|
65 |
void ConstructL(); |
|
66 |
||
67 |
/*Only for generatingXmlFile */ |
|
68 |
||
69 |
const TDesC8& GetParamAsString(TGenericParamId aParamID); |
|
70 |
||
71 |
void AppendOutParamL(CMDXMLDocument* aDocNode, CMDXMLElement* aParentNode, |
|
72 |
const TLiwVariant& aParamVar); |
|
73 |
||
74 |
void ToStringL(CMDXMLElement* aRootNode,TPtrC& aPtr); |
|
75 |
||
76 |
void WriteElementL(CMDXMLElement* aElemNode); |
|
77 |
||
78 |
void WriteStartElementTagL(CMDXMLElement* aElemNode); |
|
79 |
||
80 |
void WriteEndElementTagL(CMDXMLElement* aElemNode); |
|
81 |
||
82 |
void WriteAttributeTagL(CMDXMLElement* aElemNode); |
|
83 |
||
84 |
void AppendStringL(const TDesC& aStr); |
|
85 |
||
86 |
TInt GetLengthToStoreInt(TInt aNum); |
|
87 |
||
88 |
TInt64 GetLengthToStoreInt64(TInt64 aNum); |
|
89 |
||
90 |
||
91 |
/** Contains the output buffer.*/ |
|
92 |
HBufC* iOutputBuffer; |
|
93 |
||
94 |
||
95 |
}; |
|
96 |
||
97 |
#endif |
|
98 |
||
99 |
// End of File |