/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 19:57:25 2009
 */

#include "sipAPIkdecore.h"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/krandomsequence.sip"
#include <krandomsequence.h>
#line 12 "sipkdecorepart1.cpp"



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

    {
        long a0 = 0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|l",&sipSelf,sipType_KRandomSequence,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSeed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KRandomSequence,&sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bm",&sipSelf,sipType_KRandomSequence,&sipCpp,&a0))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getLong(a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KRandomSequence *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KRandomSequence,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->modulate(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KRandomSequence *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    if (!sipCpp)
    {
        long a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|l",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KRandomSequence(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KRandomSequence * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KRandomSequence,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KRandomSequence(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KRandomSequence[] = {
    {SIP_MLNAME_CAST(sipName_getBool), meth_KRandomSequence_getBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getDouble), meth_KRandomSequence_getDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getLong), meth_KRandomSequence_getLong, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modulate), meth_KRandomSequence_modulate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSeed), meth_KRandomSequence_setSeed, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KRandomSequence = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KRandomSequence,
        {0}
    },
    sipNameNr_KRandomSequence,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    5, methods_KRandomSequence,
    0, 0,
    0, 0,
    init_KRandomSequence,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KRandomSequence,
    release_KRandomSequence,
    cast_KRandomSequence,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 275 "sipkdecorepart1.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KRandom::randomString(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_randomString);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KRandom::random();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_random);

    return NULL;
}


static PyMethodDef methods_KRandom[] = {
    {SIP_MLNAME_CAST(sipName_random), meth_KRandom_random, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_randomString), meth_KRandom_randomString, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KRandom = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KRandom,
        {0}
    },
    sipNameNr_KRandom,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_KRandom,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kpluginloader.sip"
#include <kpluginloader.h>
#line 383 "sipkdecorepart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 387 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 390 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 393 "sipkdecorepart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 396 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 399 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 402 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 433 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 436 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 439 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 442 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 445 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 448 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 451 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 454 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 457 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 460 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 463 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 466 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 469 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 472 "sipkdecorepart1.cpp"


class sipKPluginLoader : public KPluginLoader
{
public:
    sipKPluginLoader(const QString&,const KComponentData&,QObject *);
    sipKPluginLoader(const KService&,const KComponentData&,QObject *);
    virtual ~sipKPluginLoader();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtect_load();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKPluginLoader::sipKPluginLoader(const QString& a0,const KComponentData& a1,QObject *a2): KPluginLoader(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginLoader::sipKPluginLoader(const KService& a0,const KComponentData& a1,QObject *a2): KPluginLoader(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKPluginLoader::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPluginLoader);
}

int sipKPluginLoader::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPluginLoader::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPluginLoader,_c,_id,_a);

    return _id;
}

void *sipKPluginLoader::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KPluginLoader,_clname)) ? this : KPluginLoader::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

bool sipKPluginLoader::sipProtect_load()
{
    return KPluginLoader::load();
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginLoader,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginLoader,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginLoader,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KPluginLoader,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KPluginLoader,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->factory();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginLoader,&sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pluginVersion();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLoaded();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKPluginLoader *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_load();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KPluginLoader)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPluginLoader)->ctd_cast((QPluginLoader *)(KPluginLoader *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPluginLoader *>(sipCppV);
    else
        delete reinterpret_cast<KPluginLoader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData * a1 = &a1def;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J9JH",sipType_QString,&a0,&a0State,sipType_KComponentData,&a1,sipType_QObject,&a2,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginLoader(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const KService * a0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData * a1 = &a1def;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|J9JH",sipType_KService,&a0,sipType_KComponentData,&a1,sipType_QObject,&a2,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginLoader(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KPluginLoader[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KPluginLoader_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPluginLoader_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KPluginLoader_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPluginLoader_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KPluginLoader_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_factory), meth_KPluginLoader_factory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLoaded), meth_KPluginLoader_isLoaded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_KPluginLoader_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginName), meth_KPluginLoader_pluginName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginVersion), meth_KPluginLoader_pluginVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPluginLoader_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KPluginLoader_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KPluginLoader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPluginLoader,
        {0}
    },
    sipNameNr_KPluginLoader,
    -1,
    -1,
    {0, 0, 1},
    supers_KPluginLoader,
    0,
    12, methods_KPluginLoader,
    0, 0,
    0, 0,
    init_KPluginLoader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginLoader,
    release_KPluginLoader,
    cast_KPluginLoader,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KPluginLoader::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 1208 "sipkdecorepart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1212 "sipkdecorepart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 1215 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 1218 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1221 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1252 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1255 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1258 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1261 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1264 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1267 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1270 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1273 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1276 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1279 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1282 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1285 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1288 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1291 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1294 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1297 "sipkdecorepart1.cpp"


class sipKPluginFactory : public KPluginFactory
{
public:
    sipKPluginFactory(const char *,const char *,QObject *);
    sipKPluginFactory(const KAboutData&,QObject *);
    sipKPluginFactory(const KAboutData *,QObject *);
    sipKPluginFactory(QObject *);
    virtual ~sipKPluginFactory();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QObject * sipProtectVirt_create(bool,const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    QVariantList sipProtect_stringListToVariantList(const QStringList&);
    QStringList sipProtect_variantListToStringList(const QVariantList&);
    void sipProtectVirt_setupTranslations(bool);
    QObject * sipProtectVirt_createObject(bool,QObject *,const char *,const QStringList&);
    void sipProtect_setComponentData(const KComponentData&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setupTranslations();
    QObject * createObject(QObject *,const char *,const QStringList&);
    QObject * create(const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    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:
    sipKPluginFactory(const sipKPluginFactory &);
    sipKPluginFactory &operator = (const sipKPluginFactory &);

    char sipPyMethods[10];
};

sipKPluginFactory::sipKPluginFactory(const char *a0,const char *a1,QObject *a2): KPluginFactory(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(const KAboutData& a0,QObject *a1): KPluginFactory(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(const KAboutData *a0,QObject *a1): KPluginFactory(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(QObject *a0): KPluginFactory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKPluginFactory::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPluginFactory);
}

int sipKPluginFactory::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPluginFactory::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPluginFactory,_c,_id,_a);

    return _id;
}

void *sipKPluginFactory::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KPluginFactory,_clname)) ? this : KPluginFactory::qt_metacast(_clname);
}

void sipKPluginFactory::setupTranslations()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setupTranslations);

    if (!meth)
    {
        KPluginFactory::setupTranslations();
        return;
    }

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

QObject * sipKPluginFactory::createObject(QObject *a0,const char *a1,const QStringList& a2)
{
    extern QObject * sipVH_kdecore_9(sip_gilstate_t,PyObject *,QObject *,const char *,const QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_createObject);

    if (!meth)
        return KPluginFactory::createObject(a0,a1,a2);

    return sipVH_kdecore_9(sipGILState,meth,a0,a1,a2);
}

