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

#include "sipAPIkdecore.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static int slot_KLocale_TimeProcessingOptions___bool__(PyObject *);}
static int slot_KLocale_TimeProcessingOptions___bool__(PyObject *sipSelf)
{
    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KLocale_TimeProcessingOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_TimeProcessingOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::TimeProcessingOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::TimeProcessingOptions *>(a0),sipType_KLocale_TimeProcessingOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KLocale_TimeProcessingOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_TimeProcessingOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_TimeProcessingOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::TimeProcessingOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::TimeProcessingOptions *>(a0),sipType_KLocale_TimeProcessingOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KLocale_TimeProcessingOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_TimeProcessingOptions___invert__(PyObject *);}
static PyObject *slot_KLocale_TimeProcessingOptions___invert__(PyObject *sipSelf)
{
    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KLocale::TimeProcessingOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeProcessingOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeProcessingOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeProcessingOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeProcessingOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;
        KLocale::TimeProcessingOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_TimeProcessingOptions, &a0, &a0State, sipType_KLocale_TimeProcessingOptions, &a1, &a1State))
        {
            KLocale::TimeProcessingOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeProcessingOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_TimeProcessingOptions,a1State);

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

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeProcessingOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeProcessingOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::TimeProcessingOptions(*a0 ^ a1);
#line 209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;
        KLocale::TimeProcessingOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_TimeProcessingOptions, &a0, &a0State, sipType_KLocale_TimeProcessingOptions, &a1, &a1State))
        {
            KLocale::TimeProcessingOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeProcessingOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_TimeProcessingOptions,a1State);

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

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeProcessingOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeProcessingOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::TimeProcessingOptions(*a0 | a1);
#line 261 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_TimeProcessingOptions___int__(PyObject *);}
static PyObject *slot_KLocale_TimeProcessingOptions___int__(PyObject *sipSelf)
{
    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_TimeProcessingOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::TimeProcessingOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::TimeProcessingOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_TimeProcessingOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::TimeProcessingOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeProcessingOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::TimeProcessingOptions *sipCpp = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeProcessingOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocale::TimeProcessingOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocale_TimeProcessingOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocale_TimeProcessingOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocale::TimeProcessingOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocale::TimeProcessingOptions *>(sipSrc);
}


extern "C" {static void *array_KLocale_TimeProcessingOptions(SIP_SSIZE_T);}
static void *array_KLocale_TimeProcessingOptions(SIP_SSIZE_T sipNrElem)
{
    return new KLocale::TimeProcessingOptions[sipNrElem];
}


