Mercurial > projects > qtd
comparison generator/typesystem_xml.xml @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children | 5917a613d118 |
comparison
equal
deleted
inserted
replaced
0:36fb74dc547d | 1:e78566595089 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <?xml-stylesheet type="text/xsl" href="merge.xsl"?> | |
3 | |
4 <typesystem package="qt.xml" default-superclass="qt.QtJambiObject"> | |
5 <inject-code> | |
6 qt.Utilities.loadQtLibrary("QtXml"); | |
7 </inject-code> | |
8 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNodeList' has equals operators but no qHash() function"/> | |
9 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamNamespaceDeclaration' has equals operators but no qHash() function"/> | |
10 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNamedNodeMap' has equals operators but no qHash() function"/> | |
11 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamNotationDeclaration' has equals operators but no qHash() function"/> | |
12 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNode' has equals operators but no qHash() function"/> | |
13 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomImplementation' has equals operators but no qHash() function"/> | |
14 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamAttribute' has equals operators but no qHash() function"/> | |
15 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamAttributes' has equals operators but no qHash() function"/> | |
16 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamEntityDeclaration' has equals operators but no qHash() function"/> | |
17 <rejection class="QXmlAttributes::Attribute"/> | |
18 <rejection class="QDomNode" field-name="impl"/> | |
19 | |
20 <enum-type name="QDomNode::NodeType"/> | |
21 <enum-type name="QDomNode::EncodingPolicy"/> | |
22 <enum-type name="QDomImplementation::InvalidDataPolicy"/> | |
23 <enum-type name="QXmlStreamReader::Error"/> | |
24 <enum-type name="QXmlStreamReader::TokenType"/> | |
25 | |
26 | |
27 <value-type name="QDomAttr"> | |
28 <modify-function signature="operator=(QDomAttr)" remove="all"/> | |
29 <modify-function signature="nodeType()const" remove="all"/> | |
30 </value-type> | |
31 | |
32 <value-type name="QDomCDATASection"> | |
33 <modify-function signature="operator=(QDomCDATASection)" remove="all"/> | |
34 <modify-function signature="nodeType()const" remove="all"/> | |
35 </value-type> | |
36 | |
37 <value-type name="QDomCharacterData"> | |
38 <modify-function signature="operator=(QDomCharacterData)" remove="all"/> | |
39 <modify-function signature="nodeType()const" remove="all"/> | |
40 </value-type> | |
41 | |
42 <value-type name="QDomComment"> | |
43 <modify-function signature="operator=(QDomComment)" remove="all"/> | |
44 <modify-function signature="nodeType()const" remove="all"/> | |
45 </value-type> | |
46 | |
47 <value-type name="QDomDocument"> | |
48 <modify-function signature="nodeType()const" remove="all"/> | |
49 <modify-function signature="operator=(QDomDocument)" remove="all"/> | |
50 | |
51 <!--bool setContent(QIODevice* dev, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 ); --> | |
52 <modify-function signature="setContent(QIODevice*, bool, QString*, int*, int*)"> | |
53 <modify-argument index="1"> | |
54 <reference-count action="set" variable-name="__rcContent"/> | |
55 </modify-argument> | |
56 </modify-function> | |
57 | |
58 | |
59 <modify-function signature="setContent(QXmlInputSource*,QXmlReader*,QString*,int*,int*)"> | |
60 <modify-argument index="1"> | |
61 <reference-count action="set" variable-name="__rcContent"/> | |
62 </modify-argument> | |
63 </modify-function> | |
64 | |
65 <modify-function signature="setContent(QIODevice*,QString*,int*,int*)"> | |
66 <modify-argument index="1"> | |
67 <reference-count action="set" variable-name="__rcContent"/> | |
68 </modify-argument> | |
69 </modify-function> | |
70 | |
71 | |
72 <inject-code> | |
73 <import-file name="typesystem_xml-java.java" quote-after-line="class QDomDocument___" quote-before-line="}// class"/> | |
74 </inject-code> | |
75 <extra-includes> | |
76 <include file-name="qt.QNativePointer.Type" location="java"/> | |
77 <include file-name="qt.core.QIODevice" location="java"/> | |
78 <include file-name="qt.core.QByteArray" location="java"/> | |
79 </extra-includes> | |
80 | |
81 | |
82 | |
83 <template name="xml.domdocument_setContent"> | |
84 public final Result setContent(%ARGUMENTS){ | |
85 QNativePointer errorStr = new QNativePointer(Type.String); | |
86 QNativePointer errorLine = new QNativePointer(Type.Int); | |
87 QNativePointer errorColumn = new QNativePointer(Type.Int); | |
88 | |
89 boolean success = setContent(%CALL_ARGUMENTS, errorStr, errorLine, errorColumn); | |
90 return new Result(success, errorStr, errorLine, errorColumn); | |
91 } | |
92 </template> | |
93 | |
94 <!--bool setContent(QIODevice* dev, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 ); --> | |
95 <modify-function signature="setContent(QIODevice*, bool, QString*, int*, int*)"> | |
96 <access modifier="private"/> | |
97 <modify-argument index="3"> | |
98 <remove-default-expression/> | |
99 </modify-argument> | |
100 <modify-argument index="4"> | |
101 <remove-default-expression/> | |
102 </modify-argument> | |
103 <modify-argument index="5"> | |
104 <remove-default-expression/> | |
105 </modify-argument> | |
106 </modify-function> | |
107 <inject-code class="java"> | |
108 <insert-template name="xml.domdocument_setContent"> | |
109 <replace from="%ARGUMENTS" to="QIODevice dev, boolean namespaceProcessing"/> | |
110 <replace from="%CALL_ARGUMENTS" to="dev, namespaceProcessing"/> | |
111 </insert-template> | |
112 </inject-code> | |
113 | |
114 <!--bool setContent(const QByteArray& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 ); --> | |
115 <modify-function signature="setContent(QByteArray, bool, QString*, int*, int*)"> | |
116 <access modifier="private"/> | |
117 <modify-argument index="3"> | |
118 <remove-default-expression/> | |
119 </modify-argument> | |
120 <modify-argument index="4"> | |
121 <remove-default-expression/> | |
122 </modify-argument> | |
123 <modify-argument index="5"> | |
124 <remove-default-expression/> | |
125 </modify-argument> | |
126 | |
127 </modify-function> | |
128 <inject-code class="java"> | |
129 <insert-template name="xml.domdocument_setContent"> | |
130 <replace from="%ARGUMENTS" to="QByteArray text, boolean namespaceProcessing"/> | |
131 <replace from="%CALL_ARGUMENTS" to="text, namespaceProcessing"/> | |
132 </insert-template> | |
133 </inject-code> | |
134 | |
135 <!--bool setContent(const QString& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );--> | |
136 <modify-function signature="setContent(QString, bool, QString*, int*, int*)"> | |
137 <access modifier="private"/> | |
138 <modify-argument index="3"> | |
139 <remove-default-expression/> | |
140 </modify-argument> | |
141 <modify-argument index="4"> | |
142 <remove-default-expression/> | |
143 </modify-argument> | |
144 <modify-argument index="5"> | |
145 <remove-default-expression/> | |
146 </modify-argument> | |
147 </modify-function> | |
148 <inject-code class="java"> | |
149 <insert-template name="xml.domdocument_setContent"> | |
150 <replace from="%ARGUMENTS" to="String text, boolean namespaceProcessing"/> | |
151 <replace from="%CALL_ARGUMENTS" to="text, namespaceProcessing"/> | |
152 </insert-template> | |
153 </inject-code> | |
154 | |
155 <modify-function signature="setContent(QXmlInputSource*,QXmlReader*,QString*,int*,int*)"> | |
156 <access modifier="private"/> | |
157 <modify-argument index="3"> | |
158 <remove-default-expression/> | |
159 </modify-argument> | |
160 <modify-argument index="4"> | |
161 <remove-default-expression/> | |
162 </modify-argument> | |
163 <modify-argument index="5"> | |
164 <remove-default-expression/> | |
165 </modify-argument> | |
166 </modify-function> | |
167 <inject-code> | |
168 <insert-template name="xml.domdocument_setContent"> | |
169 <replace from="%ARGUMENTS" to="QXmlInputSource source, QXmlReader reader"/> | |
170 <replace from="%CALL_ARGUMENTS" to="source, reader"/> | |
171 </insert-template> | |
172 </inject-code> | |
173 | |
174 <modify-function signature="setContent(QString,QString*,int*,int*)"> | |
175 <access modifier="private"/> | |
176 <modify-argument index="2"> | |
177 <remove-default-expression/> | |
178 </modify-argument> | |
179 <modify-argument index="3"> | |
180 <remove-default-expression/> | |
181 </modify-argument> | |
182 <modify-argument index="4"> | |
183 <remove-default-expression/> | |
184 </modify-argument> | |
185 </modify-function> | |
186 <inject-code> | |
187 <insert-template name="xml.domdocument_setContent"> | |
188 <replace from="%ARGUMENTS" to="String text"/> | |
189 <replace from="%CALL_ARGUMENTS" to="text"/> | |
190 </insert-template> | |
191 </inject-code> | |
192 | |
193 <modify-function signature="setContent(QByteArray,QString*,int*,int*)"> | |
194 <access modifier="private"/> | |
195 <modify-argument index="2"> | |
196 <remove-default-expression/> | |
197 </modify-argument> | |
198 <modify-argument index="3"> | |
199 <remove-default-expression/> | |
200 </modify-argument> | |
201 <modify-argument index="4"> | |
202 <remove-default-expression/> | |
203 </modify-argument> | |
204 </modify-function> | |
205 <inject-code> | |
206 <insert-template name="xml.domdocument_setContent"> | |
207 <replace from="%ARGUMENTS" to="QByteArray buffer"/> | |
208 <replace from="%CALL_ARGUMENTS" to="buffer"/> | |
209 </insert-template> | |
210 </inject-code> | |
211 | |
212 <modify-function signature="setContent(QIODevice*,QString*,int*,int*)"> | |
213 <access modifier="private"/> | |
214 <modify-argument index="2"> | |
215 <remove-default-expression/> | |
216 </modify-argument> | |
217 <modify-argument index="3"> | |
218 <remove-default-expression/> | |
219 </modify-argument> | |
220 <modify-argument index="4"> | |
221 <remove-default-expression/> | |
222 </modify-argument> | |
223 </modify-function> | |
224 <inject-code> | |
225 <insert-template name="xml.domdocument_setContent"> | |
226 <replace from="%ARGUMENTS" to="QIODevice dev"/> | |
227 <replace from="%CALL_ARGUMENTS" to="dev"/> | |
228 </insert-template> | |
229 </inject-code> | |
230 | |
231 </value-type> | |
232 | |
233 <value-type name="QDomDocumentFragment"> | |
234 <modify-function signature="nodeType()const" remove="all"/> | |
235 <modify-function signature="operator=(QDomDocumentFragment)" remove="all"/> | |
236 </value-type> | |
237 | |
238 <value-type name="QDomDocumentType"> | |
239 <modify-function signature="nodeType()const" remove="all"/> | |
240 <modify-function signature="operator=(QDomDocumentType)" remove="all"/> | |
241 </value-type> | |
242 | |
243 <value-type name="QDomEntity"> | |
244 <modify-function signature="nodeType()const" remove="all"/> | |
245 <modify-function signature="operator=(QDomEntity)" remove="all"/> | |
246 </value-type> | |
247 | |
248 <value-type name="QDomEntityReference"> | |
249 <modify-function signature="nodeType()const" remove="all"/> | |
250 <modify-function signature="operator=(QDomEntityReference)" remove="all"/> | |
251 </value-type> | |
252 | |
253 <value-type name="QDomImplementation"> | |
254 <modify-function signature="operator=(QDomImplementation)" remove="all"/> | |
255 </value-type> | |
256 | |
257 <value-type name="QDomNamedNodeMap"> | |
258 <modify-function signature="operator=(QDomNamedNodeMap)" remove="all"/> | |
259 </value-type> | |
260 | |
261 <value-type name="QDomNode"> | |
262 <modify-function signature="operator=(QDomNode)" remove="all"/> | |
263 <modify-function signature="attributes()const" remove="all"/> | |
264 </value-type> | |
265 | |
266 <value-type name="QDomNodeList"> | |
267 <modify-function signature="operator=(const QDomNodeList &)" remove="all"/> | |
268 </value-type> | |
269 | |
270 <value-type name="QDomNotation"> | |
271 <modify-function signature="nodeType()const" remove="all"/> | |
272 <modify-function signature="operator=(QDomNotation)" remove="all"/> | |
273 </value-type> | |
274 | |
275 <value-type name="QDomProcessingInstruction"> | |
276 <modify-function signature="nodeType()const" remove="all"/> | |
277 <modify-function signature="operator=(QDomProcessingInstruction)" remove="all"/> | |
278 </value-type> | |
279 | |
280 <value-type name="QDomText"> | |
281 <modify-function signature="nodeType()const" remove="all"/> | |
282 <modify-function signature="operator=(const QDomText &)" remove="all"/> | |
283 </value-type> | |
284 | |
285 <value-type name="QXmlParseException"/> | |
286 | |
287 <value-type name="QXmlStreamAttribute"> | |
288 <modify-function signature="operator=(QXmlStreamAttribute)" remove="all"/> | |
289 </value-type> | |
290 | |
291 <value-type name="QXmlStreamAttributes"> | |
292 <modify-function signature="operator+(QVector<QXmlStreamAttribute>)const" remove="all"/> | |
293 <modify-function signature="operator<<(QVector<QXmlStreamAttribute>)" remove="all"/> | |
294 <modify-function signature="operator<<(QXmlStreamAttribute)" remove="all"/> | |
295 <modify-function signature="push_back(QXmlStreamAttribute)" remove="all"/> | |
296 <modify-function signature="pop_back()" remove="all"/> | |
297 <modify-function signature="push_front(QXmlStreamAttribute)" remove="all"/> | |
298 <modify-function signature="pop_front()" remove="all"/> | |
299 | |
300 <modify-function signature="value(const QString &, const QLatin1String &)const"> | |
301 <remove/> | |
302 </modify-function> | |
303 <modify-function signature="value(const QLatin1String &, const QLatin1String &)const"> | |
304 <remove/> | |
305 </modify-function> | |
306 <modify-function signature="value(const QLatin1String &)const"> | |
307 <remove/> | |
308 </modify-function> | |
309 </value-type> | |
310 | |
311 <value-type name="QXmlStreamNamespaceDeclaration"> | |
312 <modify-function signature="operator=(QXmlStreamNamespaceDeclaration)" remove="all"/> | |
313 </value-type> | |
314 | |
315 <value-type name="QXmlStreamNotationDeclaration"> | |
316 <modify-function signature="operator=(QXmlStreamNotationDeclaration)" remove="all"/> | |
317 </value-type> | |
318 | |
319 <value-type name="QXmlStreamEntityDeclaration"> | |
320 <modify-function signature="operator=(QXmlStreamEntityDeclaration)" remove="all"/> | |
321 </value-type> | |
322 | |
323 <value-type name="QXmlAttributes"> | |
324 <modify-function signature="index(const QLatin1String&) const"> | |
325 <remove/> | |
326 </modify-function> | |
327 <modify-function signature="value(const QLatin1String&) const"> | |
328 <remove/> | |
329 </modify-function> | |
330 </value-type> | |
331 | |
332 <value-type name="QXmlNamespaceSupport"> | |
333 <custom-constructor> | |
334 QXmlNamespaceSupport *clone = new QXmlNamespaceSupport; | |
335 clone->setPrefix("", copy->uri("")); | |
336 | |
337 QStringList prefixes = copy->prefixes(); | |
338 for (int i=0; i<prefixes.size(); ++i) | |
339 clone->setPrefix(prefixes.at(i), copy->uri(prefixes.at(i))); | |
340 | |
341 return clone; | |
342 </custom-constructor> | |
343 <custom-destructor> | |
344 delete (QXmlNamespaceSupport *)copy; | |
345 </custom-destructor> | |
346 | |
347 | |
348 | |
349 <inject-code> | |
350 <import-file name="typesystem_xml-java.java" quote-after-line="class QXmlNamespaceSupport___" quote-before-line="}// class"/> | |
351 </inject-code> | |
352 <extra-includes> | |
353 <include file-name="qt.QNativePointer" location="java"/> | |
354 </extra-includes> | |
355 <modify-function signature="processName(QString,bool,QString&,QString&)const"> | |
356 <access modifier="private"/> | |
357 </modify-function> | |
358 | |
359 | |
360 <modify-function signature="splitName(QString,QString&,QString&)const"> | |
361 <access modifier="private"/> | |
362 </modify-function> | |
363 | |
364 </value-type> | |
365 | |
366 <value-type name="QDomElement"> | |
367 <modify-function signature="nodeType()const" remove="all"/> | |
368 <modify-function signature="operator=(QDomElement)" remove="all"/> | |
369 | |
370 <modify-function signature="setAttribute(const QString &, unsigned int)"> | |
371 <remove/> | |
372 </modify-function> | |
373 <modify-function signature="setAttribute(const QString &, unsigned long long)"> | |
374 <remove/> | |
375 </modify-function> | |
376 <modify-function signature="setAttributeNS(const QString, const QString &, unsigned int)"> | |
377 <remove/> | |
378 </modify-function> | |
379 <modify-function signature="setAttributeNS(const QString, const QString &, unsigned long long)"> | |
380 <remove/> | |
381 </modify-function> | |
382 | |
383 | |
384 | |
385 <template name="xml.constQString_to_constQStringRef"> | |
386 QString %out = qtjambi_to_qstring(__jni_env, (jstring) %in); | |
387 </template> | |
388 | |
389 <modify-function signature="attributeNS(const QString, const QString &, const QString &) const"> | |
390 <modify-argument index="1"> | |
391 <conversion-rule class="native"> | |
392 <insert-template name="xml.constQString_to_constQStringRef"/> | |
393 </conversion-rule> | |
394 </modify-argument> | |
395 </modify-function> | |
396 <modify-function signature="setAttributeNS(const QString, const QString &, const QString &)"> | |
397 <modify-argument index="1"> | |
398 <conversion-rule class="native"> | |
399 <insert-template name="xml.constQString_to_constQStringRef"/> | |
400 </conversion-rule> | |
401 </modify-argument> | |
402 </modify-function> | |
403 <modify-function signature="setAttributeNS(const QString, const QString &, int)"> | |
404 <modify-argument index="1"> | |
405 <conversion-rule class="native"> | |
406 <insert-template name="xml.constQString_to_constQStringRef"/> | |
407 </conversion-rule> | |
408 </modify-argument> | |
409 </modify-function> | |
410 <modify-function signature="setAttributeNS(const QString, const QString &, uint)"> | |
411 <modify-argument index="1"> | |
412 <conversion-rule class="native"> | |
413 <insert-template name="xml.constQString_to_constQStringRef"/> | |
414 </conversion-rule> | |
415 </modify-argument> | |
416 </modify-function> | |
417 <modify-function signature="setAttributeNS(const QString, const QString &, long long)"> | |
418 <modify-argument index="1"> | |
419 <conversion-rule class="native"> | |
420 <insert-template name="xml.constQString_to_constQStringRef"/> | |
421 </conversion-rule> | |
422 </modify-argument> | |
423 </modify-function> | |
424 <modify-function signature="setAttributeNS(const QString, const QString &, unsigned long long)"> | |
425 <modify-argument index="1"> | |
426 <conversion-rule class="native"> | |
427 <insert-template name="xml.constQString_to_constQStringRef"/> | |
428 </conversion-rule> | |
429 </modify-argument> | |
430 </modify-function> | |
431 <modify-function signature="setAttributeNS(const QString, const QString &, double)"> | |
432 <modify-argument index="1"> | |
433 <conversion-rule class="native"> | |
434 <insert-template name="xml.constQString_to_constQStringRef"/> | |
435 </conversion-rule> | |
436 </modify-argument> | |
437 </modify-function> | |
438 | |
439 </value-type> | |
440 | |
441 <interface-type name="QXmlContentHandler"> | |
442 <modify-function signature="setDocumentLocator(QXmlLocator*)"> | |
443 <modify-argument index="1"> | |
444 <define-ownership class="shell" owner="c++"/> | |
445 </modify-argument> | |
446 </modify-function> | |
447 </interface-type> | |
448 <interface-type name="QXmlDTDHandler"/> | |
449 <interface-type name="QXmlDeclHandler"/> | |
450 <interface-type name="QXmlEntityResolver"> | |
451 <inject-code> | |
452 <import-file name="typesystem_xml-java.java" quote-after-line="interface QXmlEntityResolver___" quote-before-line="}// class"/> | |
453 </inject-code> | |
454 <modify-function signature="resolveEntity(QString,QString,QXmlInputSource&*)"> | |
455 <modify-argument index="3"> | |
456 <remove-argument/> | |
457 <conversion-rule class="shell"> | |
458 // nothing | |
459 </conversion-rule> | |
460 <conversion-rule class="native"> | |
461 QXmlInputSource *inputSourceHolder = 0; | |
462 QXmlInputSource *&%out = inputSourceHolder; | |
463 </conversion-rule> | |
464 </modify-argument> | |
465 <modify-argument index="return"> | |
466 <replace-type modified-type="qt.xml.QXmlEntityResolver$ResolvedEntity"/> | |
467 <conversion-rule class="native"> | |
468 jobject %out = qtjambi_to_resolvedentity(__jni_env, %in, inputSourceHolder); | |
469 </conversion-rule> | |
470 <conversion-rule class="shell"> | |
471 bool %out = qtjambi_from_resolvedentity(__jni_env, (void *&) %3, %in); | |
472 </conversion-rule> | |
473 </modify-argument> | |
474 </modify-function> | |
475 | |
476 </interface-type> | |
477 <interface-type name="QXmlErrorHandler"/> | |
478 <interface-type name="QXmlLexicalHandler"/> | |
479 | |
480 <object-type name="QXmlDefaultHandler"> | |
481 <modify-function signature="setDocumentLocator(QXmlLocator*)"> | |
482 <modify-argument index="1"> | |
483 <define-ownership class="shell" owner="c++"/> | |
484 </modify-argument> | |
485 </modify-function> | |
486 </object-type> | |
487 <object-type name="QXmlInputSource"/> | |
488 <object-type name="QXmlLocator"/> | |
489 <object-type name="QXmlSimpleReader"> | |
490 <modify-function signature="parse(const QXmlInputSource*,bool)"> | |
491 <modify-argument index="1" invalidate-after-use="yes"/> | |
492 </modify-function> | |
493 | |
494 <modify-function signature="setContentHandler(QXmlContentHandler*)"> | |
495 <modify-argument index="1"> | |
496 <reference-count action="set" variable-name="__rcContentHandler"/> | |
497 </modify-argument> | |
498 </modify-function> | |
499 <modify-function signature="setDTDHandler(QXmlDTDHandler*)"> | |
500 <modify-argument index="1"> | |
501 <reference-count action="set" variable-name="__rcDTDHandler"/> | |
502 </modify-argument> | |
503 </modify-function> | |
504 <modify-function signature="setDeclHandler(QXmlDeclHandler*)"> | |
505 <modify-argument index="1"> | |
506 <reference-count action="set" variable-name="__rcDeclHandler"/> | |
507 </modify-argument> | |
508 </modify-function> | |
509 <modify-function signature="setEntityResolver(QXmlEntityResolver*)"> | |
510 <modify-argument index="1"> | |
511 <reference-count action="set" variable-name="__rcEntityResolver"/> | |
512 </modify-argument> | |
513 </modify-function> | |
514 <modify-function signature="setErrorHandler(QXmlErrorHandler*)"> | |
515 <modify-argument index="1"> | |
516 <reference-count action="set" variable-name="__rcErrorHandler"/> | |
517 </modify-argument> | |
518 </modify-function> | |
519 <modify-function signature="setLexicalHandler(QXmlLexicalHandler*)"> | |
520 <modify-argument index="1"> | |
521 <reference-count action="set" variable-name="__rcLexicalHandler"/> | |
522 </modify-argument> | |
523 </modify-function> | |
524 </object-type> | |
525 | |
526 <object-type name="QXmlStreamReader"> | |
527 <modify-function signature="QXmlStreamReader(const char*)" remove="all"/> | |
528 <modify-function signature="addData(const char*)" remove="all"/> | |
529 <modify-function signature="setEntityResolver(QXmlStreamEntityResolver*)"> | |
530 <modify-argument index="1"> | |
531 <reference-count action="set" variable-name="__rcEntityResolver"/> | |
532 </modify-argument> | |
533 </modify-function> | |
534 | |
535 <modify-function signature="setDevice(QIODevice*)"> | |
536 <modify-argument index="1"> | |
537 <reference-count action="set" variable-name="__rcDevice"/> | |
538 </modify-argument> | |
539 </modify-function> | |
540 <modify-function signature="clear()"> | |
541 <inject-code class="java" position="end"> | |
542 __rcDevice = null; // clear() call removes device from stream | |
543 </inject-code> | |
544 </modify-function> | |
545 </object-type> | |
546 <object-type name="QXmlStreamWriter"> | |
547 <modify-function signature="QXmlStreamWriter(QString *)"> | |
548 <remove/> | |
549 </modify-function> | |
550 | |
551 <inject-code> | |
552 <import-file name="typesystem_xml-java.java" quote-after-line="class QXmlStreamWriter___" quote-before-line="}// class"/> | |
553 </inject-code> | |
554 <modify-function signature="QXmlStreamWriter(QByteArray *)"> | |
555 <access modifier="private"/> | |
556 </modify-function> | |
557 | |
558 <modify-function signature="setCodec(const char *)"> | |
559 <access modifier="private"/> | |
560 </modify-function> | |
561 | |
562 <modify-function signature="setCodec(QTextCodec*)"> | |
563 <modify-argument index="1"> | |
564 <reference-count action="set" variable-name="__rcCodec"/> | |
565 </modify-argument> | |
566 </modify-function> | |
567 <modify-function signature="setDevice(QIODevice*)"> | |
568 <modify-argument index="1"> | |
569 <reference-count action="set" variable-name="__rcDevice"/> | |
570 </modify-argument> | |
571 </modify-function> | |
572 </object-type> | |
573 | |
574 <object-type name="QXmlReader"> | |
575 <modify-function signature="parse(const QXmlInputSource*)"> | |
576 <modify-argument index="1" invalidate-after-use="yes"/> | |
577 </modify-function> | |
578 | |
579 <modify-function signature="parse(const QXmlInputSource &)"> | |
580 <remove class="java"/> | |
581 </modify-function> | |
582 | |
583 <modify-function signature="property(QString,bool*)const"> | |
584 <remove class="java"/> | |
585 </modify-function> | |
586 <modify-function signature="setProperty(QString,void*)"> | |
587 <remove class="java"/> | |
588 </modify-function> | |
589 | |
590 <modify-function signature="feature(QString,bool*)const"> | |
591 <modify-argument index="2"> | |
592 <remove-argument/> | |
593 <conversion-rule class="shell"> | |
594 // nothing | |
595 </conversion-rule> | |
596 <conversion-rule class="native"> | |
597 bool *%out = 0; | |
598 </conversion-rule> | |
599 </modify-argument> | |
600 | |
601 <modify-argument index="0"> | |
602 <conversion-rule class="shell"> | |
603 bool %out = (bool) %in; | |
604 if (%2 != 0) *%2 = hasFeature(%1); | |
605 </conversion-rule> | |
606 </modify-argument> | |
607 </modify-function> | |
608 </object-type> | |
609 | |
610 </typesystem> |