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

#include "sipAPIphonon.h"

#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 12 "sipphononpart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 19 "sipphononpart3.cpp"
#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 22 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 25 "sipphononpart3.cpp"


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

    {
        bool a0;
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Phonon_MediaSource,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDelete(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_MediaSource,sipName_setAutoDelete);

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoDelete();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaSource,&sipCpp))
        {
            Phonon::MediaSource::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_MediaSource_Type);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_DiscType);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->stream();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_MediaSource___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaSource___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaSource *sipCpp = reinterpret_cast<Phonon::MediaSource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaSource));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::MediaSource * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Phonon_MediaSource___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaSource___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaSource *sipCpp = reinterpret_cast<Phonon::MediaSource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaSource));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::MediaSource * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaSource(*a0);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const QUrl * a0;

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

    if (!sipCpp)
    {
        Phonon::DiscType a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|J1",sipType_Phonon_DiscType,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaSource(a0,*a1);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        Phonon::AbstractMediaStream * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_Phonon_AbstractMediaStream,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaSource(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QIODevice * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_QIODevice,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaSource(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

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

    return sipCpp;
}


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


static PyMethodDef methods_Phonon_MediaSource[] = {
    {SIP_MLNAME_CAST(sipName_autoDelete), meth_Phonon_MediaSource_autoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceName), meth_Phonon_MediaSource_deviceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discType), meth_Phonon_MediaSource_discType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_Phonon_MediaSource_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDelete), meth_Phonon_MediaSource_setAutoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stream), meth_Phonon_MediaSource_stream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Phonon_MediaSource_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_Phonon_MediaSource_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon_MediaSource[] = {
    {sipName_Disc, Phonon::MediaSource::Disc, 24},
    {sipName_Empty, Phonon::MediaSource::Empty, 24},
    {sipName_Invalid, Phonon::MediaSource::Invalid, 24},
    {sipName_LocalFile, Phonon::MediaSource::LocalFile, 24},
    {sipName_Stream, Phonon::MediaSource::Stream, 24},
    {sipName_Url, Phonon::MediaSource::Url, 24},
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_MediaSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaSource,
        {0}
    },
    sipNameNr_MediaSource,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_Phonon_MediaSource,
    8, methods_Phonon_MediaSource,
    6, enummembers_Phonon_MediaSource,
    0, 0,
    init_Phonon_MediaSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaSource,
    release_Phonon_MediaSource,
    cast_Phonon_MediaSource,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Phonon_MediaSource,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediaobject.sip"
#include <phonon/mediaobject.h>
#line 517 "sipphononpart3.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 521 "sipphononpart3.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 540 "sipphononpart3.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 543 "sipphononpart3.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 546 "sipphononpart3.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 549 "sipphononpart3.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 580 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 583 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 586 "sipphononpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 589 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 592 "sipphononpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 595 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 598 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 601 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 604 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 607 "sipphononpart3.cpp"
#line 251 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 610 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 613 "sipphononpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 616 "sipphononpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 619 "sipphononpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 622 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 625 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 628 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 631 "sipphononpart3.cpp"


class sipPhonon_MediaObject : public Phonon::MediaObject
{
public:
    sipPhonon_MediaObject();
    virtual ~sipPhonon_MediaObject();

    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 *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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_MediaObject(const sipPhonon_MediaObject &);
    sipPhonon_MediaObject &operator = (const sipPhonon_MediaObject &);

    char sipPyMethods[7];
};

sipPhonon_MediaObject::sipPhonon_MediaObject(): Phonon::MediaObject(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_MediaObject::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_MediaObject);
}

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

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

    return _id;
}

void *sipPhonon_MediaObject::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_MediaObject,_clname)) ? this : Phonon::MediaObject::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],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_MediaObject::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[1],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_MediaObject::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipPhonon_MediaObject::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[5],sipPySelf,NULL,sipName_connectNotify);

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

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

