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

#include "sipAPIphonon.h"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/abstractvideooutput.sip"
#include <phonon/abstractvideooutput.h>
#line 12 "sipphononpart6.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 32 "sipphononpart6.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 35 "sipphononpart6.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 38 "sipphononpart6.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 41 "sipphononpart6.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 44 "sipphononpart6.cpp"


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

    if (targetType == sipType_Phonon_AbstractVideoOutput)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Phonon_MediaNode)->ctd_cast((Phonon::MediaNode *)(Phonon::AbstractVideoOutput *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


/* Define this type's super-types. */
static sipEncodedClassDef supers_Phonon_AbstractVideoOutput[] = {{21, 255, 1}};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_AbstractVideoOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__AbstractVideoOutput,
        {0}
    },
    sipNameNr_AbstractVideoOutput,
    -1,
    -1,
    {0, 255, 0},
    supers_Phonon_AbstractVideoOutput,
    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_AbstractVideoOutput,
    release_Phonon_AbstractVideoOutput,
    cast_Phonon_AbstractVideoOutput,
    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/abstractmediastream.sip"
#include <phonon/abstractmediastream.h>
#line 136 "sipphononpart6.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 140 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 143 "sipphononpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 146 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 149 "sipphononpart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 152 "sipphononpart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 155 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 158 "sipphononpart6.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 189 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 192 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 195 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 198 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 201 "sipphononpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 204 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 207 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 210 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 213 "sipphononpart6.cpp"


class sipPhonon_AbstractMediaStream : public Phonon::AbstractMediaStream
{
public:
    sipPhonon_AbstractMediaStream(QObject *);
    virtual ~sipPhonon_AbstractMediaStream();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtect_streamSize() const;
    void sipProtect_setStreamSize(qint64);
    bool sipProtect_streamSeekable() const;
    void sipProtect_setStreamSeekable(bool);
    void sipProtect_writeData(const QByteArray&);
    void sipProtect_endOfData();
    void sipProtect_error(Phonon::ErrorType,const QString&);
    void sipProtect_reset();
    void sipProtect_needData();
    void sipProtectVirt_enoughData(bool);
    void sipProtectVirt_seekStream(bool,qint64);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void reset();
    void needData();
    void enoughData();
    void seekStream(qint64);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPhonon_AbstractMediaStream(const sipPhonon_AbstractMediaStream &);
    sipPhonon_AbstractMediaStream &operator = (const sipPhonon_AbstractMediaStream &);

    char sipPyMethods[11];
};

sipPhonon_AbstractMediaStream::sipPhonon_AbstractMediaStream(QObject *a0): Phonon::AbstractMediaStream(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_AbstractMediaStream::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_AbstractMediaStream);
}

int sipPhonon_AbstractMediaStream::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Phonon::AbstractMediaStream::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_phonon_qt_metacall(sipPySelf,sipType_Phonon_AbstractMediaStream,_c,_id,_a);

    return _id;
}

void *sipPhonon_AbstractMediaStream::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_AbstractMediaStream,_clname)) ? this : Phonon::AbstractMediaStream::qt_metacast(_clname);
}

void sipPhonon_AbstractMediaStream::reset()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_AbstractMediaStream,sipName_reset);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_phonon_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipPhonon_AbstractMediaStream::needData()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_AbstractMediaStream,sipName_needData);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_phonon_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipPhonon_AbstractMediaStream::enoughData()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_enoughData);

    if (!meth)
    {
        Phonon::AbstractMediaStream::enoughData();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_phonon_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipPhonon_AbstractMediaStream::seekStream(qint64 a0)
{
    typedef void (*sipVH_QtNetwork_3)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_seekStream);

    if (!meth)
    {
        Phonon::AbstractMediaStream::seekStream(a0);
        return;
    }

    ((sipVH_QtNetwork_3)(sipModuleAPI_phonon_QtNetwork->em_virthandlers[3]))(sipGILState,meth,a0);
}

bool sipPhonon_AbstractMediaStream::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_phonon_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipPhonon_AbstractMediaStream::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_phonon_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipPhonon_AbstractMediaStream::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_phonon_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipPhonon_AbstractMediaStream::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_phonon_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipPhonon_AbstractMediaStream::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_phonon_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipPhonon_AbstractMediaStream::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_phonon_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipPhonon_AbstractMediaStream::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_phonon_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipPhonon_AbstractMediaStream::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

qint64 sipPhonon_AbstractMediaStream::sipProtect_streamSize() const
{
    return Phonon::AbstractMediaStream::streamSize();
}

void sipPhonon_AbstractMediaStream::sipProtect_setStreamSize(qint64 a0)
{
    Phonon::AbstractMediaStream::setStreamSize(a0);
}

bool sipPhonon_AbstractMediaStream::sipProtect_streamSeekable() const
{
    return Phonon::AbstractMediaStream::streamSeekable();
}

void sipPhonon_AbstractMediaStream::sipProtect_setStreamSeekable(bool a0)
{
    Phonon::AbstractMediaStream::setStreamSeekable(a0);
}