extern "C" {static void *copy_KLocale_TimeProcessingOptions(const void *, SIP_SSIZE_T);}
static void *copy_KLocale_TimeProcessingOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocale::TimeProcessingOptions(reinterpret_cast<const KLocale::TimeProcessingOptions *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KLocale_TimeProcessingOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KLocale_TimeProcessingOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocale::TimeProcessingOptions *sipCpp = 0;

    {
        const KLocale::TimeProcessingOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::TimeProcessingOptions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KLocale_TimeProcessingOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KLocale_TimeProcessingOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KLocale::TimeProcessingOptions **sipCppPtr = reinterpret_cast<KLocale::TimeProcessingOptions **>(sipCppPtrV);

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_TimeProcessingOption)) ||
            sipCanConvertToType(sipPy, sipType_KLocale_TimeProcessingOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_TimeProcessingOption)))
{
    *sipCppPtr = new KLocale::TimeProcessingOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLocale::TimeProcessingOptions *>(sipConvertToType(sipPy, sipType_KLocale_TimeProcessingOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLocale_TimeProcessingOptions[] = {
    {(void *)slot_KLocale_TimeProcessingOptions___bool__, bool_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___ne__, ne_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___eq__, eq_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___invert__, invert_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___and__, and_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___xor__, xor_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___or__, or_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___int__, int_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___ixor__, ixor_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___ior__, ior_slot},
    {(void *)slot_KLocale_TimeProcessingOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocale_TimeProcessingOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocale__TimeProcessingOptions,
        {0}
    },
    {
        sipNameNr_TimeProcessingOptions,
        {102, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLocale_TimeProcessingOptions,
    init_KLocale_TimeProcessingOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocale_TimeProcessingOptions,
    assign_KLocale_TimeProcessingOptions,
    array_KLocale_TimeProcessingOptions,
    copy_KLocale_TimeProcessingOptions,
    release_KLocale_TimeProcessingOptions,
    cast_KLocale_TimeProcessingOptions,
    convertTo_KLocale_TimeProcessingOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 629 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 633 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static int slot_KLocale_TimeFormatOptions___bool__(PyObject *);}
static int slot_KLocale_TimeFormatOptions___bool__(PyObject *sipSelf)
{
    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KLocale_TimeFormatOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_TimeFormatOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::TimeFormatOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 681 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::TimeFormatOptions *>(a0),sipType_KLocale_TimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KLocale_TimeFormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_TimeFormatOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_TimeFormatOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::TimeFormatOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 717 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::TimeFormatOptions *>(a0),sipType_KLocale_TimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KLocale_TimeFormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_TimeFormatOptions___invert__(PyObject *);}
static PyObject *slot_KLocale_TimeFormatOptions___invert__(PyObject *sipSelf)
{
    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KLocale::TimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeFormatOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeFormatOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;
        KLocale::TimeFormatOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_TimeFormatOptions, &a0, &a0State, sipType_KLocale_TimeFormatOptions, &a1, &a1State))
        {
            KLocale::TimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeFormatOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_TimeFormatOptions,a1State);

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

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeFormatOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::TimeFormatOptions(*a0 ^ a1);
#line 826 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;
        KLocale::TimeFormatOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_TimeFormatOptions, &a0, &a0State, sipType_KLocale_TimeFormatOptions, &a1, &a1State))
        {
            KLocale::TimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::TimeFormatOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_TimeFormatOptions,a1State);

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

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_TimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::TimeFormatOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::TimeFormatOptions(*a0 | a1);
#line 878 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_TimeFormatOptions___int__(PyObject *);}
static PyObject *slot_KLocale_TimeFormatOptions___int__(PyObject *sipSelf)
{
    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_TimeFormatOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::TimeFormatOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::TimeFormatOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_TimeFormatOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::TimeFormatOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_TimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::TimeFormatOptions *sipCpp = reinterpret_cast<KLocale::TimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_TimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocale::TimeFormatOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocale_TimeFormatOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocale_TimeFormatOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocale::TimeFormatOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocale::TimeFormatOptions *>(sipSrc);
}


extern "C" {static void *array_KLocale_TimeFormatOptions(SIP_SSIZE_T);}
static void *array_KLocale_TimeFormatOptions(SIP_SSIZE_T sipNrElem)
{
    return new KLocale::TimeFormatOptions[sipNrElem];
}


extern "C" {static void *copy_KLocale_TimeFormatOptions(const void *, SIP_SSIZE_T);}
static void *copy_KLocale_TimeFormatOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocale::TimeFormatOptions(reinterpret_cast<const KLocale::TimeFormatOptions *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KLocale_TimeFormatOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KLocale_TimeFormatOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocale::TimeFormatOptions *sipCpp = 0;

    {
        const KLocale::TimeFormatOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::TimeFormatOptions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KLocale_TimeFormatOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KLocale_TimeFormatOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KLocale::TimeFormatOptions **sipCppPtr = reinterpret_cast<KLocale::TimeFormatOptions **>(sipCppPtrV);

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_TimeFormatOption)) ||
            sipCanConvertToType(sipPy, sipType_KLocale_TimeFormatOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_TimeFormatOption)))
{
    *sipCppPtr = new KLocale::TimeFormatOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLocale::TimeFormatOptions *>(sipConvertToType(sipPy, sipType_KLocale_TimeFormatOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1173 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLocale_TimeFormatOptions[] = {
    {(void *)slot_KLocale_TimeFormatOptions___bool__, bool_slot},
    {(void *)slot_KLocale_TimeFormatOptions___ne__, ne_slot},
    {(void *)slot_KLocale_TimeFormatOptions___eq__, eq_slot},
    {(void *)slot_KLocale_TimeFormatOptions___invert__, invert_slot},
    {(void *)slot_KLocale_TimeFormatOptions___and__, and_slot},
    {(void *)slot_KLocale_TimeFormatOptions___xor__, xor_slot},
    {(void *)slot_KLocale_TimeFormatOptions___or__, or_slot},
    {(void *)slot_KLocale_TimeFormatOptions___int__, int_slot},
    {(void *)slot_KLocale_TimeFormatOptions___ixor__, ixor_slot},
    {(void *)slot_KLocale_TimeFormatOptions___ior__, ior_slot},
    {(void *)slot_KLocale_TimeFormatOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocale_TimeFormatOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocale__TimeFormatOptions,
        {0}
    },
    {
        sipNameNr_TimeFormatOptions,
        {102, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLocale_TimeFormatOptions,
    init_KLocale_TimeFormatOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocale_TimeFormatOptions,
    assign_KLocale_TimeFormatOptions,
    array_KLocale_TimeFormatOptions,
    copy_KLocale_TimeFormatOptions,
    release_KLocale_TimeFormatOptions,
    cast_KLocale_TimeFormatOptions,
    convertTo_KLocale_TimeFormatOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1246 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1250 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static int slot_KLocale_DateTimeFormatOptions___bool__(PyObject *);}
static int slot_KLocale_DateTimeFormatOptions___bool__(PyObject *sipSelf)
{
    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KLocale_DateTimeFormatOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeFormatOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1298 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::DateTimeFormatOptions *>(a0),sipType_KLocale_DateTimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KLocale_DateTimeFormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_DateTimeFormatOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeFormatOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1334 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KLocale::DateTimeFormatOptions *>(a0),sipType_KLocale_DateTimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KLocale_DateTimeFormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KLocale_DateTimeFormatOptions___invert__(PyObject *);}
static PyObject *slot_KLocale_DateTimeFormatOptions___invert__(PyObject *sipSelf)
{
    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KLocale::DateTimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::DateTimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;
        KLocale::DateTimeFormatOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State, sipType_KLocale_DateTimeFormatOptions, &a1, &a1State))
        {
            KLocale::DateTimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_DateTimeFormatOptions,a1State);

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

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::DateTimeFormatOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeFormatOptions(*a0 ^ a1);
#line 1443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;
        KLocale::DateTimeFormatOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State, sipType_KLocale_DateTimeFormatOptions, &a1, &a1State))
        {
            KLocale::DateTimeFormatOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);
            sipReleaseType(a1,sipType_KLocale_DateTimeFormatOptions,a1State);

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

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State, &a1))
        {
            KLocale::DateTimeFormatOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeFormatOptions(*a0 | a1);
#line 1495 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeFormatOptions___int__(PyObject *);}
static PyObject *slot_KLocale_DateTimeFormatOptions___int__(PyObject *sipSelf)
{
    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeFormatOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_DateTimeFormatOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeFormatOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::DateTimeFormatOptions *sipCpp = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeFormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocale_DateTimeFormatOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocale_DateTimeFormatOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocale::DateTimeFormatOptions *>(sipSrc);
}


extern "C" {static void *array_KLocale_DateTimeFormatOptions(SIP_SSIZE_T);}
static void *array_KLocale_DateTimeFormatOptions(SIP_SSIZE_T sipNrElem)
{
    return new KLocale::DateTimeFormatOptions[sipNrElem];
}


extern "C" {static void *copy_KLocale_DateTimeFormatOptions(const void *, SIP_SSIZE_T);}
static void *copy_KLocale_DateTimeFormatOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocale::DateTimeFormatOptions(reinterpret_cast<const KLocale::DateTimeFormatOptions *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KLocale_DateTimeFormatOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KLocale_DateTimeFormatOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocale::DateTimeFormatOptions *sipCpp = 0;

    {
        const KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::DateTimeFormatOptions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KLocale_DateTimeFormatOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KLocale_DateTimeFormatOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KLocale::DateTimeFormatOptions **sipCppPtr = reinterpret_cast<KLocale::DateTimeFormatOptions **>(sipCppPtrV);

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_DateTimeFormatOption)) ||
            sipCanConvertToType(sipPy, sipType_KLocale_DateTimeFormatOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_DateTimeFormatOption)))
{
    *sipCppPtr = new KLocale::DateTimeFormatOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLocale::DateTimeFormatOptions *>(sipConvertToType(sipPy, sipType_KLocale_DateTimeFormatOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1790 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLocale_DateTimeFormatOptions[] = {
    {(void *)slot_KLocale_DateTimeFormatOptions___bool__, bool_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___ne__, ne_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___eq__, eq_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___invert__, invert_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___and__, and_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___xor__, xor_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___or__, or_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___int__, int_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___ixor__, ixor_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___ior__, ior_slot},
    {(void *)slot_KLocale_DateTimeFormatOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocale_DateTimeFormatOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocale__DateTimeFormatOptions,
        {0}
    },
    {
        sipNameNr_DateTimeFormatOptions,
        {102, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLocale_DateTimeFormatOptions,
    init_KLocale_DateTimeFormatOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocale_DateTimeFormatOptions,
    assign_KLocale_DateTimeFormatOptions,
    array_KLocale_DateTimeFormatOptions,
    copy_KLocale_DateTimeFormatOptions,
    release_KLocale_DateTimeFormatOptions,
    cast_KLocale_DateTimeFormatOptions,
    convertTo_KLocale_DateTimeFormatOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1863 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1867 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1870 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 1873 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 1876 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1879 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 204 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1882 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcurrencycode.sip"
#include <kcurrencycode.h>
#line 1885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 1894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1900 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 1903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1906 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 1909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


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

    {
        const char * a0;
        PyObject *a0Keep;
        QString * a1;
        int a1State = 0;
        QString * a2;
        int a2State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRaw(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        QString * a2;
        int a2State = 0;
        QString * a3;
        int a3State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRaw(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        unsigned long a2;
        QString * a3;
        int a3State = 0;
        QString * a4;
        int a4State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAmJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRaw(a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(a4,sipType_QString,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        unsigned long a3;
        QString * a4;
        int a4State = 0;
        QString * a5;
        int a5State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAAAmJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRaw(a0,a1,a2,a3,a4,a5);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);
            sipReleaseType(a4,sipType_QString,a4State);
            sipReleaseType(a5,sipType_QString,a5State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        bool a1 = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_DigitSet, &a0, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->digitSetToName(a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            QList<KLocale::DigitSet> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KLocale::DigitSet>(sipCpp->allDigitSetsList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::DigitSet sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->digitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fracDigits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positivePrefixCurrencySymbol();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negativePrefixCurrencySymbol();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::SignPosition sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positiveMonetarySignPosition();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_SignPosition);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::SignPosition sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negativeMonetarySignPosition();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_SignPosition);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::DigitSet sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monetaryDigitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

    {
        double a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        int a2 = -1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd|J1i", &sipSelf, sipType_KLocale, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatMoney(a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        double a0;
        int a1 = -1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd|i", &sipSelf, sipType_KLocale, &sipCpp, &a0, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatNumber(a0,a1));
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 1;
        int a2 = 2;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bi", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatNumber(*a0,a1,a2));
            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(sipParseErr, sipName_KLocale, sipName_formatNumber, NULL);

    return NULL;
}


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

    {
        long a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bl", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        double a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            QString *sipRes;

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

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

    {
        double a0;
        int a1;
        KLocale::BinaryUnitDialect a2 = KLocale::DefaultBinaryDialect;
        KLocale::BinarySizeUnits a3 = KLocale::DefaultBinaryUnits;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdi|EE", &sipSelf, sipType_KLocale, &sipCpp, &a0, &a1, sipType_KLocale_BinaryUnitDialect, &a2, sipType_KLocale_BinarySizeUnits, &a3))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatByteSize(a0,a1,a2,a3));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        unsigned long a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        unsigned long a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->nounDeclension();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KLocale::DateFormat a1 = KLocale::LongDate;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KLocale, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KLocale_DateFormat, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KLocale::DateFormat a1 = KLocale::ShortDate;
        bool a2 = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|Eb", &sipSelf, sipType_KLocale, &sipCpp, sipType_QDateTime, &a0, &a0State, sipType_KLocale_DateFormat, &a1, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDateTime(*a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

    {
        const KDateTime * a0;
        KLocale::DateFormat a1 = KLocale::ShortDate;
        KLocale::DateTimeFormatOptions a2def = 0;
        KLocale::DateTimeFormatOptions * a2 = &a2def;
        int a2State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|EJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_KDateTime, &a0, sipType_KLocale_DateFormat, &a1, sipType_KLocale_DateTimeFormatOptions, &a2, &a2State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDateTime(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_KLocale_DateTimeFormatOptions,a2State);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dateMonthNamePossessive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QTime * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KLocale, &sipCpp, sipType_QTime, &a0, &a0State, &a1, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatTime(*a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::DigitSet sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dateTimeDigitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->use12Clock();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekStartDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->workingWeekStartDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->workingWeekEndDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekDayOfPray();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            const KCalendarSystem *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendar();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KCalendarSystem *>(sipRes),sipType_KCalendarSystem,NULL);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCalendar(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readMoney(*a0,&a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readNumber(*a0,&a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->readDate(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->readDate(*a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        KLocale::ReadDateFlags a1;
        bool a2;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_ReadDateFlags, &a1))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->readDate(*a0,a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->readTime(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        KLocale::ReadTimeFlags a1;
        bool a2;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_ReadTimeFlags, &a1))
        {
            QTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->readTime(*a0,a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &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(sipParseErr, sipName_KLocale, sipName_language, NULL);

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->encoding());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingMib();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->codecForEncoding();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fileEncodingMib();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateFormat(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateFormatShort(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateMonthNamePossessive(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTimeFormat(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_DigitSet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateTimeDigitSet(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWeekStartDay(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWorkingWeekStartDay(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWorkingWeekEndDay(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWeekDayOfPray(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDecimalSymbol(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setThousandsSeparator(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPositiveSign(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNegativeSign(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_DigitSet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDigitSet(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::SignPosition a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_SignPosition, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPositiveMonetarySignPosition(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::SignPosition a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_SignPosition, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNegativeMonetarySignPosition(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPositivePrefixCurrencySymbol(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNegativePrefixCurrencySymbol(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFracDigits(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMonetaryThousandsSeparator(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMonetaryDecimalSymbol(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrencySymbol(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_DigitSet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMonetaryDigitSet(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pageSize();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPageSize(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::MeasureSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->measureSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_MeasureSystem);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::MeasureSystem a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_MeasureSystem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMeasureSystem(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insertCatalog(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeCatalog(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActiveCatalog(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAAA", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->translateQt(a0,a1,a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->languageCodeToName(*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(sipParseErr, sipName_KLocale, sipName_languageCodeToName, NULL);

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->countryCodeToName(*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(sipParseErr, sipName_KLocale, sipName_countryCodeToName, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QString * a1;
        int a1State = 0;
        QString * a2;
        int a2State = 0;
        QString * a3;
        int a3State = 0;
        QString * a4;
        int a4State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            KLocale::splitLocale(*a0,*a1,*a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(a4,sipType_QString,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipParseErr, sipArgs, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KLocale::setMainCatalog(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const char * a1 = "html";
        PyObject *a1Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|AA", sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLocale::langLookup(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLocale::defaultLanguage());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLocale::defaultCountry());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->useTranscript();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isApplicationTranslatedInto(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale * a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->copyCatalogsTo(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KConfig * a1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J8", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KConfig, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setCountry(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KConfig * a1;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J8", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KConfig, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setLanguage(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setLanguage(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localizedFilePath(*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(sipParseErr, sipName_KLocale, sipName_localizedFilePath, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->removeAcceleratorMarker(*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(sipParseErr, sipName_KLocale, sipName_removeAcceleratorMarker, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KLocale::DigitSet a1;
        bool a2 = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E|b", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_DigitSet, &a1, &a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->convertDigits(*a0,a1,a2));
            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(sipParseErr, sipName_KLocale, sipName_convertDigits, NULL);

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::BinaryUnitDialect sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->binaryUnitDialect();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_BinaryUnitDialect);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::BinaryUnitDialect a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_BinaryUnitDialect, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBinaryUnitDialect(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QTime * a0;
        int a0State = 0;
        KLocale::TimeFormatOptions a1def = KLocale::TimeDefault;
        KLocale::TimeFormatOptions * a1 = &a1def;
        int a1State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QTime, &a0, &a0State, sipType_KLocale_TimeFormatOptions, &a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatLocaleTime(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);
            sipReleaseType(a1,sipType_KLocale_TimeFormatOptions,a1State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KLocale::TimeFormatOptions a2def = KLocale::TimeDefault;
        KLocale::TimeFormatOptions * a2 = &a2def;
        int a2State = 0;
        KLocale::TimeProcessingOptions a3def = KLocale::ProcessNonStrict;
        KLocale::TimeProcessingOptions * a3 = &a3def;
        int a3State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1J1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_TimeFormatOptions, &a2, &a2State, sipType_KLocale_TimeProcessingOptions, &a3, &a3State))
        {
            QTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->readLocaleTime(*a0,&a1,*a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_KLocale_TimeFormatOptions,a2State);
            sipReleaseType(a3,sipType_KLocale_TimeProcessingOptions,a3State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currency();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->decimalPlaces();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monetaryDecimalPlaces();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDecimalPlaces(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocale, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMonetaryDecimalPlaces(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocale, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrencyCode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLocale::defaultCurrencyCode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        QString * a2;
        int a2State = 0;
        QString * a3;
        int a3State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRawFrom(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        QString * a3;
        int a3State = 0;
        QString * a4;
        int a4State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAAAJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRawFrom(a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(a4,sipType_QString,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        unsigned long a3;
        QString * a4;
        int a4State = 0;
        QString * a5;
        int a5State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAAAmJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRawFrom(a0,a1,a2,a3,a4,a5);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);
            sipReleaseType(a4,sipType_QString,a4State);
            sipReleaseType(a5,sipType_QString,a5State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        const char * a3;
        PyObject *a3Keep;
        unsigned long a4;
        QString * a5;
        int a5State = 0;
        QString * a6;
        int a6State = 0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAAAAAAAmJ0J0", &sipSelf, sipType_KLocale, &sipCpp, &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2, &a3Keep, &a3, &a4, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateRawFrom(a0,a1,a2,a3,a4,a5,a6);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);
            Py_DECREF(a3Keep);
            sipReleaseType(a5,sipType_QString,a5State);
            sipReleaseType(a6,sipType_QString,a6State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QTime * a0;
        int a0State = 0;
        KLocale::DateTimeComponentFormat a1 = KLocale::DefaultComponentFormat;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KLocale, &sipCpp, sipType_QTime, &a0, &a0State, sipType_KLocale_DateTimeComponentFormat, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->dayPeriodText(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::CalendarSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendarSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_CalendarSystem);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::CalendarSystem a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_CalendarSystem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCalendarSystem(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::WeekNumberSystem a0;
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocale, &sipCpp, sipType_KLocale_WeekNumberSystem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWeekNumberSystem(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocale, &sipCpp))
        {
            KLocale::WeekNumberSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekNumberSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_WeekNumberSystem);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setCountryDivisionCode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocale *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QString * a0;
        int a0State = 0;
        KSharedConfig::Ptr a1def = KSharedConfig::Ptr();
        KSharedConfig::Ptr * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J1", sipType_QString,&a0, &a0State, sipType_KSharedPtr_0100KSharedConfig,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KSharedPtr_0100KSharedConfig,a1State);

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        KConfig * a3 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1|J1J8", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_KConfig, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        const KLocale * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KLocale, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KLocale[] = {
    {SIP_MLNAME_CAST(sipName_allCountriesList), meth_KLocale_allCountriesList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allDigitSetsList), meth_KLocale_allDigitSetsList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allLanguagesList), meth_KLocale_allLanguagesList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_binaryUnitDialect), meth_KLocale_binaryUnitDialect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendar), meth_KLocale_calendar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystem), meth_KLocale_calendarSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarType), meth_KLocale_calendarType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codecForEncoding), meth_KLocale_codecForEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_convertDigits), meth_KLocale_convertDigits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyCatalogsTo), meth_KLocale_copyCatalogsTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_country), meth_KLocale_country, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countryCodeToName), meth_KLocale_countryCodeToName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countryDivisionCode), meth_KLocale_countryDivisionCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currency), meth_KLocale_currency, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currencyCode), meth_KLocale_currencyCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currencyCodeList), meth_KLocale_currencyCodeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currencySymbol), meth_KLocale_currencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateFormat), meth_KLocale_dateFormat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateFormatShort), meth_KLocale_dateFormatShort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateMonthNamePossessive), meth_KLocale_dateMonthNamePossessive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateTimeDigitSet), meth_KLocale_dateTimeDigitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayPeriodText), meth_KLocale_dayPeriodText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decimalPlaces), meth_KLocale_decimalPlaces, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decimalSymbol), meth_KLocale_decimalSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCountry), meth_KLocale_defaultCountry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCurrencyCode), meth_KLocale_defaultCurrencyCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultLanguage), meth_KLocale_defaultLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_digitSet), meth_KLocale_digitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_digitSetToName), meth_KLocale_digitSetToName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KLocale_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingMib), meth_KLocale_encodingMib, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileEncodingMib), meth_KLocale_fileEncodingMib, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatByteSize), meth_KLocale_formatByteSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDate), meth_KLocale_formatDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDateTime), meth_KLocale_formatDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDuration), meth_KLocale_formatDuration, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatLocaleTime), meth_KLocale_formatLocaleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatLong), meth_KLocale_formatLong, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatMoney), meth_KLocale_formatMoney, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatNumber), meth_KLocale_formatNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatTime), meth_KLocale_formatTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fracDigits), meth_KLocale_fracDigits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertCatalog), meth_KLocale_insertCatalog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installedLanguages), meth_KLocale_installedLanguages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isApplicationTranslatedInto), meth_KLocale_isApplicationTranslatedInto, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_langLookup), meth_KLocale_langLookup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_KLocale_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageCodeToName), meth_KLocale_languageCodeToName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageList), meth_KLocale_languageList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localizedFilePath), meth_KLocale_localizedFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_measureSystem), meth_KLocale_measureSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monetaryDecimalPlaces), meth_KLocale_monetaryDecimalPlaces, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monetaryDecimalSymbol), meth_KLocale_monetaryDecimalSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monetaryDigitSet), meth_KLocale_monetaryDigitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monetaryThousandsSeparator), meth_KLocale_monetaryThousandsSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negativeMonetarySignPosition), meth_KLocale_negativeMonetarySignPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negativePrefixCurrencySymbol), meth_KLocale_negativePrefixCurrencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negativeSign), meth_KLocale_negativeSign, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nounDeclension), meth_KLocale_nounDeclension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageSize), meth_KLocale_pageSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positiveMonetarySignPosition), meth_KLocale_positiveMonetarySignPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positivePrefixCurrencySymbol), meth_KLocale_positivePrefixCurrencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positiveSign), meth_KLocale_positiveSign, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prettyFormatDuration), meth_KLocale_prettyFormatDuration, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDate), meth_KLocale_readDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLocaleTime), meth_KLocale_readLocaleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readMoney), meth_KLocale_readMoney, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readNumber), meth_KLocale_readNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readTime), meth_KLocale_readTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAcceleratorMarker), meth_KLocale_removeAcceleratorMarker, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeCatalog), meth_KLocale_removeCatalog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActiveCatalog), meth_KLocale_setActiveCatalog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBinaryUnitDialect), meth_KLocale_setBinaryUnitDialect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCalendar), meth_KLocale_setCalendar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCalendarSystem), meth_KLocale_setCalendarSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCountry), meth_KLocale_setCountry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCountryDivisionCode), meth_KLocale_setCountryDivisionCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrencyCode), meth_KLocale_setCurrencyCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrencySymbol), meth_KLocale_setCurrencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateFormat), meth_KLocale_setDateFormat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateFormatShort), meth_KLocale_setDateFormatShort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateMonthNamePossessive), meth_KLocale_setDateMonthNamePossessive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateTimeDigitSet), meth_KLocale_setDateTimeDigitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDecimalPlaces), meth_KLocale_setDecimalPlaces, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDecimalSymbol), meth_KLocale_setDecimalSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDigitSet), meth_KLocale_setDigitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_KLocale_setEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFracDigits), meth_KLocale_setFracDigits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLanguage), meth_KLocale_setLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMainCatalog), meth_KLocale_setMainCatalog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMeasureSystem), meth_KLocale_setMeasureSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMonetaryDecimalPlaces), meth_KLocale_setMonetaryDecimalPlaces, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMonetaryDecimalSymbol), meth_KLocale_setMonetaryDecimalSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMonetaryDigitSet), meth_KLocale_setMonetaryDigitSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMonetaryThousandsSeparator), meth_KLocale_setMonetaryThousandsSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNegativeMonetarySignPosition), meth_KLocale_setNegativeMonetarySignPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNegativePrefixCurrencySymbol), meth_KLocale_setNegativePrefixCurrencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNegativeSign), meth_KLocale_setNegativeSign, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPageSize), meth_KLocale_setPageSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPositiveMonetarySignPosition), meth_KLocale_setPositiveMonetarySignPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPositivePrefixCurrencySymbol), meth_KLocale_setPositivePrefixCurrencySymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPositiveSign), meth_KLocale_setPositiveSign, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setThousandsSeparator), meth_KLocale_setThousandsSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTimeFormat), meth_KLocale_setTimeFormat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWeekDayOfPray), meth_KLocale_setWeekDayOfPray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWeekNumberSystem), meth_KLocale_setWeekNumberSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWeekStartDay), meth_KLocale_setWeekStartDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWorkingWeekEndDay), meth_KLocale_setWorkingWeekEndDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWorkingWeekStartDay), meth_KLocale_setWorkingWeekStartDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_splitLocale), meth_KLocale_splitLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_thousandsSeparator), meth_KLocale_thousandsSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeFormat), meth_KLocale_timeFormat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translateQt), meth_KLocale_translateQt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translateRaw), meth_KLocale_translateRaw, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translateRawFrom), meth_KLocale_translateRawFrom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_use12Clock), meth_KLocale_use12Clock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_useTranscript), meth_KLocale_useTranscript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekDayOfPray), meth_KLocale_weekDayOfPray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekNumberSystem), meth_KLocale_weekNumberSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekStartDay), meth_KLocale_weekStartDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_workingWeekEndDay), meth_KLocale_workingWeekEndDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_workingWeekStartDay), meth_KLocale_workingWeekStartDay, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLocale[] = {
    {sipName_AfterMoney, KLocale::AfterMoney, 118},
    {sipName_AfterQuantityMoney, KLocale::AfterQuantityMoney, 118},
    {sipName_ArabicDigits, KLocale::ArabicDigits, 114},
    {sipName_ArabicIndicDigits, KLocale::ArabicIndicDigits, 114},
    {sipName_BeforeMoney, KLocale::BeforeMoney, 118},
    {sipName_BeforeQuantityMoney, KLocale::BeforeQuantityMoney, 118},
    {sipName_BengaliDigits, KLocale::BengaliDigits, 114},
    {sipName_CopticCalendar, KLocale::CopticCalendar, 105},
    {sipName_Day, KLocale::Day, 107},
    {sipName_DayName, KLocale::DayName, 107},
    {sipName_DayOfWeek, KLocale::DayOfWeek, 107},
    {sipName_DayOfWeekName, KLocale::DayOfWeekName, 107},
    {sipName_DayOfYear, KLocale::DayOfYear, 107},
    {sipName_DayOfYearName, KLocale::DayOfYearName, 107},
    {sipName_DayPeriod, KLocale::DayPeriod, 107},
    {sipName_DayPeriodHour, KLocale::DayPeriodHour, 107},
    {sipName_DaysInMonth, KLocale::DaysInMonth, 107},
    {sipName_DaysInWeek, KLocale::DaysInWeek, 107},
    {sipName_DaysInYear, KLocale::DaysInYear, 107},
    {sipName_DefaultBinaryDialect, KLocale::DefaultBinaryDialect, 104},
    {sipName_DefaultBinaryUnits, KLocale::DefaultBinaryUnits, 103},
    {sipName_DefaultComponentFormat, KLocale::DefaultComponentFormat, 108},
    {sipName_DefaultWeekNumber, KLocale::DefaultWeekNumber, 123},
    {sipName_DevenagariDigits, KLocale::DevenagariDigits, 114},
    {sipName_EasternArabicIndicDigits, KLocale::EasternArabicIndicDigits, 114},
    {sipName_EraName, KLocale::EraName, 107},
    {sipName_EraYear, KLocale::EraYear, 107},
    {sipName_EthiopianCalendar, KLocale::EthiopianCalendar, 105},
    {sipName_FancyLongDate, KLocale::FancyLongDate, 106},
    {sipName_FancyShortDate, KLocale::FancyShortDate, 106},
    {sipName_FirstFullWeek, KLocale::FirstFullWeek, 123},
    {sipName_FirstPartialWeek, KLocale::FirstPartialWeek, 123},
    {sipName_GregorianCalendar, KLocale::GregorianCalendar, 105},
    {sipName_GujaratiDigits, KLocale::GujaratiDigits, 114},
    {sipName_GurmukhiDigits, KLocale::GurmukhiDigits, 114},
    {sipName_HebrewCalendar, KLocale::HebrewCalendar, 105},
    {sipName_Hour, KLocale::Hour, 107},
    {sipName_IECBinaryDialect, KLocale::IECBinaryDialect, 104},
    {sipName_Imperial, KLocale::Imperial, 115},
    {sipName_IndianNationalCalendar, KLocale::IndianNationalCalendar, 105},
    {sipName_IslamicCivilCalendar, KLocale::IslamicCivilCalendar, 105},
    {sipName_IsoDate, KLocale::IsoDate, 106},
    {sipName_IsoFormat, KLocale::IsoFormat, 116},
    {sipName_IsoOrdinalDate, KLocale::IsoOrdinalDate, 106},
    {sipName_IsoOrdinalFormat, KLocale::IsoOrdinalFormat, 116},
    {sipName_IsoWeekDate, KLocale::IsoWeekDate, 106},
    {sipName_IsoWeekFormat, KLocale::IsoWeekFormat, 116},
    {sipName_IsoWeekNumber, KLocale::IsoWeekNumber, 123},
    {sipName_JEDECBinaryDialect, KLocale::JEDECBinaryDialect, 104},
    {sipName_JalaliCalendar, KLocale::JalaliCalendar, 105},
    {sipName_JapaneseCalendar, KLocale::JapaneseCalendar, 105},
    {sipName_JulianCalendar, KLocale::JulianCalendar, 105},
    {sipName_JulianDay, KLocale::JulianDay, 107},
    {sipName_KannadaDigits, KLocale::KannadaDigits, 114},
    {sipName_KdeFormat, KLocale::KdeFormat, 112},
    {sipName_KhmerDigits, KLocale::KhmerDigits, 114},
    {sipName_LastBinaryDialect, KLocale::LastBinaryDialect, 104},
    {sipName_LiberalParsing, KLocale::LiberalParsing, 113},
    {sipName_LongDate, KLocale::LongDate, 106},
    {sipName_LongName, KLocale::LongName, 108},
    {sipName_LongNumber, KLocale::LongNumber, 108},
    {sipName_MalayalamDigits, KLocale::MalayalamDigits, 114},
    {sipName_Metric, KLocale::Metric, 115},
    {sipName_MetricBinaryDialect, KLocale::MetricBinaryDialect, 104},
    {sipName_Millisecond, KLocale::Millisecond, 107},
    {sipName_MinguoCalendar, KLocale::MinguoCalendar, 105},
    {sipName_Minute, KLocale::Minute, 107},
    {sipName_Month, KLocale::Month, 107},
    {sipName_MonthName, KLocale::MonthName, 107},
    {sipName_MonthsInYear, KLocale::MonthsInYear, 107},
    {sipName_NarrowName, KLocale::NarrowName, 108},
    {sipName_NormalFormat, KLocale::NormalFormat, 116},
    {sipName_OriyaDigits, KLocale::OriyaDigits, 114},
    {sipName_ParensAround, KLocale::ParensAround, 118},
    {sipName_PosixFormat, KLocale::PosixFormat, 112},
    {sipName_ProcessNonStrict, KLocale::ProcessNonStrict, 121},
    {sipName_ProcessStrict, KLocale::ProcessStrict, 121},
    {sipName_QDateCalendar, KLocale::QDateCalendar, 105},
    {sipName_Second, KLocale::Second, 107},
    {sipName_Seconds, KLocale::Seconds, 110},
    {sipName_ShortDate, KLocale::ShortDate, 106},
    {sipName_ShortFormat, KLocale::ShortFormat, 116},
    {sipName_ShortName, KLocale::ShortName, 108},
    {sipName_ShortNumber, KLocale::ShortNumber, 108},
    {sipName_SimpleWeek, KLocale::SimpleWeek, 123},
    {sipName_TamilDigits, KLocale::TamilDigits, 114},
    {sipName_TeluguDigits, KLocale::TeluguDigits, 114},
    {sipName_ThaiCalendar, KLocale::ThaiCalendar, 105},
    {sipName_ThaiDigits, KLocale::ThaiDigits, 114},
    {sipName_TimeDefault, KLocale::TimeDefault, 119},
    {sipName_TimeDuration, KLocale::TimeDuration, 119},
    {sipName_TimeFoldHours, KLocale::TimeFoldHours, 119},
    {sipName_TimeWithoutAmPm, KLocale::TimeWithoutAmPm, 119},
    {sipName_TimeWithoutSeconds, KLocale::TimeWithoutSeconds, 119},
    {sipName_TimeZone, KLocale::TimeZone, 110},
    {sipName_Timezone, KLocale::Timezone, 107},
    {sipName_TimezoneName, KLocale::TimezoneName, 107},
    {sipName_UnicodeFormat, KLocale::UnicodeFormat, 112},
    {sipName_UnitByte, KLocale::UnitByte, 103},
    {sipName_UnitExaByte, KLocale::UnitExaByte, 103},
    {sipName_UnitGigaByte, KLocale::UnitGigaByte, 103},
    {sipName_UnitKiloByte, KLocale::UnitKiloByte, 103},
    {sipName_UnitLastUnit, KLocale::UnitLastUnit, 103},
    {sipName_UnitMegaByte, KLocale::UnitMegaByte, 103},
    {sipName_UnitPetaByte, KLocale::UnitPetaByte, 103},
    {sipName_UnitTeraByte, KLocale::UnitTeraByte, 103},
    {sipName_UnitYottaByte, KLocale::UnitYottaByte, 103},
    {sipName_UnitZettaByte, KLocale::UnitZettaByte, 103},
    {sipName_UnixTime, KLocale::UnixTime, 107},
    {sipName_Week, KLocale::Week, 107},
    {sipName_WeekYear, KLocale::WeekYear, 107},
    {sipName_WeeksInYear, KLocale::WeeksInYear, 107},
    {sipName_WithSeconds, KLocale::WithSeconds, 117},
    {sipName_WithoutSeconds, KLocale::WithoutSeconds, 117},
    {sipName_Year, KLocale::Year, 107},
    {sipName_YearInEra, KLocale::YearInEra, 107},
    {sipName_YearName, KLocale::YearName, 107},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocale = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocale,
        {0}
    },
    {
        sipNameNr_KLocale,
        {0, 0, 1},
        122, methods_KLocale,
        117, enummembers_KLocale,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KLocale,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocale,
    0,
    0,
    0,
    release_KLocale,
    cast_KLocale,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klibrary.sip"
#include <klibrary.h>
#line 6098 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6108 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 6111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 6114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.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.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool 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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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_sender(PyObject *, PyObject *);}
static PyObject *meth_KLibrary_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKLibrary *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKLibrary *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 6461 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKLibrary *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKLibrary *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKLibrary *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKLibrary *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKLibrary *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibrary, sipName_factory, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibrary, sipName_setFileName, NULL);

    return NULL;
}


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

    {
        KLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibrary, sipName_unload, NULL);

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KLibrary[] = {{84, 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_sender), meth_KLibrary_sender, 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 sipTypeDef_kdecore_KLibrary = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLibrary,
        {0}
    },
    {
        sipNameNr_KLibrary,
        {0, 0, 1},
        10, methods_KLibrary,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KLibrary,
    0,
    init_KLibrary,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLibrary,
    0,
    0,
    0,
    release_KLibrary,
    cast_KLibrary,
    0,
    0,
    0
},
    &KLibrary::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klibloader.sip"
