/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:11:31 2010
 */

#include "sipAPIphonon.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/medianode.sip"
#include <phonon/medianode.h>
#line 12 "sipphononpart7.cpp"

#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/path.sip"
#include <phonon/path.h>
#line 19 "sipphononpart7.cpp"


extern "C" {static PyObject *meth_Phonon_MediaNode_isValid(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_MediaNode, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_MediaNode_inputPaths(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_inputPaths(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipParseErr, 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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_MediaNode_outputPaths(PyObject *, PyObject *);}
static PyObject *meth_Phonon_MediaNode_outputPaths(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaNode *sipCpp;

        if (sipParseArgs(&sipParseErr, 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

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

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

    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 sipTypeDef_phonon_Phonon_MediaNode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaNode,
        {0}
    },
    {
        sipNameNr_MediaNode,
        {0, 255, 0},
        3, methods_Phonon_MediaNode,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaNode,
    0,
    0,
    0,
    release_Phonon_MediaNode,
    cast_Phonon_MediaNode,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/globalconfig.sip"
#include <phonon/globalconfig.h>
#line 195 "sipphononpart7.cpp"

#line 632 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 199 "sipphononpart7.cpp"


class sipPhonon_GlobalConfig : public Phonon::GlobalConfig
{
public:
    sipPhonon_GlobalConfig();
    sipPhonon_GlobalConfig(const Phonon::GlobalConfig&);
    ~sipPhonon_GlobalConfig();

public:
    sipSimpleWrapper *sipPySelf;

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

sipPhonon_GlobalConfig::sipPhonon_GlobalConfig(): Phonon::GlobalConfig(), sipPySelf(0)
{
}

sipPhonon_GlobalConfig::sipPhonon_GlobalConfig(const Phonon::GlobalConfig& a0): Phonon::GlobalConfig(a0), sipPySelf(0)
{
}

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


extern "C" {static PyObject *meth_Phonon_GlobalConfig_hideAdvancedDevices(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_hideAdvancedDevices(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hideAdvancedDevices();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_hideAdvancedDevices, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_setHideAdvancedDevices(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_setHideAdvancedDevices(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHideAdvancedDevices(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_setHideAdvancedDevices, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_setAudioOutputDeviceListFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_setAudioOutputDeviceListFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        QList<int> * a1;
        int a1State = 0;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, sipType_QList_1800,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAudioOutputDeviceListFor(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QList_1800,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_setAudioOutputDeviceListFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_audioOutputDeviceListFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_audioOutputDeviceListFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        int a1 = Phonon::GlobalConfig::AdvancedDevicesFromSettings;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|i", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, &a1))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->audioOutputDeviceListFor(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_audioOutputDeviceListFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_audioOutputDeviceFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_audioOutputDeviceFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        int a1 = Phonon::GlobalConfig::AdvancedDevicesFromSettings;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|i", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->audioOutputDeviceFor(a0,a1);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_audioOutputDeviceFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_setAudioCaptureDeviceListFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_setAudioCaptureDeviceListFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        QList<int> * a1;
        int a1State = 0;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, sipType_QList_1800,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAudioCaptureDeviceListFor(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QList_1800,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_setAudioCaptureDeviceListFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_audioCaptureDeviceListFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_audioCaptureDeviceListFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        int a1 = Phonon::GlobalConfig::AdvancedDevicesFromSettings;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|i", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, &a1))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->audioCaptureDeviceListFor(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_audioCaptureDeviceListFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_GlobalConfig_audioCaptureDeviceFor(PyObject *, PyObject *);}
static PyObject *meth_Phonon_GlobalConfig_audioCaptureDeviceFor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        int a1 = Phonon::GlobalConfig::AdvancedDevicesFromSettings;
        Phonon::GlobalConfig *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|i", &sipSelf, sipType_Phonon_GlobalConfig, &sipCpp, sipType_Phonon_Category, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->audioCaptureDeviceFor(a0,a1);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_GlobalConfig, sipName_audioCaptureDeviceFor, NULL);

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPhonon_GlobalConfig *>(sipCppV);
    else
        delete reinterpret_cast<Phonon::GlobalConfig *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_Phonon_GlobalConfig(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_GlobalConfig(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipPhonon_GlobalConfig *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_GlobalConfig();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Phonon::GlobalConfig * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_GlobalConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_GlobalConfig(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Phonon_GlobalConfig[] = {
    {SIP_MLNAME_CAST(sipName_audioCaptureDeviceFor), meth_Phonon_GlobalConfig_audioCaptureDeviceFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_audioCaptureDeviceListFor), meth_Phonon_GlobalConfig_audioCaptureDeviceListFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_audioOutputDeviceFor), meth_Phonon_GlobalConfig_audioOutputDeviceFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_audioOutputDeviceListFor), meth_Phonon_GlobalConfig_audioOutputDeviceListFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideAdvancedDevices), meth_Phonon_GlobalConfig_hideAdvancedDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAudioCaptureDeviceListFor), meth_Phonon_GlobalConfig_setAudioCaptureDeviceListFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAudioOutputDeviceListFor), meth_Phonon_GlobalConfig_setAudioOutputDeviceListFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHideAdvancedDevices), meth_Phonon_GlobalConfig_setHideAdvancedDevices, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon_GlobalConfig[] = {
    {sipName_AdvancedDevicesFromSettings, Phonon::GlobalConfig::AdvancedDevicesFromSettings, 22},
    {sipName_HideAdvancedDevices, Phonon::GlobalConfig::HideAdvancedDevices, 22},
    {sipName_HideUnavailableDevices, Phonon::GlobalConfig::HideUnavailableDevices, 22},
    {sipName_ShowAdvancedDevices, Phonon::GlobalConfig::ShowAdvancedDevices, 22},
    {sipName_ShowUnavailableDevices, Phonon::GlobalConfig::ShowUnavailableDevices, 22},
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_GlobalConfig = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__GlobalConfig,
        {0}
    },
    {
        sipNameNr_GlobalConfig,
        {0, 255, 0},
        8, methods_Phonon_GlobalConfig,
        5, enummembers_Phonon_GlobalConfig,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Phonon_GlobalConfig,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_GlobalConfig,
    0,
    0,
    0,
    release_Phonon_GlobalConfig,
    cast_Phonon_GlobalConfig,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 610 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/effectparameter.sip"
#include <phonon/effectparameter.h>
#line 613 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/mediaobject.sip"
#include <phonon/mediaobject.h>
#line 616 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 619 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/path.sip"
#include <phonon/path.h>
#line 622 "sipphononpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/phonon/medianode.sip"
#include <phonon/medianode.h>
#line 625 "sipphononpart7.cpp"


extern "C" {static PyObject *meth_Phonon_createPath(PyObject *, PyObject *);}
static PyObject *meth_Phonon_createPath(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaNode * a0;
        Phonon::MediaNode * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J8", sipType_Phonon_MediaNode, &a0, sipType_Phonon_MediaNode, &a1))
        {
            Phonon::Path *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::Path(Phonon::createPath(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_createPath, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_createPlayer(PyObject *, PyObject *);}
static PyObject *meth_Phonon_createPlayer(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;
        const Phonon::MediaSource& a1def = Phonon::MediaSource();
        const Phonon::MediaSource * a1 = &a1def;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J9", sipType_Phonon_Category, &a0, sipType_Phonon_MediaSource, &a1))
        {
            Phonon::MediaObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::createPlayer(a0,*a1);
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_createPlayer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_qHash(PyObject *, PyObject *);}
static PyObject *meth_Phonon_qHash(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Phonon::EffectParameter * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Phonon_EffectParameter, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qHash, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_categoryToString(PyObject *, PyObject *);}
static PyObject *meth_Phonon_categoryToString(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Phonon::Category a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Phonon_Category, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Phonon::categoryToString(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_categoryToString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_phononVersion(PyObject *, PyObject *);}
static PyObject *meth_Phonon_phononVersion(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::phononVersion();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_phononVersion, NULL);

    return NULL;
}


static PyMethodDef methods_Phonon[] = {
    {SIP_MLNAME_CAST(sipName_categoryToString), meth_Phonon_categoryToString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPath), meth_Phonon_createPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPlayer), meth_Phonon_createPlayer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_phononVersion), meth_Phonon_phononVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_qHash), meth_Phonon_qHash, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon[] = {
    {sipName_AccessibilityCategory, Phonon::AccessibilityCategory, 12},
    {sipName_AlbumMetaData, Phonon::AlbumMetaData, 30},
    {sipName_ArtistMetaData, Phonon::ArtistMetaData, 30},
    {sipName_AudioCaptureDeviceType, Phonon::AudioCaptureDeviceType, 33},
    {sipName_AudioChannelType, Phonon::AudioChannelType, 33},
    {sipName_AudioOutputDeviceType, Phonon::AudioOutputDeviceType, 33},
    {sipName_BufferingState, Phonon::BufferingState, 36},
    {sipName_Cd, Phonon::Cd, 13},
    {sipName_CommunicationCategory, Phonon::CommunicationCategory, 12},
    {sipName_DateMetaData, Phonon::DateMetaData, 30},
    {sipName_DescriptionMetaData, Phonon::DescriptionMetaData, 30},
    {sipName_Dvd, Phonon::Dvd, 13},
    {sipName_EffectType, Phonon::EffectType, 33},
    {sipName_ErrorState, Phonon::ErrorState, 36},
    {sipName_FatalError, Phonon::FatalError, 20},
    {sipName_GameCategory, Phonon::GameCategory, 12},
    {sipName_GenreMetaData, Phonon::GenreMetaData, 30},
    {sipName_LastCategory, Phonon::LastCategory, 12},
    {sipName_LoadingState, Phonon::LoadingState, 36},
    {sipName_MusicBrainzDiscIdMetaData, Phonon::MusicBrainzDiscIdMetaData, 30},
    {sipName_MusicCategory, Phonon::MusicCategory, 12},
    {sipName_NoCategory, Phonon::NoCategory, 12},
    {sipName_NoDisc, Phonon::NoDisc, 13},
    {sipName_NoError, Phonon::NoError, 20},
    {sipName_NormalError, Phonon::NormalError, 20},
    {sipName_NotificationCategory, Phonon::NotificationCategory, 12},
    {sipName_PausedState, Phonon::PausedState, 36},
    {sipName_PlayingState, Phonon::PlayingState, 36},
    {sipName_StoppedState, Phonon::StoppedState, 36},
    {sipName_SubtitleType, Phonon::SubtitleType, 33},
    {sipName_TitleMetaData, Phonon::TitleMetaData, 30},
    {sipName_TracknumberMetaData, Phonon::TracknumberMetaData, 30},
    {sipName_Vcd, Phonon::Vcd, 13},
    {sipName_VideoCategory, Phonon::VideoCategory, 12},
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Phonon,
        {0}
    },
    {
        sipNameNr_Phonon,
        {0, 0, 1},
        5, methods_Phonon,
        34, enummembers_Phonon,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    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
};