void sipPhonon_AbstractMediaStream::sipProtect_writeData(const QByteArray& a0)
{
    Phonon::AbstractMediaStream::writeData(a0);
}

void sipPhonon_AbstractMediaStream::sipProtect_endOfData()
{
    Phonon::AbstractMediaStream::endOfData();
}

void sipPhonon_AbstractMediaStream::sipProtect_error(Phonon::ErrorType a0,const QString& a1)
{
    Phonon::AbstractMediaStream::error(a0,a1);
}

void sipPhonon_AbstractMediaStream::sipProtect_reset()
{
    reset();
}

void sipPhonon_AbstractMediaStream::sipProtect_needData()
{
    needData();
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_enoughData(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Phonon::AbstractMediaStream::enoughData() : enoughData());
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_seekStream(bool sipSelfWasArg,qint64 a0)
{
    (sipSelfWasArg ? Phonon::AbstractMediaStream::seekStream(a0) : seekStream(a0));
}


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

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 602 "sipphononpart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,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_AbstractMediaStream,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,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_AbstractMediaStream,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,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_AbstractMediaStream,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,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_AbstractMediaStream,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,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_AbstractMediaStream,sipName_disconnectNotify);

    return NULL;
}


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

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_streamSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setStreamSize(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_AbstractMediaStream,sipName_setStreamSize);

    return NULL;
}


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

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_streamSeekable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setStreamSeekable(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_AbstractMediaStream,sipName_setStreamSeekable);

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_writeData(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endOfData();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::ErrorType a0;
        const QString * a1;
        int a1State = 0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEJ1",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,sipType_Phonon_ErrorType,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_error(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_reset(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_reset(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_AbstractMediaStream, sipName_reset);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_needData(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_needData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_AbstractMediaStream, sipName_needData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_needData();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_enoughData(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_enoughData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enoughData(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Phonon_AbstractMediaStream_seekStream(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AbstractMediaStream_seekStream(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_Phonon_AbstractMediaStream,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_seekStream(sipSelfWasArg,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_AbstractMediaStream,sipName_seekStream);

    return NULL;
}


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

    if (targetType == sipType_Phonon_AbstractMediaStream)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Phonon_AbstractMediaStream[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Phonon_AbstractMediaStream_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_AbstractMediaStream_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_AbstractMediaStream_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_AbstractMediaStream_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endOfData), meth_Phonon_AbstractMediaStream_endOfData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enoughData), meth_Phonon_AbstractMediaStream_enoughData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_Phonon_AbstractMediaStream_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_needData), meth_Phonon_AbstractMediaStream_needData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Phonon_AbstractMediaStream_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_Phonon_AbstractMediaStream_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seekStream), meth_Phonon_AbstractMediaStream_seekStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStreamSeekable), meth_Phonon_AbstractMediaStream_setStreamSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStreamSize), meth_Phonon_AbstractMediaStream_setStreamSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_streamSeekable), meth_Phonon_AbstractMediaStream_streamSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_streamSize), meth_Phonon_AbstractMediaStream_streamSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Phonon_AbstractMediaStream_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_Phonon_AbstractMediaStream_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_AbstractMediaStream = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AbstractMediaStream,
        {0}
    },
    sipNameNr_AbstractMediaStream,
    -1,
    -1,
    {0, 255, 0},
    supers_Phonon_AbstractMediaStream,
    0,
    17, methods_Phonon_AbstractMediaStream,
    0, 0,
    0, 0,
    init_Phonon_AbstractMediaStream,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AbstractMediaStream,
    release_Phonon_AbstractMediaStream,
    cast_Phonon_AbstractMediaStream,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Phonon::AbstractMediaStream::staticMetaObject,
    0,
    0
};


#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 1212 "sipphononpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1215 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1218 "sipphononpart6.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 1249 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1252 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1255 "sipphononpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1258 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1261 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1264 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1267 "sipphononpart6.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            Phonon::SubtitleDescription *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::SubtitleDescription(Phonon::SubtitleDescription::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::SubtitleDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_SubtitleDescription,&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_SubtitleDescription,sipName_name);

    return NULL;
}


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

    {
        Phonon::SubtitleDescription *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::SubtitleDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA",&sipSelf,sipType_Phonon_SubtitleDescription,&sipCpp,&a0Keep,&a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::SubtitleDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_SubtitleDescription,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::SubtitleDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_SubtitleDescription,&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_SubtitleDescription,sipName_isValid);

    return NULL;
}


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

    {
        Phonon::SubtitleDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_SubtitleDescription,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_SubtitleDescription___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_SubtitleDescription___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::SubtitleDescription *sipCpp = reinterpret_cast<Phonon::SubtitleDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_SubtitleDescription));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::SubtitleDescription * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Phonon_SubtitleDescription,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::SubtitleDescription::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_SubtitleDescription,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_SubtitleDescription___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_SubtitleDescription___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::SubtitleDescription *sipCpp = reinterpret_cast<Phonon::SubtitleDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_SubtitleDescription));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::SubtitleDescription * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Phonon_SubtitleDescription,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::SubtitleDescription::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_SubtitleDescription,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_SubtitleDescription(void *, const void*);}