QObject * sipKPluginFactory::create(const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    extern QObject * sipVH_kdecore_8(sip_gilstate_t,PyObject *,const char *,QWidget *,QObject *,const QList<QVariant>&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KPluginFactory::create(a0,a1,a2,a3,a4);

    return sipVH_kdecore_8(sipGILState,meth,a0,a1,a2,a3,a4);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

QObject * sipKPluginFactory::sipProtectVirt_create(bool sipSelfWasArg,const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    return (sipSelfWasArg ? KPluginFactory::create(a0,a1,a2,a3,a4) : create(a0,a1,a2,a3,a4));
}

QVariantList sipKPluginFactory::sipProtect_stringListToVariantList(const QStringList& a0)
{
    return KPluginFactory::stringListToVariantList(a0);
}

QStringList sipKPluginFactory::sipProtect_variantListToStringList(const QVariantList& a0)
{
    return KPluginFactory::variantListToStringList(a0);
}

void sipKPluginFactory::sipProtectVirt_setupTranslations(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPluginFactory::setupTranslations() : setupTranslations());
}

QObject * sipKPluginFactory::sipProtectVirt_createObject(bool sipSelfWasArg,QObject *a0,const char *a1,const QStringList& a2)
{
    return (sipSelfWasArg ? KPluginFactory::createObject(a0,a1,a2) : createObject(a0,a1,a2));
}

void sipKPluginFactory::sipProtect_setComponentData(const KComponentData& a0)
{
    KPluginFactory::setComponentData(a0);
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KPluginFactory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KPluginFactory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPluginFactory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(sipCpp->componentData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject * a0 = 0;
        const char * a1 = "QObject";
        PyObject *a1Keep = 0;
        const QStringList& a2def = QStringList();
        const QStringList * a2 = &a2def;
        int a2State = 0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J:AAJ1",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QObject,&a0,&a1Keep,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->create(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

    {
        const char * a0;
        PyObject *a0Keep;
        QWidget * a1;
        QObject * a2;
        const QVariantList * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pAAJ8J:J1J1",&sipSelf,sipType_KPluginFactory,&sipCpp,&a0Keep,&a0,sipType_QWidget,&a1,sipType_QObject,&a2,sipType_QList_0200QVariant,&a3,&a3State,sipType_QString,&a4,&a4State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_create(sipSelfWasArg,a0,a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QVariantList *>(a3),sipType_QList_0200QVariant,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            QVariantList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->sipProtect_stringListToVariantList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QVariantList * a0;
        int a0State = 0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QList_0200QVariant,&a0,&a0State))
        {
            QStringList *sipRes;

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

            sipReleaseType(const_cast<QVariantList *>(a0),sipType_QList_0200QVariant,a0State);

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

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

    return NULL;
}


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

    {
        sipKPluginFactory *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;
        const char * a1;
        PyObject *a1Keep;
        const QStringList * a2;
        int a2State = 0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ:AAJ1",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_QObject,&a0,&a1Keep,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KPluginFactory,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setComponentData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KPluginFactory)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPluginFactory *>(sipCppV);
    else
        delete reinterpret_cast<KPluginFactory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const char * a0 = 0;
        PyObject *a0Keep = 0;
        const char * a1 = 0;
        PyObject *a1Keep = 0;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|AAAAJH",&a0Keep,&a0,&a1Keep,&a1,sipType_QObject,&a2,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a0Keep);
            Py_XDECREF(a1Keep);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_KAboutData,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

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

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

    if (!sipCpp)
    {
        QObject * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KPluginFactory[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KPluginFactory_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_componentData), meth_KPluginFactory_componentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPluginFactory_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KPluginFactory_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), meth_KPluginFactory_createObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KPluginFactory_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPluginFactory_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPluginFactory_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KPluginFactory_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupTranslations), meth_KPluginFactory_setupTranslations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringListToVariantList), meth_KPluginFactory_stringListToVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KPluginFactory_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KPluginFactory_variantListToStringList, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KPluginFactory[] = {
    {"objectCreated(QObject *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KPluginFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPluginFactory,
        {0}
    },
    sipNameNr_KPluginFactory,
    -1,
    -1,
    {0, 0, 1},
    supers_KPluginFactory,
    0,
    13, methods_KPluginFactory,
    0, 0,
    0, 0,
    init_KPluginFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginFactory,
    release_KPluginFactory,
    cast_KPluginFactory,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KPluginFactory::staticMetaObject,
    0,
    pyqt4_signals_KPluginFactory
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2242 "sipkdecorepart1.cpp"
#line 370 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 2253 "sipkdecorepart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 2256 "sipkdecorepart1.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 2259 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2262 "sipkdecorepart1.cpp"


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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QChar,QString> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QChar_0200QString,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QString> *>(a1),sipType_QHash_0200QChar_0200QString,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QString,QString> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QString_0200QString,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QString> *>(a1),sipType_QHash_0200QString_0200QString,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QChar,QStringList> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QChar_0200QStringList,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QStringList> *>(a1),sipType_QHash_0200QChar_0200QStringList,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QString,QStringList> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QString_0200QStringList,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QStringList> *>(a1),sipType_QHash_0200QString_0200QStringList,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_expandMacrosShellQuote);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QChar,QString> * a1;
        int a1State = 0;
        QChar a2def = '%';
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QChar_0200QString,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QString> *>(a1),sipType_QHash_0200QChar_0200QString,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QString,QString> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QString_0200QString,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QString> *>(a1),sipType_QHash_0200QString_0200QString,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QChar,QStringList> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QChar_0200QStringList,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QStringList> *>(a1),sipType_QHash_0200QChar_0200QStringList,a1State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QHash<QString,QStringList> * a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J9",sipType_QString,&a0,&a0State,sipType_QHash_0200QString_0200QStringList,&a1,&a1State,sipType_QChar,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QStringList> *>(a1),sipType_QHash_0200QString_0200QStringList,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_expandMacros);

    return NULL;
}


static PyMethodDef methods_KMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandMacros), meth_KMacroExpander_expandMacros, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacrosShellQuote), meth_KMacroExpander_expandMacrosShellQuote, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KMacroExpander,
        {0}
    },
    sipNameNr_KMacroExpander,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_KMacroExpander,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 84 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 2526 "sipkdecorepart1.cpp"

#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 2530 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2533 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2536 "sipkdecorepart1.cpp"


class sipKCharMacroExpander : public KCharMacroExpander
{
public:
    sipKCharMacroExpander(QChar);
    virtual ~sipKCharMacroExpander();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);
    bool sipProtect_expandMacro(QChar,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    bool expandMacro(QChar,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKCharMacroExpander::sipKCharMacroExpander(QChar a0): KCharMacroExpander(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

int sipKCharMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!meth)
        return KCharMacroExpander::expandPlainMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

int sipKCharMacroExpander::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!meth)
        return KCharMacroExpander::expandEscapedMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

bool sipKCharMacroExpander::expandMacro(QChar a0,QStringList& a1)
{
    extern bool sipVH_kdecore_10(sip_gilstate_t,PyObject *,QChar,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KCharMacroExpander,sipName_expandMacro);

    if (!meth)
        return 0;

    return sipVH_kdecore_10(sipGILState,meth,a0,a1);
}

int sipKCharMacroExpander::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KCharMacroExpander::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKCharMacroExpander::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KCharMacroExpander::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(a0,a1,a2));
}

bool sipKCharMacroExpander::sipProtect_expandMacro(QChar a0,QStringList& a1)
{
    return expandMacro(a0,a1);
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KCharMacroExpander,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KCharMacroExpander,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QChar * a0;
        QStringList * a1;
        int a1State = 0;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9J1",&sipSelf,sipType_KCharMacroExpander,&sipCpp,sipType_QChar,&a0,sipType_QStringList,&a1,&a1State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCharMacroExpander, sipName_expandMacro);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_expandMacro(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KCharMacroExpander)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KMacroExpanderBase)->ctd_cast((KMacroExpanderBase *)(KCharMacroExpander *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCharMacroExpander *>(sipCppV);
    else
        delete reinterpret_cast<KCharMacroExpander *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QChar a0def = QLatin1Char('%');
        QChar * a0 = &a0def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J9",sipType_QChar,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCharMacroExpander(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KCharMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KCharMacroExpander_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacro), meth_KCharMacroExpander_expandMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KCharMacroExpander_expandPlainMacro, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCharMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KCharMacroExpander,
        {0}
    },
    sipNameNr_KCharMacroExpander,
    -1,
    -1,
    {0, 0, 1},
    supers_KCharMacroExpander,
    0,
    3, methods_KCharMacroExpander,
    0, 0,
    0, 0,
    init_KCharMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCharMacroExpander,
    release_KCharMacroExpander,
    cast_KCharMacroExpander,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 2881 "sipkdecorepart1.cpp"

