summaryrefslogtreecommitdiffstats
path: root/PySide/phonon/typesystem_phonon.xml
blob: 226560ecf73784795cef738d28ef51fc7b20dcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?xml version="1.0"?>
<!--
    This file is part of PySide project.
    Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
    Contact: PySide team <contact@pyside.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-->
<typesystem package="PySide.phonon">
    <load-typesystem name="typesystem_gui.xml" generate="no" />

    <rejection class="Phonon::ObjectDescriptionData"/>
    <rejection class="Phonon::ObjectDescriptionModelData"/>
    <rejection class="Phonon::MediaNodeDestructionHandler"/>
    <rejection class="Phonon::GlobalConfig"/>
    <rejection class="Phonon::IODeviceStream"/>
    <rejection class="Phonon::Factory"/>
    <rejection class="Phonon::Experimental"/>
    <rejection class="AudioOutputAdaptor"/>
    <rejection class="Phonon::BackendCapabilities::Notifier"/>
    <rejection class="*" field-name="k_ptr"/>
    <rejection class="*" field-name="k_func"/>

    <namespace-type name="Phonon">
        <extra-includes>
          <include file-name="phononnamespace.h" location="global"/>
        </extra-includes>

        <namespace-type name="BackendCapabilities" >
           <inject-code class="native">
            Phonon::BackendCapabilities::NotifierWrapper* Phonon::BackendCapabilities::NotifierWrapper::m_instance = 0;
            Phonon::BackendCapabilities::Notifier* Phonon::BackendCapabilities::NotifierWrapper::m_notifier = 0;
           </inject-code>

           <add-function signature="notifier()" return-type="Phonon::BackendCapabilities::NotifierWrapper">
              <inject-code class="target">
                Phonon::BackendCapabilities::NotifierWrapper *_notifierWrapper =  Phonon::BackendCapabilities::NotifierWrapper::notifier();
                %PYARG_0 = %CONVERTTOPYTHON[Phonon::BackendCapabilities::NotifierWrapper*](_notifierWrapper);
              </inject-code>
           </add-function>

            <!-- ### causes moc-related linker error -->
            <!-- <object-type name="Notifier"/> -->
            <object-type name="NotifierWrapper" target-lang-name="Notifier">
              <inject-documentation format="target" mode="append">
.. class: Notifier

   Notifications about backend capabilities

.. method:: capabilitiesChanged()

    This signal is emitted if the capabilities have changed. This can happen if the user has requested a backend change.

.. method:: availableAudioOutputDevicesChanged()

    This signal is emitted when audio capture devices were plugged or unplugged.

    Check :meth:`PySide.phonon.BackendCapabilities.availableAudioOutputDevices` to get the current list of available devices.