#include <klibloader.h>
#line 6881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klibrary.sip"
#include <klibrary.h>
#line 6891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 6894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 6897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6900 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6906 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6918 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6921 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6924 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6927 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6930 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6933 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_factory, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_library, NULL);

    return NULL;
}


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

    {
        KLibLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_lastErrorMessage, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_unloadLibrary, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_self, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_findLibrary, NULL);

    return NULL;
}


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLibLoader, sipName_errorString, NULL);

    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 sipEncodedTypeDef supers_KLibLoader[] = {{134, 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, 97},
    {sipName_ErrNoFactory, KLibLoader::ErrNoFactory, 97},
    {sipName_ErrNoLibrary, KLibLoader::ErrNoLibrary, 97},
    {sipName_ErrNoServiceFound, KLibLoader::ErrNoServiceFound, 97},
    {sipName_ErrServiceProvidesNoLibrary, KLibLoader::ErrServiceProvidesNoLibrary, 97},
};


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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 7241 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 7245 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7251 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7254 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7257 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7260 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7263 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7266 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7269 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7272 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7275 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7278 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7281 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKJobUiDelegate : public KJobUiDelegate
{
public:
    sipKJobUiDelegate();
    virtual ~sipKJobUiDelegate();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void showErrorMessage();
    void slotWarning(KJob *,const QString&,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:
    sipKJobUiDelegate(const sipKJobUiDelegate &);
    sipKJobUiDelegate &operator = (const sipKJobUiDelegate &);

    char sipPyMethods[9];
};

sipKJobUiDelegate::sipKJobUiDelegate(): KJobUiDelegate(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKJobUiDelegate::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KJobUiDelegate);
}

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

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

    return _id;
}

void *sipKJobUiDelegate::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KJobUiDelegate,_clname)) ? this : KJobUiDelegate::qt_metacast(_clname);
}

void sipKJobUiDelegate::showErrorMessage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobUiDelegate::showErrorMessage();
        return;
    }

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

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

void sipKJobUiDelegate::slotWarning(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobUiDelegate::slotWarning(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_23(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sipVH_kdecore_23(sipGILState,sipMeth,a0,a1,a2);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

KJob * sipKJobUiDelegate::sipProtect_job()
{
    return KJobUiDelegate::job();
}

void sipKJobUiDelegate::sipProtectVirt_slotWarning(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KJobUiDelegate::slotWarning(a0,a1,a2) : slotWarning(a0,a1,a2));
}


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

    {
        sipKJobUiDelegate *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobUiDelegate *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 7636 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobUiDelegate, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobUiDelegate, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobUiDelegate, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KJobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KJobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKJobUiDelegate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_job();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KJobUiDelegate, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KJobUiDelegate::showErrorMessage() : sipCpp->showErrorMessage());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KJobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoErrorHandlingEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJobUiDelegate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAutoErrorHandlingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KJobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoWarningHandlingEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJobUiDelegate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAutoWarningHandlingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipKJobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KJobUiDelegate, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotWarning(sipSelfWasArg,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(sipParseErr, sipName_KJobUiDelegate, sipName_slotWarning, NULL);

    return NULL;
}


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

    if (targetType == sipType_KJobUiDelegate)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKJobUiDelegate *>(sipCppV);
    else
        delete reinterpret_cast<KJobUiDelegate *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKJobUiDelegate();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KJobUiDelegate[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KJobUiDelegate_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KJobUiDelegate_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KJobUiDelegate_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KJobUiDelegate_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAutoErrorHandlingEnabled), meth_KJobUiDelegate_isAutoErrorHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAutoWarningHandlingEnabled), meth_KJobUiDelegate_isAutoWarningHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_job), meth_KJobUiDelegate_job, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KJobUiDelegate_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KJobUiDelegate_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoErrorHandlingEnabled), meth_KJobUiDelegate_setAutoErrorHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoWarningHandlingEnabled), meth_KJobUiDelegate_setAutoWarningHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showErrorMessage), meth_KJobUiDelegate_showErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWarning), meth_KJobUiDelegate_slotWarning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KJobUiDelegate_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KJobUiDelegate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KJobUiDelegate,
        {0}
    },
    {
        sipNameNr_KJobUiDelegate,
        {0, 0, 1},
        14, methods_KJobUiDelegate,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KJobUiDelegate,
    0,
    init_KJobUiDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KJobUiDelegate,
    0,
    0,
    0,
    release_KJobUiDelegate,
    cast_KJobUiDelegate,
    0,
    0,
    0
},
    &KJobUiDelegate::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobtrackerinterface.sip"
#include <kjobtrackerinterface.h>
#line 8125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 8129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 8132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 8138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8150 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8153 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8159 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8162 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8165 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 8168 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8171 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8174 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKJobTrackerInterface : public KJobTrackerInterface
{
public:
    sipKJobTrackerInterface(QObject *);
    virtual ~sipKJobTrackerInterface();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_finished(bool,KJob *);
    void sipProtectVirt_suspended(bool,KJob *);
    void sipProtectVirt_resumed(bool,KJob *);
    void sipProtectVirt_description(bool,KJob *,const QString&,const QPair<QString,QString>&,const QPair<QString,QString>&);
    void sipProtectVirt_infoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_warning(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_totalAmount(bool,KJob *,KJob::Unit,qulonglong);
    void sipProtectVirt_processedAmount(bool,KJob *,KJob::Unit,qulonglong);
    void sipProtectVirt_percent(bool,KJob *,unsigned long);
    void sipProtectVirt_speed(bool,KJob *,unsigned long);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void registerJob(KJob *);
    void unregisterJob(KJob *);
    void finished(KJob *);
    void suspended(KJob *);
    void resumed(KJob *);
    void description(KJob *,const QString&,const QPair<QString,QString>&,const QPair<QString,QString>&);
    void infoMessage(KJob *,const QString&,const QString&);
    void warning(KJob *,const QString&,const QString&);
    void totalAmount(KJob *,KJob::Unit,qulonglong);
    void processedAmount(KJob *,KJob::Unit,qulonglong);
    void percent(KJob *,unsigned long);
    void speed(KJob *,unsigned long);
    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:
    sipKJobTrackerInterface(const sipKJobTrackerInterface &);
    sipKJobTrackerInterface &operator = (const sipKJobTrackerInterface &);

    char sipPyMethods[19];
};

sipKJobTrackerInterface::sipKJobTrackerInterface(QObject *a0): KJobTrackerInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKJobTrackerInterface::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KJobTrackerInterface);
}

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

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

    return _id;
}

void *sipKJobTrackerInterface::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KJobTrackerInterface,_clname)) ? this : KJobTrackerInterface::qt_metacast(_clname);
}

void sipKJobTrackerInterface::registerJob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::registerJob(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t,PyObject *,KJob *);

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

void sipKJobTrackerInterface::unregisterJob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::unregisterJob(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t,PyObject *,KJob *);

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

void sipKJobTrackerInterface::finished(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::finished(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t,PyObject *,KJob *);

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

void sipKJobTrackerInterface::suspended(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::suspended(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t,PyObject *,KJob *);

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

void sipKJobTrackerInterface::resumed(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::resumed(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t,PyObject *,KJob *);

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

void sipKJobTrackerInterface::description(KJob *a0,const QString& a1,const QPair<QString,QString>& a2,const QPair<QString,QString>& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::description(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_kdecore_26(sip_gilstate_t,PyObject *,KJob *,const QString&,const QPair<QString,QString>&,const QPair<QString,QString>&);

    sipVH_kdecore_26(sipGILState,sipMeth,a0,a1,a2,a3);
}

void sipKJobTrackerInterface::infoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::infoMessage(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_23(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sipVH_kdecore_23(sipGILState,sipMeth,a0,a1,a2);
}

void sipKJobTrackerInterface::warning(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::warning(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_23(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sipVH_kdecore_23(sipGILState,sipMeth,a0,a1,a2);
}

void sipKJobTrackerInterface::totalAmount(KJob *a0,KJob::Unit a1,qulonglong a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::totalAmount(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_25(sip_gilstate_t,PyObject *,KJob *,KJob::Unit,unsigned PY_LONG_LONG);

    sipVH_kdecore_25(sipGILState,sipMeth,a0,a1,a2);
}

void sipKJobTrackerInterface::processedAmount(KJob *a0,KJob::Unit a1,qulonglong a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::processedAmount(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_25(sip_gilstate_t,PyObject *,KJob *,KJob::Unit,unsigned PY_LONG_LONG);

    sipVH_kdecore_25(sipGILState,sipMeth,a0,a1,a2);
}

void sipKJobTrackerInterface::percent(KJob *a0,unsigned long a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KJobTrackerInterface::percent(a0,a1);
        return;
    }

    extern void sipVH_kdecore_24(sip_gilstate_t,PyObject *,KJob *,unsigned long);

    sipVH_kdecore_24(sipGILState,sipMeth,a0,a1);
}

void sipKJobTrackerInterface::speed(KJob *a0,unsigned long a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_speed);

    if (!sipMeth)
    {
        KJobTrackerInterface::speed(a0,a1);
        return;
    }

    extern void sipVH_kdecore_24(sip_gilstate_t,PyObject *,KJob *,unsigned long);

    sipVH_kdecore_24(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipKJobTrackerInterface::sipProtectVirt_finished(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KJobTrackerInterface::finished(a0) : finished(a0));
}

void sipKJobTrackerInterface::sipProtectVirt_suspended(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KJobTrackerInterface::suspended(a0) : suspended(a0));
}

void sipKJobTrackerInterface::sipProtectVirt_resumed(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KJobTrackerInterface::resumed(a0) : resumed(a0));
}

void sipKJobTrackerInterface::sipProtectVirt_description(bool sipSelfWasArg,KJob *a0,const QString& a1,const QPair<QString,QString>& a2,const QPair<QString,QString>& a3)
{
    (sipSelfWasArg ? KJobTrackerInterface::description(a0,a1,a2,a3) : description(a0,a1,a2,a3));
}

void sipKJobTrackerInterface::sipProtectVirt_infoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KJobTrackerInterface::infoMessage(a0,a1,a2) : infoMessage(a0,a1,a2));
}

void sipKJobTrackerInterface::sipProtectVirt_warning(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KJobTrackerInterface::warning(a0,a1,a2) : warning(a0,a1,a2));
}

void sipKJobTrackerInterface::sipProtectVirt_totalAmount(bool sipSelfWasArg,KJob *a0,KJob::Unit a1,qulonglong a2)
{
    (sipSelfWasArg ? KJobTrackerInterface::totalAmount(a0,a1,a2) : totalAmount(a0,a1,a2));
}

void sipKJobTrackerInterface::sipProtectVirt_processedAmount(bool sipSelfWasArg,KJob *a0,KJob::Unit a1,qulonglong a2)
{
    (sipSelfWasArg ? KJobTrackerInterface::processedAmount(a0,a1,a2) : processedAmount(a0,a1,a2));
}

void sipKJobTrackerInterface::sipProtectVirt_percent(bool sipSelfWasArg,KJob *a0,unsigned long a1)
{
    (sipSelfWasArg ? KJobTrackerInterface::percent(a0,a1) : percent(a0,a1));
}

void sipKJobTrackerInterface::sipProtectVirt_speed(bool sipSelfWasArg,KJob *a0,unsigned long a1)
{
    (sipSelfWasArg ? KJobTrackerInterface::speed(a0,a1) : speed(a0,a1));
}


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

    {
        sipKJobTrackerInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobTrackerInterface *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 8764 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        KJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KJobTrackerInterface::registerJob(a0) : sipCpp->registerJob(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        KJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KJobTrackerInterface::unregisterJob(a0) : sipCpp->unregisterJob(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_finished(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_suspended(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resumed(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QPair<QString,QString> * a2;
        int a2State = 0;
        const QPair<QString,QString> * a3;
        int a3State = 0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1J1", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QPair_0100QString_0100QString,&a2, &a2State, sipType_QPair_0100QString_0100QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_description(sipSelfWasArg,a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QPair<QString,QString> *>(a2),sipType_QPair_0100QString_0100QString,a2State);
            sipReleaseType(const_cast<QPair<QString,QString> *>(a3),sipType_QPair_0100QString_0100QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_infoMessage(sipSelfWasArg,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(sipParseErr, sipName_KJobTrackerInterface, sipName_infoMessage, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_warning(sipSelfWasArg,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(sipParseErr, sipName_KJobTrackerInterface, sipName_warning, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        KJob::Unit a1;
        qulonglong a2;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8Eo", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, sipType_KJob_Unit, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_totalAmount(sipSelfWasArg,a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        KJob::Unit a1;
        qulonglong a2;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8Eo", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, sipType_KJob_Unit, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_processedAmount(sipSelfWasArg,a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        unsigned long a1;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8m", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_percent(sipSelfWasArg,a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        unsigned long a1;
        sipKJobTrackerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8m", &sipSelf, sipType_KJobTrackerInterface, &sipCpp, sipType_KJob, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_speed(sipSelfWasArg,a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KJobTrackerInterface)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKJobTrackerInterface *>(sipCppV);
    else
        delete reinterpret_cast<KJobTrackerInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KJobTrackerInterface[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KJobTrackerInterface_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KJobTrackerInterface_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KJobTrackerInterface_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_KJobTrackerInterface_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KJobTrackerInterface_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finished), meth_KJobTrackerInterface_finished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_infoMessage), meth_KJobTrackerInterface_infoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_percent), meth_KJobTrackerInterface_percent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processedAmount), meth_KJobTrackerInterface_processedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KJobTrackerInterface_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerJob), meth_KJobTrackerInterface_registerJob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resumed), meth_KJobTrackerInterface_resumed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KJobTrackerInterface_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_speed), meth_KJobTrackerInterface_speed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suspended), meth_KJobTrackerInterface_suspended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KJobTrackerInterface_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalAmount), meth_KJobTrackerInterface_totalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterJob), meth_KJobTrackerInterface_unregisterJob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_warning), meth_KJobTrackerInterface_warning, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KJobTrackerInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KJobTrackerInterface,
        {0}
    },
    {
        sipNameNr_KJobTrackerInterface,
        {0, 0, 1},
        19, methods_KJobTrackerInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KJobTrackerInterface,
    0,
    init_KJobTrackerInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KJobTrackerInterface,
    0,
    0,
    0,
    release_KJobTrackerInterface,
    cast_KJobTrackerInterface,
    0,
    0,
    0
},
    &KJobTrackerInterface::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9427 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static int slot_KJob_Capabilities___bool__(PyObject *);}
static int slot_KJob_Capabilities___bool__(PyObject *sipSelf)
{
    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KJob_Capabilities___ne__(PyObject *,PyObject *);}
static PyObject *slot_KJob_Capabilities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KJob::Capabilities * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 9479 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KJob::Capabilities *>(a0),sipType_KJob_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KJob_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KJob_Capabilities___eq__(PyObject *,PyObject *);}
static PyObject *slot_KJob_Capabilities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KJob::Capabilities * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 9515 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KJob::Capabilities *>(a0),sipType_KJob_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KJob_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KJob_Capabilities___invert__(PyObject *);}
static PyObject *slot_KJob_Capabilities___invert__(PyObject *sipSelf)
{
    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            KJob::Capabilities *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KJob::Capabilities(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KJob_Capabilities, &a0, &a0State, &a1))
        {
            KJob::Capabilities *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KJob::Capabilities((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        KJob::Capabilities * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KJob_Capabilities, &a0, &a0State, sipType_KJob_Capabilities, &a1, &a1State))
        {
            KJob::Capabilities *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KJob::Capabilities((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);
            sipReleaseType(a1,sipType_KJob_Capabilities,a1State);

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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KJob_Capabilities, &a0, &a0State, &a1))
        {
            KJob::Capabilities *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KJob::Capabilities(*a0 ^ a1);
#line 9624 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        KJob::Capabilities * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KJob_Capabilities, &a0, &a0State, sipType_KJob_Capabilities, &a1, &a1State))
        {
            KJob::Capabilities *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KJob::Capabilities((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);
            sipReleaseType(a1,sipType_KJob_Capabilities,a1State);

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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KJob_Capabilities, &a0, &a0State, &a1))
        {
            KJob::Capabilities *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KJob::Capabilities(*a0 | a1);
#line 9676 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KJob_Capabilities___int__(PyObject *);}
static PyObject *slot_KJob_Capabilities___int__(PyObject *sipSelf)
{
    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KJob::Capabilities * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KJob::Capabilities::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KJob::Capabilities * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KJob::Capabilities::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KJob::Capabilities *sipCpp = reinterpret_cast<KJob::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KJob_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KJob::Capabilities *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KJob_Capabilities(void *, SIP_SSIZE_T, const void *);}
static void assign_KJob_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KJob::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KJob::Capabilities *>(sipSrc);
}


extern "C" {static void *array_KJob_Capabilities(SIP_SSIZE_T);}
static void *array_KJob_Capabilities(SIP_SSIZE_T sipNrElem)
{
    return new KJob::Capabilities[sipNrElem];
}


extern "C" {static void *copy_KJob_Capabilities(const void *, SIP_SSIZE_T);}
static void *copy_KJob_Capabilities(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KJob::Capabilities(reinterpret_cast<const KJob::Capabilities *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KJob_Capabilities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KJob_Capabilities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KJob::Capabilities *sipCpp = 0;

    {
        const KJob::Capabilities * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KJob::Capabilities();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KJob_Capabilities(PyObject *, void **, int *, PyObject *);}
static int convertTo_KJob_Capabilities(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KJob::Capabilities **sipCppPtr = reinterpret_cast<KJob::Capabilities **>(sipCppPtrV);

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KJob_Capability)) ||
            sipCanConvertToType(sipPy, sipType_KJob_Capabilities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KJob_Capability)))
{
    *sipCppPtr = new KJob::Capabilities(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KJob::Capabilities *>(sipConvertToType(sipPy, sipType_KJob_Capabilities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 9971 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KJob_Capabilities[] = {
    {(void *)slot_KJob_Capabilities___bool__, bool_slot},
    {(void *)slot_KJob_Capabilities___ne__, ne_slot},
    {(void *)slot_KJob_Capabilities___eq__, eq_slot},
    {(void *)slot_KJob_Capabilities___invert__, invert_slot},
    {(void *)slot_KJob_Capabilities___and__, and_slot},
    {(void *)slot_KJob_Capabilities___xor__, xor_slot},
    {(void *)slot_KJob_Capabilities___or__, or_slot},
    {(void *)slot_KJob_Capabilities___int__, int_slot},
    {(void *)slot_KJob_Capabilities___ixor__, ixor_slot},
    {(void *)slot_KJob_Capabilities___ior__, ior_slot},
    {(void *)slot_KJob_Capabilities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KJob_Capabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KJob__Capabilities,
        {0}
    },
    {
        sipNameNr_Capabilities,
        {89, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KJob_Capabilities,
    init_KJob_Capabilities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KJob_Capabilities,
    assign_KJob_Capabilities,
    array_KJob_Capabilities,
    copy_KJob_Capabilities,
    release_KJob_Capabilities,
    cast_KJob_Capabilities,
    convertTo_KJob_Capabilities,
    0,
    0
},
    0,
    1,
    0
};

#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kglobal.sip"
#include <kglobal.h>
#line 10044 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10048 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


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

    return NULL;
}


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

    delete reinterpret_cast<KCatalogLoader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCatalogLoader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const KCatalogLoader * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KCatalogLoader, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCatalogLoader(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


pyqt4ClassTypeDef sipTypeDef_kdecore_KCatalogLoader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCatalogLoader,
        {0}
    },
    {
        sipNameNr_KCatalogLoader,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KCatalogLoader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCatalogLoader,
    0,
    0,
    0,
    release_KCatalogLoader,
    cast_KCatalogLoader,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kfilterdev.sip"
#include <kfilterdev.h>
#line 10173 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kfilterbase.sip"
#include <kfilterbase.h>
#line 10177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 10180 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10183 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10186 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 10189 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10192 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10195 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10198 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10213 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 10216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        KFilterDev *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KFilterDev::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KFilterDev *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterDev, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KFilterDev::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        KFilterDev *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KFilterDev, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOrigFileName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KFilterDev *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterDev, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSkipHeaders();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KFilterDev *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KFilterDev, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KFilterDev::seek(a0) : sipCpp->seek(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KFilterDev *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KFilterDev::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        bool a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1b", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            QIODevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KFilterDev::deviceForFile(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        QIODevice * a0;
        const QString * a1;
        int a1State = 0;
        bool a2 = 1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J1|b", sipType_QIODevice, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            QIODevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KFilterDev::device(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KFilterDev)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(KFilterDev *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<KFilterDev *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KFilterDev[] = {
    {SIP_MLNAME_CAST(sipName_atEnd), meth_KFilterDev_atEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KFilterDev_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_device), meth_KFilterDev_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceForFile), meth_KFilterDev_deviceForFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KFilterDev_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seek), meth_KFilterDev_seek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOrigFileName), meth_KFilterDev_setOrigFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSkipHeaders), meth_KFilterDev_setSkipHeaders, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KFilterDev = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KFilterDev,
        {0}
    },
    {
        sipNameNr_KFilterDev,
        {0, 0, 1},
        8, methods_KFilterDev,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KFilterDev,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KFilterDev,
    0,
    0,
    0,
    release_KFilterDev,
    cast_KFilterDev,
    0,
    0,
    0
},
    &KFilterDev::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kfilterbase.sip"
#include <kfilterbase.h>
#line 10566 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10570 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10573 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 10576 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKFilterBase : public KFilterBase
{
public:
    sipKFilterBase();
    virtual ~sipKFilterBase();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void init(int);
    int mode() const;
    void terminate();
    void reset();
    bool readHeader();
    bool writeHeader(const QByteArray&);
    void setOutBuffer(char *,uint);
    void setInBuffer(const char *,uint);
    bool inBufferEmpty() const;
    int inBufferAvailable() const;
    bool outBufferFull() const;
    int outBufferAvailable() const;
    KFilterBase::Result uncompress();
    KFilterBase::Result compress(bool);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[14];
};

sipKFilterBase::sipKFilterBase(): KFilterBase(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKFilterBase::init(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KFilterBase,sipName_init);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t,PyObject *,int);

    ((sipVH_QtCore_4)(sipModuleAPI_kdecore_QtCore->em_virthandlers[4]))(sipGILState,sipMeth,a0);
}

int sipKFilterBase::mode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_kdecore_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

void sipKFilterBase::terminate()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KFilterBase::terminate();
        return;
    }

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

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

