williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@4
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@4
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Class implements XML DOM fragment using libxml2 classes
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
|
williamr@2
|
20 |
|
williamr@2
|
21 |
|
williamr@2
|
22 |
|
williamr@2
|
23 |
|
williamr@2
|
24 |
|
williamr@2
|
25 |
|
williamr@2
|
26 |
#ifndef SEN_DOM_FRAGMENT_BASE_H
|
williamr@2
|
27 |
#define SEN_DOM_FRAGMENT_BASE_H
|
williamr@2
|
28 |
|
williamr@2
|
29 |
// INCLUDES
|
williamr@2
|
30 |
#include <SenFragmentBase.h>
|
williamr@2
|
31 |
|
williamr@2
|
32 |
// FORWARD DECLARATIONS
|
williamr@2
|
33 |
class RFileLogger;
|
williamr@2
|
34 |
|
williamr@2
|
35 |
// CLASS DECLARATION
|
williamr@2
|
36 |
|
williamr@2
|
37 |
/**
|
williamr@2
|
38 |
* Class implements DOM fragment functionality
|
williamr@2
|
39 |
* The implementation further extends CSenBaseFragment
|
williamr@2
|
40 |
* functionality. In DOM fragment, all child elements
|
williamr@2
|
41 |
* are parsed into separate element objects. This makes
|
williamr@2
|
42 |
* it possible to reference any child which offer methods
|
williamr@2
|
43 |
* declared in XML element interface. Any such element
|
williamr@2
|
44 |
* can also be easily extracted (detached) from this
|
williamr@2
|
45 |
* root DOM fragment.
|
williamr@2
|
46 |
* @lib SenFragment.dll
|
williamr@2
|
47 |
* @since Series60 4.0
|
williamr@2
|
48 |
*/
|
williamr@2
|
49 |
class CSenDomFragmentBase : public CSenFragmentBase
|
williamr@2
|
50 |
{
|
williamr@2
|
51 |
public: // Constructors and destructor
|
williamr@2
|
52 |
|
williamr@2
|
53 |
/**
|
williamr@2
|
54 |
* Basic contructor. Should be used only for parsing new fragments etc.
|
williamr@2
|
55 |
* Constructing DomFragments for other use should be done with at least
|
williamr@2
|
56 |
* localname parameter.
|
williamr@2
|
57 |
* @since Series60 4.0
|
williamr@2
|
58 |
*/
|
williamr@2
|
59 |
IMPORT_C static CSenDomFragmentBase* NewL();
|
williamr@2
|
60 |
|
williamr@2
|
61 |
/**
|
williamr@2
|
62 |
* Basic constructor.
|
williamr@2
|
63 |
* @since Series60 4.0
|
williamr@2
|
64 |
* @param aElement Element to copy construction data from.
|
williamr@2
|
65 |
*/
|
williamr@2
|
66 |
IMPORT_C static CSenDomFragmentBase* NewL(
|
williamr@2
|
67 |
const TXmlEngElement& aElement);
|
williamr@2
|
68 |
|
williamr@2
|
69 |
/**
|
williamr@2
|
70 |
* Basic constructor.
|
williamr@2
|
71 |
* @since Series60 4.0
|
williamr@2
|
72 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
73 |
*/
|
williamr@2
|
74 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aLocalName);
|
williamr@2
|
75 |
|
williamr@2
|
76 |
/**
|
williamr@2
|
77 |
* Basic constructor.
|
williamr@2
|
78 |
* @since Series60 4.0
|
williamr@2
|
79 |
* @param aNsUri is the XML namespace user of this fragment
|
williamr@2
|
80 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
81 |
*/
|
williamr@2
|
82 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aNsUri,
|
williamr@2
|
83 |
const TDesC8& aLocalName);
|
williamr@2
|
84 |
|
williamr@2
|
85 |
/**
|
williamr@2
|
86 |
* Basic constructor.
|
williamr@2
|
87 |
* @since Series60 4.0
|
williamr@2
|
88 |
* @param aNsUri is the XML namespace user of this fragment
|
williamr@2
|
89 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
90 |
* @param aPrefix is the XML prefix of this fragment
|
williamr@2
|
91 |
*/
|
williamr@2
|
92 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aNsUri,
|
williamr@2
|
93 |
const TDesC8& aLocalName,
|
williamr@2
|
94 |
const TDesC8& aPrefix);
|
williamr@2
|
95 |
|
williamr@2
|
96 |
/**
|
williamr@2
|
97 |
* Basic constructor.
|
williamr@2
|
98 |
* @since Series60 4.0
|
williamr@2
|
99 |
* @param aNsUri is the XML namespace of this fragment
|
williamr@2
|
100 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
101 |
* @param aPrefix is the prefix of this fragment
|
williamr@2
|
102 |
* @param aAttrs are the XML attributes of this fragment
|
williamr@2
|
103 |
*/
|
williamr@2
|
104 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aNsUri,
|
williamr@2
|
105 |
const TDesC8& aLocalName,
|
williamr@2
|
106 |
const TDesC8& aPrefix,
|
williamr@2
|
107 |
const RAttributeArray& aAttrs);
|
williamr@2
|
108 |
|
williamr@2
|
109 |
/**
|
williamr@2
|
110 |
* Basic constructor.
|
williamr@2
|
111 |
* @since Series60 4.0
|
williamr@2
|
112 |
* @param aNsUri is the XML namespace of this fragment
|
williamr@2
|
113 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
114 |
* @param aPrefix is the prefix of this fragment
|
williamr@2
|
115 |
* @param aAttrs are the XML attributes of this fragment
|
williamr@2
|
116 |
* @param aParent is the parent XML element of this fragment
|
williamr@2
|
117 |
*/
|
williamr@2
|
118 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aNsUri,
|
williamr@2
|
119 |
const TDesC8& aLocalName,
|
williamr@2
|
120 |
const TDesC8& aPrefix,
|
williamr@2
|
121 |
const RAttributeArray& aAttrs,
|
williamr@2
|
122 |
TXmlEngElement& aParent);
|
williamr@2
|
123 |
|
williamr@2
|
124 |
/**
|
williamr@2
|
125 |
* Basic constructor.
|
williamr@2
|
126 |
* @since Series60 4.0
|
williamr@2
|
127 |
* @param aNsUri is the XML namespace of this fragment
|
williamr@2
|
128 |
* @param aLocalName is the XML localname of this fragment
|
williamr@2
|
129 |
* @param aPrefix is the prefix of this fragment
|
williamr@2
|
130 |
* @param aAttrs are the XML attributes of this fragment
|
williamr@2
|
131 |
* @param aParent is the parent XML element of this fragment
|
williamr@2
|
132 |
* @param aOwnerDocument is the document which will be the owner of
|
williamr@2
|
133 |
* the elements of this fragment
|
williamr@2
|
134 |
*/
|
williamr@2
|
135 |
IMPORT_C static CSenDomFragmentBase* NewL(const TDesC8& aNsUri,
|
williamr@2
|
136 |
const TDesC8& aLocalName,
|
williamr@2
|
137 |
const TDesC8& aPrefix,
|
williamr@2
|
138 |
const RAttributeArray& aAttrs,
|
williamr@2
|
139 |
TXmlEngElement& aParent,
|
williamr@2
|
140 |
RSenDocument& aOwnerDocument);
|
williamr@2
|
141 |
/**
|
williamr@2
|
142 |
* Destructor.
|
williamr@2
|
143 |
*/
|
williamr@2
|
144 |
IMPORT_C virtual ~CSenDomFragmentBase();
|
williamr@2
|
145 |
|
williamr@2
|
146 |
// New functions
|
williamr@2
|
147 |
|
williamr@2
|
148 |
/**
|
williamr@2
|
149 |
* Initiates the parsing chain where new delegate will be created with
|
williamr@2
|
150 |
* given parameters and parsing will be delegated to it. Should not be
|
williamr@2
|
151 |
* called externally.
|
williamr@2
|
152 |
* @since Series60 4.0
|
williamr@2
|
153 |
* @param aElement The RTagInfo class holding information that describes
|
williamr@2
|
154 |
* the element.
|
williamr@2
|
155 |
* @param aAttributes The attributes of the new element
|
williamr@2
|
156 |
* @param aErrorCode Error code
|
williamr@2
|
157 |
*/
|
williamr@2
|
158 |
IMPORT_C virtual void ExpandL(const RTagInfo& aElement,
|
williamr@2
|
159 |
const RAttributeArray& aAttributes,
|
williamr@2
|
160 |
TInt aErrorCode);
|
williamr@2
|
161 |
|
williamr@2
|
162 |
// Functions from base classes
|
williamr@2
|
163 |
|
williamr@2
|
164 |
// From CSenBaseFragment
|
williamr@2
|
165 |
|
williamr@2
|
166 |
/**
|
williamr@2
|
167 |
* Resumes the parsing. Usually called by the delegate fragment which was
|
williamr@2
|
168 |
* parsing itself after DelegateParsingL().
|
williamr@2
|
169 |
* @since Series60 4.0
|
williamr@2
|
170 |
* @param aElement The RTagInfo class holding information that describes
|
williamr@2
|
171 |
* the element.
|
williamr@2
|
172 |
* @param aErrorCode Error code
|
williamr@2
|
173 |
*/
|
williamr@2
|
174 |
IMPORT_C virtual void OnResumeParsingFromL(const RTagInfo& aElement,
|
williamr@2
|
175 |
TInt aErrorCode);
|
williamr@2
|
176 |
|
williamr@2
|
177 |
/**
|
williamr@2
|
178 |
* Sets the attributes for the fragment.
|
williamr@2
|
179 |
* @since Series60 4.0
|
williamr@2
|
180 |
* @param aAttributes The array of attributes.
|
williamr@2
|
181 |
*/
|
williamr@2
|
182 |
IMPORT_C virtual void AddAttributesL(const RAttributeArray& aAttrs);
|
williamr@2
|
183 |
|
williamr@2
|
184 |
/**
|
williamr@2
|
185 |
* Gets the fragment data as an UTF-8 form XML.
|
williamr@2
|
186 |
* @since Series60 4.0
|
williamr@2
|
187 |
* @return fragment as XML. Caller takes ownership.
|
williamr@2
|
188 |
*/
|
williamr@2
|
189 |
IMPORT_C virtual HBufC8* AsXmlL();
|
williamr@2
|
190 |
|
williamr@2
|
191 |
/**
|
williamr@2
|
192 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
193 |
* Inheriting classes can override these.
|
williamr@2
|
194 |
* @since Series60 4.0
|
williamr@2
|
195 |
* @see MContentHandler
|
williamr@2
|
196 |
*/
|
williamr@2
|
197 |
IMPORT_C virtual void OnStartElementL(const RTagInfo& aElement,
|
williamr@2
|
198 |
const RAttributeArray& aAttributes,
|
williamr@2
|
199 |
TInt aErrorCode);
|
williamr@2
|
200 |
|
williamr@2
|
201 |
/**
|
williamr@2
|
202 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
203 |
* Inheriting classes can override these.
|
williamr@2
|
204 |
* @since Series60 4.0
|
williamr@2
|
205 |
* @see MContentHandler
|
williamr@2
|
206 |
*/
|
williamr@2
|
207 |
IMPORT_C virtual void OnContentL(const TDesC8& aBytes,
|
williamr@2
|
208 |
TInt aErrorCode);
|
williamr@2
|
209 |
|
williamr@2
|
210 |
/**
|
williamr@2
|
211 |
* Overriding content writing from CSenBaseFragment to do nothing in
|
williamr@2
|
212 |
* DOM fragment (because the tree is expanded).
|
williamr@2
|
213 |
* @since Series60 4.0
|
williamr@2
|
214 |
* @param aElement The RTagInfo class holding information that
|
williamr@2
|
215 |
* describes the element.
|
williamr@2
|
216 |
* @param aAttributes The attributes of the new element
|
williamr@2
|
217 |
*/
|
williamr@2
|
218 |
IMPORT_C void OnWriteStartElementL(const RTagInfo& aElement,
|
williamr@2
|
219 |
const RAttributeArray& aAttributes);
|
williamr@2
|
220 |
|
williamr@2
|
221 |
/**
|
williamr@2
|
222 |
* Overriding content writing from CSenBaseFragment to do nothing in
|
williamr@2
|
223 |
* DOM fragment (because the tree is expanded).
|
williamr@2
|
224 |
* @since Series60 4.0
|
williamr@2
|
225 |
* @param aElement The RTagInfo class holding information that
|
williamr@2
|
226 |
* describes the element.
|
williamr@2
|
227 |
*/
|
williamr@2
|
228 |
IMPORT_C void OnWriteEndElementL(const RTagInfo& aElement);
|
williamr@2
|
229 |
/**
|
williamr@2
|
230 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
231 |
* Inheriting classes can override these.
|
williamr@2
|
232 |
* @since Series60 4.0
|
williamr@2
|
233 |
* @see MContentHandler
|
williamr@2
|
234 |
*/
|
williamr@2
|
235 |
IMPORT_C virtual void OnEndElementL(const RTagInfo& aElement, TInt aErrorCode);
|
williamr@2
|
236 |
|
williamr@2
|
237 |
/**
|
williamr@2
|
238 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
239 |
* Inheriting classes can override these.
|
williamr@2
|
240 |
* @since Series60 4.0
|
williamr@2
|
241 |
* @see MContentHandler
|
williamr@2
|
242 |
*/
|
williamr@2
|
243 |
IMPORT_C virtual void OnStartDocumentL(const RDocumentParameters& aDocParam, TInt aErrorCode);
|
williamr@2
|
244 |
|
williamr@2
|
245 |
/**
|
williamr@2
|
246 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
247 |
* Inheriting classes can override these.
|
williamr@2
|
248 |
* @since Series60 4.0
|
williamr@2
|
249 |
* @see MContentHandler
|
williamr@2
|
250 |
*/
|
williamr@2
|
251 |
IMPORT_C virtual void OnEndDocumentL(TInt aErrorCode);
|
williamr@2
|
252 |
|
williamr@2
|
253 |
/**
|
williamr@2
|
254 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
255 |
* Inheriting classes can override these.
|
williamr@2
|
256 |
* @since Series60 4.0
|
williamr@2
|
257 |
* @see MContentHandler
|
williamr@2
|
258 |
*/
|
williamr@2
|
259 |
IMPORT_C virtual void OnStartPrefixMappingL(const RString& aPrefix, const RString& aUri, TInt aErrorCode);
|
williamr@2
|
260 |
|
williamr@2
|
261 |
/**
|
williamr@2
|
262 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
263 |
* Inheriting classes can override these.
|
williamr@2
|
264 |
* @since Series60 4.0
|
williamr@2
|
265 |
* @see MContentHandler
|
williamr@2
|
266 |
*/
|
williamr@2
|
267 |
IMPORT_C virtual void OnEndPrefixMappingL(const RString& aPrefix, TInt aErrorCode);
|
williamr@2
|
268 |
|
williamr@2
|
269 |
/**
|
williamr@2
|
270 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
271 |
* Inheriting classes can override these.
|
williamr@2
|
272 |
* @since Series60 4.0
|
williamr@2
|
273 |
* @see MContentHandler
|
williamr@2
|
274 |
*/
|
williamr@2
|
275 |
IMPORT_C virtual void OnIgnorableWhiteSpaceL(const TDesC8& aBytes, TInt ErrorCode);
|
williamr@2
|
276 |
|
williamr@2
|
277 |
/**
|
williamr@2
|
278 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
279 |
* Inheriting classes can override these.
|
williamr@2
|
280 |
* @since Series60 4.0
|
williamr@2
|
281 |
* @see MContentHandler
|
williamr@2
|
282 |
*/
|
williamr@2
|
283 |
IMPORT_C virtual void OnSkippedEntityL(const RString& aName, TInt aErrorCode);
|
williamr@2
|
284 |
|
williamr@2
|
285 |
/**
|
williamr@2
|
286 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
287 |
* Inheriting classes can override these.
|
williamr@2
|
288 |
* @since Series60 4.0
|
williamr@2
|
289 |
* @see MContentHandler
|
williamr@2
|
290 |
*/
|
williamr@2
|
291 |
IMPORT_C virtual void OnProcessingInstructionL(const TDesC8& aTarget, const TDesC8& aData, TInt aErrorCode);
|
williamr@2
|
292 |
|
williamr@2
|
293 |
/**
|
williamr@2
|
294 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
295 |
* Inheriting classes can override these.
|
williamr@2
|
296 |
* @since Series60 4.0
|
williamr@2
|
297 |
* @see MContentHandler
|
williamr@2
|
298 |
*/
|
williamr@2
|
299 |
IMPORT_C virtual void OnError(TInt aErrorCode);
|
williamr@2
|
300 |
|
williamr@2
|
301 |
/**
|
williamr@2
|
302 |
* Callback function implementing the XML content handler interface.
|
williamr@2
|
303 |
* Inheriting classes can override these.
|
williamr@2
|
304 |
* @since Series60 4.0
|
williamr@2
|
305 |
* @see MContentHandler
|
williamr@2
|
306 |
*/
|
williamr@2
|
307 |
IMPORT_C virtual TAny* GetExtendedInterface(const TInt32 aUid);
|
williamr@2
|
308 |
|
williamr@2
|
309 |
// From CSenBaseFragment
|
williamr@2
|
310 |
IMPORT_C virtual TPtrC8 ContentL();
|
williamr@2
|
311 |
|
williamr@2
|
312 |
IMPORT_C virtual TXmlEngNamespace Namespace(const TDesC8& aPrefix);
|
williamr@2
|
313 |
|
williamr@2
|
314 |
// IMPORT_C virtual void DetachL();
|
williamr@2
|
315 |
|
williamr@2
|
316 |
IMPORT_C virtual void ResetContentL();
|
williamr@2
|
317 |
|
williamr@2
|
318 |
IMPORT_C virtual TPtrC8 LocalName() const;
|
williamr@2
|
319 |
|
williamr@2
|
320 |
IMPORT_C virtual TPtrC8 NsUri() const;
|
williamr@2
|
321 |
|
williamr@2
|
322 |
IMPORT_C virtual TPtrC8 NsPrefix() const;
|
williamr@2
|
323 |
|
williamr@2
|
324 |
IMPORT_C virtual TXmlEngElement AsElementL();
|
williamr@2
|
325 |
|
williamr@2
|
326 |
IMPORT_C virtual RSenDocument& AsDocumentL();
|
williamr@2
|
327 |
|
williamr@2
|
328 |
IMPORT_C virtual TXmlEngElement ExtractElement();
|
williamr@2
|
329 |
|
williamr@2
|
330 |
IMPORT_C virtual void OnDelegateParsingL(CSenFragmentBase& aDelegate);
|
williamr@2
|
331 |
|
williamr@2
|
332 |
IMPORT_C virtual void OnDelegateParsingL(const RTagInfo& aElement,
|
williamr@2
|
333 |
const RAttributeArray& aAttributes,
|
williamr@2
|
334 |
TInt aErrorCode);
|
williamr@2
|
335 |
|
williamr@2
|
336 |
IMPORT_C virtual void SetOwner(CSenFragmentBase& aFragment);
|
williamr@2
|
337 |
|
williamr@2
|
338 |
IMPORT_C virtual HBufC* AsXmlUnicodeL();
|
williamr@2
|
339 |
|
williamr@2
|
340 |
IMPORT_C virtual void WriteAsXMLToL(RWriteStream& aWs);
|
williamr@2
|
341 |
|
williamr@2
|
342 |
IMPORT_C virtual TBool ConsistsOfL(CSenFragmentBase& aCandidate);
|
williamr@2
|
343 |
|
williamr@2
|
344 |
IMPORT_C void SetContentHandler(CSenFragmentBase& aContentHandler);
|
williamr@2
|
345 |
|
williamr@2
|
346 |
protected: // From CSenBaseFragment
|
williamr@2
|
347 |
|
williamr@2
|
348 |
void RenameL(const TDesC8& aLocalName, const TDesC8& aPrefix, const TDesC8& aNamespace);
|
williamr@2
|
349 |
|
williamr@2
|
350 |
void RenameL(const TDesC8& aLocalName, const TDesC8& aNamespace);
|
williamr@2
|
351 |
|
williamr@2
|
352 |
void RenameLocalNameL(const TDesC8& aLocalName);
|
williamr@2
|
353 |
|
williamr@2
|
354 |
void RenameNamespaceL(const TDesC8& aNamespace);
|
williamr@2
|
355 |
|
williamr@2
|
356 |
void RenamePrefixL(const TDesC8& aPrefix);
|
williamr@2
|
357 |
|
williamr@2
|
358 |
void RenameNamespaceL(const TDesC8& aPrefix, const TDesC8& aNamespace);
|
williamr@2
|
359 |
|
williamr@2
|
360 |
IMPORT_C TXmlEngElement SetContentOfL(const TDesC8& aLocalName,
|
williamr@2
|
361 |
const TDesC8& aContent);
|
williamr@2
|
362 |
|
williamr@2
|
363 |
IMPORT_C TPtrC8 ContentOf(const TDesC8& aLocalName);
|
williamr@2
|
364 |
|
williamr@2
|
365 |
IMPORT_C virtual TBool ConsistsOfL(TXmlEngElement& aElement, TXmlEngElement& aCandidate);
|
williamr@2
|
366 |
|
williamr@2
|
367 |
IMPORT_C virtual void AddNamespacesL();
|
williamr@2
|
368 |
|
williamr@2
|
369 |
protected:
|
williamr@2
|
370 |
|
williamr@2
|
371 |
/**
|
williamr@2
|
372 |
* C++ default constructor.
|
williamr@2
|
373 |
*/
|
williamr@2
|
374 |
IMPORT_C CSenDomFragmentBase();
|
williamr@2
|
375 |
|
williamr@2
|
376 |
/**
|
williamr@2
|
377 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
378 |
* @since Series60 4.0
|
williamr@2
|
379 |
*/
|
williamr@2
|
380 |
IMPORT_C void BaseConstructL();
|
williamr@2
|
381 |
|
williamr@2
|
382 |
/**
|
williamr@2
|
383 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
384 |
* @since Series60 4.0
|
williamr@2
|
385 |
* @param aElement is the XML element of this fragment.
|
williamr@2
|
386 |
*/
|
williamr@2
|
387 |
IMPORT_C void BaseConstructL(const TXmlEngElement& aElement);
|
williamr@2
|
388 |
|
williamr@2
|
389 |
/**
|
williamr@2
|
390 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
391 |
* @since Series60 4.0
|
williamr@2
|
392 |
* @param aLocalName The local name of the element
|
williamr@2
|
393 |
*/
|
williamr@2
|
394 |
IMPORT_C void BaseConstructL(const TDesC8& aLocalName);
|
williamr@2
|
395 |
|
williamr@2
|
396 |
/**
|
williamr@2
|
397 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
398 |
* @since Series60 4.0
|
williamr@2
|
399 |
* @param aNsUri The namespace URI of the element
|
williamr@2
|
400 |
* @param aLocalName The local name of the element
|
williamr@2
|
401 |
*/
|
williamr@2
|
402 |
IMPORT_C void BaseConstructL(const TDesC8& aNsUri,
|
williamr@2
|
403 |
const TDesC8& aLocalName);
|
williamr@2
|
404 |
|
williamr@2
|
405 |
/**
|
williamr@2
|
406 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
407 |
* @since Series60 4.0
|
williamr@2
|
408 |
* @param aNsUri The namespace URI of the element
|
williamr@2
|
409 |
* @param aLocalName The local name of the element
|
williamr@2
|
410 |
* @param aPrefix The prefix of the element
|
williamr@2
|
411 |
*/
|
williamr@2
|
412 |
IMPORT_C void BaseConstructL(const TDesC8& aNsUri,
|
williamr@2
|
413 |
const TDesC8& aLocalName,
|
williamr@2
|
414 |
const TDesC8& aPrefix);
|
williamr@2
|
415 |
|
williamr@2
|
416 |
/**
|
williamr@2
|
417 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
418 |
* @since Series60 4.0
|
williamr@2
|
419 |
* @param aNsUri The namespace URI of the element
|
williamr@2
|
420 |
* @param aLocalName The local name of the element
|
williamr@2
|
421 |
* @param aPrefix The prefix of the element
|
williamr@2
|
422 |
* @param aAttrs The attributes of the element
|
williamr@2
|
423 |
*/
|
williamr@2
|
424 |
IMPORT_C void BaseConstructL(const TDesC8& aNsUri,
|
williamr@2
|
425 |
const TDesC8& aLocalName,
|
williamr@2
|
426 |
const TDesC8& aPrefix,
|
williamr@2
|
427 |
const RAttributeArray& aAttrs);
|
williamr@2
|
428 |
|
williamr@2
|
429 |
/**
|
williamr@2
|
430 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
431 |
* @since Series60 4.0
|
williamr@2
|
432 |
* @param aNsUri The namespace URI of the element
|
williamr@2
|
433 |
* @param aLocalName The local name of the element
|
williamr@2
|
434 |
* @param aPrefix The prefix of the element
|
williamr@2
|
435 |
* @param aAttrs The attributes of the element
|
williamr@2
|
436 |
* @param aParent The parent of the element
|
williamr@2
|
437 |
*/
|
williamr@2
|
438 |
IMPORT_C void BaseConstructL(const TDesC8& aNsUri,
|
williamr@2
|
439 |
const TDesC8& aLocalName,
|
williamr@2
|
440 |
const TDesC8& aPrefix,
|
williamr@2
|
441 |
const RAttributeArray& aAttrs,
|
williamr@2
|
442 |
TXmlEngElement& aParent);
|
williamr@2
|
443 |
|
williamr@2
|
444 |
/**
|
williamr@2
|
445 |
* "ConstructL" method for calling the base classes ones.
|
williamr@2
|
446 |
* @since Series60 4.0
|
williamr@2
|
447 |
* @param aNsUri The namespace URI of the element
|
williamr@2
|
448 |
* @param aLocalName The local name of the element
|
williamr@2
|
449 |
* @param aPrefix The prefix of the element
|
williamr@2
|
450 |
* @param aAttrs The attributes of the element
|
williamr@2
|
451 |
* @param aParent The parent of the element
|
williamr@2
|
452 |
* @param aOwnerDocument The document which will be the owner of
|
williamr@2
|
453 |
* the elements of this fragment
|
williamr@2
|
454 |
*/
|
williamr@2
|
455 |
IMPORT_C void BaseConstructL(const TDesC8& aNsUri,
|
williamr@2
|
456 |
const TDesC8& aLocalName,
|
williamr@2
|
457 |
const TDesC8& aPrefix,
|
williamr@2
|
458 |
const RAttributeArray& aAttrs,
|
williamr@2
|
459 |
TXmlEngElement& aParent,
|
williamr@2
|
460 |
RSenDocument& aOwnerDocument);
|
williamr@2
|
461 |
|
williamr@2
|
462 |
/**
|
williamr@2
|
463 |
* Callback functions which implement the XML content handler interface.
|
williamr@2
|
464 |
* Inheriting classes can override these.
|
williamr@2
|
465 |
*/
|
williamr@2
|
466 |
|
williamr@2
|
467 |
// From CSenBaseFragment
|
williamr@2
|
468 |
|
williamr@2
|
469 |
protected: // Data
|
williamr@2
|
470 |
CSenDomFragmentBase* ipDomDelegate;
|
williamr@2
|
471 |
};
|
williamr@2
|
472 |
|
williamr@2
|
473 |
#endif //SEN_DOM_FRAGMENT_BASE_H
|
williamr@2
|
474 |
|
williamr@2
|
475 |
// End of File
|
williamr@2
|
476 |
|
williamr@2
|
477 |
|
williamr@2
|
478 |
|