.. method:: availableAudioCaptureDevicesChanged()

    This signal is emitted when audio capture devices were plugged or unplugged.

    Check :meth:`PySide.phonon.BackendCapabilities.availableAudioCaptureDevices` to get the current list of available devices.
              </inject-documentation>
                <include file-name="backendcapabilities.h" location="global"/>
                <include file-name="pyside_phonon.h" location="local"/>

                <modify-function signature="notifier()" remove="all"/>
                <modify-function signature="Phonon::BackendCapabilities::NotifierWrapper(Phonon::BackendCapabilities::Notifier*)">
                  <access modifier="private"/>
              </modify-function>
              <inject-code class="target" position="end">
                   PySideSignal* signal_item;

                   signal_item = PySide::Signal::newObject("capabilitiesChanged", "void", NULL);
                   PyDict_SetItemString(Sbk_Phonon_BackendCapabilities_NotifierWrapper_Type.super.ht_type.tp_dict, "capabilitiesChanged", (PyObject*)signal_item);
                   Py_DECREF((PyObject*)signal_item);

                   signal_item = PySide::Signal::newObject("availableAudioOutputDevicesChanged", "void", NULL);
                   PyDict_SetItemString( Sbk_Phonon_BackendCapabilities_NotifierWrapper_Type.super.ht_type.tp_dict, "availableAudioOutputDevicesChanged",  (PyObject*)signal_item);
                   Py_DECREF((PyObject*)signal_item);
              </inject-code>
            </object-type>
        </namespace-type>

        <enum-type name="Category" />
        <enum-type name="DiscType"/>
        <enum-type name="ErrorType"/>
        <enum-type name="MetaData"/>
        <enum-type name="ObjectDescriptionType"/>
        <enum-type name="State"/>

        <object-type name="AbstractVideoOutput"/>
        <object-type name="AddonInterface">
            <enum-type name="AngleCommand"/>
            <enum-type name="AudioChannelCommand"/>
            <enum-type name="ChapterCommand"/>
            <enum-type name="Interface"/>
            <enum-type name="NavigationCommand"/>
            <enum-type name="SubtitleCommand"/>
            <enum-type name="TitleCommand"/>
        </object-type>
        <object-type name="BackendInterface">
            <enum-type name="Class"/>
        </object-type>
        <object-type name="EffectInterface"/>
        <object-type name="MediaNode"/>

        <object-type name="MediaObjectInterface"/>
        <object-type name="PlatformPlugin"/>
        <object-type name="StreamInterface"/>
        <object-type name="VideoWidgetInterface"/>
        <object-type name="VolumeFaderInterface"/>

        <value-type name="EffectParameter">
            <enum-type name="Hint" flags="Phonon::EffectParameter::Hints"/>
            <modify-function signature="EffectParameter()" remove="all"/> <!-- internal -->
            <modify-function signature="operator&lt;(const Phonon::EffectParameter &amp;)const" remove="all"/> <!-- internal -->
            <modify-function signature="operator&gt;(const Phonon::EffectParameter &amp;)const" remove="all"/> <!-- internal -->
            <modify-function signature="id()const" remove="all"/> <!-- internal -->
            <modify-function signature="operator=(Phonon::EffectParameter)" remove="all"/> <!-- Covered by copy constructor -->
            <modify-function signature="EffectParameter(Phonon::EffectParameter)" remove="all"/>
            <modify-function signature="operator==(Phonon::EffectParameter)const" remove="all"/>
        </value-type>
        <value-type name="MediaSource">
            <enum-type name="Type"/>
            <modify-function signature="operator=(Phonon::MediaSource)" remove="all"/> <!-- Covered by copy constructor -->
        </value-type>
        <value-type name="Path">
            <modify-function signature="disconnect()" rename="disconnectPath"/>
            <modify-function signature="operator=(Phonon::Path)" remove="all"/> <!-- Covered by copy constructor -->
            <modify-function signature="insertEffect(Phonon::EffectDescription,Phonon::Effect*)">
                <modify-argument index="1">
                    <parent index="this" action="add"/>
                </modify-argument>
            </modify-function>
            <modify-function signature="insertEffect(Phonon::Effect*,Phonon::Effect*)">
                <modify-argument index="1">
                    <parent index="this" action="add"/>
                </modify-argument>
            </modify-function>
            <modify-function signature="removeEffect(Phonon::Effect*)">
                <modify-argument index="1">
                    <parent index="this" action="remove"/>
                </modify-argument>
            </modify-function>
            <modify-function signature="sink() const">
                <modify-argument index="return">
                    <define-ownership class="target" owner="default"/>
                </modify-argument>
            </modify-function>
            <modify-function signature="source() const">
                <modify-argument index="return">
                    <define-ownership class="target" owner="default"/>
                </modify-argument>
            </modify-function>
        </value-type>
        <value-type name="ObjectDescription" generate="no"/>
        <value-type name="EffectDescription">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>
        <value-type name="AudioOutputDevice">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>
       <value-type name="AudioCaptureDevice">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>
        <value-type name="VideoCaptureDevice">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>
        <value-type name="AudioChannelDescription">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>
        <value-type name="SubtitleDescription">
            <modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
            <modify-function signature="fromIndex(int)" remove="all"/>
        </value-type>


        <object-type name="ObjectDescriptionModel" generate="no"/>
        <object-type name="EffectDescriptionModel" />
        <object-type name="AudioOutputDeviceModel" />

        <object-type name="AbstractAudioOutput"/>
        <object-type name="AbstractMediaStream"/>
        <object-type name="AudioOutput"/>
        <object-type name="Effect"/>
        <object-type name="EffectWidget"/>
        <object-type name="MediaController">
            <enum-type name="Feature" flags="Phonon::MediaController::Features"/>
        </object-type>
        <object-type name="MediaObject" />
        <object-type name="SeekSlider">
            <modify-function signature="setMediaObject(Phonon::MediaObject*)">
                <modify-argument index="1">
                    <parent index="this" action="add"/>
                </modify-argument>
            </modify-function>
        </object-type>
        <object-type name="VideoPlayer"/>
        <object-type name="VideoWidget">
            <enum-type name="AspectRatio"/>
            <enum-type name="ScaleMode"/>
        </object-type>
        <object-type name="VolumeFaderEffect">
            <enum-type name="FadeCurve"/>
        </object-type>
        <object-type name="VolumeSlider">
            <modify-function signature="setAudioOutput(Phonon::AudioOutput*)">
                <modify-argument index="1">
                    <parent index="this" action="add"/>
                </modify-argument>
            </modify-function>
        </object-type>
    </namespace-type>

</typesystem>