void sipKFilterBase::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KFilterBase::reset();
        return;
    }

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

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

bool sipKFilterBase::readHeader()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_KFilterBase,sipName_readHeader);

    if (!sipMeth)
        return 0;

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

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

bool sipKFilterBase::writeHeader(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_KFilterBase,sipName_writeHeader);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_34(sip_gilstate_t,PyObject *,const QByteArray&);

    return sipVH_kdecore_34(sipGILState,sipMeth,a0);
}

void sipKFilterBase::setOutBuffer(char *a0,uint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_KFilterBase,sipName_setOutBuffer);

    if (!sipMeth)
        return;

    extern void sipVH_kdecore_33(sip_gilstate_t,PyObject *,char *,uint);

    sipVH_kdecore_33(sipGILState,sipMeth,a0,a1);
}

void sipKFilterBase::setInBuffer(const char *a0,uint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KFilterBase,sipName_setInBuffer);

    if (!sipMeth)
        return;

    extern void sipVH_kdecore_32(sip_gilstate_t,PyObject *,const char *,uint);

    sipVH_kdecore_32(sipGILState,sipMeth,a0,a1);
}

bool sipKFilterBase::inBufferEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KFilterBase::inBufferEmpty();

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

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

int sipKFilterBase::inBufferAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_kdecore_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

bool sipKFilterBase::outBufferFull() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KFilterBase::outBufferFull();

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

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

int sipKFilterBase::outBufferAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,sipName_KFilterBase,sipName_outBufferAvailable);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_kdecore_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

KFilterBase::Result sipKFilterBase::uncompress()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_KFilterBase,sipName_uncompress);

    if (!sipMeth)
        return (KFilterBase::Result)0;

    extern KFilterBase::Result sipVH_kdecore_31(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_31(sipGILState,sipMeth);
}

KFilterBase::Result sipKFilterBase::compress(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KFilterBase,sipName_compress);

    if (!sipMeth)
        return (KFilterBase::Result)0;

    extern KFilterBase::Result sipVH_kdecore_30(sip_gilstate_t,PyObject *,bool);

    return sipVH_kdecore_30(sipGILState,sipMeth,a0);
}


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

    {
        QIODevice * a0;
        bool a1 = 0;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|b", &sipSelf, sipType_KFilterBase, &sipCpp, sipType_QIODevice, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDevice(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KFilterBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->device();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KFilterBase, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_init);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->init(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_mode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mode();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KFilterBase::terminate() : sipCpp->terminate());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KFilterBase::reset() : sipCpp->reset());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_reset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_readHeader(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_readHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_readHeader);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readHeader();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_readHeader, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_writeHeader(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_writeHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QByteArray * a0;
        int a0State = 0;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KFilterBase, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_writeHeader);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->writeHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_writeHeader, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_setOutBuffer(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_setOutBuffer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        char * a0;
        PyObject *a0Keep;
        uint a1;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAu", &sipSelf, sipType_KFilterBase, &sipCpp, &a0Keep, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_setOutBuffer);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOutBuffer(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_setOutBuffer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_setInBuffer(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_setInBuffer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const char * a0;
        PyObject *a0Keep;
        uint a1;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAu", &sipSelf, sipType_KFilterBase, &sipCpp, &a0Keep, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_setInBuffer);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInBuffer(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_setInBuffer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_inBufferEmpty(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_inBufferEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KFilterBase::inBufferEmpty() : sipCpp->inBufferEmpty());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_inBufferEmpty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_inBufferAvailable(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_inBufferAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_inBufferAvailable);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inBufferAvailable();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_inBufferAvailable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_outBufferFull(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_outBufferFull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KFilterBase::outBufferFull() : sipCpp->outBufferFull());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_outBufferFull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_outBufferAvailable(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_outBufferAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_outBufferAvailable);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->outBufferAvailable();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_outBufferAvailable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_uncompress(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_uncompress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            KFilterBase::Result sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_uncompress);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->uncompress();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KFilterBase_Result);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_uncompress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_compress(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_compress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        bool a0;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KFilterBase, &sipCpp, &a0))
        {
            KFilterBase::Result sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KFilterBase, sipName_compress);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->compress(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KFilterBase_Result);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_compress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_setFilterFlags(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_setFilterFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KFilterBase::FilterFlags a0;
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KFilterBase, &sipCpp, sipType_KFilterBase_FilterFlags, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFilterFlags(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_setFilterFlags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_filterFlags(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_filterFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KFilterBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KFilterBase, &sipCpp))
        {
            KFilterBase::FilterFlags sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->filterFlags();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KFilterBase_FilterFlags);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_filterFlags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_findFilterByFileName(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_findFilterByFileName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KFilterBase *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KFilterBase::findFilterByFileName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KFilterBase,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_findFilterByFileName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KFilterBase_findFilterByMimeType(PyObject *, PyObject *);}
static PyObject *meth_KFilterBase_findFilterByMimeType(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KFilterBase *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KFilterBase::findFilterByMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KFilterBase,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KFilterBase, sipName_findFilterByMimeType, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KFilterBase(void *, const sipTypeDef *);}
static void *cast_KFilterBase(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KFilterBase)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KFilterBase(void *, int);}
static void release_KFilterBase(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKFilterBase *>(sipCppV);
    else
        delete reinterpret_cast<KFilterBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KFilterBase(sipSimpleWrapper *);}
static void dealloc_KFilterBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKFilterBase *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KFilterBase(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KFilterBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KFilterBase(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKFilterBase *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKFilterBase();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KFilterBase[] = {
    {SIP_MLNAME_CAST(sipName_compress), meth_KFilterBase_compress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_device), meth_KFilterBase_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterFlags), meth_KFilterBase_filterFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFilterByFileName), meth_KFilterBase_findFilterByFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFilterByMimeType), meth_KFilterBase_findFilterByMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inBufferAvailable), meth_KFilterBase_inBufferAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inBufferEmpty), meth_KFilterBase_inBufferEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_KFilterBase_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KFilterBase_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outBufferAvailable), meth_KFilterBase_outBufferAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outBufferFull), meth_KFilterBase_outBufferFull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readHeader), meth_KFilterBase_readHeader, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KFilterBase_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_KFilterBase_setDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFilterFlags), meth_KFilterBase_setFilterFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInBuffer), meth_KFilterBase_setInBuffer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutBuffer), meth_KFilterBase_setOutBuffer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_terminate), meth_KFilterBase_terminate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uncompress), meth_KFilterBase_uncompress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeHeader), meth_KFilterBase_writeHeader, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KFilterBase[] = {
    {sipName_End, KFilterBase::End, 85},
    {sipName_Error, KFilterBase::Error, 85},
    {sipName_NoHeaders, KFilterBase::NoHeaders, 84},
    {sipName_Ok, KFilterBase::Ok, 85},
    {sipName_WithHeaders, KFilterBase::WithHeaders, 84},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KFilterBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KFilterBase,
        {0}
    },
    {
        sipNameNr_KFilterBase,
        {0, 0, 1},
        20, methods_KFilterBase,
        5, enummembers_KFilterBase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KFilterBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KFilterBase,
    0,
    0,
    0,
    release_KFilterBase,
    cast_KFilterBase,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kexportplugin.sip"
#include <kexportplugin.h>
#line 11614 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.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 *, SIP_SSIZE_T, const void *);}
static void assign_KDEPluginVerificationData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KDEPluginVerificationData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KDEPluginVerificationData *>(sipSrc);
}


extern "C" {static void *array_KDEPluginVerificationData(SIP_SSIZE_T);}
static void *array_KDEPluginVerificationData(SIP_SSIZE_T sipNrElem)
{
    return new KDEPluginVerificationData[sipNrElem];
}