#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 2885 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2888 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2891 "sipkdecorepart1.cpp"


class sipKWordMacroExpander : public KWordMacroExpander
{
public:
    sipKWordMacroExpander(QChar);
    virtual ~sipKWordMacroExpander();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);
    bool sipProtect_expandMacro(const QString&,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    bool expandMacro(const QString&,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKWordMacroExpander::sipKWordMacroExpander(QChar a0): KWordMacroExpander(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

int sipKWordMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!meth)
        return KWordMacroExpander::expandPlainMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

int sipKWordMacroExpander::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!meth)
        return KWordMacroExpander::expandEscapedMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

bool sipKWordMacroExpander::expandMacro(const QString& a0,QStringList& a1)
{
    extern bool sipVH_kdecore_12(sip_gilstate_t,PyObject *,const QString&,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KWordMacroExpander,sipName_expandMacro);

    if (!meth)
        return 0;

    return sipVH_kdecore_12(sipGILState,meth,a0,a1);
}

int sipKWordMacroExpander::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KWordMacroExpander::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKWordMacroExpander::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KWordMacroExpander::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(a0,a1,a2));
}

bool sipKWordMacroExpander::sipProtect_expandMacro(const QString& a0,QStringList& a1)
{
    return expandMacro(a0,a1);
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KWordMacroExpander,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KWordMacroExpander,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QStringList * a1;
        int a1State = 0;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_KWordMacroExpander,&sipCpp,sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KWordMacroExpander, sipName_expandMacro);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_expandMacro(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KWordMacroExpander)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KMacroExpanderBase)->ctd_cast((KMacroExpanderBase *)(KWordMacroExpander *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKWordMacroExpander *>(sipCppV);
    else
        delete reinterpret_cast<KWordMacroExpander *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QChar a0def = QLatin1Char('%');
        QChar * a0 = &a0def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J9",sipType_QChar,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKWordMacroExpander(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KWordMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KWordMacroExpander_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacro), meth_KWordMacroExpander_expandMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KWordMacroExpander_expandPlainMacro, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KWordMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KWordMacroExpander,
        {0}
    },
    sipNameNr_KWordMacroExpander,
    -1,
    -1,
    {0, 0, 1},
    supers_KWordMacroExpander,
    0,
    3, methods_KWordMacroExpander,
    0, 0,
    0, 0,
    init_KWordMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KWordMacroExpander,
    release_KWordMacroExpander,
    cast_KWordMacroExpander,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 3238 "sipkdecorepart1.cpp"

#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 3242 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3245 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3248 "sipkdecorepart1.cpp"


class sipKMacroExpanderBase : public KMacroExpanderBase
{
public:
    sipKMacroExpanderBase(QChar);
    virtual ~sipKMacroExpanderBase();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKMacroExpanderBase::sipKMacroExpanderBase(QChar a0): KMacroExpanderBase(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

int sipKMacroExpanderBase::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!meth)
        return KMacroExpanderBase::expandPlainMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

int sipKMacroExpanderBase::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    extern int sipVH_kdecore_11(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!meth)
        return KMacroExpanderBase::expandEscapedMacro(a0,a1,a2);

    return sipVH_kdecore_11(sipGILState,meth,a0,a1,a2);
}

int sipKMacroExpanderBase::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KMacroExpanderBase::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKMacroExpanderBase::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KMacroExpanderBase::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(a0,a1,a2));
}


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

    {
        QString * a0;
        int a0State = 0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KMacroExpanderBase,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->expandMacros(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QString * a0;
        int a0State = 0;
        int a1;
        KMacroExpanderBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandMacrosShellQuote(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QString,a0State);

            return sipBuildResult(0,"(bi)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        QChar * a0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KMacroExpanderBase,&sipCpp,sipType_QChar,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEscapeChar(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KMacroExpanderBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(sipCpp->escapeChar());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KMacroExpanderBase,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        QStringList * a2;
        int a2State = 0;
        sipKMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1iJ1",&sipSelf,sipType_KMacroExpanderBase,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QStringList,&a2,&a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKMacroExpanderBase *>(sipCppV);
    else
        delete reinterpret_cast<KMacroExpanderBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QChar a0def = QLatin1Char('%');
        QChar * a0 = &a0def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J9",sipType_QChar,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMacroExpanderBase(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KMacroExpanderBase[] = {
    {SIP_MLNAME_CAST(sipName_escapeChar), meth_KMacroExpanderBase_escapeChar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KMacroExpanderBase_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacros), meth_KMacroExpanderBase_expandMacros, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacrosShellQuote), meth_KMacroExpanderBase_expandMacrosShellQuote, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KMacroExpanderBase_expandPlainMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEscapeChar), meth_KMacroExpanderBase_setEscapeChar, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KMacroExpanderBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMacroExpanderBase,
        {0}
    },
    sipNameNr_KMacroExpanderBase,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    6, methods_KMacroExpanderBase,
    0, 0,
    0, 0,
    init_KMacroExpanderBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMacroExpanderBase,
    release_KMacroExpanderBase,
    cast_KMacroExpanderBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klibrary.sip"
#include <klibrary.h>
#line 3642 "sipkdecorepart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3646 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3649 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3652 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 3655 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 3658 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3661 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3664 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3667 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3670 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3701 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3704 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3707 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3710 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3713 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3716 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3719 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3722 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3725 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3728 "sipkdecorepart1.cpp"


class sipKLibrary : public KLibrary
{
public:
    sipKLibrary(QObject *);
    sipKLibrary(const QString&,const KComponentData&,QObject *);
    sipKLibrary(const QString&,int,const KComponentData&,QObject *);
    virtual ~sipKLibrary();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKLibrary::sipKLibrary(QObject *a0): KLibrary(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKLibrary::sipKLibrary(const QString& a0,const KComponentData& a1,QObject *a2): KLibrary(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKLibrary::sipKLibrary(const QString& a0,int a1,const KComponentData& a2,QObject *a3): KLibrary(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKLibrary::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KLibrary);
}

int sipKLibrary::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KLibrary::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KLibrary,_c,_id,_a);

    return _id;
}

