/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:21:39 2009
 */

#include "sipAPIphonon.h"


#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13 "sipphononpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16 "sipphononpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19 "sipphononpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 25 "sipphononpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 56 "sipphononpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 59 "sipphononpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 62 "sipphononpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 65 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 68 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 71 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 74 "sipphononpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 77 "sipphononpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 80 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 83 "sipphononpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 86 "sipphononpart5.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Phonon_BackendCapabilities_Notifier(void *, const sipTypeDef *);}
static void *cast_Phonon_BackendCapabilities_Notifier(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Phonon_BackendCapabilities_Notifier)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Phonon::BackendCapabilities::Notifier *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Phonon_BackendCapabilities_Notifier(void *, int);}
static void release_Phonon_BackendCapabilities_Notifier(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Phonon::BackendCapabilities::Notifier *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Phonon_BackendCapabilities_Notifier(sipSimpleWrapper *);}
static void dealloc_Phonon_BackendCapabilities_Notifier(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Phonon_BackendCapabilities_Notifier(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Phonon_BackendCapabilities_Notifier[] = {{111, 0, 1}};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Phonon_BackendCapabilities_Notifier[] = {
    {"availableAudioCaptureDevicesChanged()", 0},
    {"availableAudioOutputDevicesChanged()", 0},
    {"capabilitiesChanged()", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_BackendCapabilities_Notifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__BackendCapabilities__Notifier,
        {0}
    },
    sipNameNr_Notifier,
    -1,
    -1,
    {7, 255, 0},
    supers_Phonon_BackendCapabilities_Notifier,
    0,
    0, 0,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_BackendCapabilities_Notifier,
    release_Phonon_BackendCapabilities_Notifier,
    cast_Phonon_BackendCapabilities_Notifier,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    pyqt4_signals_Phonon_BackendCapabilities_Notifier
};


#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 188 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 191 "sipphononpart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/path.sip"
#include <phonon/path.h>
#line 213 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/effectparameter.sip"
#include <phonon/effectparameter.h>
#line 216 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 219 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/effect.sip"
#include <phonon/effect.h>
#line 222 "sipphononpart5.cpp"


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_availableAudioEffects(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_availableAudioEffects(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QList<Phonon::EffectDescription> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::EffectDescription>(Phonon::BackendCapabilities::availableAudioEffects());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Phonon_EffectDescription,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_availableAudioEffects);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_availableAudioCaptureDevices(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_availableAudioCaptureDevices(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QList<Phonon::AudioCaptureDevice> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::AudioCaptureDevice>(Phonon::BackendCapabilities::availableAudioCaptureDevices());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Phonon_AudioCaptureDevice,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_availableAudioCaptureDevices);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_availableAudioOutputDevices(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_availableAudioOutputDevices(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QList<Phonon::AudioOutputDevice> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::AudioOutputDevice>(Phonon::BackendCapabilities::availableAudioOutputDevices());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Phonon_AudioOutputDevice,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_availableAudioOutputDevices);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_isMimeTypeAvailable(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_isMimeTypeAvailable(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::BackendCapabilities::isMimeTypeAvailable(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_isMimeTypeAvailable);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_availableMimeTypes(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_availableMimeTypes(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(Phonon::BackendCapabilities::availableMimeTypes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_availableMimeTypes);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_BackendCapabilities_notifier(PyObject *,PyObject *);}
static PyObject *meth_Phonon_BackendCapabilities_notifier(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Phonon::BackendCapabilities::Notifier *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::BackendCapabilities::notifier();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Phonon_BackendCapabilities_Notifier,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_notifier);

    return NULL;
}


static PyMethodDef methods_Phonon_BackendCapabilities[] = {
    {SIP_MLNAME_CAST(sipName_availableAudioCaptureDevices), meth_Phonon_BackendCapabilities_availableAudioCaptureDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioEffects), meth_Phonon_BackendCapabilities_availableAudioEffects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioOutputDevices), meth_Phonon_BackendCapabilities_availableAudioOutputDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableMimeTypes), meth_Phonon_BackendCapabilities_availableMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMimeTypeAvailable), meth_Phonon_BackendCapabilities_isMimeTypeAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_notifier), meth_Phonon_BackendCapabilities_notifier, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_BackendCapabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Phonon__BackendCapabilities,
        {0}
    },
    sipNameNr_BackendCapabilities,
    -1,
    -1,
    {0, 255, 0},
    0,
    0,
    6, methods_Phonon_BackendCapabilities,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/audiooutput.sip"
#include <phonon/audiooutput.h>
#line 446 "sipphononpart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 450 "sipphononpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 453 "sipphononpart5.cpp"


class sipPhonon_AudioOutput : public Phonon::AudioOutput
{
public:
    sipPhonon_AudioOutput(Phonon::Category,QObject *);
    sipPhonon_AudioOutput(QObject *);
    ~sipPhonon_AudioOutput();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPhonon_AudioOutput(const sipPhonon_AudioOutput &);
    sipPhonon_AudioOutput &operator = (const sipPhonon_AudioOutput &);
};

sipPhonon_AudioOutput::sipPhonon_AudioOutput(Phonon::Category a0,QObject *a1): Phonon::AudioOutput(a0,a1), sipPySelf(0)
{
}

sipPhonon_AudioOutput::sipPhonon_AudioOutput(QObject *a0): Phonon::AudioOutput(a0), sipPySelf(0)
{
}

sipPhonon_AudioOutput::~sipPhonon_AudioOutput()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_name(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_volume(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_volume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            qreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->volume();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_volume);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_volumeDecibel(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_volumeDecibel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            qreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->volumeDecibel();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_volumeDecibel);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_category(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_category(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            Phonon::Category sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->category();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_Category);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_category);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_outputDevice(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_outputDevice(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            Phonon::AudioOutputDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioOutputDevice(sipCpp->outputDevice());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Phonon_AudioOutputDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_outputDevice);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_isMuted(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_isMuted(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMuted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_isMuted);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_setName(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_setName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_setName);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_setVolume(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_setVolume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qreal a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bd",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVolume(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_setVolume);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_setVolumeDecibel(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_setVolumeDecibel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qreal a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bd",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVolumeDecibel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_setVolumeDecibel);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_setOutputDevice(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_setOutputDevice(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Phonon::AudioOutputDevice * a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp,sipType_Phonon_AudioOutputDevice,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOutputDevice(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_setOutputDevice);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AudioOutput_setMuted(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioOutput_setMuted(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Phonon_AudioOutput,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMuted(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_AudioOutput,sipName_setMuted);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Phonon_AudioOutput(void *, const sipTypeDef *);}
static void *cast_Phonon_AudioOutput(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Phonon_AudioOutput)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Phonon_AudioOutput(void *, int);}
static void release_Phonon_AudioOutput(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPhonon_AudioOutput *>(sipCppV);
    else
        delete reinterpret_cast<Phonon::AudioOutput *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Phonon_AudioOutput(sipSimpleWrapper *);}
static void dealloc_Phonon_AudioOutput(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipPhonon_AudioOutput *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Phonon_AudioOutput(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Phonon_AudioOutput(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Phonon_AudioOutput(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipPhonon_AudioOutput *sipCpp = 0;

    if (!sipCpp)
    {
        Phonon::Category a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|JH",sipType_Phonon_Category,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_AudioOutput(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_AudioOutput(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_Phonon_AudioOutput[] = {
    {SIP_MLNAME_CAST(sipName_category), meth_Phonon_AudioOutput_category, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMuted), meth_Phonon_AudioOutput_isMuted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_AudioOutput_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outputDevice), meth_Phonon_AudioOutput_outputDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMuted), meth_Phonon_AudioOutput_setMuted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_Phonon_AudioOutput_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutputDevice), meth_Phonon_AudioOutput_setOutputDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVolume), meth_Phonon_AudioOutput_setVolume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVolumeDecibel), meth_Phonon_AudioOutput_setVolumeDecibel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_volume), meth_Phonon_AudioOutput_volume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_volumeDecibel), meth_Phonon_AudioOutput_volumeDecibel, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_AudioOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioOutput,
        {0}
    },
    sipNameNr_AudioOutput,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    11, methods_Phonon_AudioOutput,
    0, 0,
    0, 0,
    init_Phonon_AudioOutput,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioOutput,
    release_Phonon_AudioOutput,
    cast_Phonon_AudioOutput,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/medianode.sip"
#include <phonon/medianode.h>
#line 924 "sipphononpart5.cpp"

#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 944 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/path.sip"
#include <phonon/path.h>
#line 947 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/effectparameter.sip"
#include <phonon/effectparameter.h>
#line 950 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 953 "sipphononpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/effect.sip"
#include <phonon/effect.h>
#line 956 "sipphononpart5.cpp"


extern "C" {static PyObject *meth_Phonon_MediaNode_isValid(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaNode,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MediaNode,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_MediaNode_inputPaths(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_inputPaths(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaNode,&sipCpp))
        {
            QList<Phonon::Path> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::Path>(sipCpp->inputPaths());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Phonon_Path,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MediaNode,sipName_inputPaths);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_MediaNode_outputPaths(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_outputPaths(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaNode,&sipCpp))
        {
            QList<Phonon::Path> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::Path>(sipCpp->outputPaths());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Phonon_Path,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MediaNode,sipName_outputPaths);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Phonon_MediaNode(void *, const sipTypeDef *);}
static void *cast_Phonon_MediaNode(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Phonon_MediaNode)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Phonon_MediaNode(void *, int);}
static void release_Phonon_MediaNode(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Phonon::MediaNode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Phonon_MediaNode(sipSimpleWrapper *);}
static void dealloc_Phonon_MediaNode(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Phonon_MediaNode(sipSelf->u.cppPtr,0);
    }
}


static PyMethodDef methods_Phonon_MediaNode[] = {
    {SIP_MLNAME_CAST(sipName_inputPaths), meth_Phonon_MediaNode_inputPaths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_MediaNode_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outputPaths), meth_Phonon_MediaNode_outputPaths, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_MediaNode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaNode,
        {0}
    },
    sipNameNr_MediaNode,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    3, methods_Phonon_MediaNode,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaNode,
    release_Phonon_MediaNode,
    cast_Phonon_MediaNode,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
