blob: ecd24151b39c672bc7efb1d09ec25db5207e8ab4 (
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
|
$NetBSD: patch-sip_phonon_backendcapabilities.sip,v 1.1 2014/08/21 21:34:33 wiz Exp $
--- sip/phonon/backendcapabilities.sip.orig 2014-01-02 19:29:04.000000000 +0000
+++ sip/phonon/backendcapabilities.sip
@@ -26,15 +26,28 @@ namespace Phonon
{
namespace BackendCapabilities
{
+
+// SIP 4.16 renamed the PyQt4NoQMetaObject annotation to PyQtNoQMetaObject.
+// Since SIP does not have a preprocessor, we have to duplicate the class
+// definition with different annotations.
+%If (SIP_4_16 - )
+class Notifier : QObject /NoDefaultCtors,PyQtNoQMetaObject/
+{
+signals:
+ void capabilitiesChanged ();
+ void availableAudioOutputDevicesChanged ();
+ void availableAudioCaptureDevicesChanged ();
+};
+%End
+%If ( - SIP_4_16)
class Notifier : QObject /NoDefaultCtors,PyQt4NoQMetaObject/
{
-
signals:
void capabilitiesChanged ();
void availableAudioOutputDevicesChanged ();
void availableAudioCaptureDevicesChanged ();
};
-// Notifier
+%End
Phonon::BackendCapabilities::Notifier* notifier ();
QStringList availableMimeTypes ();
|