static void assign_Phonon_SubtitleDescription(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Phonon::SubtitleDescription *>(sipDst) = *reinterpret_cast<const Phonon::SubtitleDescription *>(sipSrc);
}


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


extern "C" {static void *init_Phonon_SubtitleDescription(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Phonon_SubtitleDescription(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Phonon::SubtitleDescription *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::SubtitleDescription();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"iJ1",&a0,sipType_QHash_0200QByteArray_0200QVariant,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::SubtitleDescription(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0200QByteArray_0200QVariant,a1State);
        }
    }

    if (!sipCpp)
    {
        const Phonon::SubtitleDescription * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Phonon_SubtitleDescription,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::SubtitleDescription(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_SubtitleDescription[] = {
    {(void *)slot_Phonon_SubtitleDescription___ne__, ne_slot},
    {(void *)slot_Phonon_SubtitleDescription___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_SubtitleDescription[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_SubtitleDescription_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_SubtitleDescription_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_SubtitleDescription_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_SubtitleDescription_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_SubtitleDescription_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_SubtitleDescription_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_SubtitleDescription_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_SubtitleDescription = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__SubtitleDescription,
        {0}
    },
    sipNameNr_SubtitleDescription,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_Phonon_SubtitleDescription,
    7, methods_Phonon_SubtitleDescription,
    0, 0,
    0, 0,
    init_Phonon_SubtitleDescription,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_SubtitleDescription,
    release_Phonon_SubtitleDescription,
    cast_Phonon_SubtitleDescription,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Phonon_SubtitleDescription,
    0,
    0,
    0
};


#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 1677 "sipphononpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1680 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1683 "sipphononpart6.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 1714 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1717 "sipphononpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1720 "sipphononpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1723 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1726 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1729 "sipphononpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1732 "sipphononpart6.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            Phonon::AudioChannelDescription *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioChannelDescription(Phonon::AudioChannelDescription::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::AudioChannelDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioChannelDescription,&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_AudioChannelDescription,sipName_name);

    return NULL;
}


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

    {
        Phonon::AudioChannelDescription *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::AudioChannelDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA",&sipSelf,sipType_Phonon_AudioChannelDescription,&sipCpp,&a0Keep,&a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::AudioChannelDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioChannelDescription,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::AudioChannelDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioChannelDescription,&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_AudioChannelDescription,sipName_isValid);

    return NULL;
}


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

    {
        Phonon::AudioChannelDescription *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_AudioChannelDescription,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_AudioChannelDescription___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_AudioChannelDescription___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioChannelDescription *sipCpp = reinterpret_cast<Phonon::AudioChannelDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioChannelDescription));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::AudioChannelDescription * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Phonon_AudioChannelDescription,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioChannelDescription::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_AudioChannelDescription,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_AudioChannelDescription___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_AudioChannelDescription___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioChannelDescription *sipCpp = reinterpret_cast<Phonon::AudioChannelDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioChannelDescription));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::AudioChannelDescription * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Phonon_AudioChannelDescription,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioChannelDescription::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_AudioChannelDescription,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_AudioChannelDescription(void *, const void*);}
static void assign_Phonon_AudioChannelDescription(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Phonon::AudioChannelDescription *>(sipDst) = *reinterpret_cast<const Phonon::AudioChannelDescription *>(sipSrc);
}


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


extern "C" {static void *init_Phonon_AudioChannelDescription(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Phonon_AudioChannelDescription(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Phonon::AudioChannelDescription *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioChannelDescription();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"iJ1",&a0,sipType_QHash_0200QByteArray_0200QVariant,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioChannelDescription(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0200QByteArray_0200QVariant,a1State);
        }
    }

    if (!sipCpp)
    {
        const Phonon::AudioChannelDescription * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Phonon_AudioChannelDescription,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioChannelDescription(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_AudioChannelDescription[] = {
    {(void *)slot_Phonon_AudioChannelDescription___ne__, ne_slot},
    {(void *)slot_Phonon_AudioChannelDescription___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_AudioChannelDescription[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_AudioChannelDescription_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_AudioChannelDescription_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_AudioChannelDescription_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_AudioChannelDescription_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_AudioChannelDescription_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_AudioChannelDescription_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_AudioChannelDescription_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_AudioChannelDescription = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioChannelDescription,
        {0}
    },
    sipNameNr_AudioChannelDescription,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_Phonon_AudioChannelDescription,
    7, methods_Phonon_AudioChannelDescription,
    0, 0,
    0, 0,
    init_Phonon_AudioChannelDescription,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioChannelDescription,
    release_Phonon_AudioChannelDescription,
    cast_Phonon_AudioChannelDescription,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Phonon_AudioChannelDescription,
    0,
    0,
    0
};