void *sipKLibrary::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KLibrary,_clname)) ? this : KLibrary::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKLibrary *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLibrary,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLibrary,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLibrary,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLibrary,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLibrary,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0 = 0;
        PyObject *a0Keep = 0;
        KLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|AA",&sipSelf,sipType_KLibrary,&sipCpp,&a0Keep,&a0))
        {
            KPluginFactory *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->factory(a0);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData * a1 = &a1def;
        KLibrary *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J9",&sipSelf,sipType_KLibrary,&sipCpp,sipType_QString,&a0,&a0State,sipType_KComponentData,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileName(*a0,*a1);
            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(sipArgsParsed,sipName_KLibrary,sipName_setFileName);

    return NULL;
}


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

    {
        KLibrary *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unload();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KLibrary)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QLibrary)->ctd_cast((QLibrary *)(KLibrary *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKLibrary *>(sipCppV);
    else
        delete reinterpret_cast<KLibrary *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData * a1 = &a1def;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J9JH",sipType_QString,&a0,&a0State,sipType_KComponentData,&a1,sipType_QObject,&a2,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLibrary(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        int a1;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData * a2 = &a2def;
        QObject * a3 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1i|J9JH",sipType_QString,&a0,&a0State,&a1,sipType_KComponentData,&a2,sipType_QObject,&a3,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLibrary(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KLibrary[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KLibrary_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KLibrary_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KLibrary_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KLibrary_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_factory), meth_KLibrary_factory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KLibrary_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_KLibrary_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KLibrary_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unload), meth_KLibrary_unload, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLibrary = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLibrary,
        {0}
    },
    sipNameNr_KLibrary,
    -1,
    -1,
    {0, 0, 1},
    supers_KLibrary,
    0,
    9, methods_KLibrary,
    0, 0,
    0, 0,
    init_KLibrary,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLibrary,
    release_KLibrary,
    cast_KLibrary,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KLibrary::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klibloader.sip"
#include <klibloader.h>
#line 4404 "sipkdecorepart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4408 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4411 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klibrary.sip"
#include <klibrary.h>
#line 4414 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 4417 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 4420 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4423 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4426 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4429 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4432 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4435 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 4466 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 4469 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4472 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4475 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4478 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4481 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4484 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4487 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4490 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4493 "sipkdecorepart1.cpp"


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

    {
        const QString * a0;
        int a0State = 0;
        QLibrary::LoadHints a1def = 0;
        QLibrary::LoadHints * a1 = &a1def;
        int a1State = 0;
        KLibLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KLibLoader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QLibrary_LoadHints,&a1,&a1State))
        {
            KPluginFactory *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->factory(*a0,*a1);
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QLibrary::LoadHints a1def = 0;
        QLibrary::LoadHints * a1 = &a1def;
        int a1State = 0;
        KLibLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KLibLoader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QLibrary_LoadHints,&a1,&a1State))
        {
            KLibrary *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->library(*a0,*a1);
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KLibLoader *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KLibLoader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KLibLoader,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unloadLibrary(*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(sipArgsParsed,sipName_KLibLoader,sipName_unloadLibrary);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KLibLoader *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KLibLoader::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData * a1 = &a1def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_KComponentData,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLibLoader::findLibrary(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLibLoader::errorString(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_KLibLoader)
        return ptr;

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

    return NULL;
}


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


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


static PyMethodDef methods_KLibLoader[] = {
    {SIP_MLNAME_CAST(sipName_errorString), meth_KLibLoader_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_factory), meth_KLibLoader_factory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findLibrary), meth_KLibLoader_findLibrary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastErrorMessage), meth_KLibLoader_lastErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_library), meth_KLibLoader_library, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KLibLoader_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unloadLibrary), meth_KLibLoader_unloadLibrary, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLibLoader[] = {
    {sipName_ErrNoComponent, KLibLoader::ErrNoComponent, 85},
    {sipName_ErrNoFactory, KLibLoader::ErrNoFactory, 85},
    {sipName_ErrNoLibrary, KLibLoader::ErrNoLibrary, 85},
    {sipName_ErrNoServiceFound, KLibLoader::ErrNoServiceFound, 85},
    {sipName_ErrServiceProvidesNoLibrary, KLibLoader::ErrServiceProvidesNoLibrary, 85},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLibLoader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLibLoader,
        {0}
    },
    sipNameNr_KLibLoader,
    -1,
    -1,
    {0, 0, 1},
    supers_KLibLoader,
    0,
    7, methods_KLibLoader,
    5, enummembers_KLibLoader,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    release_KLibLoader,
    cast_KLibLoader,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KLibLoader::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kexportplugin.sip"
#include <kexportplugin.h>
#line 4800 "sipkdecorepart1.cpp"



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

    return NULL;
}


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

    delete reinterpret_cast<KDEPluginVerificationData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KDEPluginVerificationData(void *, const void*);}
static void assign_KDEPluginVerificationData(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KDEPluginVerificationData *>(sipDst) = *reinterpret_cast<const KDEPluginVerificationData *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        const KDEPluginVerificationData * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KDEPluginVerificationData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDEPluginVerificationData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}

static sipEnumMemberDef enummembers_KDEPluginVerificationData[] = {
    {sipName_PluginVerificationDataVersion, KDEPluginVerificationData::PluginVerificationDataVersion, -1},
};


extern "C" {static PyObject *varget_KDEPluginVerificationData_KDEVersion(void *, PyObject *);}
static PyObject *varget_KDEPluginVerificationData_KDEVersion(void *sipSelf, PyObject *)
{
    quint32 sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = sipCpp->KDEVersion;

    return PyLong_FromUnsignedLong(sipVal);
}


extern "C" {static int varset_KDEPluginVerificationData_KDEVersion(void *, PyObject *, PyObject *);}
static int varset_KDEPluginVerificationData_KDEVersion(void *sipSelf, PyObject *sipPy, PyObject *)
{
    quint32 sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = (unsigned)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->KDEVersion = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_KDEPluginVerificationData_KDEVersionString(void *, PyObject *);}
static PyObject *varget_KDEPluginVerificationData_KDEVersionString(void *sipSelf, PyObject *)
{
    const char *sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = sipCpp->KDEVersionString;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_KDEPluginVerificationData_KDEVersionString(void *, PyObject *, PyObject *);}
static int varset_KDEPluginVerificationData_KDEVersionString(void *sipSelf, PyObject *sipPy, PyObject *sipPySelf)
{
    const char *sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->KDEVersionString = sipVal;

    sipKeepReference(sipPySelf, 1, sipPy);

    return 0;
}


extern "C" {static PyObject *varget_KDEPluginVerificationData_dataVersion(void *, PyObject *);}
static PyObject *varget_KDEPluginVerificationData_dataVersion(void *sipSelf, PyObject *)
{
    quint8 sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = sipCpp->dataVersion;

    return SIPBytes_FromStringAndSize((char *)&sipVal, 1);
}


extern "C" {static int varset_KDEPluginVerificationData_dataVersion(void *, PyObject *, PyObject *);}
static int varset_KDEPluginVerificationData_dataVersion(void *sipSelf, PyObject *sipPy, PyObject *)
{
    quint8 sipVal;
    KDEPluginVerificationData *sipCpp = reinterpret_cast<KDEPluginVerificationData *>(sipSelf);

    sipVal = (unsigned char)sipBytes_AsChar(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->dataVersion = sipVal;

    return 0;
}

sipVariableDef variables_KDEPluginVerificationData[] = {
    {sipName_KDEVersion, varget_KDEPluginVerificationData_KDEVersion, varset_KDEPluginVerificationData_KDEVersion, 0},
    {sipName_KDEVersionString, varget_KDEPluginVerificationData_KDEVersionString, varset_KDEPluginVerificationData_KDEVersionString, 0},
    {sipName_dataVersion, varget_KDEPluginVerificationData_dataVersion, varset_KDEPluginVerificationData_dataVersion, 0},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KDEPluginVerificationData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDEPluginVerificationData,
        {0}
    },
    sipNameNr_KDEPluginVerificationData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    0, 0,
    1, enummembers_KDEPluginVerificationData,
    3, variables_KDEPluginVerificationData,
    init_KDEPluginVerificationData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDEPluginVerificationData,
    release_KDEPluginVerificationData,
    cast_KDEPluginVerificationData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KDEPluginVerificationData,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdedmodule.sip"
#include <kdedmodule.h>
#line 5027 "sipkdecorepart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5031 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5034 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5037 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5040 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5043 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5046 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5077 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5080 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5083 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5086 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5089 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5092 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5095 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5098 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5101 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5104 "sipkdecorepart1.cpp"


class sipKDEDModule : public KDEDModule
{
public:
    sipKDEDModule(QObject *);
    virtual ~sipKDEDModule();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKDEDModule::sipKDEDModule(QObject *a0): KDEDModule(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKDEDModule::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KDEDModule);
}

int sipKDEDModule::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KDEDModule::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KDEDModule,_c,_id,_a);

    return _id;
}

