aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/phonon/typesystem_phonon.xml
blob: 1a2a486e6df509f49255a84fab54231f567076de (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
<?xml version="1.0"?>
<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>
    <namespace-type name="Phonon::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>
    </namespace-type>

    <!-- ### causes moc-related linker error -->
    <!-- <object-type name="Phonon::BackendCapabilities::Notifier"/> -->
    <object-type name="Phonon::BackendCapabilities::NotifierWrapper" target-lang-name="Notifier">
        <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>
    </object-type>

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

    <enum-type name="Phonon::AddonInterface::AngleCommand"/>
    <enum-type name="Phonon::AddonInterface::ChapterCommand"/>
    <enum-type name="Phonon::AddonInterface::Interface"/>
    <enum-type name="Phonon::AddonInterface::NavigationCommand"/>
    <enum-type name="Phonon::AddonInterface::TitleCommand"/>
    <enum-type name="Phonon::AddonInterface::SubtitleCommand"/>
    <enum-type name="Phonon::AddonInterface::AudioChannelCommand"/>
    <enum-type name="Phonon::BackendInterface::Class"/>
    <enum-type name="Phonon::EffectParameter::Hint" flags="Phonon::EffectParameter::Hints"/>
    <enum-type name="Phonon::MediaController::Feature" flags="Phonon::MediaController::Features"/>
    <enum-type name="Phonon::MediaSource::Type"/>
    <enum-type name="Phonon::VideoWidget::AspectRatio"/>
    <enum-type name="Phonon::VideoWidget::ScaleMode"/>
    <enum-type name="Phonon::VolumeFaderEffect::FadeCurve"/>

    <object-type name="Phonon::AbstractVideoOutput"/>
    <object-type name="Phonon::AddonInterface"/>
    <object-type name="Phonon::BackendInterface"/>
    <object-type name="Phonon::EffectInterface"/>
    <object-type name="Phonon::MediaNode"/>

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

    <value-type name="Phonon::EffectParameter">
        <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="Phonon::MediaSource">
        <modify-function signature="operator=(Phonon::MediaSource)" remove="all"/> <!-- Covered by copy constructor -->
    </value-type>
    <value-type name="Phonon::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="Phonon::ObjectDescription" generate="no"/>
    <value-type name="Phonon::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="Phonon::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="Phonon::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="Phonon::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="Phonon::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="Phonon::ObjectDescriptionModel" generate="no"/>
    <object-type name="Phonon::EffectDescriptionModel" />
    <object-type name="Phonon::AudioOutputDeviceModel" />

    <object-type name="Phonon::AbstractAudioOutput"/>
    <object-type name="Phonon::AbstractMediaStream"/>
    <object-type name="Phonon::AudioOutput"/>
    <object-type name="Phonon::Effect"/>
    <object-type name="Phonon::EffectWidget"/>
    <object-type name="Phonon::MediaController"/>
    <object-type name="Phonon::MediaObject" />
    <object-type name="Phonon::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="Phonon::VideoPlayer"/>
    <object-type name="Phonon::VideoWidget"/>
    <object-type name="Phonon::VolumeFaderEffect"/>
    <object-type name="Phonon::VolumeSlider">
        <modify-function signature="setAudioOutput(Phonon::AudioOutput*)">
            <modify-argument index="1">
                <parent index="this" action="add"/>
            </modify-argument>
        </modify-function>
    </object-type>

</typesystem>