/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:38:33 2011
 */

#include "sipAPIkparts.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/historyprovider.sip"
#include <kparts/historyprovider.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


class sipKParts_HistoryProvider : public KParts::HistoryProvider
{
public:
    sipKParts_HistoryProvider(QObject *);
    virtual ~sipKParts_HistoryProvider();

    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.
     */
    QObject * sipProtect_sender() const;
    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 contains(const QString&) const;
    void insert(const QString&);
    void remove(const QString&);
    void clear();
    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:
    sipKParts_HistoryProvider(const sipKParts_HistoryProvider &);
    sipKParts_HistoryProvider &operator = (const sipKParts_HistoryProvider &);

    char sipPyMethods[11];
};

sipKParts_HistoryProvider::sipKParts_HistoryProvider(QObject *a0): KParts::HistoryProvider(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_HistoryProvider::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_HistoryProvider);
}

int sipKParts_HistoryProvider::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::HistoryProvider::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_HistoryProvider,_c,_id,_a);

    return _id;
}

void *sipKParts_HistoryProvider::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_HistoryProvider,_clname)) ? this : KParts::HistoryProvider::qt_metacast(_clname);
}

bool sipKParts_HistoryProvider::contains(const QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_contains);

    if (!sipMeth)
        return KParts::HistoryProvider::contains(a0);

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t,PyObject *,const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_kparts_QtCore->em_virthandlers[28]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::insert(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_insert);

    if (!sipMeth)
    {
        KParts::HistoryProvider::insert(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::remove(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_remove);

    if (!sipMeth)
    {
        KParts::HistoryProvider::remove(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_clear);

    if (!sipMeth)
    {
        KParts::HistoryProvider::clear();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

bool sipKParts_HistoryProvider::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipKParts_HistoryProvider::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_HistoryProvider::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kparts_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKParts_HistoryProvider::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKParts_HistoryProvider::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 388 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 430 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HistoryProvider, &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(sipParseErr, sipName_HistoryProvider, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HistoryProvider, &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(sipParseErr, sipName_HistoryProvider, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HistoryProvider, &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(sipParseErr, sipName_HistoryProvider, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HistoryProvider, &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(sipParseErr, sipName_HistoryProvider, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HistoryProvider, &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(sipParseErr, sipName_HistoryProvider, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KParts::HistoryProvider *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::HistoryProvider::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_contains(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::contains(*a0) : sipCpp->contains(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_insert(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::insert(*a0) : sipCpp->insert(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_remove(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::remove(*a0) : sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_clear(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_HistoryProvider, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::clear() : sipCpp->clear());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::HistoryProvider::exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_HistoryProvider)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_HistoryProvider *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_HistoryProvider(sipSimpleWrapper *);}
static void dealloc_KParts_HistoryProvider(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_HistoryProvider *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_HistoryProvider(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        QObject * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_HistoryProvider(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_HistoryProvider[] = {{134, 0, 1}};


static PyMethodDef methods_KParts_HistoryProvider[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_HistoryProvider_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KParts_HistoryProvider_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_HistoryProvider_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contains), meth_KParts_HistoryProvider_contains, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_HistoryProvider_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_HistoryProvider_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_KParts_HistoryProvider_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_KParts_HistoryProvider_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_HistoryProvider_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_KParts_HistoryProvider_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KParts_HistoryProvider_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_HistoryProvider_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_HistoryProvider_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_HistoryProvider[] = {
    {"inserted(QString)", 0, 0},
    {"updated(QStringList)", 0, 0},
    {"cleared()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_HistoryProvider = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HistoryProvider,
        {0}
    },
    {
        sipNameNr_HistoryProvider,
        {0, 255, 0},
        13, methods_KParts_HistoryProvider,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_HistoryProvider,
    0,
    init_KParts_HistoryProvider,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_HistoryProvider,
    0,
    0,
    0,
    release_KParts_HistoryProvider,
    cast_KParts_HistoryProvider,
    0,
    0,
    0
},
    &KParts::HistoryProvider::staticMetaObject,
    0,
    pyqt4_signals_KParts_HistoryProvider
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 899 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


extern "C" {static int slot_KParts_FileInfoExtension_QueryModes___bool__(PyObject *);}
static int slot_KParts_FileInfoExtension_QueryModes___bool__(PyObject *sipSelf)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 921 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___ne__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 951 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
            sipReleaseType(const_cast<KParts::FileInfoExtension::QueryModes *>(a0),sipType_KParts_FileInfoExtension_QueryModes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,ne_slot,sipType_KParts_FileInfoExtension_QueryModes,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___eq__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 987 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
            sipReleaseType(const_cast<KParts::FileInfoExtension::QueryModes *>(a0),sipType_KParts_FileInfoExtension_QueryModes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,eq_slot,sipType_KParts_FileInfoExtension_QueryModes,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___invert__(PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___invert__(PyObject *sipSelf)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;


    {
        {
            KParts::FileInfoExtension::QueryModes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::FileInfoExtension::QueryModes(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___and__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State, &a1))
        {
            KParts::FileInfoExtension::QueryModes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::FileInfoExtension::QueryModes((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___xor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;
        KParts::FileInfoExtension::QueryModes * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State, sipType_KParts_FileInfoExtension_QueryModes, &a1, &a1State))
        {
            KParts::FileInfoExtension::QueryModes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::FileInfoExtension::QueryModes((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);
            sipReleaseType(a1,sipType_KParts_FileInfoExtension_QueryModes,a1State);

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

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State, &a1))
        {
            KParts::FileInfoExtension::QueryModes *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::FileInfoExtension::QueryModes(*a0 ^ a1);
#line 1096 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___or__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;
        KParts::FileInfoExtension::QueryModes * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State, sipType_KParts_FileInfoExtension_QueryModes, &a1, &a1State))
        {
            KParts::FileInfoExtension::QueryModes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::FileInfoExtension::QueryModes((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);
            sipReleaseType(a1,sipType_KParts_FileInfoExtension_QueryModes,a1State);

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

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State, &a1))
        {
            KParts::FileInfoExtension::QueryModes *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::FileInfoExtension::QueryModes(*a0 | a1);
#line 1148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_FileInfoExtension_QueryModes___int__(PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___int__(PyObject *sipSelf)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::FileInfoExtension::QueryModes::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::FileInfoExtension::QueryModes::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_FileInfoExtension_QueryModes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KParts::FileInfoExtension::QueryModes *sipCpp = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_FileInfoExtension_QueryModes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::FileInfoExtension::QueryModes::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    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_KParts_FileInfoExtension_QueryModes(void *, const sipTypeDef *);}
static void *cast_KParts_FileInfoExtension_QueryModes(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KParts_FileInfoExtension_QueryModes)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KParts_FileInfoExtension_QueryModes(void *, SIP_SSIZE_T, const void *);}
static void assign_KParts_FileInfoExtension_QueryModes(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KParts::FileInfoExtension::QueryModes *>(sipSrc);
}


extern "C" {static void *array_KParts_FileInfoExtension_QueryModes(SIP_SSIZE_T);}
static void *array_KParts_FileInfoExtension_QueryModes(SIP_SSIZE_T sipNrElem)
{
    return new KParts::FileInfoExtension::QueryModes[sipNrElem];
}


extern "C" {static void *copy_KParts_FileInfoExtension_QueryModes(const void *, SIP_SSIZE_T);}
static void *copy_KParts_FileInfoExtension_QueryModes(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KParts::FileInfoExtension::QueryModes(reinterpret_cast<const KParts::FileInfoExtension::QueryModes *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KParts_FileInfoExtension_QueryModes(sipSimpleWrapper *);}
static void dealloc_KParts_FileInfoExtension_QueryModes(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_FileInfoExtension_QueryModes(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KParts_FileInfoExtension_QueryModes(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KParts_FileInfoExtension_QueryModes(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KParts::FileInfoExtension::QueryModes *sipCpp = 0;

    {
        const KParts::FileInfoExtension::QueryModes * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KParts_FileInfoExtension_QueryModes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::FileInfoExtension::QueryModes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KParts::FileInfoExtension::QueryModes *>(a0),sipType_KParts_FileInfoExtension_QueryModes,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::FileInfoExtension::QueryModes(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::FileInfoExtension::QueryModes();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KParts_FileInfoExtension_QueryModes(PyObject *, void **, int *, PyObject *);}
static int convertTo_KParts_FileInfoExtension_QueryModes(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KParts::FileInfoExtension::QueryModes **sipCppPtr = reinterpret_cast<KParts::FileInfoExtension::QueryModes **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KParts::FileInfoExtension::QueryModes is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_FileInfoExtension_QueryMode)) ||
            sipCanConvertToType(sipPy, sipType_KParts_FileInfoExtension_QueryModes, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_FileInfoExtension_QueryMode)))
{
    *sipCppPtr = new KParts::FileInfoExtension::QueryModes(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KParts::FileInfoExtension::QueryModes *>(sipConvertToType(sipPy, sipType_KParts_FileInfoExtension_QueryModes, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KParts_FileInfoExtension_QueryModes[] = {
    {(void *)slot_KParts_FileInfoExtension_QueryModes___bool__, bool_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___ne__, ne_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___eq__, eq_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___invert__, invert_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___and__, and_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___xor__, xor_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___or__, or_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___int__, int_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___ixor__, ixor_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___ior__, ior_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_FileInfoExtension_QueryModes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__FileInfoExtension__QueryModes,
        {0}
    },
    {
        sipNameNr_QueryModes,
        {17, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KParts_FileInfoExtension_QueryModes,
    init_KParts_FileInfoExtension_QueryModes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_FileInfoExtension_QueryModes,
    assign_KParts_FileInfoExtension_QueryModes,
    array_KParts_FileInfoExtension_QueryModes,
    copy_KParts_FileInfoExtension_QueryModes,
    release_KParts_FileInfoExtension_QueryModes,
    cast_KParts_FileInfoExtension_QueryModes,
    convertTo_KParts_FileInfoExtension_QueryModes,
    0,
    0
},
    0,
    1,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1516 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1520 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 1523 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1526 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1529 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1532 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1535 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1538 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1541 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1544 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1547 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1550 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1553 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1562 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1565 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


class sipKParts_FileInfoExtension : public KParts::FileInfoExtension
{
public:
    sipKParts_FileInfoExtension(KParts::ReadOnlyPart *);
    virtual ~sipKParts_FileInfoExtension();

    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.
     */
    QObject * sipProtect_sender() const;
    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 hasSelection() const;
    KParts::FileInfoExtension::QueryModes supportedQueryModes() const;
    KFileItemList queryFor(KParts::FileInfoExtension::QueryMode) const;
    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:
    sipKParts_FileInfoExtension(const sipKParts_FileInfoExtension &);
    sipKParts_FileInfoExtension &operator = (const sipKParts_FileInfoExtension &);

    char sipPyMethods[10];
};

sipKParts_FileInfoExtension::sipKParts_FileInfoExtension(KParts::ReadOnlyPart *a0): KParts::FileInfoExtension(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_FileInfoExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_FileInfoExtension);
}

int sipKParts_FileInfoExtension::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::FileInfoExtension::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_FileInfoExtension,_c,_id,_a);

    return _id;
}

void *sipKParts_FileInfoExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_FileInfoExtension,_clname)) ? this : KParts::FileInfoExtension::qt_metacast(_clname);
}

bool sipKParts_FileInfoExtension::hasSelection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasSelection);

    if (!sipMeth)
        return KParts::FileInfoExtension::hasSelection();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kparts_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KParts::FileInfoExtension::QueryModes sipKParts_FileInfoExtension::supportedQueryModes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportedQueryModes);

    if (!sipMeth)
        return KParts::FileInfoExtension::supportedQueryModes();

    extern KParts::FileInfoExtension::QueryModes sipVH_kparts_27(sip_gilstate_t,PyObject *);

    return sipVH_kparts_27(sipGILState,sipMeth);
}

KFileItemList sipKParts_FileInfoExtension::queryFor(KParts::FileInfoExtension::QueryMode a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_FileInfoExtension,sipName_queryFor);

    if (!sipMeth)
        return KFileItemList();

    extern KFileItemList sipVH_kparts_26(sip_gilstate_t,PyObject *,KParts::FileInfoExtension::QueryMode);

    return sipVH_kparts_26(sipGILState,sipMeth,a0);
}

bool sipKParts_FileInfoExtension::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipKParts_FileInfoExtension::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_FileInfoExtension::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKParts_FileInfoExtension::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kparts_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_FileInfoExtension::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_FileInfoExtension::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKParts_FileInfoExtension::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKParts_FileInfoExtension::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_FileInfoExtension, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1873 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_FileInfoExtension, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_FileInfoExtension, &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(sipParseErr, sipName_FileInfoExtension, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_FileInfoExtension, &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(sipParseErr, sipName_FileInfoExtension, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_FileInfoExtension, &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(sipParseErr, sipName_FileInfoExtension, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_FileInfoExtension, &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(sipParseErr, sipName_FileInfoExtension, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_FileInfoExtension, &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(sipParseErr, sipName_FileInfoExtension, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
            KParts::FileInfoExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::FileInfoExtension::childObject(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_hasSelection(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_hasSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::FileInfoExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::FileInfoExtension::hasSelection() : sipCpp->hasSelection());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_FileInfoExtension_supportedQueryModes(PyObject *, PyObject *);}
static PyObject *meth_KParts_FileInfoExtension_supportedQueryModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_FileInfoExtension, &sipCpp))
        {
            KParts::FileInfoExtension::QueryModes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::FileInfoExtension::QueryModes((sipSelfWasArg ? sipCpp->KParts::FileInfoExtension::supportedQueryModes() : sipCpp->supportedQueryModes()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::FileInfoExtension::QueryMode a0;
        KParts::FileInfoExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_FileInfoExtension, &sipCpp, sipType_KParts_FileInfoExtension_QueryMode, &a0))
        {
            KFileItemList *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_FileInfoExtension, sipName_queryFor);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KFileItemList(sipCpp->queryFor(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_FileInfoExtension)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_FileInfoExtension *>(sipCppV);
    else
        delete reinterpret_cast<KParts::FileInfoExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_FileInfoExtension(sipSimpleWrapper *);}
static void dealloc_KParts_FileInfoExtension(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_FileInfoExtension *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_FileInfoExtension(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KParts::ReadOnlyPart * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KParts_ReadOnlyPart, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_FileInfoExtension(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_FileInfoExtension[] = {{134, 0, 1}};


static PyMethodDef methods_KParts_FileInfoExtension[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_FileInfoExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_FileInfoExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_FileInfoExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_FileInfoExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_FileInfoExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSelection), meth_KParts_FileInfoExtension_hasSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryFor), meth_KParts_FileInfoExtension_queryFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_FileInfoExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_FileInfoExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedQueryModes), meth_KParts_FileInfoExtension_supportedQueryModes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_FileInfoExtension_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_FileInfoExtension[] = {
    {sipName_AllItems, KParts::FileInfoExtension::AllItems, 18},
    {sipName_None, KParts::FileInfoExtension::None, 18},
    {sipName_SelectedItems, KParts::FileInfoExtension::SelectedItems, 18},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_FileInfoExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__FileInfoExtension,
        {0}
    },
    {
        sipNameNr_FileInfoExtension,
        {0, 255, 0},
        11, methods_KParts_FileInfoExtension,
        3, enummembers_KParts_FileInfoExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_FileInfoExtension,
    0,
    init_KParts_FileInfoExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_FileInfoExtension,
    0,
    0,
    0,
    release_KParts_FileInfoExtension,
    cast_KParts_FileInfoExtension,
    0,
    0,
    0
},
    &KParts::FileInfoExtension::staticMetaObject,
    0,
    0
};

#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2331 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2338 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


class sipKParts_PartSelectEvent : public KParts::PartSelectEvent
{
public:
    sipKParts_PartSelectEvent(bool,KParts::Part *,QWidget *);
    virtual ~sipKParts_PartSelectEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char * eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_PartSelectEvent::sipKParts_PartSelectEvent(bool a0,KParts::Part *a1,QWidget *a2): KParts::PartSelectEvent(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char * sipKParts_PartSelectEvent::eventName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_eventName);

    if (!sipMeth)
        return KParts::Event::eventName();

    extern const char * sipVH_kparts_29(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    return sipVH_kparts_29(sipGILState,sipMeth,-2,sipPySelf);
}


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

    {
        KParts::PartSelectEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->selected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::PartSelectEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartSelectEvent, &sipCpp))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartSelectEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartSelectEvent, &sipCpp))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->widget();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QEvent * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::PartSelectEvent::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartSelectEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Event)->ctd_cast((KParts::Event *)(KParts::PartSelectEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_PartSelectEvent *>(sipCppV);
    else
        delete reinterpret_cast<KParts::PartSelectEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_PartSelectEvent(sipSimpleWrapper *);}
static void dealloc_KParts_PartSelectEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_PartSelectEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_PartSelectEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        bool a0;
        KParts::Part * a1;
        QWidget * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "bJ8J8", &a0, sipType_KParts_Part, &a1, sipType_QWidget, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartSelectEvent(a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_PartSelectEvent[] = {{15, 255, 1}};


static PyMethodDef methods_KParts_PartSelectEvent[] = {
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_PartSelectEvent_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selected), meth_KParts_PartSelectEvent_selected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_PartSelectEvent_test, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_PartSelectEvent_widget, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_PartSelectEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartSelectEvent,
        {0}
    },
    {
        sipNameNr_PartSelectEvent,
        {0, 255, 0},
        4, methods_KParts_PartSelectEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_PartSelectEvent,
    0,
    init_KParts_PartSelectEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartSelectEvent,
    0,
    0,
    0,
    release_KParts_PartSelectEvent,
    cast_KParts_PartSelectEvent,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2635 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2639 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2645 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


class sipKParts_PartActivateEvent : public KParts::PartActivateEvent
{
public:
    sipKParts_PartActivateEvent(bool,KParts::Part *,QWidget *);
    virtual ~sipKParts_PartActivateEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char * eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_PartActivateEvent::sipKParts_PartActivateEvent(bool a0,KParts::Part *a1,QWidget *a2): KParts::PartActivateEvent(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char * sipKParts_PartActivateEvent::eventName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_eventName);

    if (!sipMeth)
        return KParts::Event::eventName();

    extern const char * sipVH_kparts_29(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    return sipVH_kparts_29(sipGILState,sipMeth,-3,sipPySelf);
}


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

    {
        KParts::PartActivateEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartActivateEvent, &sipCpp))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartActivateEvent, &sipCpp))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->widget();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QEvent * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::PartActivateEvent::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartActivateEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Event)->ctd_cast((KParts::Event *)(KParts::PartActivateEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_PartActivateEvent *>(sipCppV);
    else
        delete reinterpret_cast<KParts::PartActivateEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_PartActivateEvent(sipSimpleWrapper *);}
static void dealloc_KParts_PartActivateEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_PartActivateEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_PartActivateEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        bool a0;
        KParts::Part * a1;
        QWidget * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "bJ8J8", &a0, sipType_KParts_Part, &a1, sipType_QWidget, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartActivateEvent(a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_PartActivateEvent[] = {{15, 255, 1}};


static PyMethodDef methods_KParts_PartActivateEvent[] = {
    {SIP_MLNAME_CAST(sipName_activated), meth_KParts_PartActivateEvent_activated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_PartActivateEvent_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_PartActivateEvent_test, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_PartActivateEvent_widget, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_PartActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartActivateEvent,
        {0}
    },
    {
        sipNameNr_PartActivateEvent,
        {0, 255, 0},
        4, methods_KParts_PartActivateEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_PartActivateEvent,
    0,
    init_KParts_PartActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartActivateEvent,
    0,
    0,
    0,
    release_KParts_PartActivateEvent,
    cast_KParts_PartActivateEvent,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2939 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2943 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart4.cpp"


class sipKParts_GUIActivateEvent : public KParts::GUIActivateEvent
{
public:
    sipKParts_GUIActivateEvent(bool);
    virtual ~sipKParts_GUIActivateEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char * eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_GUIActivateEvent::sipKParts_GUIActivateEvent(bool a0): KParts::GUIActivateEvent(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char * sipKParts_GUIActivateEvent::eventName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_eventName);

    if (!sipMeth)
        return KParts::Event::eventName();

    extern const char * sipVH_kparts_29(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    return sipVH_kparts_29(sipGILState,sipMeth,-4,sipPySelf);
}


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

    {
        KParts::GUIActivateEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QEvent * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::GUIActivateEvent::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_GUIActivateEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Event)->ctd_cast((KParts::Event *)(KParts::GUIActivateEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_GUIActivateEvent *>(sipCppV);
    else
        delete reinterpret_cast<KParts::GUIActivateEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_GUIActivateEvent(sipSimpleWrapper *);}
static void dealloc_KParts_GUIActivateEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_GUIActivateEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_GUIActivateEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_GUIActivateEvent(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_GUIActivateEvent[] = {{15, 255, 1}};


static PyMethodDef methods_KParts_GUIActivateEvent[] = {
    {SIP_MLNAME_CAST(sipName_activated), meth_KParts_GUIActivateEvent_activated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_GUIActivateEvent_test, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_GUIActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__GUIActivateEvent,
        {0}
    },
    {
        sipNameNr_GUIActivateEvent,
        {0, 255, 0},
        2, methods_KParts_GUIActivateEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_GUIActivateEvent,
    0,
    init_KParts_GUIActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_GUIActivateEvent,
    0,
    0,
    0,
    release_KParts_GUIActivateEvent,
    cast_KParts_GUIActivateEvent,
    0,
    0,
    0
},
    0,
    0,
    0
};