void *sipKDEDModule::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KDEDModule,_clname)) ? this : KDEDModule::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKDEDModule *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KDEDModule,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KDEDModule,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KDEDModule,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KDEDModule,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KDEDModule,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KDEDModule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KDEDModule,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModuleName(*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(sipArgsParsed,sipName_KDEDModule,sipName_setModuleName);

    return NULL;
}


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

    {
        KDEDModule *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_KDEDModule)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKDEDModule *>(sipCppV);
    else
        delete reinterpret_cast<KDEDModule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KDEDModule[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KDEDModule_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KDEDModule_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KDEDModule_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KDEDModule_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moduleName), meth_KDEDModule_moduleName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KDEDModule_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModuleName), meth_KDEDModule_setModuleName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KDEDModule_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KDEDModule[] = {
    {"windowUnregistered(qlonglong)", 0},
    {"windowRegistered(qlonglong)", 0},
    {"moduleDeleted(KDEDModule *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KDEDModule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KDEDModule,
        {0}
    },
    sipNameNr_KDEDModule,
    -1,
    -1,
    {0, 0, 1},
    supers_KDEDModule,
    0,
    8, methods_KDEDModule,
    0, 0,
    0, 0,
    init_KDEDModule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDEDModule,
    release_KDEDModule,
    cast_KDEDModule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KDEDModule::staticMetaObject,
    0,
    pyqt4_signals_KDEDModule
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5708 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5711 "sipkdecorepart1.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 5714 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5717 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5720 "sipkdecorepart1.cpp"


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        Qt::CaseSensitivity a2 = Qt::CaseSensitive;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|E",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_Qt_CaseSensitivity,&a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStringHandler::naturalCompare(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_naturalCompare);

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::from8Bit(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_from8Bit);

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStringHandler::isUtf8(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_isUtf8);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::obscure(*a0));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_obscure);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::tagUrls(*a0));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_tagUrls);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        int a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|i",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,&a2))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

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

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

    {
        const QChar * a0;
        const QString * a1;
        int a1State = 0;
        int a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1|i",sipType_QChar,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

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

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

    {
        const QRegExp * a0;
        const QString * a1;
        int a1State = 0;
        int a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1|i",sipType_QRegExp,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_perlSplit);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1 = 40;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|i",sipType_QString,&a0,&a0State,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::rsqueeze(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_rsqueeze);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1 = 40;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|i",sipType_QString,&a0,&a0State,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::csqueeze(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_csqueeze);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1 = 40;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|i",sipType_QString,&a0,&a0State,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::lsqueeze(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_lsqueeze);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::capwords(*a0));
            Py_END_ALLOW_THREADS

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

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

    {
        const QStringList * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QStringList,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::capwords(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_capwords);

    return NULL;
}


static PyMethodDef methods_KStringHandler[] = {
    {SIP_MLNAME_CAST(sipName_capwords), meth_KStringHandler_capwords, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_csqueeze), meth_KStringHandler_csqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_from8Bit), meth_KStringHandler_from8Bit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUtf8), meth_KStringHandler_isUtf8, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lsqueeze), meth_KStringHandler_lsqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_naturalCompare), meth_KStringHandler_naturalCompare, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_obscure), meth_KStringHandler_obscure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_perlSplit), meth_KStringHandler_perlSplit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rsqueeze), meth_KStringHandler_rsqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagUrls), meth_KStringHandler_tagUrls, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KStringHandler = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KStringHandler,
        {0}
    },
    sipNameNr_KStringHandler,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    10, methods_KStringHandler,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycoca.sip"
#include <ksycoca.h>
#line 6151 "sipkdecorepart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6155 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6158 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6161 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6164 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6167 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6170 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6173 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6176 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 6207 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 6210 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6213 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6216 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6219 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 6222 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6225 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6228 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6231 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6234 "sipkdecorepart1.cpp"


class sipKSycoca : public KSycoca
{
public:
    sipKSycoca(bool);
    sipKSycoca();
    virtual ~sipKSycoca();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

    char sipPyMethods[8];
};

sipKSycoca::sipKSycoca(bool a0): KSycoca(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSycoca::sipKSycoca(): KSycoca(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKSycoca::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KSycoca);
}

int sipKSycoca::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KSycoca::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KSycoca,_c,_id,_a);

    return _id;
}

void *sipKSycoca::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KSycoca,_clname)) ? this : KSycoca::qt_metacast(_clname);
}

bool sipKSycoca::isBuilding()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_isBuilding);

    if (!meth)
        return KSycoca::isBuilding();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKSycoca *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KSycoca,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KSycoca,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KSycoca,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KSycoca,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KSycoca,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KSycoca *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::version();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::isAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KSycocaType a1;
        KSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KSycoca,&sipCpp,&a0))
        {
            QDataStream *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->findEntry(a0,a1);
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QDataStream,NULL);
            return sipBuildResult(0,"(RF)",sipResObj,a1,sipType_KSycocaType);
        }
    }

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

    return NULL;
}


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

    {
        KSycocaFactoryId a0;
        KSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KSycoca,&sipCpp,sipType_KSycocaFactoryId,&a0))
        {
            QDataStream *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->findFactory(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca::DatabaseType a0 = KSycoca::LocalDatabase;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|E",sipType_KSycoca_DatabaseType,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KSycoca::absoluteFilePath(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSycoca,&sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->timeStamp();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSycoca,&sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->updateSignature();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSycoca::isBuilding() : sipCpp->isBuilding());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycoca::disableAutoRebuild();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::isChanged(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycoca::flagError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::readError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KSycoca)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSycoca *>(sipCppV);
    else
        delete reinterpret_cast<KSycoca *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        bool a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"b",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSycoca(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KSycoca[] = {
    {SIP_MLNAME_CAST(sipName_absoluteFilePath), meth_KSycoca_absoluteFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResourceDirs), meth_KSycoca_allResourceDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KSycoca_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KSycoca_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KSycoca_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disableAutoRebuild), meth_KSycoca_disableAutoRebuild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KSycoca_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findEntry), meth_KSycoca_findEntry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFactory), meth_KSycoca_findFactory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flagError), meth_KSycoca_flagError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAvailable), meth_KSycoca_isAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBuilding), meth_KSycoca_isBuilding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isChanged), meth_KSycoca_isChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_prefixes), meth_KSycoca_kfsstnd_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_KSycoca_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readError), meth_KSycoca_readError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KSycoca_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KSycoca_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeStamp), meth_KSycoca_timeStamp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KSycoca_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateSignature), meth_KSycoca_updateSignature, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KSycoca_version, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSycoca[] = {
    {sipName_GlobalDatabase, KSycoca::GlobalDatabase, 166},
    {sipName_LocalDatabase, KSycoca::LocalDatabase, 166},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KSycoca[] = {
    {"databaseChanged()", 0},
    {"databaseChanged(const QStringList&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSycoca = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSycoca,
        {0}
    },
    sipNameNr_KSycoca,
    -1,
    -1,
    {0, 0, 1},
    supers_KSycoca,
    0,
    22, methods_KSycoca,
    2, enummembers_KSycoca,
    0, 0,
    init_KSycoca,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSycoca,
    release_KSycoca,
    cast_KSycoca,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KSycoca::staticMetaObject,
    0,
    pyqt4_signals_KSycoca
};

#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 7255 "sipkdecorepart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7259 "sipkdecorepart1.cpp"


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

    return NULL;
}


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

    delete reinterpret_cast<KProtocolInfo::ExtraField *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KProtocolInfo_ExtraField(void *, const void*);}