void sipPhonon_MediaObject::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[6],sipPySelf,NULL,sipName_disconnectNotify);

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaObject,&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 884 "sipphononpart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaObject,&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_MediaObject,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaObject,&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_MediaObject,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaObject,&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_MediaObject,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaObject,&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_MediaObject,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaObject,&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_MediaObject,sipName_disconnectNotify);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_State);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasVideo();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeekable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->tickInterval();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->metaData(*a0));
            Py_END_ALLOW_THREADS

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

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

    {
        Phonon::MetaData a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_Phonon_MetaData,&a0))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->metaData(a0));
            Py_END_ALLOW_THREADS

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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            QMultiMap<QString,QString> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMultiMap<QString,QString>(sipCpp->metaData());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_ErrorType);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaSource(sipCpp->currentSource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Phonon::MediaSource * a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_Phonon_MediaSource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentSource(*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_MediaObject,sipName_setCurrentSource);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::MediaSource>(sipCpp->queue());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Phonon::MediaSource> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_QList_0200Phonon_MediaSource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Phonon::MediaSource> *>(a0),sipType_QList_0200Phonon_MediaSource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_QList_0200QUrl,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0200QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::MediaSource * a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_Phonon_MediaSource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<Phonon::MediaSource> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_QList_0200Phonon_MediaSource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Phonon::MediaSource> *>(a0),sipType_QList_0200Phonon_MediaSource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,sipType_QList_0200QUrl,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0200QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearQueue();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->totalTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->remainingTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->prefinishMark();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrefinishMark(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_MediaObject,sipName_setPrefinishMark);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTransitionTime(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_MediaObject,sipName_setTransitionTime);

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTickInterval(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_MediaObject,sipName_setTickInterval);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->play();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->pause();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->stop();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bn",&sipSelf,sipType_Phonon_MediaObject,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->seek(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_MediaObject,sipName_seek);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaObject,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Phonon_MediaObject)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Phonon_MediaObject[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Phonon_MediaObject_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Phonon_MediaObject_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearQueue), meth_Phonon_MediaObject_clearQueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_MediaObject_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentSource), meth_Phonon_MediaObject_currentSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentTime), meth_Phonon_MediaObject_currentTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_MediaObject_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_MediaObject_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enqueue), meth_Phonon_MediaObject_enqueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Phonon_MediaObject_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorType), meth_Phonon_MediaObject_errorType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasVideo), meth_Phonon_MediaObject_hasVideo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeekable), meth_Phonon_MediaObject_isSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaData), meth_Phonon_MediaObject_metaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pause), meth_Phonon_MediaObject_pause, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_play), meth_Phonon_MediaObject_play, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefinishMark), meth_Phonon_MediaObject_prefinishMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queue), meth_Phonon_MediaObject_queue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Phonon_MediaObject_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remainingTime), meth_Phonon_MediaObject_remainingTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seek), meth_Phonon_MediaObject_seek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentSource), meth_Phonon_MediaObject_setCurrentSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrefinishMark), meth_Phonon_MediaObject_setPrefinishMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueue), meth_Phonon_MediaObject_setQueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTickInterval), meth_Phonon_MediaObject_setTickInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTransitionTime), meth_Phonon_MediaObject_setTransitionTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_Phonon_MediaObject_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Phonon_MediaObject_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tickInterval), meth_Phonon_MediaObject_tickInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Phonon_MediaObject_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalTime), meth_Phonon_MediaObject_totalTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTime), meth_Phonon_MediaObject_transitionTime, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Phonon_MediaObject[] = {
    {"totalTimeChanged(qint64)", 0},
    {"prefinishMarkReached(qint32)", 0},
    {"aboutToFinish()", 0},
    {"currentSourceChanged(const Phonon::MediaSource&)", 0},
    {"finished()", 0},
    {"bufferStatus(int)", 0},
    {"hasVideoChanged(bool)", 0},
    {"seekableChanged(bool)", 0},
    {"metaDataChanged()", 0},
    {"tick(qint64)", 0},
    {"stateChanged(Phonon::State,Phonon::State)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_MediaObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaObject,
        {0}
    },
    sipNameNr_MediaObject,
    -1,
    -1,
    {0, 255, 0},
    supers_Phonon_MediaObject,
    0,
    32, methods_Phonon_MediaObject,
    0, 0,
    0, 0,
    init_Phonon_MediaObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaObject,
    release_Phonon_MediaObject,
    cast_Phonon_MediaObject,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Phonon::MediaObject::staticMetaObject,
    0,
    pyqt4_signals_Phonon_MediaObject
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 2005 "sipphononpart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 2009 "sipphononpart3.cpp"


extern "C" {static int slot_Phonon_MediaController_Features___bool__(PyObject *sipSelf);}
static int slot_Phonon_MediaController_Features___bool__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2027 "sipphononpart3.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaController_Features___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Phonon_MediaController_Features,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2055 "sipphononpart3.cpp"

            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Phonon_MediaController_Features___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaController_Features___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Phonon_MediaController_Features,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2087 "sipphononpart3.cpp"

            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Phonon_MediaController_Features___invert__(PyObject *sipSelf);}