extern "C" {static void *copy_KDEPluginVerificationData(const void *, SIP_SSIZE_T);}
static void *copy_KDEPluginVerificationData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KDEPluginVerificationData(reinterpret_cast<const KDEPluginVerificationData *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KDEPluginVerificationData(sipSimpleWrapper *);}
static void dealloc_KDEPluginVerificationData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KDEPluginVerificationData(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KDEPluginVerificationData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KDEPluginVerificationData(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KDEPluginVerificationData *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDEPluginVerificationData();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KDEPluginVerificationData * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KDEPluginVerificationData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDEPluginVerificationData(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}

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 = (uint)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, -2, 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[] = {
    {InstanceVariable, sipName_KDEVersion, (PyMethodDef *)varget_KDEPluginVerificationData_KDEVersion, (PyMethodDef *)varset_KDEPluginVerificationData_KDEVersion, NULL, NULL},
    {InstanceVariable, sipName_KDEVersionString, (PyMethodDef *)varget_KDEPluginVerificationData_KDEVersionString, (PyMethodDef *)varset_KDEPluginVerificationData_KDEVersionString, NULL, NULL},
    {InstanceVariable, sipName_dataVersion, (PyMethodDef *)varget_KDEPluginVerificationData_dataVersion, (PyMethodDef *)varset_KDEPluginVerificationData_dataVersion, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KDEPluginVerificationData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDEPluginVerificationData,
        {0}
    },
    {
        sipNameNr_KDEPluginVerificationData,
        {0, 0, 1},
        0, 0,
        1, enummembers_KDEPluginVerificationData,
        3, variables_KDEPluginVerificationData,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KDEPluginVerificationData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDEPluginVerificationData,
    assign_KDEPluginVerificationData,
    array_KDEPluginVerificationData,
    copy_KDEPluginVerificationData,
    release_KDEPluginVerificationData,
    cast_KDEPluginVerificationData,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kencodingprober.sip"
#include <kencodingprober.h>
#line 11862 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11866 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11869 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static PyObject *meth_KEncodingProber_reset(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_reset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_feed(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_feed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray * a0;
        int a0State = 0;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KEncodingProber, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KEncodingProber::ProberState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->feed(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingProber, &sipCpp, &a0Keep, &a0, &a1))
        {
            KEncodingProber::ProberState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->feed(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_feed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_state(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            KEncodingProber::ProberState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_state, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_encodingName(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_encodingName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingName();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_encodingName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_encoding(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_encoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->encoding());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_encoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_confidence(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_confidence(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->confidence();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_confidence, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_proberType(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_proberType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingProber, &sipCpp))
        {
            KEncodingProber::ProberType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->proberType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_proberType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_setProberType(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_setProberType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber::ProberType a0;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KEncodingProber, &sipCpp, sipType_KEncodingProber_ProberType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProberType(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_setProberType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_proberTypeForName(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_proberTypeForName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KEncodingProber::ProberType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingProber::proberTypeForName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_proberTypeForName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingProber_nameForProberType(PyObject *, PyObject *);}
static PyObject *meth_KEncodingProber_nameForProberType(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingProber::ProberType a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_KEncodingProber_ProberType, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KEncodingProber::nameForProberType(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingProber, sipName_nameForProberType, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KEncodingProber(void *, const sipTypeDef *);}
static void *cast_KEncodingProber(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KEncodingProber)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KEncodingProber(void *, int);}
static void release_KEncodingProber(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KEncodingProber *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KEncodingProber(sipSimpleWrapper *);}
static void dealloc_KEncodingProber(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KEncodingProber(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KEncodingProber(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KEncodingProber(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KEncodingProber *sipCpp = 0;

    {
        KEncodingProber::ProberType a0 = KEncodingProber::Universal;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|E", sipType_KEncodingProber_ProberType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEncodingProber(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KEncodingProber[] = {
    {SIP_MLNAME_CAST(sipName_confidence), meth_KEncodingProber_confidence, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KEncodingProber_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingName), meth_KEncodingProber_encodingName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_feed), meth_KEncodingProber_feed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nameForProberType), meth_KEncodingProber_nameForProberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proberType), meth_KEncodingProber_proberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proberTypeForName), meth_KEncodingProber_proberTypeForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KEncodingProber_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProberType), meth_KEncodingProber_setProberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_KEncodingProber_state, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEncodingProber[] = {
    {sipName_Arabic, KEncodingProber::Arabic, 82},
    {sipName_Baltic, KEncodingProber::Baltic, 82},
    {sipName_CentralEuropean, KEncodingProber::CentralEuropean, 82},
    {sipName_ChineseSimplified, KEncodingProber::ChineseSimplified, 82},
    {sipName_ChineseTraditional, KEncodingProber::ChineseTraditional, 82},
    {sipName_Cyrillic, KEncodingProber::Cyrillic, 82},
    {sipName_FoundIt, KEncodingProber::FoundIt, 81},
    {sipName_Greek, KEncodingProber::Greek, 82},
    {sipName_Hebrew, KEncodingProber::Hebrew, 82},
    {sipName_Japanese, KEncodingProber::Japanese, 82},
    {sipName_Korean, KEncodingProber::Korean, 82},
    {sipName_None, KEncodingProber::None, 82},
    {sipName_NorthernSaami, KEncodingProber::NorthernSaami, 82},
    {sipName_NotMe, KEncodingProber::NotMe, 81},
    {sipName_Other, KEncodingProber::Other, 82},
    {sipName_Probing, KEncodingProber::Probing, 81},
    {sipName_SouthEasternEurope, KEncodingProber::SouthEasternEurope, 82},
    {sipName_Thai, KEncodingProber::Thai, 82},
    {sipName_Turkish, KEncodingProber::Turkish, 82},
    {sipName_Unicode, KEncodingProber::Unicode, 82},
    {sipName_Universal, KEncodingProber::Universal, 82},
    {sipName_WesternEuropean, KEncodingProber::WesternEuropean, 82},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KEncodingProber = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEncodingProber,
        {0}
    },
    {
        sipNameNr_KEncodingProber,
        {0, 0, 1},
        10, methods_KEncodingProber,
        22, enummembers_KEncodingProber,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KEncodingProber,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEncodingProber,
    0,
    0,
    0,
    release_KEncodingProber,
    cast_KEncodingProber,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kencodingdetector.sip"
#include <kencodingdetector.h>
#line 12317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 12321 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 134 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 12324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12330 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKEncodingDetector : public KEncodingDetector
{
public:
    sipKEncodingDetector();
    sipKEncodingDetector(QTextCodec *,KEncodingDetector::EncodingChoiceSource,KEncodingDetector::AutoDetectScript);
    ~sipKEncodingDetector();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_processNull(char *,int);
    bool sipProtect_errorsIfUtf8(const char *,int);
    bool sipProtect_analyze(const char *,int);
    QTextDecoder * sipProtect_decoder();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKEncodingDetector(const sipKEncodingDetector &);
    sipKEncodingDetector &operator = (const sipKEncodingDetector &);
};

sipKEncodingDetector::sipKEncodingDetector(): KEncodingDetector(), sipPySelf(0)
{
}

sipKEncodingDetector::sipKEncodingDetector(QTextCodec *a0,KEncodingDetector::EncodingChoiceSource a1,KEncodingDetector::AutoDetectScript a2): KEncodingDetector(a0,a1,a2), sipPySelf(0)
{
}

sipKEncodingDetector::~sipKEncodingDetector()
{
    sipCommonDtor(sipPySelf);
}

bool sipKEncodingDetector::sipProtect_processNull(char *a0,int a1)
{
    return KEncodingDetector::processNull(a0,a1);
}

bool sipKEncodingDetector::sipProtect_errorsIfUtf8(const char *a0,int a1)
{
    return KEncodingDetector::errorsIfUtf8(a0,a1);
}

bool sipKEncodingDetector::sipProtect_analyze(const char *a0,int a1)
{
    return KEncodingDetector::analyze(a0,a1);
}

QTextDecoder * sipKEncodingDetector::sipProtect_decoder()
{
    return KEncodingDetector::decoder();
}


extern "C" {static PyObject *meth_KEncodingDetector_setEncoding(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_setEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char * a0;
        PyObject *a0Keep;
        KEncodingDetector::EncodingChoiceSource a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAE", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, sipType_KEncodingDetector_EncodingChoiceSource, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setEncoding(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_setEncoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_encoding(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_encoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encoding();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_encoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_visuallyOrdered(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_visuallyOrdered(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->visuallyOrdered();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_visuallyOrdered, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_setAutoDetectLanguage(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_setAutoDetectLanguage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector::AutoDetectScript a0;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KEncodingDetector, &sipCpp, sipType_KEncodingDetector_AutoDetectScript, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDetectLanguage(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_setAutoDetectLanguage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_autoDetectLanguage(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_autoDetectLanguage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            KEncodingDetector::AutoDetectScript sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoDetectLanguage();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_AutoDetectScript);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_autoDetectLanguage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_encodingChoiceSource(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_encodingChoiceSource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            KEncodingDetector::EncodingChoiceSource sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingChoiceSource();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_EncodingChoiceSource);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_encodingChoiceSource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_decode(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_decode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->decode(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const QByteArray * a0;
        int a0State = 0;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KEncodingDetector, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->decode(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_decode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_decodeWithBuffering(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_decodeWithBuffering(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, &a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->decodeWithBuffering(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_decodeWithBuffering, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_decodedInvalidCharacters(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_decodedInvalidCharacters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->decodedInvalidCharacters();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_decodedInvalidCharacters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_resetDecoder(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_resetDecoder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->resetDecoder();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_resetDecoder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_flush(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_flush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->flush());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_flush, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_scriptForName(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_scriptForName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KEncodingDetector::AutoDetectScript sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingDetector::scriptForName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_AutoDetectScript);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_scriptForName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_nameForScript(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_nameForScript(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector::AutoDetectScript a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_KEncodingDetector_AutoDetectScript, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KEncodingDetector::nameForScript(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_nameForScript, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_hasAutoDetectionForScript(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_hasAutoDetectionForScript(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KEncodingDetector::AutoDetectScript a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_KEncodingDetector_AutoDetectScript, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingDetector::hasAutoDetectionForScript(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_hasAutoDetectionForScript, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_processNull(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_processNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_processNull(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_processNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_errorsIfUtf8(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_errorsIfUtf8(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_errorsIfUtf8(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_errorsIfUtf8, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_analyze(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_analyze(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAi", &sipSelf, sipType_KEncodingDetector, &sipCpp, &a0Keep, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_analyze(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_analyze, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KEncodingDetector_decoder(PyObject *, PyObject *);}
static PyObject *meth_KEncodingDetector_decoder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEncodingDetector, &sipCpp))
        {
            QTextDecoder *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_decoder();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QTextDecoder,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KEncodingDetector, sipName_decoder, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KEncodingDetector(void *, const sipTypeDef *);}
static void *cast_KEncodingDetector(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KEncodingDetector)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KEncodingDetector(void *, int);}
static void release_KEncodingDetector(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKEncodingDetector *>(sipCppV);
    else
        delete reinterpret_cast<KEncodingDetector *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KEncodingDetector(sipSimpleWrapper *);}
static void dealloc_KEncodingDetector(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKEncodingDetector *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KEncodingDetector(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KEncodingDetector(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KEncodingDetector(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKEncodingDetector *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKEncodingDetector();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QTextCodec * a0;
        KEncodingDetector::EncodingChoiceSource a1;
        KEncodingDetector::AutoDetectScript a2 = KEncodingDetector::None;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8E|E", sipType_QTextCodec, &a0, sipType_KEncodingDetector_EncodingChoiceSource, &a1, sipType_KEncodingDetector_AutoDetectScript, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKEncodingDetector(a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KEncodingDetector[] = {
    {SIP_MLNAME_CAST(sipName_analyze), meth_KEncodingDetector_analyze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autoDetectLanguage), meth_KEncodingDetector_autoDetectLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decode), meth_KEncodingDetector_decode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodeWithBuffering), meth_KEncodingDetector_decodeWithBuffering, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodedInvalidCharacters), meth_KEncodingDetector_decodedInvalidCharacters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decoder), meth_KEncodingDetector_decoder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KEncodingDetector_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingChoiceSource), meth_KEncodingDetector_encodingChoiceSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorsIfUtf8), meth_KEncodingDetector_errorsIfUtf8, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flush), meth_KEncodingDetector_flush, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAutoDetectionForScript), meth_KEncodingDetector_hasAutoDetectionForScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nameForScript), meth_KEncodingDetector_nameForScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processNull), meth_KEncodingDetector_processNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetDecoder), meth_KEncodingDetector_resetDecoder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scriptForName), meth_KEncodingDetector_scriptForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDetectLanguage), meth_KEncodingDetector_setAutoDetectLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_KEncodingDetector_setEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_visuallyOrdered), meth_KEncodingDetector_visuallyOrdered, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEncodingDetector[] = {
    {sipName_Arabic, KEncodingDetector::Arabic, 78},
    {sipName_AutoDetectedEncoding, KEncodingDetector::AutoDetectedEncoding, 79},
    {sipName_BOM, KEncodingDetector::BOM, 79},
    {sipName_Baltic, KEncodingDetector::Baltic, 78},
    {sipName_CentralEuropean, KEncodingDetector::CentralEuropean, 78},
    {sipName_ChineseSimplified, KEncodingDetector::ChineseSimplified, 78},
    {sipName_ChineseTraditional, KEncodingDetector::ChineseTraditional, 78},
    {sipName_Cyrillic, KEncodingDetector::Cyrillic, 78},
    {sipName_DefaultEncoding, KEncodingDetector::DefaultEncoding, 79},
    {sipName_EncodingFromHTTPHeader, KEncodingDetector::EncodingFromHTTPHeader, 79},
    {sipName_EncodingFromMetaTag, KEncodingDetector::EncodingFromMetaTag, 79},
    {sipName_EncodingFromXMLHeader, KEncodingDetector::EncodingFromXMLHeader, 79},
    {sipName_Greek, KEncodingDetector::Greek, 78},
    {sipName_Hebrew, KEncodingDetector::Hebrew, 78},
    {sipName_Japanese, KEncodingDetector::Japanese, 78},
    {sipName_Korean, KEncodingDetector::Korean, 78},
    {sipName_None, KEncodingDetector::None, 78},
    {sipName_NorthernSaami, KEncodingDetector::NorthernSaami, 78},
    {sipName_SemiautomaticDetection, KEncodingDetector::SemiautomaticDetection, 78},
    {sipName_SouthEasternEurope, KEncodingDetector::SouthEasternEurope, 78},
    {sipName_Thai, KEncodingDetector::Thai, 78},
    {sipName_Turkish, KEncodingDetector::Turkish, 78},
    {sipName_Unicode, KEncodingDetector::Unicode, 78},
    {sipName_UserChosenEncoding, KEncodingDetector::UserChosenEncoding, 79},
    {sipName_WesternEuropean, KEncodingDetector::WesternEuropean, 78},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KEncodingDetector = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEncodingDetector,
        {0}
    },
    {
        sipNameNr_KEncodingDetector,
        {0, 0, 1},
        18, methods_KEncodingDetector,
        25, enummembers_KEncodingDetector,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KEncodingDetector,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEncodingDetector,
    0,
    0,
    0,
    release_KEncodingDetector,
    cast_KEncodingDetector,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 13106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13110 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 13116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13119 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 13122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 13125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13128 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 13131 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 13134 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKDesktopFile : public KDesktopFile
{
public:
    sipKDesktopFile(const char *,const QString&);
    sipKDesktopFile(const QString&);
    virtual ~sipKDesktopFile();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtectVirt_hasGroupImpl(bool,const QByteArray&) const;
    KConfigGroup sipProtectVirt_groupImpl(bool,const QByteArray&);
    void sipProtectVirt_deleteGroupImpl(bool,const QByteArray&,KConfigBase::WriteConfigFlags);
    bool sipProtectVirt_isGroupImmutableImpl(bool,const QByteArray&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasGroupImpl(const QByteArray&) const;
    KConfigGroup groupImpl(const QByteArray&);
    void deleteGroupImpl(const QByteArray&,KConfigBase::WriteConfigFlags);
    bool isGroupImmutableImpl(const QByteArray&) const;
    QStringList groupList() const;
    void sync();
    void markAsClean();
    KConfigBase::AccessMode accessMode() const;
    bool isImmutable() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKDesktopFile(const sipKDesktopFile &);
    sipKDesktopFile &operator = (const sipKDesktopFile &);

    char sipPyMethods[9];
};

sipKDesktopFile::sipKDesktopFile(const char *a0,const QString& a1): KDesktopFile(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKDesktopFile::sipKDesktopFile(const QString& a0): KDesktopFile(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKDesktopFile::~sipKDesktopFile()
{
    sipCommonDtor(sipPySelf);
}

bool sipKDesktopFile::hasGroupImpl(const QByteArray& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasGroupImpl);

    if (!sipMeth)
        return KConfig::hasGroupImpl(a0);

    extern bool sipVH_kdecore_34(sip_gilstate_t,PyObject *,const QByteArray&);

    return sipVH_kdecore_34(sipGILState,sipMeth,a0);
}

KConfigGroup sipKDesktopFile::groupImpl(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_groupImpl);

    if (!sipMeth)
        return KConfig::groupImpl(a0);

    extern KConfigGroup sipVH_kdecore_51(sip_gilstate_t,PyObject *,const QByteArray&);

    return sipVH_kdecore_51(sipGILState,sipMeth,a0);
}

void sipKDesktopFile::deleteGroupImpl(const QByteArray& a0,KConfigBase::WriteConfigFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_deleteGroupImpl);

    if (!sipMeth)
    {
        KConfig::deleteGroupImpl(a0,a1);
        return;
    }

    extern void sipVH_kdecore_50(sip_gilstate_t,PyObject *,const QByteArray&,KConfigBase::WriteConfigFlags);

    sipVH_kdecore_50(sipGILState,sipMeth,a0,a1);
}

bool sipKDesktopFile::isGroupImmutableImpl(const QByteArray& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isGroupImmutableImpl);

    if (!sipMeth)
        return KConfig::isGroupImmutableImpl(a0);

    extern bool sipVH_kdecore_34(sip_gilstate_t,PyObject *,const QByteArray&);

    return sipVH_kdecore_34(sipGILState,sipMeth,a0);
}

QStringList sipKDesktopFile::groupList() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_groupList);

    if (!sipMeth)
        return KConfig::groupList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_kdecore_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

void sipKDesktopFile::sync()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_sync);

    if (!sipMeth)
    {
        KConfig::sync();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKDesktopFile::markAsClean()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_markAsClean);

    if (!sipMeth)
    {
        KConfig::markAsClean();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

KConfigBase::AccessMode sipKDesktopFile::accessMode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_accessMode);

    if (!sipMeth)
        return KConfig::accessMode();

    extern KConfigBase::AccessMode sipVH_kdecore_52(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_52(sipGILState,sipMeth);
}

bool sipKDesktopFile::isImmutable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_isImmutable);

    if (!sipMeth)
        return KConfig::isImmutable();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKDesktopFile::sipProtectVirt_hasGroupImpl(bool sipSelfWasArg,const QByteArray& a0) const
{
    return (sipSelfWasArg ? KConfig::hasGroupImpl(a0) : hasGroupImpl(a0));
}

KConfigGroup sipKDesktopFile::sipProtectVirt_groupImpl(bool sipSelfWasArg,const QByteArray& a0)
{
    return (sipSelfWasArg ? KConfig::groupImpl(a0) : groupImpl(a0));
}

void sipKDesktopFile::sipProtectVirt_deleteGroupImpl(bool sipSelfWasArg,const QByteArray& a0,KConfigBase::WriteConfigFlags a1)
{
    (sipSelfWasArg ? KConfig::deleteGroupImpl(a0,a1) : deleteGroupImpl(a0,a1));
}

bool sipKDesktopFile::sipProtectVirt_isGroupImmutableImpl(bool sipSelfWasArg,const QByteArray& a0) const
{
    return (sipSelfWasArg ? KConfig::isGroupImmutableImpl(a0) : isGroupImmutableImpl(a0));
}


extern "C" {static PyObject *meth_KDesktopFile_hasGroupImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasGroupImpl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_hasGroupImpl(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasGroupImpl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_groupImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_groupImpl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KConfigGroup *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->sipProtectVirt_groupImpl(sipSelfWasArg,*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_KConfigGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_groupImpl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_deleteGroupImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_deleteGroupImpl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        KConfigBase::WriteConfigFlags a1def = KConfigBase::Normal;
        KConfigBase::WriteConfigFlags * a1 = &a1def;
        int a1State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_KConfigBase_WriteConfigFlags, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_deleteGroupImpl(sipSelfWasArg,*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(a1,sipType_KConfigBase_WriteConfigFlags,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_deleteGroupImpl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isGroupImmutableImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isGroupImmutableImpl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_isGroupImmutableImpl(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_isGroupImmutableImpl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isDesktopFile(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isDesktopFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KDesktopFile::isDesktopFile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_isDesktopFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isAuthorizedDesktopFile(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isAuthorizedDesktopFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KDesktopFile::isAuthorizedDesktopFile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_isAuthorizedDesktopFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_locateLocal(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_locateLocal(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KDesktopFile::locateLocal(*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(sipParseErr, sipName_KDesktopFile, sipName_locateLocal, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_desktopGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_desktopGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            KConfigGroup *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->desktopGroup());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KConfigGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_desktopGroup, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readType());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readIcon(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readIcon());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readIcon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readComment(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readComment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readComment());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readComment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readGenericName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readGenericName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readGenericName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readGenericName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readPath(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readPath());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readPath, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readDevice(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readDevice());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readDevice, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readUrl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readActions(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->readActions());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readActions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_actionGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_actionGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KConfigGroup *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->actionGroup(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KConfigGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_actionGroup, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasActionGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasActionGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasActionGroup(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasActionGroup, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasLinkType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasLinkType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasLinkType();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasLinkType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasApplicationType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasApplicationType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasApplicationType();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasApplicationType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasMimeTypeType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasMimeTypeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasMimeTypeType();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasMimeTypeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasDeviceType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasDeviceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasDeviceType();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_hasDeviceType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_tryExec(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_tryExec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->tryExec();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_tryExec, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readDocPath(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readDocPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->readDocPath());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_readDocPath, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_sortOrder(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_sortOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->sortOrder());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_sortOrder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_noDisplay(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_noDisplay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_noDisplay, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_copyTo(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_copyTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDesktopFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KDesktopFile *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->copyTo(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KDesktopFile,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_copyTo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_fileName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fileName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_fileName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_resource(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_resource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDesktopFile, &sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->resource();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDesktopFile, sipName_resource, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KDesktopFile(void *, const sipTypeDef *);}
static void *cast_KDesktopFile(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KDesktopFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfig)->ctd_cast((KConfig *)(KDesktopFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KDesktopFile(void *, int);}
static void release_KDesktopFile(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKDesktopFile *>(sipCppV);
    else
        delete reinterpret_cast<KDesktopFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KDesktopFile(sipSimpleWrapper *);}
static void dealloc_KDesktopFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKDesktopFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KDesktopFile(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KDesktopFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KDesktopFile(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKDesktopFile *sipCpp = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AAJ1", &a0Keep, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKDesktopFile(a0,*a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKDesktopFile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KDesktopFile[] = {{33, 255, 1}};


static PyMethodDef methods_KDesktopFile[] = {
    {SIP_MLNAME_CAST(sipName_actionGroup), meth_KDesktopFile_actionGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyTo), meth_KDesktopFile_copyTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteGroupImpl), meth_KDesktopFile_deleteGroupImpl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopGroup), meth_KDesktopFile_desktopGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KDesktopFile_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groupImpl), meth_KDesktopFile_groupImpl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasActionGroup), meth_KDesktopFile_hasActionGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasApplicationType), meth_KDesktopFile_hasApplicationType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasDeviceType), meth_KDesktopFile_hasDeviceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasGroupImpl), meth_KDesktopFile_hasGroupImpl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasLinkType), meth_KDesktopFile_hasLinkType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasMimeTypeType), meth_KDesktopFile_hasMimeTypeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAuthorizedDesktopFile), meth_KDesktopFile_isAuthorizedDesktopFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDesktopFile), meth_KDesktopFile_isDesktopFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGroupImmutableImpl), meth_KDesktopFile_isGroupImmutableImpl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locateLocal), meth_KDesktopFile_locateLocal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_noDisplay), meth_KDesktopFile_noDisplay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readActions), meth_KDesktopFile_readActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readComment), meth_KDesktopFile_readComment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDevice), meth_KDesktopFile_readDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDocPath), meth_KDesktopFile_readDocPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readGenericName), meth_KDesktopFile_readGenericName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readIcon), meth_KDesktopFile_readIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readName), meth_KDesktopFile_readName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readPath), meth_KDesktopFile_readPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readType), meth_KDesktopFile_readType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readUrl), meth_KDesktopFile_readUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_KDesktopFile_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sortOrder), meth_KDesktopFile_sortOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tryExec), meth_KDesktopFile_tryExec, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KDesktopFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KDesktopFile,
        {0}
    },
    {
        sipNameNr_KDesktopFile,
        {0, 0, 1},
        30, methods_KDesktopFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KDesktopFile,
    0,
    init_KDesktopFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDesktopFile,
    0,
    0,
    0,
    release_KDesktopFile,
    cast_KDesktopFile,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdedmodule.sip"
#include <kdedmodule.h>
#line 14388 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.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.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool 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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipKDEDModule::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKDEDModule::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKDEDModule::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKDEDModule::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKDEDModule::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKDEDModule::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKDEDModule::sipProtect_sender() const
{
    return QObject::sender();
}

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_sender(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDEDModule, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 14688 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDEDModule, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_receivers(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KDEDModule, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 14730 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDEDModule, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_KDEDModule, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_KDEDModule, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_KDEDModule, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_KDEDModule, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_KDEDModule, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_setModuleName(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_setModuleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KDEDModule, sipName_setModuleName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDEDModule_moduleName(PyObject *, PyObject *);}
static PyObject *meth_KDEDModule_moduleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDEDModule *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KDEDModule, sipName_moduleName, NULL);

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KDEDModule(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KDEDModule(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KDEDModule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKDEDModule *sipCpp = 0;

    {
        QObject * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKDEDModule(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KDEDModule[] = {{134, 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_sender), meth_KDEDModule_sender, 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, 0},
    {"windowRegistered(qlonglong)", 0, 0},
    {"moduleDeleted(KDEDModule *)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KDEDModule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KDEDModule,
        {0}
    },
    {
        sipNameNr_KDEDModule,
        {0, 0, 1},
        9, methods_KDEDModule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KDEDModule,
    0,
    init_KDEDModule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDEDModule,
    0,
    0,
    0,
    release_KDEDModule,
    cast_KDEDModule,
    0,
    0,
    0
},
    &KDEDModule::staticMetaObject,
    0,
    pyqt4_signals_KDEDModule
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 15085 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 15089 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 15092 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static PyObject *meth_KDateTime_Spec_isValid(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &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(sipParseErr, sipName_Spec, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_timeZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_timeZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            KTimeZone *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->timeZone());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_timeZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_type(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            KDateTime::SpecType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KDateTime_SpecType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_isLocalZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_isLocalZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocalZone();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_isLocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_isClockTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_isClockTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isClockTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_isClockTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_isUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_isUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUtc();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_isUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_isOffsetFromUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_isOffsetFromUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOffsetFromUtc();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_isOffsetFromUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_utcOffset(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_utcOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime_Spec, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->utcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_utcOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_setType(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_setType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime::SpecType a0;
        int a1 = 0;
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|i", &sipSelf, sipType_KDateTime_Spec, &sipCpp, sipType_KDateTime_SpecType, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setType(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KTimeZone * a0;
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime_Spec, &sipCpp, sipType_KTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setType(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_setType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_equivalentTo(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_equivalentTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime_Spec, &sipCpp, sipType_KDateTime_Spec, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->equivalentTo(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_equivalentTo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_UTC(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_UTC(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime::Spec *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime::Spec(KDateTime::Spec::UTC());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime_Spec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_UTC, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_ClockTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_ClockTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime::Spec *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime::Spec(KDateTime::Spec::ClockTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime_Spec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_ClockTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_OffsetFromUTC(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_OffsetFromUTC(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            KDateTime::Spec *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime::Spec(KDateTime::Spec::OffsetFromUTC(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime_Spec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_OffsetFromUTC, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_Spec_LocalZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_Spec_LocalZone(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime::Spec *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime::Spec(KDateTime::Spec::LocalZone());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime_Spec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Spec, sipName_LocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KDateTime_Spec___ne__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime_Spec___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime::Spec *sipCpp = reinterpret_cast<KDateTime::Spec *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime_Spec));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime_Spec, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::Spec::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KDateTime_Spec,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime_Spec___eq__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime_Spec___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime::Spec *sipCpp = reinterpret_cast<KDateTime::Spec *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime_Spec));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime_Spec, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::Spec::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KDateTime_Spec,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KDateTime_Spec(void *, const sipTypeDef *);}
static void *cast_KDateTime_Spec(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KDateTime_Spec)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KDateTime_Spec(void *, int);}
static void release_KDateTime_Spec(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KDateTime::Spec *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KDateTime_Spec(void *, SIP_SSIZE_T, const void *);}
static void assign_KDateTime_Spec(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KDateTime::Spec *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KDateTime::Spec *>(sipSrc);
}


extern "C" {static void *array_KDateTime_Spec(SIP_SSIZE_T);}
static void *array_KDateTime_Spec(SIP_SSIZE_T sipNrElem)
{
    return new KDateTime::Spec[sipNrElem];
}


extern "C" {static void *copy_KDateTime_Spec(const void *, SIP_SSIZE_T);}
static void *copy_KDateTime_Spec(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KDateTime::Spec(reinterpret_cast<const KDateTime::Spec *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KDateTime_Spec(sipSimpleWrapper *);}
static void dealloc_KDateTime_Spec(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KDateTime_Spec(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KDateTime_Spec(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KDateTime_Spec(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KDateTime::Spec *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KTimeZone * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        KDateTime::SpecType a0;
        int a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|i", sipType_KDateTime_SpecType, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KDateTime::Spec * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KDateTime_Spec, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KDateTime_Spec[] = {
    {(void *)slot_KDateTime_Spec___ne__, ne_slot},
    {(void *)slot_KDateTime_Spec___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KDateTime_Spec[] = {
    {SIP_MLNAME_CAST(sipName_ClockTime), meth_KDateTime_Spec_ClockTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_LocalZone), meth_KDateTime_Spec_LocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_OffsetFromUTC), meth_KDateTime_Spec_OffsetFromUTC, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_UTC), meth_KDateTime_Spec_UTC, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_equivalentTo), meth_KDateTime_Spec_equivalentTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isClockTime), meth_KDateTime_Spec_isClockTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalZone), meth_KDateTime_Spec_isLocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOffsetFromUtc), meth_KDateTime_Spec_isOffsetFromUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUtc), meth_KDateTime_Spec_isUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KDateTime_Spec_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setType), meth_KDateTime_Spec_setType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeZone), meth_KDateTime_Spec_timeZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KDateTime_Spec_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffset), meth_KDateTime_Spec_utcOffset, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KDateTime_Spec = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDateTime__Spec,
        {0}
    },
    {
        sipNameNr_Spec,
        {71, 255, 0},
        14, methods_KDateTime_Spec,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KDateTime_Spec,
    init_KDateTime_Spec,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDateTime_Spec,
    assign_KDateTime_Spec,
    array_KDateTime_Spec,
    copy_KDateTime_Spec,
    release_KDateTime_Spec,
    cast_KDateTime_Spec,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 15744 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 15748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 15751 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 204 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 15754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 15757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 15763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 15766 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static PyObject *meth_KDateTime_isNull(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isValid(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &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(sipParseErr, sipName_KDateTime, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isDateOnly(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isDateOnly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateOnly();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isDateOnly, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_date(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_date(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->date());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_date, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_time(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_time(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            QTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->time());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_time, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_dateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_dateTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            QDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->dateTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_dateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_timeZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_timeZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KTimeZone *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->timeZone());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_timeZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_timeSpec(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_timeSpec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime::Spec *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime::Spec(sipCpp->timeSpec());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime_Spec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_timeSpec, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_timeType(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_timeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime::SpecType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->timeType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KDateTime_SpecType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_timeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isLocalZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isLocalZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocalZone();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isLocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isClockTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isClockTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isClockTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isClockTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUtc();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isOffsetFromUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isOffsetFromUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOffsetFromUtc();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isOffsetFromUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_utcOffset(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_utcOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->utcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_utcOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_isSecondOccurrence(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_isSecondOccurrence(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSecondOccurrence();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_isSecondOccurrence, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toUtc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toOffsetFromUtc(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toOffsetFromUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toOffsetFromUtc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toOffsetFromUtc(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toOffsetFromUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toLocalZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toLocalZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toLocalZone());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toLocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toClockTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toClockTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toClockTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toClockTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toZone(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toZone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KTimeZone, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toZone(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toTimeSpec(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toTimeSpec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime_Spec, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toTimeSpec(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->toTimeSpec(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toTimeSpec, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toTime_t(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toTime_t(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toTime_t();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setTime_t(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setTime_t(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTime_t(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setDateOnly(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setDateOnly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateOnly(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setDateOnly, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setDate(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDate * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDateTime, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDate(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setDate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTime * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDateTime, &sipCpp, sipType_QTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTime(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setDateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setDateTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDateTime, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDateTime(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setDateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setTimeSpec(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setTimeSpec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime_Spec, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTimeSpec(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setTimeSpec, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setSecondOccurrence(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setSecondOccurrence(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSecondOccurrence(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setSecondOccurrence, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_addMSecs(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_addMSecs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->addMSecs(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_addMSecs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_addSecs(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_addSecs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->addSecs(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_addSecs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_addDays(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_addDays(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->addDays(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_addDays, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_addMonths(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_addMonths(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->addMonths(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_addMonths, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_addYears(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_addYears(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KDateTime, &sipCpp, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(sipCpp->addYears(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_addYears, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_secsTo(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_secsTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->secsTo(*a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_secsTo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_secsTo_long(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_secsTo_long(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime, &a0))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->secsTo_long(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_secsTo_long, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_daysTo(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_daysTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysTo(*a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_daysTo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_currentLocalDateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_currentLocalDateTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::currentLocalDateTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_currentLocalDateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_currentUtcDateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_currentUtcDateTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::currentUtcDateTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_currentUtcDateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_currentDateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_currentDateTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KDateTime_Spec, &a0))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::currentDateTime(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_currentDateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_currentLocalDate(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_currentLocalDate(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(KDateTime::currentLocalDate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_currentLocalDate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_currentLocalTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_currentLocalTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(KDateTime::currentLocalTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_currentLocalTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_toString(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KDateTime, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        KDateTime::TimeFormat a0 = KDateTime::ISODate;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime_TimeFormat, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_toString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_fromString(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_fromString(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KDateTime::TimeFormat a1 = KDateTime::ISODate;
        bool a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|E", sipType_QString,&a0, &a0State, sipType_KDateTime_TimeFormat, &a1))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::fromString(*a0,a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const KTimeZones * a2 = 0;
        bool a3 = 1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J8b", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KTimeZones, &a2, &a3))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::fromString(*a0,*a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_fromString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setFromStringDefault(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setFromStringDefault(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KDateTime_Spec, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KDateTime::setFromStringDefault(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setFromStringDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_outOfRange(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_outOfRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->outOfRange();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_outOfRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_compare(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_compare(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KDateTime, &sipCpp, sipType_KDateTime, &a0))
        {
            KDateTime::Comparison sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->compare(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KDateTime_Comparison);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_compare, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_detach(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_detach(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KDateTime, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->detach();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_detach, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_setSimulatedSystemTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_setSimulatedSystemTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KDateTime, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KDateTime::setSimulatedSystemTime(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_setSimulatedSystemTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KDateTime_realCurrentLocalDateTime(PyObject *, PyObject *);}
static PyObject *meth_KDateTime_realCurrentLocalDateTime(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KDateTime(KDateTime::realCurrentLocalDateTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KDateTime, sipName_realCurrentLocalDateTime, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KDateTime___ge__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator>=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ge_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___gt__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator>(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,gt_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___le__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___le__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator<=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,le_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___lt__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,lt_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___ne__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___eq__(PyObject *,PyObject *);}
static PyObject *slot_KDateTime___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KDateTime, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KDateTime,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KDateTime(void *, const sipTypeDef *);}
static void *cast_KDateTime(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KDateTime)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KDateTime(void *, int);}
static void release_KDateTime(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KDateTime *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KDateTime(void *, SIP_SSIZE_T, const void *);}
static void assign_KDateTime(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KDateTime *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KDateTime *>(sipSrc);
}


extern "C" {static void *array_KDateTime(SIP_SSIZE_T);}
static void *array_KDateTime(SIP_SSIZE_T sipNrElem)
{
    return new KDateTime[sipNrElem];
}


extern "C" {static void *copy_KDateTime(const void *, SIP_SSIZE_T);}
static void *copy_KDateTime(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KDateTime(reinterpret_cast<const KDateTime *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KDateTime(sipSimpleWrapper *);}
static void dealloc_KDateTime(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KDateTime(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KDateTime(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KDateTime(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KDateTime *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        const KDateTime::Spec& a1def = KDateTime::Spec(KDateTime::LocalZone);
        const KDateTime::Spec * a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9", sipType_QDate, &a0, &a0State, sipType_KDateTime_Spec, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipCpp;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        const QTime * a1;
        int a1State = 0;
        const KDateTime::Spec& a2def = KDateTime::Spec(KDateTime::LocalZone);
        const KDateTime::Spec * a2 = &a2def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1|J9", sipType_QDate, &a0, &a0State, sipType_QTime, &a1, &a1State, sipType_KDateTime_Spec, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QTime *>(a1),sipType_QTime,a1State);

            return sipCpp;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;
        const KDateTime::Spec * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9", sipType_QDateTime, &a0, &a0State, sipType_KDateTime_Spec, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipCpp;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipCpp;
        }
    }

    {
        const KDateTime * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KDateTime, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KDateTime[] = {
    {(void *)slot_KDateTime___ge__, ge_slot},
    {(void *)slot_KDateTime___gt__, gt_slot},
    {(void *)slot_KDateTime___le__, le_slot},
    {(void *)slot_KDateTime___lt__, lt_slot},
    {(void *)slot_KDateTime___ne__, ne_slot},
    {(void *)slot_KDateTime___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KDateTime[] = {
    {SIP_MLNAME_CAST(sipName_addDays), meth_KDateTime_addDays, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMSecs), meth_KDateTime_addMSecs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMonths), meth_KDateTime_addMonths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addSecs), meth_KDateTime_addSecs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addYears), meth_KDateTime_addYears, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_compare), meth_KDateTime_compare, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentDateTime), meth_KDateTime_currentDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentLocalDate), meth_KDateTime_currentLocalDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentLocalDateTime), meth_KDateTime_currentLocalDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentLocalTime), meth_KDateTime_currentLocalTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentUtcDateTime), meth_KDateTime_currentUtcDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_date), meth_KDateTime_date, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateTime), meth_KDateTime_dateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysTo), meth_KDateTime_daysTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_detach), meth_KDateTime_detach, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_KDateTime_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isClockTime), meth_KDateTime_isClockTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateOnly), meth_KDateTime_isDateOnly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalZone), meth_KDateTime_isLocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KDateTime_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOffsetFromUtc), meth_KDateTime_isOffsetFromUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSecondOccurrence), meth_KDateTime_isSecondOccurrence, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUtc), meth_KDateTime_isUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KDateTime_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outOfRange), meth_KDateTime_outOfRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realCurrentLocalDateTime), meth_KDateTime_realCurrentLocalDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secsTo), meth_KDateTime_secsTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secsTo_long), meth_KDateTime_secsTo_long, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDate), meth_KDateTime_setDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateOnly), meth_KDateTime_setDateOnly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateTime), meth_KDateTime_setDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFromStringDefault), meth_KDateTime_setFromStringDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSecondOccurrence), meth_KDateTime_setSecondOccurrence, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSimulatedSystemTime), meth_KDateTime_setSimulatedSystemTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTime), meth_KDateTime_setTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTimeSpec), meth_KDateTime_setTimeSpec, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTime_t), meth_KDateTime_setTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_time), meth_KDateTime_time, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeSpec), meth_KDateTime_timeSpec, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeType), meth_KDateTime_timeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeZone), meth_KDateTime_timeZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toClockTime), meth_KDateTime_toClockTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLocalZone), meth_KDateTime_toLocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toOffsetFromUtc), meth_KDateTime_toOffsetFromUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_KDateTime_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTimeSpec), meth_KDateTime_toTimeSpec, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime_t), meth_KDateTime_toTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUtc), meth_KDateTime_toUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toZone), meth_KDateTime_toZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffset), meth_KDateTime_utcOffset, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KDateTime[] = {
    {sipName_After, KDateTime::After, 72},
    {sipName_AtEnd, KDateTime::AtEnd, 72},
    {sipName_AtStart, KDateTime::AtStart, 72},
    {sipName_Before, KDateTime::Before, 72},
    {sipName_ClockTime, KDateTime::ClockTime, 74},
    {sipName_EndsAt, KDateTime::EndsAt, 72},
    {sipName_Equal, KDateTime::Equal, 72},
    {sipName_ISODate, KDateTime::ISODate, 75},
    {sipName_Inside, KDateTime::Inside, 72},
    {sipName_Invalid, KDateTime::Invalid, 74},
    {sipName_LocalDate, KDateTime::LocalDate, 75},
    {sipName_LocalZone, KDateTime::LocalZone, 74},
    {sipName_OffsetFromUTC, KDateTime::OffsetFromUTC, 74},
    {sipName_Outside, KDateTime::Outside, 72},
    {sipName_QtTextDate, KDateTime::QtTextDate, 75},
    {sipName_RFC3339Date, KDateTime::RFC3339Date, 75},
    {sipName_RFCDate, KDateTime::RFCDate, 75},
    {sipName_RFCDateDay, KDateTime::RFCDateDay, 75},
    {sipName_StartsAt, KDateTime::StartsAt, 72},
    {sipName_TimeZone, KDateTime::TimeZone, 74},
    {sipName_UTC, KDateTime::UTC, 74},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KDateTime = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDateTime,
        {0}
    },
    {
        sipNameNr_KDateTime,
        {0, 0, 1},
        50, methods_KDateTime,
        21, enummembers_KDateTime,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KDateTime,
    init_KDateTime,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDateTime,
    assign_KDateTime,
    array_KDateTime,
    copy_KDateTime,
    release_KDateTime,
    cast_KDateTime,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcurrencycode.sip"
#include <kcurrencycode.h>
#line 17702 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcurrencycode.sip"
#include <kcurrencycode.h>
#line 17706 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


extern "C" {static int slot_KCurrencyCode_CurrencyStatusFlags___bool__(PyObject *);}
static int slot_KCurrencyCode_CurrencyStatusFlags___bool__(PyObject *sipSelf)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 17724 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 17754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KCurrencyCode::CurrencyStatusFlags *>(a0),sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KCurrencyCode_CurrencyStatusFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 17790 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(const_cast<KCurrencyCode::CurrencyStatusFlags *>(a0),sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KCurrencyCode_CurrencyStatusFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___invert__(PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___invert__(PyObject *sipSelf)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCurrencyCode::CurrencyStatusFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State, &a1))
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCurrencyCode::CurrencyStatusFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;
        KCurrencyCode::CurrencyStatusFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State, sipType_KCurrencyCode_CurrencyStatusFlags, &a1, &a1State))
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCurrencyCode::CurrencyStatusFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);
            sipReleaseType(a1,sipType_KCurrencyCode_CurrencyStatusFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State, &a1))
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KCurrencyCode::CurrencyStatusFlags(*a0 ^ a1);
#line 17899 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;
        KCurrencyCode::CurrencyStatusFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State, sipType_KCurrencyCode_CurrencyStatusFlags, &a1, &a1State))
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCurrencyCode::CurrencyStatusFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);
            sipReleaseType(a1,sipType_KCurrencyCode_CurrencyStatusFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State, &a1))
        {
            KCurrencyCode::CurrencyStatusFlags *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KCurrencyCode::CurrencyStatusFlags(*a0 | a1);
#line 17951 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KCurrencyCode_CurrencyStatusFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___int__(PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___int__(PyObject *sipSelf)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCurrencyCode_CurrencyStatusFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCurrencyCode::CurrencyStatusFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCurrencyCode_CurrencyStatusFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCurrencyCode::CurrencyStatusFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_KCurrencyCode_CurrencyStatusFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCurrencyCode_CurrencyStatusFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCurrencyCode::CurrencyStatusFlags *sipCpp = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCurrencyCode_CurrencyStatusFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCurrencyCode::CurrencyStatusFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCurrencyCode_CurrencyStatusFlags(void *, const sipTypeDef *);}
static void *cast_KCurrencyCode_CurrencyStatusFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KCurrencyCode_CurrencyStatusFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCurrencyCode_CurrencyStatusFlags(void *, int);}
static void release_KCurrencyCode_CurrencyStatusFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KCurrencyCode_CurrencyStatusFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_KCurrencyCode_CurrencyStatusFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KCurrencyCode::CurrencyStatusFlags *>(sipSrc);
}


extern "C" {static void *array_KCurrencyCode_CurrencyStatusFlags(SIP_SSIZE_T);}
static void *array_KCurrencyCode_CurrencyStatusFlags(SIP_SSIZE_T sipNrElem)
{
    return new KCurrencyCode::CurrencyStatusFlags[sipNrElem];
}


extern "C" {static void *copy_KCurrencyCode_CurrencyStatusFlags(const void *, SIP_SSIZE_T);}
static void *copy_KCurrencyCode_CurrencyStatusFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KCurrencyCode::CurrencyStatusFlags(reinterpret_cast<const KCurrencyCode::CurrencyStatusFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KCurrencyCode_CurrencyStatusFlags(sipSimpleWrapper *);}
static void dealloc_KCurrencyCode_CurrencyStatusFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KCurrencyCode_CurrencyStatusFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KCurrencyCode_CurrencyStatusFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCurrencyCode_CurrencyStatusFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KCurrencyCode::CurrencyStatusFlags *sipCpp = 0;

    {
        const KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCurrencyCode::CurrencyStatusFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KCurrencyCode::CurrencyStatusFlags *>(a0),sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCurrencyCode::CurrencyStatusFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCurrencyCode::CurrencyStatusFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KCurrencyCode_CurrencyStatusFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_KCurrencyCode_CurrencyStatusFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KCurrencyCode::CurrencyStatusFlags **sipCppPtr = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KCurrencyCode::CurrencyStatusFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCurrencyCode_CurrencyStatus)) ||
            sipCanConvertToType(sipPy, sipType_KCurrencyCode_CurrencyStatusFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCurrencyCode_CurrencyStatus)))
{
    *sipCppPtr = new KCurrencyCode::CurrencyStatusFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KCurrencyCode::CurrencyStatusFlags *>(sipConvertToType(sipPy, sipType_KCurrencyCode_CurrencyStatusFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 18246 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KCurrencyCode_CurrencyStatusFlags[] = {
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___bool__, bool_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___ne__, ne_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___eq__, eq_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___invert__, invert_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___and__, and_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___xor__, xor_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___or__, or_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___int__, int_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___ixor__, ixor_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___ior__, ior_slot},
    {(void *)slot_KCurrencyCode_CurrencyStatusFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCurrencyCode_CurrencyStatusFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCurrencyCode__CurrencyStatusFlags,
        {0}
    },
    {
        sipNameNr_CurrencyStatusFlags,
        {66, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KCurrencyCode_CurrencyStatusFlags,
    init_KCurrencyCode_CurrencyStatusFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCurrencyCode_CurrencyStatusFlags,
    assign_KCurrencyCode_CurrencyStatusFlags,
    array_KCurrencyCode_CurrencyStatusFlags,
    copy_KCurrencyCode_CurrencyStatusFlags,
    release_KCurrencyCode_CurrencyStatusFlags,
    cast_KCurrencyCode_CurrencyStatusFlags,
    convertTo_KCurrencyCode_CurrencyStatusFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcurrencycode.sip"
#include <kcurrencycode.h>
#line 18319 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 18323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 18326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 18329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcurrencycode.sip"
#include <kcurrencycode.h>
#line 18332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 18335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKCurrencyCode : public KCurrencyCode
{
public:
    sipKCurrencyCode(const QString&,const QString&);
    sipKCurrencyCode(const QFileInfo&,const QString&);
    sipKCurrencyCode(const KCurrencyCode&);
    ~sipKCurrencyCode();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCurrencyCode(const sipKCurrencyCode &);
    sipKCurrencyCode &operator = (const sipKCurrencyCode &);
};

sipKCurrencyCode::sipKCurrencyCode(const QString& a0,const QString& a1): KCurrencyCode(a0,a1), sipPySelf(0)
{
}

sipKCurrencyCode::sipKCurrencyCode(const QFileInfo& a0,const QString& a1): KCurrencyCode(a0,a1), sipPySelf(0)
{
}

sipKCurrencyCode::sipKCurrencyCode(const KCurrencyCode& a0): KCurrencyCode(a0), sipPySelf(0)
{
}

sipKCurrencyCode::~sipKCurrencyCode()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_KCurrencyCode_isoCurrencyCode(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_isoCurrencyCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->isoCurrencyCode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_isoCurrencyCode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_isoCurrencyCodeNumeric(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_isoCurrencyCodeNumeric(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->isoCurrencyCodeNumeric());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_isoCurrencyCodeNumeric, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_name(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_isoName(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_isoName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->isoName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_isoName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_status(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_status(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            KCurrencyCode::CurrencyStatus sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KCurrencyCode_CurrencyStatus);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_status, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_dateIntroduced(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_dateIntroduced(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->dateIntroduced());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_dateIntroduced, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_dateSuspended(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_dateSuspended(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->dateSuspended());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_dateSuspended, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_dateWithdrawn(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_dateWithdrawn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->dateWithdrawn());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_dateWithdrawn, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_symbolList(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_symbolList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->symbolList());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_symbolList, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_defaultSymbol(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_defaultSymbol(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->defaultSymbol());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_defaultSymbol, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_unambiguousSymbol(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_unambiguousSymbol(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->unambiguousSymbol());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_unambiguousSymbol, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_hasSubunits(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_hasSubunits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasSubunits();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_hasSubunits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_hasSubunitsInCirculation(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_hasSubunitsInCirculation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasSubunitsInCirculation();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_hasSubunitsInCirculation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_subunitSymbol(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_subunitSymbol(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->subunitSymbol());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_subunitSymbol, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_subunitsPerUnit(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_subunitsPerUnit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->subunitsPerUnit();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_subunitsPerUnit, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_decimalPlaces(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_decimalPlaces(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->decimalPlaces();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_decimalPlaces, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_countriesUsingCurrency(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_countriesUsingCurrency(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->countriesUsingCurrency());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_countriesUsingCurrency, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_isValid(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCurrencyCode, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        KCurrencyCode::CurrencyStatusFlags * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_KCurrencyCode_CurrencyStatusFlags, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCurrencyCode::isValid(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KCurrencyCode_CurrencyStatusFlags,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_allCurrencyCodesList(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_allCurrencyCodesList(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCurrencyCode::CurrencyStatusFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_KCurrencyCode_CurrencyStatusFlags, &a0, &a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KCurrencyCode::allCurrencyCodesList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCurrencyCode_CurrencyStatusFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_allCurrencyCodesList, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCurrencyCode_currencyCodeToName(PyObject *, PyObject *);}
static PyObject *meth_KCurrencyCode_currencyCodeToName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCurrencyCode::currencyCodeToName(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCurrencyCode, sipName_currencyCodeToName, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCurrencyCode(void *, const sipTypeDef *);}
static void *cast_KCurrencyCode(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KCurrencyCode)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCurrencyCode(void *, int);}
static void release_KCurrencyCode(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCurrencyCode *>(sipCppV);
    else
        delete reinterpret_cast<KCurrencyCode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCurrencyCode(sipSimpleWrapper *);}
static void dealloc_KCurrencyCode(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCurrencyCode *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCurrencyCode(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KCurrencyCode(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCurrencyCode(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCurrencyCode *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCurrencyCode(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QFileInfo * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J1", sipType_QFileInfo, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCurrencyCode(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KCurrencyCode * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KCurrencyCode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCurrencyCode(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KCurrencyCode[] = {
    {SIP_MLNAME_CAST(sipName_allCurrencyCodesList), meth_KCurrencyCode_allCurrencyCodesList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countriesUsingCurrency), meth_KCurrencyCode_countriesUsingCurrency, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currencyCodeToName), meth_KCurrencyCode_currencyCodeToName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateIntroduced), meth_KCurrencyCode_dateIntroduced, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateSuspended), meth_KCurrencyCode_dateSuspended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateWithdrawn), meth_KCurrencyCode_dateWithdrawn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decimalPlaces), meth_KCurrencyCode_decimalPlaces, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultSymbol), meth_KCurrencyCode_defaultSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubunits), meth_KCurrencyCode_hasSubunits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubunitsInCirculation), meth_KCurrencyCode_hasSubunitsInCirculation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KCurrencyCode_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isoCurrencyCode), meth_KCurrencyCode_isoCurrencyCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isoCurrencyCodeNumeric), meth_KCurrencyCode_isoCurrencyCodeNumeric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isoName), meth_KCurrencyCode_isoName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KCurrencyCode_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_KCurrencyCode_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subunitSymbol), meth_KCurrencyCode_subunitSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subunitsPerUnit), meth_KCurrencyCode_subunitsPerUnit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbolList), meth_KCurrencyCode_symbolList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unambiguousSymbol), meth_KCurrencyCode_unambiguousSymbol, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KCurrencyCode[] = {
    {sipName_ActiveCurrency, KCurrencyCode::ActiveCurrency, 67},
    {sipName_ObsoleteCurrency, KCurrencyCode::ObsoleteCurrency, 67},
    {sipName_SuspendedCurrency, KCurrencyCode::SuspendedCurrency, 67},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCurrencyCode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCurrencyCode,
        {0}
    },
    {
        sipNameNr_KCurrencyCode,
        {0, 0, 1},
        20, methods_KCurrencyCode,
        3, enummembers_KCurrencyCode,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KCurrencyCode,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCurrencyCode,
    0,
    0,
    0,
    release_KCurrencyCode,
    cast_KCurrencyCode,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 19125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 19135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 19141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKCoreConfigSkeleton_ItemIntList : public KCoreConfigSkeleton::ItemIntList
{
public:
    sipKCoreConfigSkeleton_ItemIntList(const QString&,const QString&,QList<int>&,const QList<int>&);
    virtual ~sipKCoreConfigSkeleton_ItemIntList();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_readImmutability(const KConfigGroup&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setDefaultValue(const QList<int>&);
    void setDefault();
    void writeConfig(KConfig *);
    void readConfig(KConfig *);
    void readDefault(KConfig *);
    void setProperty(const QVariant&);
    bool isEqual(const QVariant&) const;
    QVariant property() const;
    QVariant minValue() const;
    QVariant maxValue() const;
    void swapDefault();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCoreConfigSkeleton_ItemIntList(const sipKCoreConfigSkeleton_ItemIntList &);
    sipKCoreConfigSkeleton_ItemIntList &operator = (const sipKCoreConfigSkeleton_ItemIntList &);

    char sipPyMethods[11];
};

sipKCoreConfigSkeleton_ItemIntList::sipKCoreConfigSkeleton_ItemIntList(const QString& a0,const QString& a1,QList<int>& a2,const QList<int>& a3): KCoreConfigSkeleton::ItemIntList(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKCoreConfigSkeleton_ItemIntList::~sipKCoreConfigSkeleton_ItemIntList()
{
    sipCommonDtor(sipPySelf);
}

void sipKCoreConfigSkeleton_ItemIntList::setDefaultValue(const QList<int>& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setDefaultValue);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::setDefaultValue(a0);
        return;
    }

    extern void sipVH_kdecore_36(sip_gilstate_t,PyObject *,const QList<int>&);

    sipVH_kdecore_36(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemIntList::setDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::setDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemIntList::writeConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_writeConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::writeConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemIntList::readConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_readConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::readConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemIntList::readDefault(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_readDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::readDefault(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemIntList::setProperty(const QVariant& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setProperty);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::setProperty(a0);
        return;
    }

    typedef void (*sipVH_QtCore_2)(sip_gilstate_t,PyObject *,const QVariant&);

    ((sipVH_QtCore_2)(sipModuleAPI_kdecore_QtCore->em_virthandlers[2]))(sipGILState,sipMeth,a0);
}

bool sipKCoreConfigSkeleton_ItemIntList::isEqual(const QVariant& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_isEqual);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemIntList::isEqual(a0);

    extern bool sipVH_kdecore_49(sip_gilstate_t,PyObject *,const QVariant&);

    return sipVH_kdecore_49(sipGILState,sipMeth,a0);
}

QVariant sipKCoreConfigSkeleton_ItemIntList::property() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_property);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemIntList::property();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemIntList::minValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_minValue);

    if (!sipMeth)
        return KConfigSkeletonItem::minValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemIntList::maxValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_maxValue);

    if (!sipMeth)
        return KConfigSkeletonItem::maxValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemIntList::swapDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_swapDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemIntList::swapDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemIntList::sipProtect_readImmutability(const KConfigGroup& a0)
{
    KConfigSkeletonItem::readImmutability(a0);
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readImmutability(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readImmutability(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KConfigGroup * a0;
        sipKCoreConfigSkeleton_ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_readImmutability(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_readImmutability, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::readConfig(a0) : sipCpp->readConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setProperty(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::setProperty(*a0) : sipCpp->setProperty(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_setProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_isEqual(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_isEqual(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::isEqual(*a0) : sipCpp->isEqual(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_isEqual, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_property(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::property() : sipCpp->property()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<int> * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_QList_1800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<int> *>(a0),sipType_QList_1800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_setValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_value(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->value();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_value, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setDefaultValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setDefaultValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QList<int> * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_QList_1800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::setDefaultValue(*a0) : sipCpp->setDefaultValue(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<int> *>(a0),sipType_QList_1800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_setDefaultValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_setDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::setDefault() : sipCpp->setDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_setDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::writeConfig(a0) : sipCpp->writeConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_writeConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_readDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::readDefault(a0) : sipCpp->readDefault(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_readDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemIntList_swapDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemIntList_swapDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemIntList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemIntList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemIntList::swapDefault() : sipCpp->swapDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemIntList, sipName_swapDefault, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCoreConfigSkeleton_ItemIntList(void *, const sipTypeDef *);}
static void *cast_KCoreConfigSkeleton_ItemIntList(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KCoreConfigSkeleton_ItemIntList)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfigSkeletonItem)->ctd_cast((KConfigSkeletonItem *)(KCoreConfigSkeleton::ItemIntList *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCoreConfigSkeleton_ItemIntList(void *, int);}
static void release_KCoreConfigSkeleton_ItemIntList(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCoreConfigSkeleton_ItemIntList *>(sipCppV);
    else
        delete reinterpret_cast<KCoreConfigSkeleton::ItemIntList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCoreConfigSkeleton_ItemIntList(sipSimpleWrapper *);}
static void dealloc_KCoreConfigSkeleton_ItemIntList(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCoreConfigSkeleton_ItemIntList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCoreConfigSkeleton_ItemIntList(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KCoreConfigSkeleton_ItemIntList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCoreConfigSkeleton_ItemIntList(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCoreConfigSkeleton_ItemIntList *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QList<int> * a2;
        int a2State = 0;
        const QList<int>& a3def = QList<int>();
        const QList<int> * a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QList_1800,&a2, &a2State, sipType_QList_1800,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCoreConfigSkeleton_ItemIntList(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QList_1800,a2State);
            sipReleaseType(const_cast<QList<int> *>(a3),sipType_QList_1800,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCoreConfigSkeleton_ItemIntList[] = {{41, 255, 1}};


static PyMethodDef methods_KCoreConfigSkeleton_ItemIntList[] = {
    {SIP_MLNAME_CAST(sipName_isEqual), meth_KCoreConfigSkeleton_ItemIntList_isEqual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KCoreConfigSkeleton_ItemIntList_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KCoreConfigSkeleton_ItemIntList_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDefault), meth_KCoreConfigSkeleton_ItemIntList_readDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readImmutability), meth_KCoreConfigSkeleton_ItemIntList_readImmutability, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefault), meth_KCoreConfigSkeleton_ItemIntList_setDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultValue), meth_KCoreConfigSkeleton_ItemIntList_setDefaultValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_KCoreConfigSkeleton_ItemIntList_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_KCoreConfigSkeleton_ItemIntList_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_swapDefault), meth_KCoreConfigSkeleton_ItemIntList_swapDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_KCoreConfigSkeleton_ItemIntList_value, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KCoreConfigSkeleton_ItemIntList_writeConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCoreConfigSkeleton_ItemIntList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCoreConfigSkeleton__ItemIntList,
        {0}
    },
    {
        sipNameNr_ItemIntList,
        {42, 255, 0},
        12, methods_KCoreConfigSkeleton_ItemIntList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCoreConfigSkeleton_ItemIntList,
    0,
    init_KCoreConfigSkeleton_ItemIntList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCoreConfigSkeleton_ItemIntList,
    0,
    0,
    0,
    release_KCoreConfigSkeleton_ItemIntList,
    cast_KCoreConfigSkeleton_ItemIntList,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 19877 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 19884 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 19887 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19890 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 19893 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKCoreConfigSkeleton_ItemUrlList : public KCoreConfigSkeleton::ItemUrlList
{
public:
    sipKCoreConfigSkeleton_ItemUrlList(const QString&,const QString&,KUrl::List&,const KUrl::List&);
    virtual ~sipKCoreConfigSkeleton_ItemUrlList();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_readImmutability(const KConfigGroup&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setDefaultValue(const KUrl::List&);
    void setDefault();
    void readConfig(KConfig *);
    void writeConfig(KConfig *);
    void readDefault(KConfig *);
    void setProperty(const QVariant&);
    bool isEqual(const QVariant&) const;
    QVariant property() const;
    QVariant minValue() const;
    QVariant maxValue() const;
    void swapDefault();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCoreConfigSkeleton_ItemUrlList(const sipKCoreConfigSkeleton_ItemUrlList &);
    sipKCoreConfigSkeleton_ItemUrlList &operator = (const sipKCoreConfigSkeleton_ItemUrlList &);

    char sipPyMethods[11];
};

sipKCoreConfigSkeleton_ItemUrlList::sipKCoreConfigSkeleton_ItemUrlList(const QString& a0,const QString& a1,KUrl::List& a2,const KUrl::List& a3): KCoreConfigSkeleton::ItemUrlList(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKCoreConfigSkeleton_ItemUrlList::~sipKCoreConfigSkeleton_ItemUrlList()
{
    sipCommonDtor(sipPySelf);
}

void sipKCoreConfigSkeleton_ItemUrlList::setDefaultValue(const KUrl::List& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setDefaultValue);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::setDefaultValue(a0);
        return;
    }

    extern void sipVH_kdecore_37(sip_gilstate_t,PyObject *,const KUrl::List&);

    sipVH_kdecore_37(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemUrlList::setDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::setDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemUrlList::readConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_readConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::readConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemUrlList::writeConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_writeConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::writeConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemUrlList::readDefault(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_readDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::readDefault(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemUrlList::setProperty(const QVariant& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setProperty);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::setProperty(a0);
        return;
    }

    typedef void (*sipVH_QtCore_2)(sip_gilstate_t,PyObject *,const QVariant&);

    ((sipVH_QtCore_2)(sipModuleAPI_kdecore_QtCore->em_virthandlers[2]))(sipGILState,sipMeth,a0);
}

bool sipKCoreConfigSkeleton_ItemUrlList::isEqual(const QVariant& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_isEqual);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemUrlList::isEqual(a0);

    extern bool sipVH_kdecore_49(sip_gilstate_t,PyObject *,const QVariant&);

    return sipVH_kdecore_49(sipGILState,sipMeth,a0);
}

QVariant sipKCoreConfigSkeleton_ItemUrlList::property() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_property);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemUrlList::property();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemUrlList::minValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_minValue);

    if (!sipMeth)
        return KConfigSkeletonItem::minValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemUrlList::maxValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_maxValue);

    if (!sipMeth)
        return KConfigSkeletonItem::maxValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemUrlList::swapDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_swapDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemUrlList::swapDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemUrlList::sipProtect_readImmutability(const KConfigGroup& a0)
{
    KConfigSkeletonItem::readImmutability(a0);
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readImmutability(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readImmutability(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KConfigGroup * a0;
        sipKCoreConfigSkeleton_ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_readImmutability(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_readImmutability, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::readConfig(a0) : sipCpp->readConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::writeConfig(a0) : sipCpp->writeConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_writeConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setProperty(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::setProperty(*a0) : sipCpp->setProperty(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_setProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_isEqual(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_isEqual(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::isEqual(*a0) : sipCpp->isEqual(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_isEqual, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_property(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::property() : sipCpp->property()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_setValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_value(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->value();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KUrl_List,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_value, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setDefaultValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setDefaultValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KUrl::List * a0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::setDefaultValue(*a0) : sipCpp->setDefaultValue(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_setDefaultValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_setDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::setDefault() : sipCpp->setDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_setDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_readDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::readDefault(a0) : sipCpp->readDefault(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_readDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_swapDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemUrlList_swapDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemUrlList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemUrlList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemUrlList::swapDefault() : sipCpp->swapDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemUrlList, sipName_swapDefault, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCoreConfigSkeleton_ItemUrlList(void *, const sipTypeDef *);}
static void *cast_KCoreConfigSkeleton_ItemUrlList(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KCoreConfigSkeleton_ItemUrlList)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfigSkeletonItem)->ctd_cast((KConfigSkeletonItem *)(KCoreConfigSkeleton::ItemUrlList *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCoreConfigSkeleton_ItemUrlList(void *, int);}
static void release_KCoreConfigSkeleton_ItemUrlList(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCoreConfigSkeleton_ItemUrlList *>(sipCppV);
    else
        delete reinterpret_cast<KCoreConfigSkeleton::ItemUrlList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCoreConfigSkeleton_ItemUrlList(sipSimpleWrapper *);}
static void dealloc_KCoreConfigSkeleton_ItemUrlList(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCoreConfigSkeleton_ItemUrlList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCoreConfigSkeleton_ItemUrlList(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KCoreConfigSkeleton_ItemUrlList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCoreConfigSkeleton_ItemUrlList(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCoreConfigSkeleton_ItemUrlList *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        KUrl::List * a2;
        const KUrl::List& a3def = KUrl::List();
        const KUrl::List * a3 = &a3def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9|J9", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KUrl_List, &a2, sipType_KUrl_List, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCoreConfigSkeleton_ItemUrlList(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCoreConfigSkeleton_ItemUrlList[] = {{41, 255, 1}};


static PyMethodDef methods_KCoreConfigSkeleton_ItemUrlList[] = {
    {SIP_MLNAME_CAST(sipName_isEqual), meth_KCoreConfigSkeleton_ItemUrlList_isEqual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KCoreConfigSkeleton_ItemUrlList_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KCoreConfigSkeleton_ItemUrlList_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDefault), meth_KCoreConfigSkeleton_ItemUrlList_readDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readImmutability), meth_KCoreConfigSkeleton_ItemUrlList_readImmutability, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefault), meth_KCoreConfigSkeleton_ItemUrlList_setDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultValue), meth_KCoreConfigSkeleton_ItemUrlList_setDefaultValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_KCoreConfigSkeleton_ItemUrlList_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_KCoreConfigSkeleton_ItemUrlList_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_swapDefault), meth_KCoreConfigSkeleton_ItemUrlList_swapDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_KCoreConfigSkeleton_ItemUrlList_value, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KCoreConfigSkeleton_ItemUrlList_writeConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCoreConfigSkeleton_ItemUrlList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCoreConfigSkeleton__ItemUrlList,
        {0}
    },
    {
        sipNameNr_ItemUrlList,
        {42, 255, 0},
        12, methods_KCoreConfigSkeleton_ItemUrlList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCoreConfigSkeleton_ItemUrlList,
    0,
    init_KCoreConfigSkeleton_ItemUrlList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCoreConfigSkeleton_ItemUrlList,
    0,
    0,
    0,
    release_KCoreConfigSkeleton_ItemUrlList,
    cast_KCoreConfigSkeleton_ItemUrlList,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 20621 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 20625 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 20628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 20631 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 20634 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 20637 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKCoreConfigSkeleton_ItemPathList : public KCoreConfigSkeleton::ItemPathList
{
public:
    sipKCoreConfigSkeleton_ItemPathList(const QString&,const QString&,QStringList&,const QStringList&);
    virtual ~sipKCoreConfigSkeleton_ItemPathList();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_readImmutability(const KConfigGroup&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setDefaultValue(const QStringList&);
    void setDefault();
    void writeConfig(KConfig *);
    void readConfig(KConfig *);
    void readDefault(KConfig *);
    void setProperty(const QVariant&);
    bool isEqual(const QVariant&) const;
    QVariant property() const;
    QVariant minValue() const;
    QVariant maxValue() const;
    void swapDefault();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCoreConfigSkeleton_ItemPathList(const sipKCoreConfigSkeleton_ItemPathList &);
    sipKCoreConfigSkeleton_ItemPathList &operator = (const sipKCoreConfigSkeleton_ItemPathList &);

    char sipPyMethods[11];
};

sipKCoreConfigSkeleton_ItemPathList::sipKCoreConfigSkeleton_ItemPathList(const QString& a0,const QString& a1,QStringList& a2,const QStringList& a3): KCoreConfigSkeleton::ItemPathList(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKCoreConfigSkeleton_ItemPathList::~sipKCoreConfigSkeleton_ItemPathList()
{
    sipCommonDtor(sipPySelf);
}

void sipKCoreConfigSkeleton_ItemPathList::setDefaultValue(const QStringList& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setDefaultValue);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setDefaultValue(a0);
        return;
    }

    extern void sipVH_kdecore_38(sip_gilstate_t,PyObject *,const QStringList&);

    sipVH_kdecore_38(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemPathList::setDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemPathList::writeConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_writeConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemPathList::writeConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemPathList::readConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_readConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemPathList::readConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemPathList::readDefault(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_readDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::readDefault(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemPathList::setProperty(const QVariant& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setProperty);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setProperty(a0);
        return;
    }

    typedef void (*sipVH_QtCore_2)(sip_gilstate_t,PyObject *,const QVariant&);

    ((sipVH_QtCore_2)(sipModuleAPI_kdecore_QtCore->em_virthandlers[2]))(sipGILState,sipMeth,a0);
}

bool sipKCoreConfigSkeleton_ItemPathList::isEqual(const QVariant& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_isEqual);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemStringList::isEqual(a0);

    extern bool sipVH_kdecore_49(sip_gilstate_t,PyObject *,const QVariant&);

    return sipVH_kdecore_49(sipGILState,sipMeth,a0);
}

QVariant sipKCoreConfigSkeleton_ItemPathList::property() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_property);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemStringList::property();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemPathList::minValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_minValue);

    if (!sipMeth)
        return KConfigSkeletonItem::minValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemPathList::maxValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_maxValue);

    if (!sipMeth)
        return KConfigSkeletonItem::maxValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemPathList::swapDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_swapDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::swapDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemPathList::sipProtect_readImmutability(const KConfigGroup& a0)
{
    KConfigSkeletonItem::readImmutability(a0);
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemPathList_readImmutability(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemPathList_readImmutability(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KConfigGroup * a0;
        sipKCoreConfigSkeleton_ItemPathList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemPathList, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_readImmutability(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemPathList, sipName_readImmutability, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemPathList_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemPathList_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemPathList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemPathList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemPathList::readConfig(a0) : sipCpp->readConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemPathList, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemPathList_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemPathList_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemPathList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemPathList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemPathList::writeConfig(a0) : sipCpp->writeConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemPathList, sipName_writeConfig, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCoreConfigSkeleton_ItemPathList(void *, const sipTypeDef *);}
static void *cast_KCoreConfigSkeleton_ItemPathList(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KCoreConfigSkeleton_ItemPathList)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KCoreConfigSkeleton_ItemStringList)->ctd_cast((KCoreConfigSkeleton::ItemStringList *)(KCoreConfigSkeleton::ItemPathList *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCoreConfigSkeleton_ItemPathList(void *, int);}
static void release_KCoreConfigSkeleton_ItemPathList(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCoreConfigSkeleton_ItemPathList *>(sipCppV);
    else
        delete reinterpret_cast<KCoreConfigSkeleton::ItemPathList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCoreConfigSkeleton_ItemPathList(sipSimpleWrapper *);}
static void dealloc_KCoreConfigSkeleton_ItemPathList(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCoreConfigSkeleton_ItemPathList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCoreConfigSkeleton_ItemPathList(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KCoreConfigSkeleton_ItemPathList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCoreConfigSkeleton_ItemPathList(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCoreConfigSkeleton_ItemPathList *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QStringList * a2;
        int a2State = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QStringList,&a2, &a2State, sipType_QStringList,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCoreConfigSkeleton_ItemPathList(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QStringList,a2State);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCoreConfigSkeleton_ItemPathList[] = {{61, 255, 1}};


static PyMethodDef methods_KCoreConfigSkeleton_ItemPathList[] = {
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KCoreConfigSkeleton_ItemPathList_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readImmutability), meth_KCoreConfigSkeleton_ItemPathList_readImmutability, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KCoreConfigSkeleton_ItemPathList_writeConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCoreConfigSkeleton_ItemPathList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCoreConfigSkeleton__ItemPathList,
        {0}
    },
    {
        sipNameNr_ItemPathList,
        {42, 255, 0},
        3, methods_KCoreConfigSkeleton_ItemPathList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCoreConfigSkeleton_ItemPathList,
    0,
    init_KCoreConfigSkeleton_ItemPathList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCoreConfigSkeleton_ItemPathList,
    0,
    0,
    0,
    release_KCoreConfigSkeleton_ItemPathList,
    cast_KCoreConfigSkeleton_ItemPathList,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 21107 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 21111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 21114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 21117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 21120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 21123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart5.cpp"


class sipKCoreConfigSkeleton_ItemStringList : public KCoreConfigSkeleton::ItemStringList
{
public:
    sipKCoreConfigSkeleton_ItemStringList(const QString&,const QString&,QStringList&,const QStringList&);
    virtual ~sipKCoreConfigSkeleton_ItemStringList();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_readImmutability(const KConfigGroup&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setDefaultValue(const QStringList&);
    void setDefault();
    void writeConfig(KConfig *);
    void readConfig(KConfig *);
    void readDefault(KConfig *);
    void setProperty(const QVariant&);
    bool isEqual(const QVariant&) const;
    QVariant property() const;
    QVariant minValue() const;
    QVariant maxValue() const;
    void swapDefault();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCoreConfigSkeleton_ItemStringList(const sipKCoreConfigSkeleton_ItemStringList &);
    sipKCoreConfigSkeleton_ItemStringList &operator = (const sipKCoreConfigSkeleton_ItemStringList &);

    char sipPyMethods[11];
};

sipKCoreConfigSkeleton_ItemStringList::sipKCoreConfigSkeleton_ItemStringList(const QString& a0,const QString& a1,QStringList& a2,const QStringList& a3): KCoreConfigSkeleton::ItemStringList(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKCoreConfigSkeleton_ItemStringList::~sipKCoreConfigSkeleton_ItemStringList()
{
    sipCommonDtor(sipPySelf);
}

void sipKCoreConfigSkeleton_ItemStringList::setDefaultValue(const QStringList& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setDefaultValue);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setDefaultValue(a0);
        return;
    }

    extern void sipVH_kdecore_38(sip_gilstate_t,PyObject *,const QStringList&);

    sipVH_kdecore_38(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemStringList::setDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemStringList::writeConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_writeConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::writeConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemStringList::readConfig(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_readConfig);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::readConfig(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemStringList::readDefault(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_readDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::readDefault(a0);
        return;
    }

    extern void sipVH_kdecore_35(sip_gilstate_t,PyObject *,KConfig *);

    sipVH_kdecore_35(sipGILState,sipMeth,a0);
}

void sipKCoreConfigSkeleton_ItemStringList::setProperty(const QVariant& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setProperty);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::setProperty(a0);
        return;
    }

    typedef void (*sipVH_QtCore_2)(sip_gilstate_t,PyObject *,const QVariant&);

    ((sipVH_QtCore_2)(sipModuleAPI_kdecore_QtCore->em_virthandlers[2]))(sipGILState,sipMeth,a0);
}

bool sipKCoreConfigSkeleton_ItemStringList::isEqual(const QVariant& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_isEqual);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemStringList::isEqual(a0);

    extern bool sipVH_kdecore_49(sip_gilstate_t,PyObject *,const QVariant&);

    return sipVH_kdecore_49(sipGILState,sipMeth,a0);
}

QVariant sipKCoreConfigSkeleton_ItemStringList::property() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_property);

    if (!sipMeth)
        return KCoreConfigSkeleton::ItemStringList::property();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemStringList::minValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_minValue);

    if (!sipMeth)
        return KConfigSkeletonItem::minValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

QVariant sipKCoreConfigSkeleton_ItemStringList::maxValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_maxValue);

    if (!sipMeth)
        return KConfigSkeletonItem::maxValue();

    extern QVariant sipVH_kdecore_48(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_48(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemStringList::swapDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_swapDefault);

    if (!sipMeth)
    {
        KCoreConfigSkeleton::ItemStringList::swapDefault();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKCoreConfigSkeleton_ItemStringList::sipProtect_readImmutability(const KConfigGroup& a0)
{
    KConfigSkeletonItem::readImmutability(a0);
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readImmutability(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readImmutability(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KConfigGroup * a0;
        sipKCoreConfigSkeleton_ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_readImmutability(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_readImmutability, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::readConfig(a0) : sipCpp->readConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setProperty(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::setProperty(*a0) : sipCpp->setProperty(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_setProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_isEqual(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_isEqual(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::isEqual(*a0) : sipCpp->isEqual(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_isEqual, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_property(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::property() : sipCpp->property()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_setValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_value(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->value();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_value, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setDefaultValue(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setDefaultValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QStringList * a0;
        int a0State = 0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::setDefaultValue(*a0) : sipCpp->setDefaultValue(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_setDefaultValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_setDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::setDefault() : sipCpp->setDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_setDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::writeConfig(a0) : sipCpp->writeConfig(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_writeConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_readDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::readDefault(a0) : sipCpp->readDefault(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_readDefault, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCoreConfigSkeleton_ItemStringList_swapDefault(PyObject *, PyObject *);}
static PyObject *meth_KCoreConfigSkeleton_ItemStringList_swapDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KCoreConfigSkeleton::ItemStringList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCoreConfigSkeleton_ItemStringList, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCoreConfigSkeleton::ItemStringList::swapDefault() : sipCpp->swapDefault());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemStringList, sipName_swapDefault, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCoreConfigSkeleton_ItemStringList(void *, const sipTypeDef *);}
static void *cast_KCoreConfigSkeleton_ItemStringList(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KCoreConfigSkeleton_ItemStringList)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfigSkeletonItem)->ctd_cast((KConfigSkeletonItem *)(KCoreConfigSkeleton::ItemStringList *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCoreConfigSkeleton_ItemStringList(void *, int);}
static void release_KCoreConfigSkeleton_ItemStringList(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCoreConfigSkeleton_ItemStringList *>(sipCppV);
    else
        delete reinterpret_cast<KCoreConfigSkeleton::ItemStringList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCoreConfigSkeleton_ItemStringList(sipSimpleWrapper *);}
static void dealloc_KCoreConfigSkeleton_ItemStringList(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCoreConfigSkeleton_ItemStringList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCoreConfigSkeleton_ItemStringList(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KCoreConfigSkeleton_ItemStringList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCoreConfigSkeleton_ItemStringList(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCoreConfigSkeleton_ItemStringList *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QStringList * a2;
        int a2State = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QStringList,&a2, &a2State, sipType_QStringList,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCoreConfigSkeleton_ItemStringList(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QStringList,a2State);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCoreConfigSkeleton_ItemStringList[] = {{41, 255, 1}};


static PyMethodDef methods_KCoreConfigSkeleton_ItemStringList[] = {
    {SIP_MLNAME_CAST(sipName_isEqual), meth_KCoreConfigSkeleton_ItemStringList_isEqual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KCoreConfigSkeleton_ItemStringList_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KCoreConfigSkeleton_ItemStringList_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDefault), meth_KCoreConfigSkeleton_ItemStringList_readDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readImmutability), meth_KCoreConfigSkeleton_ItemStringList_readImmutability, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefault), meth_KCoreConfigSkeleton_ItemStringList_setDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultValue), meth_KCoreConfigSkeleton_ItemStringList_setDefaultValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_KCoreConfigSkeleton_ItemStringList_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_KCoreConfigSkeleton_ItemStringList_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_swapDefault), meth_KCoreConfigSkeleton_ItemStringList_swapDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_KCoreConfigSkeleton_ItemStringList_value, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KCoreConfigSkeleton_ItemStringList_writeConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCoreConfigSkeleton_ItemStringList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCoreConfigSkeleton__ItemStringList,
        {0}
    },
    {
        sipNameNr_ItemStringList,
        {42, 255, 0},
        12, methods_KCoreConfigSkeleton_ItemStringList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCoreConfigSkeleton_ItemStringList,
    0,
    init_KCoreConfigSkeleton_ItemStringList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCoreConfigSkeleton_ItemStringList,
    0,
    0,
    0,
    release_KCoreConfigSkeleton_ItemStringList,
    cast_KCoreConfigSkeleton_ItemStringList,
    0,
    0,
    0
},
    0,
    0,
    0
};