static void assign_KProtocolInfo_ExtraField(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KProtocolInfo::ExtraField *>(sipDst) = *reinterpret_cast<const KProtocolInfo::ExtraField *>(sipSrc);
}


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


extern "C" {static void *init_KProtocolInfo_ExtraField(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KProtocolInfo_ExtraField(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KProtocolInfo::ExtraField *sipCpp = 0;

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        KProtocolInfo::ExtraField::Type a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1E",sipType_QString,&a0,&a0State,sipType_KProtocolInfo_ExtraField_Type,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo::ExtraField(*a0,a1);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const KProtocolInfo::ExtraField * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KProtocolInfo_ExtraField,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo::ExtraField(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}

static sipEnumMemberDef enummembers_KProtocolInfo_ExtraField[] = {
    {sipName_DateTime, KProtocolInfo::ExtraField::DateTime, 119},
    {sipName_Invalid, KProtocolInfo::ExtraField::Invalid, 119},
    {sipName_String, KProtocolInfo::ExtraField::String, 119},
};


extern "C" {static PyObject *varget_KProtocolInfo_ExtraField_name(void *, PyObject *);}
static PyObject *varget_KProtocolInfo_ExtraField_name(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipVal = &sipCpp->name;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


extern "C" {static int varset_KProtocolInfo_ExtraField_name(void *, PyObject *, PyObject *);}
static int varset_KProtocolInfo_ExtraField_name(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString *sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->name = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KProtocolInfo_ExtraField_type(void *, PyObject *);}
static PyObject *varget_KProtocolInfo_ExtraField_type(void *sipSelf, PyObject *)
{
    KProtocolInfo::ExtraField::Type sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipVal = sipCpp->type;

    return sipConvertFromEnum(sipVal, sipType_KProtocolInfo_ExtraField_Type);
}


extern "C" {static int varset_KProtocolInfo_ExtraField_type(void *, PyObject *, PyObject *);}
static int varset_KProtocolInfo_ExtraField_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    KProtocolInfo::ExtraField::Type sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipVal = (KProtocolInfo::ExtraField::Type)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_KProtocolInfo_ExtraField[] = {
    {sipName_name, varget_KProtocolInfo_ExtraField_name, varset_KProtocolInfo_ExtraField_name, 0},
    {sipName_type, varget_KProtocolInfo_ExtraField_type, varset_KProtocolInfo_ExtraField_type, 0},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KProtocolInfo_ExtraField = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KProtocolInfo__ExtraField,
        {0}
    },
    sipNameNr_ExtraField,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {117, 255, 0},
    0,
    0,
    0, 0,
    3, enummembers_KProtocolInfo_ExtraField,
    2, variables_KProtocolInfo_ExtraField,
    init_KProtocolInfo_ExtraField,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProtocolInfo_ExtraField,
    release_KProtocolInfo_ExtraField,
    cast_KProtocolInfo_ExtraField,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KProtocolInfo_ExtraField,
    0,
    0,
    0
};

#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 7470 "sipkdecorepart1.cpp"

#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 7474 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7477 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7480 "sipkdecorepart1.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7483 "sipkdecorepart1.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7536 "sipkdecorepart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7539 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 7542 "sipkdecorepart1.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 7545 "sipkdecorepart1.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7548 "sipkdecorepart1.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7551 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 7554 "sipkdecorepart1.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7557 "sipkdecorepart1.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7560 "sipkdecorepart1.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7563 "sipkdecorepart1.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7566 "sipkdecorepart1.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 7569 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 7572 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 7575 "sipkdecorepart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 7578 "sipkdecorepart1.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7581 "sipkdecorepart1.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7584 "sipkdecorepart1.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7587 "sipkdecorepart1.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7590 "sipkdecorepart1.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7605 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 7608 "sipkdecorepart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7611 "sipkdecorepart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 7614 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 7617 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 7620 "sipkdecorepart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7623 "sipkdecorepart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 7626 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7629 "sipkdecorepart1.cpp"


class sipKProtocolInfo : public KProtocolInfo
{
public:
    sipKProtocolInfo(QDataStream&,int);
    ~sipKProtocolInfo();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_canRenameFromFile() const;
    bool sipProtect_canRenameToFile() const;
    bool sipProtect_canDeleteRecursive() const;
    KProtocolInfo::FileNameUsedForCopying sipProtect_fileNameUsedForCopying() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKProtocolInfo(const sipKProtocolInfo &);
    sipKProtocolInfo &operator = (const sipKProtocolInfo &);
};

sipKProtocolInfo::sipKProtocolInfo(QDataStream& a0,int a1): KProtocolInfo(a0,a1), sipPySelf(0)
{
}

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

bool sipKProtocolInfo::sipProtect_canRenameFromFile() const
{
    return KProtocolInfo::canRenameFromFile();
}

bool sipKProtocolInfo::sipProtect_canRenameToFile() const
{
    return KProtocolInfo::canRenameToFile();
}

bool sipKProtocolInfo::sipProtect_canDeleteRecursive() const
{
    return KProtocolInfo::canDeleteRecursive();
}

KProtocolInfo::FileNameUsedForCopying sipKProtocolInfo::sipProtect_fileNameUsedForCopying() const
{
    return KProtocolInfo::fileNameUsedForCopying();
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KProtocolInfo::protocols());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isKnownProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isKnownProtocol(*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(sipArgsParsed,sipName_KProtocolInfo,sipName_isKnownProtocol);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::exec(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KUrl,&a0))
        {
            KProtocolInfo::ExtraFieldList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KProtocolInfo::ExtraFieldList(KProtocolInfo::extraFields(*a0));
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isHelperProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isHelperProtocol(*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(sipArgsParsed,sipName_KProtocolInfo,sipName_isHelperProtocol);

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isFilterProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isFilterProtocol(*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(sipArgsParsed,sipName_KProtocolInfo,sipName_isFilterProtocol);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::icon(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::config(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::maxSlaves(*a0);
            Py_END_ALLOW_THREADS

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::determineMimetypeFromExtension(*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(sipArgsParsed,sipName_KProtocolInfo,sipName_determineMimetypeFromExtension);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::docPath(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::protocolClass(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::showFilePreview(*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(sipArgsParsed,sipName_KProtocolInfo,sipName_showFilePreview);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KProtocolInfo::capabilities(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::proxiedBy(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsListing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KProtocolInfo *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KProtocolInfo *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_canRenameFromFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_canRenameToFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_canDeleteRecursive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKProtocolInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KProtocolInfo,&sipCpp))
        {
            KProtocolInfo::FileNameUsedForCopying sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_fileNameUsedForCopying();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KProtocolInfo_FileNameUsedForCopying);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KProtocolInfo)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KSycocaEntry)->ctd_cast((KSycocaEntry *)(KProtocolInfo *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKProtocolInfo *>(sipCppV);
    else
        delete reinterpret_cast<KProtocolInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QDataStream * a0;
        int a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9i",sipType_QDataStream,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKProtocolInfo(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KProtocolInfo[] = {
    {SIP_MLNAME_CAST(sipName_archiveMimeTypes), meth_KProtocolInfo_archiveMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canDeleteRecursive), meth_KProtocolInfo_canDeleteRecursive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canRenameFromFile), meth_KProtocolInfo_canRenameFromFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canRenameToFile), meth_KProtocolInfo_canRenameToFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_capabilities), meth_KProtocolInfo_capabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KProtocolInfo_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultMimeType), meth_KProtocolInfo_defaultMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_determineMimetypeFromExtension), meth_KProtocolInfo_determineMimetypeFromExtension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_docPath), meth_KProtocolInfo_docPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KProtocolInfo_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extraFields), meth_KProtocolInfo_extraFields, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileNameUsedForCopying), meth_KProtocolInfo_fileNameUsedForCopying, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KProtocolInfo_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFilterProtocol), meth_KProtocolInfo_isFilterProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHelperProtocol), meth_KProtocolInfo_isHelperProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isKnownProtocol), meth_KProtocolInfo_isKnownProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxSlaves), meth_KProtocolInfo_maxSlaves, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_protocolClass), meth_KProtocolInfo_protocolClass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_protocols), meth_KProtocolInfo_protocols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxiedBy), meth_KProtocolInfo_proxiedBy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showFilePreview), meth_KProtocolInfo_showFilePreview, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsListing), meth_KProtocolInfo_supportsListing, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KProtocolInfo[] = {
    {sipName_FromUrl, KProtocolInfo::FromUrl, 120},
    {sipName_Name, KProtocolInfo::Name, 120},
    {sipName_T_ERROR, KProtocolInfo::T_ERROR, 121},
    {sipName_T_FILESYSTEM, KProtocolInfo::T_FILESYSTEM, 121},
    {sipName_T_NONE, KProtocolInfo::T_NONE, 121},
    {sipName_T_STREAM, KProtocolInfo::T_STREAM, 121},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KProtocolInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KProtocolInfo,
        {0}
    },
    sipNameNr_KProtocolInfo,
    -1,
    -1,
    {0, 0, 1},
    supers_KProtocolInfo,
    0,
    22, methods_KProtocolInfo,
    6, enummembers_KProtocolInfo,
    0, 0,
    init_KProtocolInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProtocolInfo,
    release_KProtocolInfo,
    cast_KProtocolInfo,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/speller.sip"