static PyObject *slot_Phonon_MediaController_Features___invert__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;


    {
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_Phonon_MediaController_Features___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Phonon_MediaController_Features___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_Phonon_MediaController_Features,&a0,&a0State,&a1))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_phonon,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Phonon_MediaController_Features___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        Phonon::MediaController::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Phonon_MediaController_Features,&a0,&a0State,sipType_Phonon_MediaController_Features,&a1,&a1State))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);
            sipReleaseType(a1,sipType_Phonon_MediaController_Features,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_phonon,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Phonon_MediaController_Features___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        Phonon::MediaController::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Phonon_MediaController_Features,&a0,&a0State,sipType_Phonon_MediaController_Features,&a1,&a1State))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);
            sipReleaseType(a1,sipType_Phonon_MediaController_Features,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_phonon,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___int__(PyObject *sipSelf);}
static PyObject *slot_Phonon_MediaController_Features___int__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaController_Features___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Phonon_MediaController_Features,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaController_Features___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Phonon_MediaController_Features,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Phonon_MediaController_Features___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::MediaController::Features *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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

    if (!sipCpp)
    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_Phonon_MediaController_Features,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaController::Features(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaController::Features(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


extern "C" {static int convertTo_Phonon_MediaController_Features(PyObject *, void **, int *, PyObject *);}
static int convertTo_Phonon_MediaController_Features(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Phonon::MediaController::Features **sipCppPtr = reinterpret_cast<Phonon::MediaController::Features **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Phonon::MediaController::Features is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Feature)) ||
            sipCanConvertToType(sipPy, sipType_Phonon_MediaController_Features, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Feature)))
{
    *sipCppPtr = new Phonon::MediaController::Features(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Phonon::MediaController::Features *>(sipConvertToType(sipPy, sipType_Phonon_MediaController_Features, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2458 "sipphononpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_MediaController_Features[] = {
    {(void *)slot_Phonon_MediaController_Features___bool__, bool_slot},
    {(void *)slot_Phonon_MediaController_Features___ne__, ne_slot},
    {(void *)slot_Phonon_MediaController_Features___eq__, eq_slot},
    {(void *)slot_Phonon_MediaController_Features___invert__, invert_slot},
    {(void *)slot_Phonon_MediaController_Features___and__, and_slot},
    {(void *)slot_Phonon_MediaController_Features___xor__, xor_slot},
    {(void *)slot_Phonon_MediaController_Features___or__, or_slot},
    {(void *)slot_Phonon_MediaController_Features___int__, int_slot},
    {(void *)slot_Phonon_MediaController_Features___ixor__, ixor_slot},
    {(void *)slot_Phonon_MediaController_Features___ior__, ior_slot},
    {(void *)slot_Phonon_MediaController_Features___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_MediaController_Features = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaController__Features,
        {0}
    },
    sipNameNr_Features,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {18, 255, 0},
    0,
    slots_Phonon_MediaController_Features,
    0, 0,
    0, 0,
    0, 0,
    init_Phonon_MediaController_Features,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaController_Features,
    release_Phonon_MediaController_Features,
    cast_Phonon_MediaController_Features,
    convertTo_Phonon_MediaController_Features,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Phonon_MediaController_Features,
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 2526 "sipphononpart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediaobject.sip"
#include <phonon/mediaobject.h>
#line 2530 "sipphononpart3.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 2549 "sipphononpart3.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 2552 "sipphononpart3.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 2555 "sipphononpart3.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 2558 "sipphononpart3.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 2561 "sipphononpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 2564 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2567 "sipphononpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2570 "sipphononpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2573 "sipphononpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2576 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2579 "sipphononpart3.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 2610 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2613 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2616 "sipphononpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2619 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2622 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2625 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2628 "sipphononpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2631 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2634 "sipphononpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2637 "sipphononpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2640 "sipphononpart3.cpp"


class sipPhonon_MediaController : public Phonon::MediaController
{
public:
    sipPhonon_MediaController(Phonon::MediaObject *);
    virtual ~sipPhonon_MediaController();

    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 *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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_MediaController(const sipPhonon_MediaController &);
    sipPhonon_MediaController &operator = (const sipPhonon_MediaController &);

    char sipPyMethods[7];
};

sipPhonon_MediaController::sipPhonon_MediaController(Phonon::MediaObject *a0): Phonon::MediaController(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_MediaController::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_MediaController);
}

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

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

    return _id;
}

void *sipPhonon_MediaController::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_MediaController,_clname)) ? this : Phonon::MediaController::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],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_MediaController::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[1],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_MediaController::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipPhonon_MediaController::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[5],sipPySelf,NULL,sipName_connectNotify);

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

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

