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

#include "sipAPIkparts.h"

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

#line 142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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:
    bool hasSelection() const;
     ::KUrl baseUrl() 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_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()
{
    sipInstanceDestroyed(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);
}

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KUrl();

    extern  ::KUrl sipVH_kparts_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_kparts_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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 || sipIsDerivedClass((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;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KParts_HtmlExtension(void *, const sipTypeDef *);}
static void *cast_KParts_HtmlExtension(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::HtmlExtension *sipCpp = reinterpret_cast< ::KParts::HtmlExtension *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_HtmlExtension *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_HtmlExtension(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{5, 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}
};


static pyqt4ClassPluginDef plugin_KParts_HtmlExtension = {
    & ::KParts::HtmlExtension::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_HtmlExtension = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HtmlExtension,
        {0},
        &plugin_KParts_HtmlExtension
    },
    {
        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,
    cast_KParts_HtmlExtension,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/historyprovider.sip"
#include <kparts/historyprovider.h>
#line 502 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 506 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 509 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 512 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 515 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 518 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 521 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 524 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 527 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 530 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 533 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 536 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 539 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 542 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 545 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 clear();
    void remove(const  ::QString&);
    void insert(const  ::QString&);
    bool contains(const  ::QString&) 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_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()
{
    sipInstanceDestroyed(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::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kparts_2(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(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[3]),sipPySelf,NULL,sipName_contains);

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

    extern bool sipVH_kparts_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_kparts_3(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);

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_kparts_4(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::HistoryProvider::timerEvent(a0);
        return;
    }

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::HistoryProvider::childEvent(a0);
        return;
    }

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::HistoryProvider::customEvent(a0);
        return;
    }

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::HistoryProvider::connectNotify(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::HistoryProvider::disconnectNotify(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_HistoryProvider(void *, const sipTypeDef *);}
static void *cast_KParts_HistoryProvider(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::HistoryProvider *sipCpp = reinterpret_cast< ::KParts::HistoryProvider *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_HistoryProvider *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_HistoryProvider(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{5, 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}
};


static pyqt4ClassPluginDef plugin_KParts_HistoryProvider = {
    & ::KParts::HistoryProvider::staticMetaObject,
    0,
    signals_KParts_HistoryProvider
};


sipClassTypeDef sipTypeDef_kparts_KParts_HistoryProvider = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HistoryProvider,
        {0},
        &plugin_KParts_HistoryProvider
    },
    {
        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,
    cast_KParts_HistoryProvider,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1117 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 381 "/usr/share/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 1143 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 372 "/usr/share/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 1177 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 363 "/usr/share/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 1217 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KParts::FileInfoExtension::QueryModes(*sipCpp ^ a0);
#line 1256 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KParts::FileInfoExtension::QueryModes(*sipCpp | a0);
#line 1330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_KParts_FileInfoExtension_QueryModes___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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


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


/* 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 (sipIsOwnedByPython(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;

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

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

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

    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 390 "/usr/share/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 1618 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___ixor__, ixor_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___xor__, xor_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___ior__, ior_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___or__, or_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___iand__, iand_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___and__, and_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___invert__, invert_slot},
    {(void *)slot_KParts_FileInfoExtension_QueryModes___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KParts_FileInfoExtension_QueryModes = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_FileInfoExtension_QueryModes = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__FileInfoExtension__QueryModes,
        {0},
        &plugin_KParts_FileInfoExtension_QueryModes
    },
    {
        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
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1697 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

#line 142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1701 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 134 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 1704 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/fileinfoextension.sip"
#include <kparts/fileinfoextension.h>
#line 1707 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1710 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1713 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1716 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1719 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1722 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1725 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1728 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1731 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1734 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1737 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1740 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1743 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1746 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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:
     ::KFileItemList queryFor( ::KParts::FileInfoExtension::QueryMode) const;
     ::KParts::FileInfoExtension::QueryModes supportedQueryModes() const;
    bool hasSelection() 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()
{
    sipInstanceDestroyed(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);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),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[1]),sipPySelf,NULL,sipName_supportedQueryModes);

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

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

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

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_kparts_3(sipGILState, 0, sipPySelf, 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  ::KParts::FileInfoExtension::eventFilter(a0,a1);

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_kparts_4(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::FileInfoExtension::timerEvent(a0);
        return;
    }

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::FileInfoExtension::childEvent(a0);
        return;
    }

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::FileInfoExtension::customEvent(a0);
        return;
    }

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::FileInfoExtension::connectNotify(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::FileInfoExtension::disconnectNotify(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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 || sipIsDerivedClass((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 || sipIsDerivedClass((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;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KParts_FileInfoExtension(void *, const sipTypeDef *);}
static void *cast_KParts_FileInfoExtension(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::FileInfoExtension *sipCpp = reinterpret_cast< ::KParts::FileInfoExtension *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_FileInfoExtension *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_FileInfoExtension(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{5, 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},
};


static pyqt4ClassPluginDef plugin_KParts_FileInfoExtension = {
    & ::KParts::FileInfoExtension::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_FileInfoExtension = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__FileInfoExtension,
        {0},
        &plugin_KParts_FileInfoExtension
    },
    {
        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,
    cast_KParts_FileInfoExtension,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2242 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2249 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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()
{
    sipInstanceDestroyed(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_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kparts_11(sipGILState, 0, sipPySelf, sipMeth, -1);
}


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


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KParts_PartSelectEvent(void *, const sipTypeDef *);}
static void *cast_KParts_PartSelectEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::PartSelectEvent *sipCpp = reinterpret_cast< ::KParts::PartSelectEvent *>(sipCppV);

    if (targetType == sipType_KParts_Event)
        return static_cast< ::KParts::Event *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_PartSelectEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_PartSelectEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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


static pyqt4ClassPluginDef plugin_KParts_PartSelectEvent = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_PartSelectEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartSelectEvent,
        {0},
        &plugin_KParts_PartSelectEvent
    },
    {
        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,
    cast_KParts_PartSelectEvent,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2552 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"

#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2556 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2559 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2562 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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()
{
    sipInstanceDestroyed(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_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kparts_11(sipGILState, 0, sipPySelf, sipMeth, -2);
}


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


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KParts_PartActivateEvent(void *, const sipTypeDef *);}
static void *cast_KParts_PartActivateEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::PartActivateEvent *sipCpp = reinterpret_cast< ::KParts::PartActivateEvent *>(sipCppV);

    if (targetType == sipType_KParts_Event)
        return static_cast< ::KParts::Event *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_PartActivateEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_PartActivateEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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


static pyqt4ClassPluginDef plugin_KParts_PartActivateEvent = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_PartActivateEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartActivateEvent,
        {0},
        &plugin_KParts_PartActivateEvent
    },
    {
        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,
    cast_KParts_PartActivateEvent,
    0,
    0,
    0,
    0,
    0,
    0
};