#include <sonnet/speller.h>
#line 8519 "sipkdecorepart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8523 "sipkdecorepart1.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 8530 "sipkdecorepart1.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 8533 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8536 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8539 "sipkdecorepart1.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 8542 "sipkdecorepart1.cpp"


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

    {
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLanguage(*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(sipArgsParsed,sipName_Speller,sipName_setLanguage);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCorrect(*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(sipArgsParsed,sipName_Speller,sipName_isCorrect);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMisspelled(*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(sipArgsParsed,sipName_Speller,sipName_isMisspelled);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QStringList * a1;
        int a1State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J1",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checkAndSuggest(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J1",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->storeReplacement(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addToPersonal(*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(sipArgsParsed,sipName_Speller,sipName_addToPersonal);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addToSession(*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(sipArgsParsed,sipName_Speller,sipName_addToSession);

    return NULL;
}


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

    {
        KConfig * a0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_KConfig,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_KConfig,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->restore(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QString>(sipCpp->availableDictionaries());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultLanguage(*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(sipArgsParsed,sipName_Speller,sipName_setDefaultLanguage);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultClient(*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(sipArgsParsed,sipName_Speller,sipName_setDefaultClient);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller::Attribute a0;
        bool a1 = 1;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE|b",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_Sonnet_Speller_Attribute,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Sonnet::Speller::Attribute a0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_Sonnet_Speller,&sipCpp,sipType_Sonnet_Speller_Attribute,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->testAttribute(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Sonnet::Speller *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *init_Sonnet_Speller(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Sonnet_Speller(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Sonnet::Speller *sipCpp = 0;

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

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

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

    if (!sipCpp)
    {
        const Sonnet::Speller * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Sonnet_Speller,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Sonnet::Speller(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Sonnet_Speller[] = {
    {SIP_MLNAME_CAST(sipName_addToPersonal), meth_Sonnet_Speller_addToPersonal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addToSession), meth_Sonnet_Speller_addToSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableBackends), meth_Sonnet_Speller_availableBackends, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableDictionaries), meth_Sonnet_Speller_availableDictionaries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableLanguageNames), meth_Sonnet_Speller_availableLanguageNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableLanguages), meth_Sonnet_Speller_availableLanguages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAndSuggest), meth_Sonnet_Speller_checkAndSuggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultClient), meth_Sonnet_Speller_defaultClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultLanguage), meth_Sonnet_Speller_defaultLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCorrect), meth_Sonnet_Speller_isCorrect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMisspelled), meth_Sonnet_Speller_isMisspelled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Sonnet_Speller_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Sonnet_Speller_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restore), meth_Sonnet_Speller_restore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_Sonnet_Speller_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_Sonnet_Speller_setAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultClient), meth_Sonnet_Speller_setDefaultClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultLanguage), meth_Sonnet_Speller_setDefaultLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLanguage), meth_Sonnet_Speller_setLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storeReplacement), meth_Sonnet_Speller_storeReplacement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suggest), meth_Sonnet_Speller_suggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_testAttribute), meth_Sonnet_Speller_testAttribute, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Sonnet_Speller[] = {
    {sipName_CheckUppercase, Sonnet::Speller::CheckUppercase, 253},
    {sipName_SkipRunTogether, Sonnet::Speller::SkipRunTogether, 253},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_Sonnet_Speller = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Sonnet__Speller,
        {0}
    },
    sipNameNr_Speller,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {250, 255, 0},
    0,
    0,
    22, methods_Sonnet_Speller,
    2, enummembers_Sonnet_Speller,
    0, 0,
    init_Sonnet_Speller,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Sonnet_Speller,
    release_Sonnet_Speller,
    cast_Sonnet_Speller,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/backgroundchecker.sip"
#include <sonnet/backgroundchecker.h>
#line 9335 "sipkdecorepart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9339 "sipkdecorepart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/speller.sip"
#include <sonnet/speller.h>
#line 9342 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9345 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9348 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9351 "sipkdecorepart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9354 "sipkdecorepart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9357 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9360 "sipkdecorepart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 9391 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 9394 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 9397 "sipkdecorepart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9400 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 9403 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 9406 "sipkdecorepart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9409 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9412 "sipkdecorepart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9415 "sipkdecorepart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9418 "sipkdecorepart1.cpp"


class sipSonnet_BackgroundChecker : public Sonnet::BackgroundChecker
{
public:
    sipSonnet_BackgroundChecker(QObject *);
    sipSonnet_BackgroundChecker(const Sonnet::Speller&,QObject *);
    virtual ~sipSonnet_BackgroundChecker();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QString sipProtectVirt_fetchMoreText(bool);
    void sipProtectVirt_finishedCurrentFeed(bool);
    void sipProtect_slotEngineDone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void start();
    void stop();
    void continueChecking();
    QString fetchMoreText();
    void finishedCurrentFeed();
    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:
    sipSonnet_BackgroundChecker(const sipSonnet_BackgroundChecker &);
    sipSonnet_BackgroundChecker &operator = (const sipSonnet_BackgroundChecker &);

    char sipPyMethods[12];
};