void sipPhonon_MediaController::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[6],sipPySelf,NULL,sipName_disconnectNotify);

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaController,&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 2893 "sipphononpart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaController,&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_MediaController,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaController,&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_MediaController,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Phonon_MediaController,&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_MediaController,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaController,&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_MediaController,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Phonon_MediaController,&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_MediaController,sipName_disconnectNotify);

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaController,&sipCpp))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features(sipCpp->supportedFeatures());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->availableAngles();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentAngle();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->availableChapters();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentChapter();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->availableTitles();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentTitle();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoplayTitles();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioChannelDescription(sipCpp->currentAudioChannel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::SubtitleDescription(sipCpp->currentSubtitle());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::AudioChannelDescription>(sipCpp->availableAudioChannels());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::SubtitleDescription>(sipCpp->availableSubtitles());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::AudioChannelDescription * a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Phonon_MediaController,&sipCpp,sipType_Phonon_AudioChannelDescription,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentAudioChannel(*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_MediaController,sipName_setCurrentAudioChannel);

    return NULL;
}


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

    {
        const Phonon::SubtitleDescription * a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Phonon_MediaController,&sipCpp,sipType_Phonon_SubtitleDescription,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentSubtitle(*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_MediaController,sipName_setCurrentSubtitle);

    return NULL;
}


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

    {
        int a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaController,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentAngle(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_MediaController,sipName_setCurrentAngle);

    return NULL;
}


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

    {
        int a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaController,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentChapter(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_MediaController,sipName_setCurrentChapter);

    return NULL;
}


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

    {
        int a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Phonon_MediaController,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentTitle(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_MediaController,sipName_setCurrentTitle);

    return NULL;
}


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

    {
        bool a0;
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Phonon_MediaController,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoplayTitles(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_MediaController,sipName_setAutoplayTitles);

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaController,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->nextTitle();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaController *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Phonon_MediaController,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->previousTitle();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Phonon_MediaController)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        Phonon::MediaObject * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_Phonon_MediaObject,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaController(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Phonon_MediaController[] = {
    {SIP_MLNAME_CAST(sipName_autoplayTitles), meth_Phonon_MediaController_autoplayTitles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAngles), meth_Phonon_MediaController_availableAngles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioChannels), meth_Phonon_MediaController_availableAudioChannels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableChapters), meth_Phonon_MediaController_availableChapters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableSubtitles), meth_Phonon_MediaController_availableSubtitles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableTitles), meth_Phonon_MediaController_availableTitles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Phonon_MediaController_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_MediaController_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentAngle), meth_Phonon_MediaController_currentAngle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentAudioChannel), meth_Phonon_MediaController_currentAudioChannel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentChapter), meth_Phonon_MediaController_currentChapter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentSubtitle), meth_Phonon_MediaController_currentSubtitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentTitle), meth_Phonon_MediaController_currentTitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_MediaController_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_MediaController_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextTitle), meth_Phonon_MediaController_nextTitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousTitle), meth_Phonon_MediaController_previousTitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Phonon_MediaController_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoplayTitles), meth_Phonon_MediaController_setAutoplayTitles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentAngle), meth_Phonon_MediaController_setCurrentAngle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentAudioChannel), meth_Phonon_MediaController_setCurrentAudioChannel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentChapter), meth_Phonon_MediaController_setCurrentChapter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentSubtitle), meth_Phonon_MediaController_setCurrentSubtitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentTitle), meth_Phonon_MediaController_setCurrentTitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedFeatures), meth_Phonon_MediaController_supportedFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Phonon_MediaController_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon_MediaController[] = {
    {sipName_Angles, Phonon::MediaController::Angles, 19},
    {sipName_Chapters, Phonon::MediaController::Chapters, 19},
    {sipName_Titles, Phonon::MediaController::Titles, 19},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Phonon_MediaController[] = {
    {"titleChanged(int)", 0},
    {"availableTitlesChanged(int)", 0},
    {"chapterChanged(int)", 0},
    {"availableChaptersChanged(int)", 0},
    {"angleChanged(int)", 0},
    {"availableAnglesChanged(int)", 0},
    {"availableAudioChannelsChanged()", 0},
    {"availableSubtitlesChanged()", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_phonon_Phonon_MediaController = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaController,
        {0}
    },
    sipNameNr_MediaController,
    -1,
    -1,
    {0, 255, 0},
    supers_Phonon_MediaController,
    0,
    26, methods_Phonon_MediaController,
    3, enummembers_Phonon_MediaController,
    0, 0,
    init_Phonon_MediaController,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaController,
    release_Phonon_MediaController,
    cast_Phonon_MediaController,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Phonon::MediaController::staticMetaObject,
    0,
    pyqt4_signals_Phonon_MediaController
};
