Mercurial > projects > qtd
comparison generator/typesystem_phonon-java.xml @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:36fb74dc547d | 1:e78566595089 |
---|---|
1 <?xml version="1.0"?> | |
2 <typesystem package="qt.phonon" default-superclass="qt.QtJambiObject"> | |
3 <inject-code> | |
4 qt.Utilities.loadQtLibrary("QtXml"); | |
5 qt.Utilities.loadQtLibrary("QtGui"); | |
6 qt.Utilities.loadQtLibrary("QtOpenGL"); | |
7 qt.Utilities.loadQtLibrary("phonon"); | |
8 </inject-code> | |
9 | |
10 <value-type name="Phonon::EffectDescription"> | |
11 <modify-function signature="fromIndex(int)" remove="all" /> <!-- temporarily removed so we can compile this (not needed in current API) --> | |
12 <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all" /> | |
13 <modify-function signature="operator==(Phonon::ObjectDescription)const" access="private"> | |
14 <modify-argument index="1"> | |
15 <replace-type modified-type="qt.phonon.EffectDescription" /> | |
16 <conversion-rule class="native"> | |
17 Phonon::EffectDescription %out = (Phonon::EffectDescription ) *(Phonon::EffectDescription *)%in; | |
18 </conversion-rule> | |
19 </modify-argument> | |
20 </modify-function> | |
21 <modify-function signature="property(const char*)const" access="private" /> | |
22 <inject-code> | |
23 <import-file name="typesystem_phonon-java.java" quote-after-line="class ObjectDescriptionSubclass___" quote-before-line="}// class"/> | |
24 </inject-code> | |
25 </value-type> | |
26 | |
27 <value-type name="Phonon::AudioOutputDevice"> | |
28 <modify-function signature="fromIndex(int)" remove="all" /> <!-- temporarily removed so we can compile this (not needed in current API) --> | |
29 <modify-function signature="operator==(Phonon::ObjectDescription)const" access="private"> | |
30 <modify-argument index="1"> | |
31 <replace-type modified-type="qt.phonon.AudioOutputDevice" /> | |
32 <conversion-rule class="native"> | |
33 Phonon::AudioOutputDevice %out = (Phonon::AudioOutputDevice) *(Phonon::AudioOutputDevice *)%in; | |
34 </conversion-rule> | |
35 </modify-argument> | |
36 </modify-function> | |
37 <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all" /> | |
38 <modify-function signature="property(const char*)const" access="private" /> | |
39 <inject-code> | |
40 <import-file name="typesystem_phonon-java.java" quote-after-line="class ObjectDescriptionSubclass___" quote-before-line="}// class"/> | |
41 </inject-code> | |
42 </value-type> | |
43 | |
44 <namespace-type name="Phonon"> | |
45 <modify-function signature="createPlayer(Phonon::Category, Phonon::MediaSource)"> | |
46 <modify-argument index="2"> | |
47 <replace-default-expression with="null" /> | |
48 </modify-argument> | |
49 </modify-function> | |
50 <modify-function signature="phononVersion()" access="private" rename="phononVersion_private" associated-to="phononVersion()" /> | |
51 <inject-code> | |
52 <import-file name="typesystem_phonon-java.java" quote-after-line="class Phonon___" quote-before-line="}// class"/> | |
53 </inject-code> | |
54 </namespace-type> | |
55 | |
56 <interface-type name="Phonon::PlatformPlugin"> | |
57 <modify-function signature="notification(const char *, const QString &, const QStringList<QString> &, QObject *, const char *)const"> | |
58 <modify-argument index="3"> | |
59 <replace-default-expression with="null" /> | |
60 </modify-argument> | |
61 <modify-argument index="1"> | |
62 <replace-type modified-type="java.lang.String" /> | |
63 <conversion-rule class="shell"> | |
64 jobject %out = qtjambi_from_qstring(__jni_env, QString::fromUtf8(QByteArray(%in))); | |
65 </conversion-rule> | |
66 <conversion-rule class="native"> | |
67 QByteArray b1 = qtjambi_to_qstring(__jni_env, (jstring) %in).toUtf8(); | |
68 const char* %out = b1.data(); | |
69 </conversion-rule> | |
70 </modify-argument> | |
71 <modify-argument index="5"> | |
72 <replace-type modified-type="java.lang.String" /> | |
73 <conversion-rule class="shell"> | |
74 jobject %out = qtjambi_from_qstring(__jni_env, QString::fromUtf8(QByteArray(%in))); | |
75 </conversion-rule> | |
76 <conversion-rule class="native"> | |
77 QByteArray b2 = qtjambi_to_qstring(__jni_env, (jstring) %in).toUtf8(); | |
78 const char* %out = b1.data(); | |
79 </conversion-rule> | |
80 </modify-argument> | |
81 </modify-function> | |
82 </interface-type> | |
83 | |
84 <interface-type name="Phonon::AddonInterface"> | |
85 <modify-function signature="interfaceCall(Phonon::AddonInterface::Interface, int, const QList<QVariant> &)"> | |
86 <modify-argument index="3"> | |
87 <replace-default-expression with="null" /> | |
88 </modify-argument> | |
89 </modify-function> | |
90 </interface-type> | |
91 | |
92 <interface-type name="Phonon::BackendInterface"> | |
93 <modify-function signature="createObject(Phonon::BackendInterface::Class, QObject *, const QList<QVariant> &)"> | |
94 <modify-argument index="3"> | |
95 <replace-default-expression with="null" /> | |
96 </modify-argument> | |
97 </modify-function> | |
98 </interface-type> | |
99 | |
100 | |
101 </typesystem> |