sipSonnet_BackgroundChecker::sipSonnet_BackgroundChecker(QObject *a0): Sonnet::BackgroundChecker(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSonnet_BackgroundChecker::sipSonnet_BackgroundChecker(const Sonnet::Speller& a0,QObject *a1): Sonnet::BackgroundChecker(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSonnet_BackgroundChecker::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_Sonnet_BackgroundChecker);
}

int sipSonnet_BackgroundChecker::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Sonnet::BackgroundChecker::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_Sonnet_BackgroundChecker,_c,_id,_a);

    return _id;
}

void *sipSonnet_BackgroundChecker::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_Sonnet_BackgroundChecker,_clname)) ? this : Sonnet::BackgroundChecker::qt_metacast(_clname);
}

void sipSonnet_BackgroundChecker::start()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_start);

    if (!meth)
    {
        Sonnet::BackgroundChecker::start();
        return;
    }

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

void sipSonnet_BackgroundChecker::stop()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_stop);

    if (!meth)
    {
        Sonnet::BackgroundChecker::stop();
        return;
    }

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

void sipSonnet_BackgroundChecker::continueChecking()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        Sonnet::BackgroundChecker::continueChecking();
        return;
    }

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

QString sipSonnet_BackgroundChecker::fetchMoreText()
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Sonnet::BackgroundChecker::fetchMoreText();

    return ((sipVH_QtCore_58)(sipModuleAPI_kdecore_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipSonnet_BackgroundChecker::finishedCurrentFeed()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        Sonnet::BackgroundChecker::finishedCurrentFeed();
        return;
    }

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

QString sipSonnet_BackgroundChecker::sipProtectVirt_fetchMoreText(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Sonnet::BackgroundChecker::fetchMoreText() : fetchMoreText());
}

void sipSonnet_BackgroundChecker::sipProtectVirt_finishedCurrentFeed(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Sonnet::BackgroundChecker::finishedCurrentFeed() : finishedCurrentFeed());
}

void sipSonnet_BackgroundChecker::sipProtect_slotEngineDone()
{
    Sonnet::BackgroundChecker::slotEngineDone();
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setText(*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(sipArgsParsed,sipName_BackgroundChecker,sipName_setText);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Sonnet::Speller *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Sonnet::Speller(sipCpp->speller());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Sonnet::Speller * a0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_Sonnet_Speller,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSpeller(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checkWord(*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(sipArgsParsed,sipName_BackgroundChecker,sipName_checkWord);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addWordToPersonal(*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(sipArgsParsed,sipName_BackgroundChecker,sipName_addWordToPersonal);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::stop() : sipCpp->stop());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BiJ1J1",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replace(a0,*a1,*a2);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_BackgroundChecker_changeLanguage(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_BackgroundChecker_changeLanguage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->changeLanguage(*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(sipArgsParsed,sipName_BackgroundChecker,sipName_changeLanguage);

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_BackgroundChecker_continueChecking(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_BackgroundChecker_continueChecking(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::continueChecking() : sipCpp->continueChecking());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_BackgroundChecker,sipName_continueChecking);

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_BackgroundChecker_fetchMoreText(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_BackgroundChecker_fetchMoreText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->sipProtectVirt_fetchMoreText(sipSelfWasArg));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_BackgroundChecker,sipName_fetchMoreText);

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_BackgroundChecker_finishedCurrentFeed(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_BackgroundChecker_finishedCurrentFeed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_finishedCurrentFeed(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_BackgroundChecker,sipName_finishedCurrentFeed);

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_BackgroundChecker_slotEngineDone(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_BackgroundChecker_slotEngineDone(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Sonnet_BackgroundChecker,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotEngineDone();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_BackgroundChecker,sipName_slotEngineDone);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Sonnet_BackgroundChecker(void *, const sipTypeDef *);}
static void *cast_Sonnet_BackgroundChecker(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Sonnet_BackgroundChecker)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Sonnet::BackgroundChecker *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Sonnet_BackgroundChecker(void *, int);}
static void release_Sonnet_BackgroundChecker(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSonnet_BackgroundChecker *>(sipCppV);
    else
        delete reinterpret_cast<Sonnet::BackgroundChecker *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Sonnet_BackgroundChecker(sipSimpleWrapper *);}
static void dealloc_Sonnet_BackgroundChecker(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSonnet_BackgroundChecker *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Sonnet_BackgroundChecker(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Sonnet_BackgroundChecker(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Sonnet_BackgroundChecker(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipSonnet_BackgroundChecker *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSonnet_BackgroundChecker(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Sonnet::Speller * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Sonnet_Speller,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSonnet_BackgroundChecker(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Sonnet_BackgroundChecker[] = {{111, 0, 1}};


static PyMethodDef methods_Sonnet_BackgroundChecker[] = {
    {SIP_MLNAME_CAST(sipName_addWordToPersonal), meth_Sonnet_BackgroundChecker_addWordToPersonal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeLanguage), meth_Sonnet_BackgroundChecker_changeLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkWord), meth_Sonnet_BackgroundChecker_checkWord, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Sonnet_BackgroundChecker_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Sonnet_BackgroundChecker_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_continueChecking), meth_Sonnet_BackgroundChecker_continueChecking, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentContext), meth_Sonnet_BackgroundChecker_currentContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Sonnet_BackgroundChecker_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Sonnet_BackgroundChecker_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchMoreText), meth_Sonnet_BackgroundChecker_fetchMoreText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishedCurrentFeed), meth_Sonnet_BackgroundChecker_finishedCurrentFeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Sonnet_BackgroundChecker_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replace), meth_Sonnet_BackgroundChecker_replace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSpeller), meth_Sonnet_BackgroundChecker_setSpeller, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setText), meth_Sonnet_BackgroundChecker_setText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotEngineDone), meth_Sonnet_BackgroundChecker_slotEngineDone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_speller), meth_Sonnet_BackgroundChecker_speller, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Sonnet_BackgroundChecker_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Sonnet_BackgroundChecker_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suggest), meth_Sonnet_BackgroundChecker_suggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_Sonnet_BackgroundChecker_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Sonnet_BackgroundChecker_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Sonnet_BackgroundChecker[] = {
    {"done()", 0},
    {"misspelling(const QString&,int)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_Sonnet_BackgroundChecker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Sonnet__BackgroundChecker,
        {0}
    },
    sipNameNr_BackgroundChecker,
    -1,
    -1,
    {250, 255, 0},
    supers_Sonnet_BackgroundChecker,
    0,
    22, methods_Sonnet_BackgroundChecker,
    0, 0,
    0, 0,
    init_Sonnet_BackgroundChecker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Sonnet_BackgroundChecker,
    release_Sonnet_BackgroundChecker,
    cast_Sonnet_BackgroundChecker,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Sonnet::BackgroundChecker::staticMetaObject,
    0,
    pyqt4_signals_Sonnet_BackgroundChecker
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10564 "sipkdecorepart1.cpp"


extern "C" {static PyObject *meth_Sonnet_defaultLanguageName(PyObject *,PyObject *);}
static PyObject *meth_Sonnet_defaultLanguageName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Sonnet::defaultLanguageName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_defaultLanguageName);

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_detectLanguage(PyObject *,PyObject *);}
static PyObject *meth_Sonnet_detectLanguage(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Sonnet::detectLanguage(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_detectLanguage);

    return NULL;
}


static PyMethodDef methods_Sonnet[] = {
    {SIP_MLNAME_CAST(sipName_defaultLanguageName), meth_Sonnet_defaultLanguageName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_detectLanguage), meth_Sonnet_detectLanguage, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_Sonnet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Sonnet,
        {0}
    },
    sipNameNr_Sonnet,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_Sonnet,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
