/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIkparts.h"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"


class sipKParts_HtmlExtension : public KParts::HtmlExtension
{
public:
    sipKParts_HtmlExtension(KParts::ReadOnlyPart*);
    virtual ~sipKParts_HtmlExtension();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[9];
};

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

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

const QMetaObject *sipKParts_HtmlExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_HtmlExtension);
}

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

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

    return _id;
}

void *sipKParts_HtmlExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast(sipPySelf, sipType_KParts_HtmlExtension, _clname)) ? this : KParts::HtmlExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return KParts::HtmlExtension::event(a0);

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

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

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

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

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

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

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

KUrl sipKParts_HtmlExtension::baseUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_HtmlExtension,sipName_baseUrl);

    if (!sipMeth)
        return KUrl();

    typedef KUrl (*sipVH_kio_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kio_47)(sipModuleAPI_kparts_kio->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        QObject* a0;

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

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

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

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

    return NULL;
}


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

    {
        const KParts::HtmlExtension *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HtmlExtension, sipName_baseUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->baseUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KParts::HtmlExtension *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_HtmlExtension(void *, int);}
static void release_KParts_HtmlExtension(void *sipCppV,int)
{
    KParts::HtmlExtension *sipCpp = reinterpret_cast<KParts::HtmlExtension *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_HtmlExtension[] = {
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_KParts_HtmlExtension_baseUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_HtmlExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSelection), meth_KParts_HtmlExtension_hasSelection, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_HtmlExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HtmlExtension,
        {0}
    },
    {
        sipNameNr_HtmlExtension,
        {0, 255, 0},
        3, methods_KParts_HtmlExtension,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_HtmlExtension,
    0,
    init_type_KParts_HtmlExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_HtmlExtension,
    0,
    0,
    0,
    release_KParts_HtmlExtension,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::HtmlExtension::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/historyprovider.sip"
#include <kparts/historyprovider.h>
#line 486 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 490 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 496 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 499 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 502 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 505 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 508 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 511 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 514 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 517 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 523 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void clear();
    void remove(const QString&);
    void insert(const QString&);
    bool contains(const QString&) const;

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(sipPySelf, sipType_KParts_HistoryProvider, _clname)) ? this : KParts::HistoryProvider::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, 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 KParts::HistoryProvider::eventFilter(a0,a1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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;
        const 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;
}


/* 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_type_KParts_HistoryProvider(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 0, 1}};


static PyMethodDef methods_KParts_HistoryProvider[] = {
    {SIP_MLNAME_CAST(sipName_clear), meth_KParts_HistoryProvider_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contains), meth_KParts_HistoryProvider_contains, 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_remove), meth_KParts_HistoryProvider_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KParts_HistoryProvider_self, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KParts_HistoryProvider[] = {
    {"inserted(QString)", 0, 0, 0},
    {"updated(QStringList)", 0, 0, 0},
    {"cleared()", 0, 0, 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},
        6, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::HistoryProvider::staticMetaObject,
    0,
    signals_KParts_HistoryProvider,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1085 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::FileInfoExtension::QueryModes::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 1111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::FileInfoExtension::QueryModes::Int() != a0->operator KParts::FileInfoExtension::QueryModes::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 1145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::FileInfoExtension::QueryModes::Int() == a0->operator KParts::FileInfoExtension::QueryModes::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 1185 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KParts::FileInfoExtension::QueryModes(*a0 ^ a1);
#line 1294 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KParts::FileInfoExtension::QueryModes(*a0 | a1);
#line 1346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;
}


/* 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_type_KParts_FileInfoExtension_QueryModes(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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 398 "/usr/share/python3-sip/PyQt4/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(int(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 1630 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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_type_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,
    0,
    convertTo_KParts_FileInfoExtension_QueryModes,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1706 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1710 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 134 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 1713 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1716 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1719 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1728 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1731 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1734 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1737 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1740 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1743 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1746 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1749 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1752 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1755 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    KFileItemList queryFor(KParts::FileInfoExtension::QueryMode) const;
    KParts::FileInfoExtension::QueryModes supportedQueryModes() const;
    bool hasSelection() const;

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(sipPySelf, sipType_KParts_FileInfoExtension, _clname)) ? this : KParts::FileInfoExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return KParts::FileInfoExtension::event(a0);

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

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

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

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

    if (!sipMeth)
        return KFileItemList();

    extern KFileItemList sipVH_kparts_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::FileInfoExtension::QueryMode);

    return sipVH_kparts_28(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern KParts::FileInfoExtension::QueryModes sipVH_kparts_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_29(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

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

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


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

    {
        const 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));

    {
        const 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;
        const 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;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_FileInfoExtension(void *, int);}
static void release_KParts_FileInfoExtension(void *sipCppV,int)
{
    KParts::FileInfoExtension *sipCpp = reinterpret_cast<KParts::FileInfoExtension *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    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_type_KParts_FileInfoExtension(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 0, 1}};


static PyMethodDef methods_KParts_FileInfoExtension[] = {
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_FileInfoExtension_childObject, 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_supportedQueryModes), meth_KParts_FileInfoExtension_supportedQueryModes, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_FileInfoExtension[] = {
    {sipName_AllItems, static_cast<int>(KParts::FileInfoExtension::AllItems), 18},
    {sipName_None, static_cast<int>(KParts::FileInfoExtension::None), 18},
    {sipName_SelectedItems, static_cast<int>(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},
        4, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::FileInfoExtension::staticMetaObject,
    0,
    0
};

#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2235 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 66 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2242 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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::PartSelectEvent::eventName();

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

    return sipVH_kparts_31(sipGILState, 0, sipPySelf, sipMeth, -4);
}


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

    {
        const 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;

    {
        const 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;

    {
        const 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;
}


/* 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_type_KParts_PartSelectEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"

#line 66 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2530 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2533 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2536 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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::PartActivateEvent::eventName();

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

    return sipVH_kparts_31(sipGILState, 0, sipPySelf, sipMeth, -5);
}


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

    {
        const 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;

    {
        const 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;

    {
        const 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;
}


/* 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_type_KParts_PartActivateEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
