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

#include "sipAPIkdecore.h"

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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 16 "sipkdecorepart5.cpp"


extern "C" {static int slot_KLockFile_LockFlags___bool__(PyObject *sipSelf);}
static int slot_KLockFile_LockFlags___bool__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "sipkdecorepart5.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KLockFile_LockFlags___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KLockFile_LockFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KLockFile::LockFlags * a0;
        int a0State = 0;

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 62 "sipkdecorepart5.cpp"

            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KLockFile_LockFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KLockFile::LockFlags * a0;
        int a0State = 0;

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 94 "sipkdecorepart5.cpp"

            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___invert__(PyObject *sipSelf);}
static PyObject *slot_KLockFile_LockFlags___invert__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KLockFile::LockFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KLockFile_LockFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KLockFile::LockFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KLockFile_LockFlags,&a0,&a0State,&a1))
        {
            KLockFile::LockFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

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

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KLockFile_LockFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KLockFile::LockFlags * a0;
        int a0State = 0;
        KLockFile::LockFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KLockFile_LockFlags,&a0,&a0State,sipType_KLockFile_LockFlags,&a1,&a1State))
        {
            KLockFile::LockFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);
            sipReleaseType(a1,sipType_KLockFile_LockFlags,a1State);

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

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KLockFile_LockFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KLockFile::LockFlags * a0;
        int a0State = 0;
        KLockFile::LockFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KLockFile_LockFlags,&a0,&a0State,sipType_KLockFile_LockFlags,&a1,&a1State))
        {
            KLockFile::LockFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);
            sipReleaseType(a1,sipType_KLockFile_LockFlags,a1State);

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

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___int__(PyObject *sipSelf);}
static PyObject *slot_KLockFile_LockFlags___int__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KLockFile::LockFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KLockFile_LockFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KLockFile::LockFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KLockFile_LockFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KLockFile::LockFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLockFile_LockFlags(void *, const void*);}
static void assign_KLockFile_LockFlags(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KLockFile::LockFlags *>(sipDst) = *reinterpret_cast<const KLockFile::LockFlags *>(sipSrc);
}


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


extern "C" {static void *init_KLockFile_LockFlags(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KLockFile_LockFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KLockFile::LockFlags *sipCpp = 0;

    if (!sipCpp)
    {
        const KLockFile::LockFlags * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KLockFile_LockFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile::LockFlags(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile::LockFlags(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLockFile_LockFlag)) ||
            sipCanConvertToType(sipPy, sipType_KLockFile_LockFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLockFile_LockFlag)))
{
    *sipCppPtr = new KLockFile::LockFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLockFile::LockFlags *>(sipConvertToType(sipPy, sipType_KLockFile_LockFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 465 "sipkdecorepart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLockFile_LockFlags[] = {
    {(void *)slot_KLockFile_LockFlags___bool__, bool_slot},
    {(void *)slot_KLockFile_LockFlags___ne__, ne_slot},
    {(void *)slot_KLockFile_LockFlags___eq__, eq_slot},
    {(void *)slot_KLockFile_LockFlags___invert__, invert_slot},
    {(void *)slot_KLockFile_LockFlags___and__, and_slot},
    {(void *)slot_KLockFile_LockFlags___xor__, xor_slot},
    {(void *)slot_KLockFile_LockFlags___or__, or_slot},
    {(void *)slot_KLockFile_LockFlags___int__, int_slot},
    {(void *)slot_KLockFile_LockFlags___ixor__, ixor_slot},
    {(void *)slot_KLockFile_LockFlags___ior__, ior_slot},
    {(void *)slot_KLockFile_LockFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLockFile_LockFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLockFile__LockFlags,
        {0}
    },
    sipNameNr_LockFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {100, 255, 0},
    0,
    slots_KLockFile_LockFlags,
    0, 0,
    0, 0,
    0, 0,
    init_KLockFile_LockFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLockFile_LockFlags,
    release_KLockFile_LockFlags,
    cast_KLockFile_LockFlags,
    convertTo_KLockFile_LockFlags,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KLockFile_LockFlags,
    0,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 533 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 537 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 540 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 543 "sipkdecorepart5.cpp"


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

    {
        KLockFile::LockFlags a0def = KLockFile::LockFlags();
        KLockFile::LockFlags * a0 = &a0def;
        int a0State = 0;
        KLockFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1",&sipSelf,sipType_KLockFile,&sipCpp,sipType_KLockFile_LockFlags,&a0,&a0State))
        {
            KLockFile::LockResult sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lock(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            return sipConvertFromEnum(sipRes,sipType_KLockFile_LockResult);
        }
    }

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

    return NULL;
}


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

    {
        KLockFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocked();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLockFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLockFile,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLockFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLockFile,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->staleTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLockFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        QString * a1;
        QString * a2;
        KLockFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLockFile,&sipCpp))
        {
            bool sipRes;
            a1 = new QString();
            a2 = new QString();

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

            return sipBuildResult(0,"(biNN)",sipRes,a0,a1,sipType_QString,NULL,a2,sipType_QString,NULL);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLockFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_KComponentData,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile(*a0,*a1);
            Py_END_ALLOW_THREADS

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

    return sipCpp;
}


static PyMethodDef methods_KLockFile[] = {
    {SIP_MLNAME_CAST(sipName_getLockInfo), meth_KLockFile_getLockInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocked), meth_KLockFile_isLocked, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lock), meth_KLockFile_lock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStaleTime), meth_KLockFile_setStaleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staleTime), meth_KLockFile_staleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unlock), meth_KLockFile_unlock, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLockFile[] = {
    {sipName_ForceFlag, KLockFile::ForceFlag, 101},
    {sipName_LockError, KLockFile::LockError, 103},
    {sipName_LockFail, KLockFile::LockFail, 103},
    {sipName_LockOK, KLockFile::LockOK, 103},
    {sipName_LockStale, KLockFile::LockStale, 103},
    {sipName_NoBlockFlag, KLockFile::NoBlockFlag, 101},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLockFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLockFile,
        {0}
    },
    sipNameNr_KLockFile,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    6, methods_KLockFile,
    6, enummembers_KLockFile,
    0, 0,
    init_KLockFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLockFile,
    release_KLockFile,
    cast_KLockFile,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 842 "sipkdecorepart5.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 846 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 849 "sipkdecorepart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 902 "sipkdecorepart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 905 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 908 "sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 911 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 914 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 917 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 920 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 923 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 926 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 929 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 932 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 935 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 938 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 941 "sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 944 "sipkdecorepart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 947 "sipkdecorepart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 950 "sipkdecorepart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 953 "sipkdecorepart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 956 "sipkdecorepart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 971 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 974 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 977 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 980 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 983 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 986 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 989 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 992 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 995 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 998 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 1001 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 1004 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 1007 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1010 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1013 "sipkdecorepart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1016 "sipkdecorepart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1019 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1022 "sipkdecorepart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1053 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1056 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1059 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1062 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1065 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1068 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1071 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1074 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1077 "sipkdecorepart5.cpp"


class sipKAutoSaveFile : public KAutoSaveFile
{
public:
    sipKAutoSaveFile(const KUrl&,QObject *);
    sipKAutoSaveFile(QObject *);
    virtual ~sipKAutoSaveFile();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void releaseLock();
    bool open(QIODevice::OpenMode);
    bool isSequential() const;
    void close();
    qint64 size() const;
    qint64 pos() const;
    bool seek(qint64);
    bool atEnd() const;
    QAbstractFileEngine * fileEngine() const;
    qint64 readData(char *,qint64);
    qint64 readLineData(char *,qint64);
    qint64 writeData(const char *,PY_LONG_LONG);
    bool reset();
    qint64 bytesAvailable() const;
    qint64 bytesToWrite() const;
    bool canReadLine() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
    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:
    sipKAutoSaveFile(const sipKAutoSaveFile &);
    sipKAutoSaveFile &operator = (const sipKAutoSaveFile &);

    char sipPyMethods[25];
};

sipKAutoSaveFile::sipKAutoSaveFile(const KUrl& a0,QObject *a1): KAutoSaveFile(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAutoSaveFile::sipKAutoSaveFile(QObject *a0): KAutoSaveFile(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKAutoSaveFile::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KAutoSaveFile);
}

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

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

    return _id;
}

void *sipKAutoSaveFile::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KAutoSaveFile,_clname)) ? this : KAutoSaveFile::qt_metacast(_clname);
}

void sipKAutoSaveFile::releaseLock()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KAutoSaveFile::releaseLock();
        return;
    }

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

bool sipKAutoSaveFile::open(QIODevice::OpenMode a0)
{
    typedef bool (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KAutoSaveFile::open(a0);

    return ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,meth,a0);
}

bool sipKAutoSaveFile::isSequential() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QFile::isSequential();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKAutoSaveFile::close()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QFile::close();
        return;
    }

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

qint64 sipKAutoSaveFile::size() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_size);

    if (!meth)
        return QFile::size();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKAutoSaveFile::pos() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_pos);

    if (!meth)
        return QFile::pos();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKAutoSaveFile::seek(qint64 a0)
{
    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QFile::seek(a0);

    return ((sipVH_QtCore_28)(sipModuleAPI_kdecore_QtCore->em_virthandlers[28]))(sipGILState,meth,a0);
}

bool sipKAutoSaveFile::atEnd() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QFile::atEnd();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

QAbstractFileEngine * sipKAutoSaveFile::fileEngine() const
{
    typedef QAbstractFileEngine * (*sipVH_QtCore_12)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QFile::fileEngine();

    return ((sipVH_QtCore_12)(sipModuleAPI_kdecore_QtCore->em_virthandlers[12]))(sipGILState,meth);
}

qint64 sipKAutoSaveFile::readData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QFile::readData(a0,a1);

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

qint64 sipKAutoSaveFile::readLineData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_readLineData);

    if (!meth)
        return QFile::readLineData(a0,a1);

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

qint64 sipKAutoSaveFile::writeData(const char *a0,PY_LONG_LONG a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_writeData);

    if (!meth)
        return QFile::writeData(a0,a1);

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

bool sipKAutoSaveFile::reset()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_reset);

    if (!meth)
        return QIODevice::reset();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

qint64 sipKAutoSaveFile::bytesAvailable() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!meth)
        return QIODevice::bytesAvailable();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKAutoSaveFile::bytesToWrite() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!meth)
        return QIODevice::bytesToWrite();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKAutoSaveFile::canReadLine() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_canReadLine);

    if (!meth)
        return QIODevice::canReadLine();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKAutoSaveFile::waitForReadyRead(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!meth)
        return QIODevice::waitForReadyRead(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

bool sipKAutoSaveFile::waitForBytesWritten(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!meth)
        return QIODevice::waitForBytesWritten(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipKAutoSaveFile::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipKAutoSaveFile::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipKAutoSaveFile::sipProtectVirt_readData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QFile::readData(a0,a1) : readData(a0,a1));
}

qint64 sipKAutoSaveFile::sipProtectVirt_readLineData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QFile::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipKAutoSaveFile::sipProtectVirt_writeData(bool sipSelfWasArg,const char *a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QFile::writeData(a0,a1) : writeData(a0,a1));
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KAutoSaveFile,&sipCpp,sipType_QIODevice_OpenMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KAutoSaveFile,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KAutoSaveFile,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 152 "/usr/local/share/py-sip/QtCore/qfile.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 1919 "sipkdecorepart5.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KAutoSaveFile,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 186 "/usr/local/share/py-sip/QtCore/qfile.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 1981 "sipkdecorepart5.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        SIP_SSIZE_T a1;
        sipKAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pk",&sipSelf,sipType_KAutoSaveFile,&sipCpp,&a0,&a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KAutoSaveFile *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAutoSaveFile,&sipCpp,sipType_KUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setManagedFile(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutoSaveFile,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KAutoSaveFile::releaseLock() : sipCpp->releaseLock());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        KAutoSaveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAutoSaveFile::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(sipArgsParsed,sipName_KAutoSaveFile,sipName_open);

    return NULL;
}


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

    {
        const KUrl * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|J1",sipType_KUrl,&a0,sipType_QString,&a1,&a1State))
        {
            QList<KAutoSaveFile *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAutoSaveFile *>(KAutoSaveFile::staleFiles(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1",sipType_QString,&a0,&a0State))
        {
            QList<KAutoSaveFile *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAutoSaveFile *>(KAutoSaveFile::allStaleFiles(*a0));
            Py_END_ALLOW_THREADS

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KAutoSaveFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QFile)->ctd_cast((QFile *)(KAutoSaveFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAutoSaveFile *>(sipCppV);
    else
        delete reinterpret_cast<KAutoSaveFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KAutoSaveFile[] = {
    {SIP_MLNAME_CAST(sipName_allStaleFiles), meth_KAutoSaveFile_allStaleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KAutoSaveFile_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KAutoSaveFile_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAutoSaveFile_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAutoSaveFile_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_managedFile), meth_KAutoSaveFile_managedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KAutoSaveFile_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), meth_KAutoSaveFile_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KAutoSaveFile_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KAutoSaveFile_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_releaseLock), meth_KAutoSaveFile_releaseLock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KAutoSaveFile_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManagedFile), meth_KAutoSaveFile_setManagedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KAutoSaveFile_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staleFiles), meth_KAutoSaveFile_staleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KAutoSaveFile_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KAutoSaveFile_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAutoSaveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoSaveFile,
        {0}
    },
    sipNameNr_KAutoSaveFile,
    -1,
    -1,
    {0, 0, 1},
    supers_KAutoSaveFile,
    0,
    17, methods_KAutoSaveFile,
    0, 0,
    0, 0,
    init_KAutoSaveFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutoSaveFile,
    release_KAutoSaveFile,
    cast_KAutoSaveFile,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KAutoSaveFile::staticMetaObject,
    0,
    0
};

#line 210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2362 "sipkdecorepart5.cpp"

#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2416 "sipkdecorepart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 2419 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 2422 "sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 2425 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 2428 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 2431 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 2434 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2437 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2440 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2443 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2446 "sipkdecorepart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 2449 "sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2452 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2455 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 2458 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2461 "sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 2464 "sipkdecorepart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 2467 "sipkdecorepart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 2470 "sipkdecorepart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 2473 "sipkdecorepart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 2476 "sipkdecorepart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 2491 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 2494 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 2497 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 2500 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 2503 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 2506 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 2509 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 2512 "sipkdecorepart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2543 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2546 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2549 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2552 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2555 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2558 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2561 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2564 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2567 "sipkdecorepart5.cpp"


class sipKTimeZoneData : public KTimeZoneData
{
public:
    sipKTimeZoneData();
    sipKTimeZoneData(const KTimeZoneData&);
    virtual ~sipKTimeZoneData();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_setPhases(const QList<KTimeZone::Phase>&,int);
    void sipProtect_setTransitions(const QList<KTimeZone::Transition>&);
    void sipProtect_setLeapSecondChanges(const QList<KTimeZone::LeapSeconds>&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTimeZoneData * clone() const;
    QList<QByteArray> abbreviations() const;
    QByteArray abbreviation(const QDateTime&) const;
    QList<int> utcOffsets() const;
    bool hasTransitions() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

sipKTimeZoneData::sipKTimeZoneData(): KTimeZoneData(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneData::sipKTimeZoneData(const KTimeZoneData& a0): KTimeZoneData(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

KTimeZoneData * sipKTimeZoneData::clone() const
{
    extern KTimeZoneData * sipVH_kdecore_23(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneData::clone();

    return sipVH_kdecore_23(sipGILState,meth);
}

QList<QByteArray> sipKTimeZoneData::abbreviations() const
{
    typedef QList<QByteArray> (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneData::abbreviations();

    return ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState,meth);
}

QByteArray sipKTimeZoneData::abbreviation(const QDateTime& a0) const
{
    extern QByteArray sipVH_kdecore_22(sip_gilstate_t,PyObject *,const QDateTime&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneData::abbreviation(a0);

    return sipVH_kdecore_22(sipGILState,meth,a0);
}

QList<int> sipKTimeZoneData::utcOffsets() const
{
    extern QList<int> sipVH_kdecore_21(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_utcOffsets);

    if (!meth)
        return KTimeZoneData::utcOffsets();

    return sipVH_kdecore_21(sipGILState,meth);
}

bool sipKTimeZoneData::hasTransitions() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_hasTransitions);

    if (!meth)
        return KTimeZoneData::hasTransitions();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTimeZoneData::sipProtect_setPhases(const QList<KTimeZone::Phase>& a0,int a1)
{
    KTimeZoneData::setPhases(a0,a1);
}

void sipKTimeZoneData::sipProtect_setTransitions(const QList<KTimeZone::Transition>& a0)
{
    KTimeZoneData::setTransitions(a0);
}

void sipKTimeZoneData::sipProtect_setLeapSecondChanges(const QList<KTimeZone::LeapSeconds>& a0)
{
    KTimeZoneData::setLeapSecondChanges(a0);
}


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

    {
        KTimeZoneData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneData::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZoneData,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>((sipSelfWasArg ? sipCpp->KTimeZoneData::abbreviations() : sipCpp->abbreviations()));
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KTimeZoneData::abbreviation(*a0) : sipCpp->abbreviation(*a0)));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZoneData,&sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>((sipSelfWasArg ? sipCpp->KTimeZoneData::utcOffsets() : sipCpp->utcOffsets()));
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZoneData,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->previousUtcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZoneData,&sipCpp))
        {
            QList<KTimeZone::Phase> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Phase>(sipCpp->phases());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneData::hasTransitions() : sipCpp->hasTransitions());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime& a0def = QDateTime();
        const QDateTime * a0 = &a0def;
        int a0State = 0;
        const QDateTime& a1def = QDateTime();
        const QDateTime * a1 = &a1def;
        int a1State = 0;
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1J1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QDateTime,&a0,&a0State,sipType_QDateTime,&a1,&a1State))
        {
            QList<KTimeZone::Transition> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Transition>(sipCpp->transitions(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        int a1;
        bool a2;
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionIndex(*a0,&a1,&a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(iib)",sipRes,a1,a2);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::Phase * a0;
        const QDateTime& a1def = QDateTime();
        const QDateTime * a1 = &a1def;
        int a1State = 0;
        const QDateTime& a2def = QDateTime();
        const QDateTime * a2 = &a2def;
        int a2State = 0;
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J1J1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_KTimeZone_Phase,&a0,sipType_QDateTime,&a1,&a1State,sipType_QDateTime,&a2,&a2State))
        {
            QList<QDateTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDateTime>(sipCpp->transitionTimes(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);
            sipReleaseType(const_cast<QDateTime *>(a2),sipType_QDateTime,a2State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZoneData,&sipCpp))
        {
            QList<KTimeZone::LeapSeconds> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::LeapSeconds>(sipCpp->leapSecondChanges());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            KTimeZone::LeapSeconds *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone::LeapSeconds(sipCpp->leapSecondChange(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        const QList<KTimeZone::Phase> * a0;
        int a0State = 0;
        int a1;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1i",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QList_0200KTimeZone_Phase,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPhases(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<KTimeZone::Phase> *>(a0),sipType_QList_0200KTimeZone_Phase,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<KTimeZone::Transition> * a0;
        int a0State = 0;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QList_0200KTimeZone_Transition,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTransitions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<KTimeZone::Transition> *>(a0),sipType_QList_0200KTimeZone_Transition,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<KTimeZone::LeapSeconds> * a0;
        int a0State = 0;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTimeZoneData,&sipCpp,sipType_QList_0200KTimeZone_LeapSeconds,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLeapSecondChanges(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<KTimeZone::LeapSeconds> *>(a0),sipType_QList_0200KTimeZone_LeapSeconds,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneData *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZoneData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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


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

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

    if (!sipCpp)
    {
        const KTimeZoneData * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTimeZoneData[] = {
    {SIP_MLNAME_CAST(sipName_abbreviation), meth_KTimeZoneData_abbreviation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_abbreviations), meth_KTimeZoneData_abbreviations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clone), meth_KTimeZoneData_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZoneData_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSecondChange), meth_KTimeZoneData_leapSecondChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSecondChanges), meth_KTimeZoneData_leapSecondChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_phases), meth_KTimeZoneData_phases, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousUtcOffset), meth_KTimeZoneData_previousUtcOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLeapSecondChanges), meth_KTimeZoneData_setLeapSecondChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPhases), meth_KTimeZoneData_setPhases, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTransitions), meth_KTimeZoneData_setTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionIndex), meth_KTimeZoneData_transitionIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTimes), meth_KTimeZoneData_transitionTimes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitions), meth_KTimeZoneData_transitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffsets), meth_KTimeZoneData_utcOffsets, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZoneData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneData,
        {0}
    },
    sipNameNr_KTimeZoneData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    15, methods_KTimeZoneData,
    0, 0,
    0, 0,
    init_KTimeZoneData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneData,
    release_KTimeZoneData,
    cast_KTimeZoneData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTimeZoneData,
    0,
    0,
    0
};

#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3329 "sipkdecorepart5.cpp"

#line 210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3333 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3336 "sipkdecorepart5.cpp"


class sipKTimeZoneSource : public KTimeZoneSource
{
public:
    sipKTimeZoneSource();
    sipKTimeZoneSource(bool);
    virtual ~sipKTimeZoneSource();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTimeZoneData * parse(const KTimeZone&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKTimeZoneSource::sipKTimeZoneSource(): KTimeZoneSource(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneSource::sipKTimeZoneSource(bool a0): KTimeZoneSource(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

KTimeZoneData * sipKTimeZoneSource::parse(const KTimeZone& a0) const
{
    extern KTimeZoneData * sipVH_kdecore_0(sip_gilstate_t,PyObject *,const KTimeZone&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneSource::parse(a0);

    return sipVH_kdecore_0(sipGILState,meth,a0);
}


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

    {
        const KTimeZone * a0;
        KTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTimeZoneSource,&sipCpp,sipType_KTimeZone,&a0))
        {
            KTimeZoneData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneSource::parse(*a0) : sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZoneSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->useZoneParse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneSource *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZoneSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (!sipCpp)
    {
        bool a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"b",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneSource(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZoneSource_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_useZoneParse), meth_KTimeZoneSource_useZoneParse, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZoneSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneSource,
        {0}
    },
    sipNameNr_KTimeZoneSource,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_KTimeZoneSource,
    0, 0,
    0, 0,
    init_KTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneSource,
    release_KTimeZoneSource,
    cast_KTimeZoneSource,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 165 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3576 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3580 "sipkdecorepart5.cpp"
#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3583 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3586 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3589 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3592 "sipkdecorepart5.cpp"


class sipKTimeZoneBackend : public KTimeZoneBackend
{
public:
    sipKTimeZoneBackend();
    sipKTimeZoneBackend(const QString&);
    sipKTimeZoneBackend(const KTimeZoneBackend&);
    sipKTimeZoneBackend(KTimeZoneSource *,const QString&,const QString&,float,float,const QString&);
    virtual ~sipKTimeZoneBackend();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTimeZoneBackend * clone() const;
    QByteArray type() const;
    int offsetAtZoneTime(const KTimeZone *,const QDateTime&,int *) const;
    int offsetAtUtc(const KTimeZone *,const QDateTime&) const;
    int offset(const KTimeZone *,time_t) const;
    bool isDstAtUtc(const KTimeZone *,const QDateTime&) const;
    bool isDst(const KTimeZone *,time_t) const;
    bool hasTransitions(const KTimeZone *) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTimeZoneBackend::sipKTimeZoneBackend(): KTimeZoneBackend(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const QString& a0): KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const KTimeZoneBackend& a0): KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(KTimeZoneSource *a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KTimeZoneBackend(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

KTimeZoneBackend * sipKTimeZoneBackend::clone() const
{
    extern KTimeZoneBackend * sipVH_kdecore_2(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneBackend::clone();

    return sipVH_kdecore_2(sipGILState,meth);
}

QByteArray sipKTimeZoneBackend::type() const
{
    typedef QByteArray (*sipVH_QtCore_10)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneBackend::type();

    return ((sipVH_QtCore_10)(sipModuleAPI_kdecore_QtCore->em_virthandlers[10]))(sipGILState,meth);
}

int sipKTimeZoneBackend::offsetAtZoneTime(const KTimeZone *a0,const QDateTime& a1,int *a2) const
{
    extern int sipVH_kdecore_7(sip_gilstate_t,PyObject *,const KTimeZone *,const QDateTime&,int *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

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

int sipKTimeZoneBackend::offsetAtUtc(const KTimeZone *a0,const QDateTime& a1) const
{
    extern int sipVH_kdecore_6(sip_gilstate_t,PyObject *,const KTimeZone *,const QDateTime&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!meth)
        return KTimeZoneBackend::offsetAtUtc(a0,a1);

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

int sipKTimeZoneBackend::offset(const KTimeZone *a0,time_t a1) const
{
    extern int sipVH_kdecore_5(sip_gilstate_t,PyObject *,const KTimeZone *,long);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offset);

    if (!meth)
        return KTimeZoneBackend::offset(a0,a1);

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

bool sipKTimeZoneBackend::isDstAtUtc(const KTimeZone *a0,const QDateTime& a1) const
{
    extern bool sipVH_kdecore_4(sip_gilstate_t,PyObject *,const KTimeZone *,const QDateTime&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!meth)
        return KTimeZoneBackend::isDstAtUtc(a0,a1);

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

bool sipKTimeZoneBackend::isDst(const KTimeZone *a0,time_t a1) const
{
    extern bool sipVH_kdecore_3(sip_gilstate_t,PyObject *,const KTimeZone *,long);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_isDst);

    if (!meth)
        return KTimeZoneBackend::isDst(a0,a1);

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

bool sipKTimeZoneBackend::hasTransitions(const KTimeZone *a0) const
{
    extern bool sipVH_kdecore_1(sip_gilstate_t,PyObject *,const KTimeZone *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZoneBackend::hasTransitions(a0);

    return sipVH_kdecore_1(sipGILState,meth,a0);
}


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

    {
        KTimeZoneBackend *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZoneBackend *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KTimeZoneBackend::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        const QDateTime * a1;
        int a1State = 0;
        int a2;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J1",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0,sipType_QDateTime,&a1,&a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offsetAtZoneTime(a0,*a1,&a2) : sipCpp->offsetAtZoneTime(a0,*a1,&a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        const QDateTime * a1;
        int a1State = 0;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J1",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0,sipType_QDateTime,&a1,&a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offsetAtUtc(a0,*a1) : sipCpp->offsetAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        time_t a1;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8l",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0,&a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offset(a0,a1) : sipCpp->offset(a0,a1));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        const QDateTime * a1;
        int a1State = 0;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J1",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0,sipType_QDateTime,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::isDstAtUtc(a0,*a1) : sipCpp->isDstAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        time_t a1;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8l",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::isDst(a0,a1) : sipCpp->isDst(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTimeZoneBackend,&sipCpp,sipType_KTimeZone,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::hasTransitions(a0) : sipCpp->hasTransitions(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneBackend *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZoneBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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


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

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const KTimeZoneBackend * a0;

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

    if (!sipCpp)
    {
        KTimeZoneSource * a0;
        const QString * a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        float a3 = KTimeZone::UNKNOWN;
        float a4 = KTimeZone::UNKNOWN;
        const QString& a5def = QString();
        const QString * a5 = &a5def;
        int a5State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8J1|J1ffJ1",sipType_KTimeZoneSource,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,&a3,&a4,sipType_QString,&a5,&a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZoneBackend_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZoneBackend_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZoneBackend_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZoneBackend_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZoneBackend_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZoneBackend_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZoneBackend_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZoneBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneBackend,
        {0}
    },
    sipNameNr_KTimeZoneBackend,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    8, methods_KTimeZoneBackend,
    0, 0,
    0, 0,
    init_KTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneBackend,
    release_KTimeZoneBackend,
    cast_KTimeZoneBackend,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTimeZoneBackend,
    0,
    0,
    0
};

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4199 "sipkdecorepart5.cpp"

#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4203 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4206 "sipkdecorepart5.cpp"


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

    {
        KTimeZone::LeapSeconds *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone::LeapSeconds *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone_LeapSeconds,&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(sipArgsParsed,sipName_LeapSeconds,sipName_dateTime);

    return NULL;
}


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

    {
        KTimeZone::LeapSeconds *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone_LeapSeconds,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->leapSeconds();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone::LeapSeconds *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone_LeapSeconds___ge__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_LeapSeconds___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::LeapSeconds *sipCpp = reinterpret_cast<KTimeZone::LeapSeconds *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_LeapSeconds));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::LeapSeconds * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_LeapSeconds,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KTimeZone::LeapSeconds::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ge_slot,sipType_KTimeZone_LeapSeconds,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTimeZone_LeapSeconds___lt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_LeapSeconds___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::LeapSeconds *sipCpp = reinterpret_cast<KTimeZone::LeapSeconds *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_LeapSeconds));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::LeapSeconds * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_LeapSeconds,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::LeapSeconds::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,lt_slot,sipType_KTimeZone_LeapSeconds,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZone::LeapSeconds *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_LeapSeconds(void *, const void*);}
static void assign_KTimeZone_LeapSeconds(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTimeZone::LeapSeconds *>(sipDst) = *reinterpret_cast<const KTimeZone::LeapSeconds *>(sipSrc);
}


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


extern "C" {static void *init_KTimeZone_LeapSeconds(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTimeZone_LeapSeconds(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTimeZone::LeapSeconds *sipCpp = 0;

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

    if (!sipCpp)
    {
        const QDateTime * a0;
        int a0State = 0;
        int a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1i|J1",sipType_QDateTime,&a0,&a0State,&a1,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::LeapSeconds(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
        }
    }

    if (!sipCpp)
    {
        const KTimeZone::LeapSeconds * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTimeZone_LeapSeconds,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::LeapSeconds(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone_LeapSeconds[] = {
    {(void *)slot_KTimeZone_LeapSeconds___ge__, ge_slot},
    {(void *)slot_KTimeZone_LeapSeconds___lt__, lt_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone_LeapSeconds[] = {
    {SIP_MLNAME_CAST(sipName_comment), meth_KTimeZone_LeapSeconds_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateTime), meth_KTimeZone_LeapSeconds_dateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTimeZone_LeapSeconds_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSeconds), meth_KTimeZone_LeapSeconds_leapSeconds, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZone_LeapSeconds = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__LeapSeconds,
        {0}
    },
    sipNameNr_LeapSeconds,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {183, 255, 0},
    0,
    slots_KTimeZone_LeapSeconds,
    4, methods_KTimeZone_LeapSeconds,
    0, 0,
    0, 0,
    init_KTimeZone_LeapSeconds,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_LeapSeconds,
    release_KTimeZone_LeapSeconds,
    cast_KTimeZone_LeapSeconds,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTimeZone_LeapSeconds,
    0,
    0,
    0
};

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4529 "sipkdecorepart5.cpp"

#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4533 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4536 "sipkdecorepart5.cpp"


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

    {
        KTimeZone::Transition *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->time());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZone::Transition *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone_Transition,&sipCpp))
        {
            KTimeZone::Phase *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone::Phase(sipCpp->phase());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone_Transition___ge__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_Transition___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::Transition *sipCpp = reinterpret_cast<KTimeZone::Transition *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_Transition));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::Transition * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_Transition,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KTimeZone::Transition::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ge_slot,sipType_KTimeZone_Transition,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTimeZone_Transition___lt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_Transition___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::Transition *sipCpp = reinterpret_cast<KTimeZone::Transition *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_Transition));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::Transition * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_Transition,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::Transition::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,lt_slot,sipType_KTimeZone_Transition,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZone::Transition *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_Transition(void *, const void*);}
static void assign_KTimeZone_Transition(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTimeZone::Transition *>(sipDst) = *reinterpret_cast<const KTimeZone::Transition *>(sipSrc);
}


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


extern "C" {static void *init_KTimeZone_Transition(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTimeZone_Transition(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTimeZone::Transition *sipCpp = 0;

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

    if (!sipCpp)
    {
        const QDateTime * a0;
        int a0State = 0;
        const KTimeZone::Phase * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J9",sipType_QDateTime,&a0,&a0State,sipType_KTimeZone_Phase,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Transition(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
        }
    }

    if (!sipCpp)
    {
        const KTimeZone::Transition * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTimeZone_Transition,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Transition(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone_Transition[] = {
    {(void *)slot_KTimeZone_Transition___ge__, ge_slot},
    {(void *)slot_KTimeZone_Transition___lt__, lt_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone_Transition[] = {
    {SIP_MLNAME_CAST(sipName_phase), meth_KTimeZone_Transition_phase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_time), meth_KTimeZone_Transition_time, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZone_Transition = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__Transition,
        {0}
    },
    sipNameNr_Transition,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {183, 255, 0},
    0,
    slots_KTimeZone_Transition,
    2, methods_KTimeZone_Transition,
    0, 0,
    0, 0,
    init_KTimeZone_Transition,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_Transition,
    release_KTimeZone_Transition,
    cast_KTimeZone_Transition,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTimeZone_Transition,
    0,
    0,
    0
};

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4799 "sipkdecorepart5.cpp"

#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4803 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4806 "sipkdecorepart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 4837 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 4840 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4843 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4846 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4849 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4852 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4855 "sipkdecorepart5.cpp"


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

    {
        KTimeZone::Phase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone_Phase,&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(sipArgsParsed,sipName_Phase,sipName_utcOffset);

    return NULL;
}


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

    {
        KTimeZone::Phase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone_Phase,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->abbreviations());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone::Phase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDst();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone::Phase *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone_Phase___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_Phase___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::Phase *sipCpp = reinterpret_cast<KTimeZone::Phase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_Phase));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::Phase * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_Phase,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::Phase::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTimeZone_Phase___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone_Phase___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone::Phase *sipCpp = reinterpret_cast<KTimeZone::Phase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone_Phase));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone::Phase * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone_Phase,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::Phase::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZone::Phase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_Phase(void *, const void*);}
static void assign_KTimeZone_Phase(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTimeZone::Phase *>(sipDst) = *reinterpret_cast<const KTimeZone::Phase *>(sipSrc);
}


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


extern "C" {static void *init_KTimeZone_Phase(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTimeZone_Phase(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTimeZone::Phase *sipCpp = 0;

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

    if (!sipCpp)
    {
        int a0;
        const QByteArray * a1;
        int a1State = 0;
        bool a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"iJ1b|J1",&a0,sipType_QByteArray,&a1,&a1State,&a2,sipType_QString,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
        }
    }

    if (!sipCpp)
    {
        int a0;
        const QList<QByteArray> * a1;
        int a1State = 0;
        bool a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"iJ1b|J1",&a0,sipType_QList_0200QByteArray,&a1,&a1State,&a2,sipType_QString,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QByteArray> *>(a1),sipType_QList_0200QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
        }
    }

    if (!sipCpp)
    {
        const KTimeZone::Phase * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTimeZone_Phase,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone_Phase[] = {
    {(void *)slot_KTimeZone_Phase___ne__, ne_slot},
    {(void *)slot_KTimeZone_Phase___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone_Phase[] = {
    {SIP_MLNAME_CAST(sipName_abbreviations), meth_KTimeZone_Phase_abbreviations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KTimeZone_Phase_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZone_Phase_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffset), meth_KTimeZone_Phase_utcOffset, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZone_Phase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__Phase,
        {0}
    },
    sipNameNr_Phase,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {183, 255, 0},
    0,
    slots_KTimeZone_Phase,
    4, methods_KTimeZone_Phase,
    0, 0,
    0, 0,
    init_KTimeZone_Phase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_Phase,
    release_KTimeZone_Phase,
    cast_KTimeZone_Phase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTimeZone_Phase,
    0,
    0,
    0
};

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5203 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5207 "sipkdecorepart5.cpp"
#line 165 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5210 "sipkdecorepart5.cpp"
#line 210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5213 "sipkdecorepart5.cpp"
#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5216 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5219 "sipkdecorepart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5272 "sipkdecorepart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5275 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 5278 "sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 5281 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5284 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5287 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 5290 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5293 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5296 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5299 "sipkdecorepart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 5302 "sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5305 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5308 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 5311 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5314 "sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 5317 "sipkdecorepart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5320 "sipkdecorepart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5323 "sipkdecorepart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5326 "sipkdecorepart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5329 "sipkdecorepart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5344 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 5347 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 5350 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5353 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5356 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5359 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5362 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 5365 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5368 "sipkdecorepart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5399 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5402 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5405 "sipkdecorepart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5408 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5411 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5414 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5417 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5420 "sipkdecorepart5.cpp"


class sipKTimeZone : public KTimeZone
{
public:
    sipKTimeZone(const QString&);
    sipKTimeZone(const KTimeZone&);
    sipKTimeZone(KTimeZoneBackend *);
    virtual ~sipKTimeZone();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_setData(KTimeZoneData *,KTimeZoneSource *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int offsetAtZoneTime(const QDateTime&,int *) const;
    int offsetAtUtc(const QDateTime&) const;
    int offset(time_t) const;
    bool isDstAtUtc(const QDateTime&) const;
    bool isDst(time_t) const;
    bool hasTransitions() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

sipKTimeZone::sipKTimeZone(const QString& a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone(const KTimeZone& a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone(KTimeZoneBackend *a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

int sipKTimeZone::offsetAtZoneTime(const QDateTime& a0,int *a1) const
{
    extern int sipVH_kdecore_28(sip_gilstate_t,PyObject *,const QDateTime&,int *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZone::offsetAtZoneTime(a0,a1);

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

int sipKTimeZone::offsetAtUtc(const QDateTime& a0) const
{
    extern int sipVH_kdecore_27(sip_gilstate_t,PyObject *,const QDateTime&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZone::offsetAtUtc(a0);

    return sipVH_kdecore_27(sipGILState,meth,a0);
}

int sipKTimeZone::offset(time_t a0) const
{
    extern int sipVH_kdecore_26(sip_gilstate_t,PyObject *,long);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTimeZone::offset(a0);

    return sipVH_kdecore_26(sipGILState,meth,a0);
}

bool sipKTimeZone::isDstAtUtc(const QDateTime& a0) const
{
    extern bool sipVH_kdecore_25(sip_gilstate_t,PyObject *,const QDateTime&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!meth)
        return KTimeZone::isDstAtUtc(a0);

    return sipVH_kdecore_25(sipGILState,meth,a0);
}

bool sipKTimeZone::isDst(time_t a0) const
{
    extern bool sipVH_kdecore_24(sip_gilstate_t,PyObject *,long);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_isDst);

    if (!meth)
        return KTimeZone::isDst(a0);

    return sipVH_kdecore_24(sipGILState,meth,a0);
}

bool sipKTimeZone::hasTransitions() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_hasTransitions);

    if (!meth)
        return KTimeZone::hasTransitions();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTimeZone::sipProtect_setData(KTimeZoneData *a0,KTimeZoneSource *a1)
{
    KTimeZone::setData(a0,a1);
}


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

    {
        KTimeZone *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&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(sipArgsParsed,sipName_KTimeZone,sipName_name);

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->latitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->longitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->abbreviations());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->abbreviation(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->utcOffsets());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        const QDateTime * a1;
        int a1State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_KTimeZone,&a0,sipType_QDateTime,&a1,&a1State))
        {
            QDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->convert(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

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

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            QDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toUtc(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        bool a1;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            QDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        Qt::TimeSpec a0 = Qt::UTC;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|E",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_Qt_TimeSpec,&a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        int a1;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offsetAtZoneTime(*a0,&a1) : sipCpp->offsetAtZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offsetAtUtc(*a0) : sipCpp->offsetAtUtc(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        time_t a0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bl",&sipSelf,sipType_KTimeZone,&sipCpp,&a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offset(a0) : sipCpp->offset(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KTimeZone *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::isDstAtUtc(*a0) : sipCpp->isDstAtUtc(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        time_t a0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bl",&sipSelf,sipType_KTimeZone,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::isDst(a0) : sipCpp->isDst(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            QList<KTimeZone::Phase> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Phase>(sipCpp->phases());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::hasTransitions() : sipCpp->hasTransitions());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime& a0def = QDateTime();
        const QDateTime * a0 = &a0def;
        int a0State = 0;
        const QDateTime& a1def = QDateTime();
        const QDateTime * a1 = &a1def;
        int a1State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1J1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State,sipType_QDateTime,&a1,&a1State))
        {
            QList<KTimeZone::Transition> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Transition>(sipCpp->transitions(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        int a1;
        bool a2;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_QDateTime,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionIndex(*a0,&a1,&a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(iib)",sipRes,a1,a2);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::Phase * a0;
        const QDateTime& a1def = QDateTime();
        const QDateTime * a1 = &a1def;
        int a1State = 0;
        const QDateTime& a2def = QDateTime();
        const QDateTime * a2 = &a2def;
        int a2State = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J1J1",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_KTimeZone_Phase,&a0,sipType_QDateTime,&a1,&a1State,sipType_QDateTime,&a2,&a2State))
        {
            QList<QDateTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDateTime>(sipCpp->transitionTimes(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);
            sipReleaseType(const_cast<QDateTime *>(a2),sipType_QDateTime,a2State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZone,&sipCpp))
        {
            QList<KTimeZone::LeapSeconds> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::LeapSeconds>(sipCpp->leapSecondChanges());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->source();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZone *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_KTimeZone,&sipCpp,&a0))
        {
            const KTimeZoneData *sipRes;

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

            return sipConvertFromType(const_cast<KTimeZoneData *>(sipRes),sipType_KTimeZoneData,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_KTimeZone,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->updateBase(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        time_t a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"l",&a0))
        {
            QDateTime *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(KTimeZone::fromTime_t(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QDateTime,&a0,&a0State))
        {
            time_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTimeZone::toTime_t(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KTimeZone::utc());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTimeZoneData * a0;
        KTimeZoneSource * a1 = 0;
        sipKTimeZone *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8|J8",&sipSelf,sipType_KTimeZone,&sipCpp,sipType_KTimeZoneData,&a0,sipType_KTimeZoneSource,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone *sipCpp = reinterpret_cast<KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTimeZone___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTimeZone___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone *sipCpp = reinterpret_cast<KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTimeZone * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KTimeZone,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZone *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZone *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(*a0);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const KTimeZone * a0;

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

    if (!sipCpp)
    {
        KTimeZoneBackend * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KTimeZoneBackend,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone[] = {
    {(void *)slot_KTimeZone___ne__, ne_slot},
    {(void *)slot_KTimeZone___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone[] = {
    {SIP_MLNAME_CAST(sipName_abbreviation), meth_KTimeZone_abbreviation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_abbreviations), meth_KTimeZone_abbreviations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KTimeZone_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_convert), meth_KTimeZone_convert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countryCode), meth_KTimeZone_countryCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentOffset), meth_KTimeZone_currentOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KTimeZone_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromTime_t), meth_KTimeZone_fromTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZone_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZone_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZone_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTimeZone_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_latitude), meth_KTimeZone_latitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSecondChanges), meth_KTimeZone_leapSecondChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_longitude), meth_KTimeZone_longitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KTimeZone_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZone_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZone_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZone_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZone_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_phases), meth_KTimeZone_phases, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KTimeZone_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_source), meth_KTimeZone_source, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime_t), meth_KTimeZone_toTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUtc), meth_KTimeZone_toUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toZoneTime), meth_KTimeZone_toZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionIndex), meth_KTimeZone_transitionIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTimes), meth_KTimeZone_transitionTimes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitions), meth_KTimeZone_transitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZone_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateBase), meth_KTimeZone_updateBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utc), meth_KTimeZone_utc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffsets), meth_KTimeZone_utcOffsets, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *)
{
    int sipVal;
    sipVal = KTimeZone::InvalidOffset;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *)
{
    time_t sipVal;
    sipVal = KTimeZone::InvalidTime_t;

    return PyLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *);}
static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *)
{
    float sipVal;
    sipVal = KTimeZone::UNKNOWN;

    return PyFloat_FromDouble((double)sipVal);
}

sipVariableDef variables_KTimeZone[] = {
    {sipName_InvalidOffset, varget_KTimeZone_InvalidOffset, NULL, 1},
    {sipName_InvalidTime_t, varget_KTimeZone_InvalidTime_t, NULL, 1},
    {sipName_UNKNOWN, varget_KTimeZone_UNKNOWN, NULL, 1},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone,
        {0}
    },
    sipNameNr_KTimeZone,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    slots_KTimeZone,
    33, methods_KTimeZone,
    0, 0,
    3, variables_KTimeZone,
    init_KTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone,
    release_KTimeZone,
    cast_KTimeZone,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 6830 "sipkdecorepart5.cpp"

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 6834 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6837 "sipkdecorepart5.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 6844 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6847 "sipkdecorepart5.cpp"


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZones,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KTimeZone *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->zone(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZones,&sipCpp))
        {
            KTimeZones::ZoneMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZones::ZoneMap(sipCpp->zones());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTimeZones,&sipCpp,sipType_KTimeZone,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->add(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone * a0;
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTimeZones,&sipCpp,sipType_KTimeZone,&a0))
        {
            KTimeZone *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTimeZones,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KTimeZone *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTimeZones,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZones *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

    return sipCpp;
}


static PyMethodDef methods_KTimeZones[] = {
    {SIP_MLNAME_CAST(sipName_add), meth_KTimeZones_add, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTimeZones_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_KTimeZones_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zone), meth_KTimeZones_zone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zones), meth_KTimeZones_zones, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTimeZones = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZones,
        {0}
    },
    sipNameNr_KTimeZones,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    5, methods_KTimeZones,
    0, 0,
    0, 0,
    init_KTimeZones,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZones,
    release_KTimeZones,
    cast_KTimeZones,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 7120 "sipkdecorepart5.cpp"

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7124 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 7127 "sipkdecorepart5.cpp"


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_isValid);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_timeZone);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_type);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_isLocalZone);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_isClockTime);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_isUtc);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_isOffsetFromUtc);

    return NULL;
}


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

    {
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_utcOffset);

    return NULL;
}


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

    {
        KDateTime::SpecType a0;
        int a1 = 0;
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_setType);

    return NULL;
}


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

    {
        const KDateTime::Spec * a0;
        KDateTime::Spec *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_equivalentTo);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_UTC);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_ClockTime);

    return NULL;
}


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_OffsetFromUTC);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Spec,sipName_LocalZone);

    return NULL;
}


extern "C" {static PyObject *slot_KDateTime_Spec___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_KDateTime_Spec___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipArgsParsed,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);
        }
    }

    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 *, const void*);}
static void assign_KDateTime_Spec(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KDateTime::Spec *>(sipDst) = *reinterpret_cast<const KDateTime::Spec *>(sipSrc);
}


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


extern "C" {static void *init_KDateTime_Spec(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KDateTime_Spec(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KDateTime::Spec *sipCpp = 0;

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

    if (!sipCpp)
    {
        const KTimeZone * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTimeZone,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        KDateTime::SpecType a0;
        int a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|i",sipType_KDateTime_SpecType,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KDateTime_Spec,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KDateTime::Spec(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* 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 pyqt4Type_kdecore_KDateTime_Spec = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDateTime__Spec,
        {0}
    },
    sipNameNr_Spec,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {59, 255, 0},
    0,
    slots_KDateTime_Spec,
    14, methods_KDateTime_Spec,
    0, 0,
    0, 0,
    init_KDateTime_Spec,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDateTime_Spec,
    release_KDateTime_Spec,
    cast_KDateTime_Spec,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KDateTime_Spec,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 7746 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7750 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdatetime.sip"
#include <kdatetime.h>
#line 7753 "sipkdecorepart5.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7756 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7759 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7762 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7765 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7768 "sipkdecorepart5.cpp"


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isNull);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isValid);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isDateOnly);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_date);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_time);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_dateTime);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_timeZone);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_timeSpec);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_timeType);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isLocalZone);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isClockTime);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isUtc);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isOffsetFromUtc);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_utcOffset);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_isSecondOccurrence);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toUtc);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toOffsetFromUtc);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toLocalZone);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toClockTime);

    return NULL;
}


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

    {
        const KTimeZone * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toZone);

    return NULL;
}


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

    {
        const KDateTime::Spec * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toTimeSpec);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toTime_t);

    return NULL;
}


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

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setTime_t);

    return NULL;
}


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

    {
        bool a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setDateOnly);

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setDate);

    return NULL;
}


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

    {
        const QTime * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setTime);

    return NULL;
}


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

    {
        const QDateTime * a0;
        int a0State = 0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setDateTime);

    return NULL;
}


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

    {
        const KDateTime::Spec * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setTimeSpec);

    return NULL;
}


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

    {
        bool a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setSecondOccurrence);

    return NULL;
}


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

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_addMSecs);

    return NULL;
}


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

    {
        qint64 a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_addSecs);

    return NULL;
}


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

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_addDays);

    return NULL;
}


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

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_addMonths);

    return NULL;
}


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

    {
        int a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_addYears);

    return NULL;
}


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

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_secsTo);

    return NULL;
}


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

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_secsTo_long);

    return NULL;
}


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

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_daysTo);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_currentLocalDateTime);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_currentUtcDateTime);

    return NULL;
}


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

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_currentDateTime);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_currentLocalDate);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_currentLocalTime);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_toString);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KDateTime::TimeFormat a1 = KDateTime::ISODate;
        bool a2;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_fromString);

    return NULL;
}


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

    {
        const KDateTime::Spec * a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setFromStringDefault);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_outOfRange);

    return NULL;
}


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

    {
        const KDateTime * a0;
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_compare);

    return NULL;
}


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

    {
        KDateTime *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_detach);

    return NULL;
}


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

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_setSimulatedSystemTime);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDateTime,sipName_realCurrentLocalDateTime);

    return NULL;
}


extern "C" {static PyObject *slot_KDateTime___ge__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator>=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ge_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___gt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator>(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,gt_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___le__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___le__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator<=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,le_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___lt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,lt_slot,sipType_KDateTime,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KDateTime___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KDateTime___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KDateTime___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KDateTime *sipCpp = reinterpret_cast<KDateTime *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KDateTime));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KDateTime * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KDateTime,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KDateTime::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    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 *, const void*);}
static void assign_KDateTime(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KDateTime *>(sipDst) = *reinterpret_cast<const KDateTime *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        const QDate * a0;
        int a0State = 0;
        const KDateTime::Spec& a1def = KDateTime::Spec(KDateTime::LocalZone);
        const KDateTime::Spec * a1 = &a1def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!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 (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const QDateTime * a0;
        int a0State = 0;
        const KDateTime::Spec * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const QDateTime * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const KDateTime * a0;

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

    return sipCpp;
}


/* 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, 60},
    {sipName_AtEnd, KDateTime::AtEnd, 60},
    {sipName_AtStart, KDateTime::AtStart, 60},
    {sipName_Before, KDateTime::Before, 60},
    {sipName_ClockTime, KDateTime::ClockTime, 62},
    {sipName_EndsAt, KDateTime::EndsAt, 60},
    {sipName_Equal, KDateTime::Equal, 60},
    {sipName_ISODate, KDateTime::ISODate, 63},
    {sipName_Inside, KDateTime::Inside, 60},
    {sipName_Invalid, KDateTime::Invalid, 62},
    {sipName_LocalDate, KDateTime::LocalDate, 63},
    {sipName_LocalZone, KDateTime::LocalZone, 62},
    {sipName_OffsetFromUTC, KDateTime::OffsetFromUTC, 62},
    {sipName_Outside, KDateTime::Outside, 60},
    {sipName_QtTextDate, KDateTime::QtTextDate, 63},
    {sipName_RFCDate, KDateTime::RFCDate, 63},
    {sipName_RFCDateDay, KDateTime::RFCDateDay, 63},
    {sipName_StartsAt, KDateTime::StartsAt, 60},
    {sipName_TimeZone, KDateTime::TimeZone, 62},
    {sipName_UTC, KDateTime::UTC, 62},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KDateTime = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KDateTime,
        {0}
    },
    sipNameNr_KDateTime,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    slots_KDateTime,
    50, methods_KDateTime,
    20, enummembers_KDateTime,
    0, 0,
    init_KDateTime,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDateTime,
    release_KDateTime,
    cast_KDateTime,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KDateTime,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 9658 "sipkdecorepart5.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 9662 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 9665 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9668 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9671 "sipkdecorepart5.cpp"


class sipKCalendarSystem : public KCalendarSystem
{
public:
    sipKCalendarSystem(const KLocale *);
    virtual ~sipKCalendarSystem();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_julianDayToDate(int,int&,int&,int&) const;
    bool sipProtect_dateToJulianDay(int,int,int,int&) const;
    const KLocale * sipProtect_locale() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString calendarType() const;
    QDate epoch() const;
    QDate earliestValidDate() const;
    QDate latestValidDate() const;
    bool isValid(int,int,int) const;
    bool isValid(const QDate&) const;
    bool setDate(QDate&,int,int,int) const;
    bool setYMD(QDate&,int,int,int) const;
    int year(const QDate&) const;
    int month(const QDate&) const;
    int day(const QDate&) const;
    QDate addYears(const QDate&,int) const;
    QDate addMonths(const QDate&,int) const;
    QDate addDays(const QDate&,int) const;
    int monthsInYear(const QDate&) const;
    int weeksInYear(const QDate&) const;
    int weeksInYear(int) const;
    int daysInYear(const QDate&) const;
    int daysInMonth(const QDate&) const;
    int daysInWeek(const QDate&) const;
    int dayOfYear(const QDate&) const;
    int dayOfWeek(const QDate&) const;
    int weekNumber(const QDate&,int *) const;
    bool isLeapYear(int) const;
    bool isLeapYear(const QDate&) const;
    QString monthName(int,int,KCalendarSystem::MonthNameFormat) const;
    QString monthName(const QDate&,KCalendarSystem::MonthNameFormat) const;
    QString weekDayName(int,KCalendarSystem::WeekDayNameFormat) const;
    QString weekDayName(const QDate&,KCalendarSystem::WeekDayNameFormat) const;
    QString yearString(const QDate&,KCalendarSystem::StringFormat) const;
    QString monthString(const QDate&,KCalendarSystem::StringFormat) const;
    QString dayString(const QDate&,KCalendarSystem::StringFormat) const;
    int yearStringToInteger(const QString&,int&) const;
    int monthStringToInteger(const QString&,int&) const;
    int dayStringToInteger(const QString&,int&) const;
    QString formatDate(const QDate&,KLocale::DateFormat) const;
    QDate readDate(const QString&,bool *) const;
    QDate readDate(const QString&,const QString&,bool *) const;
    QDate readDate(const QString&,KLocale::ReadDateFlags,bool *) const;
    int weekStartDay() const;
    int weekDayOfPray() const;
    bool isLunar() const;
    bool isLunisolar() const;
    bool isSolar() const;
    bool isProleptic() const;
    bool julianDayToDate(int,int&,int&,int&) const;
    bool dateToJulianDay(int,int,int,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

sipKCalendarSystem::sipKCalendarSystem(const KLocale *a0): KCalendarSystem(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

QString sipKCalendarSystem::calendarType() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_KCalendarSystem,sipName_calendarType);

    if (!meth)
        return QString();

    return ((sipVH_QtCore_58)(sipModuleAPI_kdecore_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QDate sipKCalendarSystem::epoch() const
{
    extern QDate sipVH_kdecore_47(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::epoch();

    return sipVH_kdecore_47(sipGILState,meth);
}

QDate sipKCalendarSystem::earliestValidDate() const
{
    extern QDate sipVH_kdecore_47(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::earliestValidDate();

    return sipVH_kdecore_47(sipGILState,meth);
}

QDate sipKCalendarSystem::latestValidDate() const
{
    extern QDate sipVH_kdecore_47(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_latestValidDate);

    if (!meth)
        return KCalendarSystem::latestValidDate();

    return sipVH_kdecore_47(sipGILState,meth);
}

bool sipKCalendarSystem::isValid(int a0,int a1,int a2) const
{
    extern bool sipVH_kdecore_46(sip_gilstate_t,PyObject *,int,int,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_KCalendarSystem,sipName_isValid);

    if (!meth)
        return 0;

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

bool sipKCalendarSystem::isValid(const QDate& a0) const
{
    extern bool sipVH_kdecore_41(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isValid);

    if (!meth)
        return KCalendarSystem::isValid(a0);

    return sipVH_kdecore_41(sipGILState,meth,a0);
}

bool sipKCalendarSystem::setDate(QDate& a0,int a1,int a2,int a3) const
{
    extern bool sipVH_kdecore_45(sip_gilstate_t,PyObject *,QDate&,int,int,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_setDate);

    if (!meth)
        return KCalendarSystem::setDate(a0,a1,a2,a3);

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

bool sipKCalendarSystem::setYMD(QDate& a0,int a1,int a2,int a3) const
{
    extern bool sipVH_kdecore_45(sip_gilstate_t,PyObject *,QDate&,int,int,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::setYMD(a0,a1,a2,a3);

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

int sipKCalendarSystem::year(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::year(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::month(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::month(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::day(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KCalendarSystem::day(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

QDate sipKCalendarSystem::addYears(const QDate& a0,int a1) const
{
    extern QDate sipVH_kdecore_44(sip_gilstate_t,PyObject *,const QDate&,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_addYears);

    if (!meth)
        return KCalendarSystem::addYears(a0,a1);

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

QDate sipKCalendarSystem::addMonths(const QDate& a0,int a1) const
{
    extern QDate sipVH_kdecore_44(sip_gilstate_t,PyObject *,const QDate&,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_addMonths);

    if (!meth)
        return KCalendarSystem::addMonths(a0,a1);

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

QDate sipKCalendarSystem::addDays(const QDate& a0,int a1) const
{
    extern QDate sipVH_kdecore_44(sip_gilstate_t,PyObject *,const QDate&,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_addDays);

    if (!meth)
        return KCalendarSystem::addDays(a0,a1);

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

int sipKCalendarSystem::monthsInYear(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_monthsInYear);

    if (!meth)
        return KCalendarSystem::monthsInYear(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::weeksInYear(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_weeksInYear);

    if (!meth)
        return KCalendarSystem::weeksInYear(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::weeksInYear(int a0) const
{
    typedef int (*sipVH_QtGui_29)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_weeksInYear);

    if (!meth)
        return KCalendarSystem::weeksInYear(a0);

    return ((sipVH_QtGui_29)(sipModuleAPI_kdecore_QtGui->em_virthandlers[29]))(sipGILState,meth,a0);
}

int sipKCalendarSystem::daysInYear(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_daysInYear);

    if (!meth)
        return KCalendarSystem::daysInYear(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::daysInMonth(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_daysInMonth);

    if (!meth)
        return KCalendarSystem::daysInMonth(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::daysInWeek(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_daysInWeek);

    if (!meth)
        return KCalendarSystem::daysInWeek(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::dayOfYear(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_dayOfYear);

    if (!meth)
        return KCalendarSystem::dayOfYear(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::dayOfWeek(const QDate& a0) const
{
    extern int sipVH_kdecore_43(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_dayOfWeek);

    if (!meth)
        return KCalendarSystem::dayOfWeek(a0);

    return sipVH_kdecore_43(sipGILState,meth,a0);
}

int sipKCalendarSystem::weekNumber(const QDate& a0,int *a1) const
{
    extern int sipVH_kdecore_42(sip_gilstate_t,PyObject *,const QDate&,int *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_weekNumber);

    if (!meth)
        return KCalendarSystem::weekNumber(a0,a1);

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

bool sipKCalendarSystem::isLeapYear(int a0) const
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,sipName_KCalendarSystem,sipName_isLeapYear);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

bool sipKCalendarSystem::isLeapYear(const QDate& a0) const
{
    extern bool sipVH_kdecore_41(sip_gilstate_t,PyObject *,const QDate&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_isLeapYear);

    if (!meth)
        return KCalendarSystem::isLeapYear(a0);

    return sipVH_kdecore_41(sipGILState,meth,a0);
}

QString sipKCalendarSystem::monthName(int a0,int a1,KCalendarSystem::MonthNameFormat a2) const
{
    extern QString sipVH_kdecore_40(sip_gilstate_t,PyObject *,int,int,KCalendarSystem::MonthNameFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,sipName_KCalendarSystem,sipName_monthName);

    if (!meth)
        return QString();

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

QString sipKCalendarSystem::monthName(const QDate& a0,KCalendarSystem::MonthNameFormat a1) const
{
    extern QString sipVH_kdecore_39(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::MonthNameFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_monthName);

    if (!meth)
        return KCalendarSystem::monthName(a0,a1);

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

QString sipKCalendarSystem::weekDayName(int a0,KCalendarSystem::WeekDayNameFormat a1) const
{
    extern QString sipVH_kdecore_38(sip_gilstate_t,PyObject *,int,KCalendarSystem::WeekDayNameFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,sipName_KCalendarSystem,sipName_weekDayName);

    if (!meth)
        return QString();

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

QString sipKCalendarSystem::weekDayName(const QDate& a0,KCalendarSystem::WeekDayNameFormat a1) const
{
    extern QString sipVH_kdecore_37(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::WeekDayNameFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_weekDayName);

    if (!meth)
        return KCalendarSystem::weekDayName(a0,a1);

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

QString sipKCalendarSystem::yearString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    extern QString sipVH_kdecore_36(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_yearString);

    if (!meth)
        return KCalendarSystem::yearString(a0,a1);

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

QString sipKCalendarSystem::monthString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    extern QString sipVH_kdecore_36(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_monthString);

    if (!meth)
        return KCalendarSystem::monthString(a0,a1);

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

QString sipKCalendarSystem::dayString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    extern QString sipVH_kdecore_36(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_dayString);

    if (!meth)
        return KCalendarSystem::dayString(a0,a1);

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

int sipKCalendarSystem::yearStringToInteger(const QString& a0,int& a1) const
{
    extern int sipVH_kdecore_35(sip_gilstate_t,PyObject *,const QString&,int&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_yearStringToInteger);

    if (!meth)
        return KCalendarSystem::yearStringToInteger(a0,a1);

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

int sipKCalendarSystem::monthStringToInteger(const QString& a0,int& a1) const
{
    extern int sipVH_kdecore_35(sip_gilstate_t,PyObject *,const QString&,int&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_monthStringToInteger);

    if (!meth)
        return KCalendarSystem::monthStringToInteger(a0,a1);

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

int sipKCalendarSystem::dayStringToInteger(const QString& a0,int& a1) const
{
    extern int sipVH_kdecore_35(sip_gilstate_t,PyObject *,const QString&,int&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_dayStringToInteger);

    if (!meth)
        return KCalendarSystem::dayStringToInteger(a0,a1);

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

QString sipKCalendarSystem::formatDate(const QDate& a0,KLocale::DateFormat a1) const
{
    extern QString sipVH_kdecore_34(sip_gilstate_t,PyObject *,const QDate&,KLocale::DateFormat);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_formatDate);

    if (!meth)
        return KCalendarSystem::formatDate(a0,a1);

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

QDate sipKCalendarSystem::readDate(const QString& a0,bool *a1) const
{
    extern QDate sipVH_kdecore_33(sip_gilstate_t,PyObject *,const QString&,bool *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_readDate);

    if (!meth)
        return KCalendarSystem::readDate(a0,a1);

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

QDate sipKCalendarSystem::readDate(const QString& a0,const QString& a1,bool *a2) const
{
    extern QDate sipVH_kdecore_32(sip_gilstate_t,PyObject *,const QString&,const QString&,bool *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_readDate);

    if (!meth)
        return KCalendarSystem::readDate(a0,a1,a2);

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

QDate sipKCalendarSystem::readDate(const QString& a0,KLocale::ReadDateFlags a1,bool *a2) const
{
    extern QDate sipVH_kdecore_31(sip_gilstate_t,PyObject *,const QString&,KLocale::ReadDateFlags,bool *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_readDate);

    if (!meth)
        return KCalendarSystem::readDate(a0,a1,a2);

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

int sipKCalendarSystem::weekStartDay() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,NULL,sipName_weekStartDay);

    if (!meth)
        return KCalendarSystem::weekStartDay();

    return ((sipVH_QtCore_8)(sipModuleAPI_kdecore_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

int sipKCalendarSystem::weekDayOfPray() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,sipName_KCalendarSystem,sipName_weekDayOfPray);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_8)(sipModuleAPI_kdecore_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

bool sipKCalendarSystem::isLunar() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,sipName_KCalendarSystem,sipName_isLunar);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKCalendarSystem::isLunisolar() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,sipName_KCalendarSystem,sipName_isLunisolar);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKCalendarSystem::isSolar() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[43]),sipPySelf,sipName_KCalendarSystem,sipName_isSolar);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKCalendarSystem::isProleptic() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,sipName_KCalendarSystem,sipName_isProleptic);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKCalendarSystem::julianDayToDate(int a0,int& a1,int& a2,int& a3) const
{
    extern bool sipVH_kdecore_30(sip_gilstate_t,PyObject *,int,int&,int&,int&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[45]),sipPySelf,sipName_KCalendarSystem,sipName_julianDayToDate);

    if (!meth)
        return 0;

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

bool sipKCalendarSystem::dateToJulianDay(int a0,int a1,int a2,int& a3) const
{
    extern bool sipVH_kdecore_29(sip_gilstate_t,PyObject *,int,int,int,int&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,sipName_KCalendarSystem,sipName_dateToJulianDay);

    if (!meth)
        return 0;

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

bool sipKCalendarSystem::sipProtect_julianDayToDate(int a0,int& a1,int& a2,int& a3) const
{
    return julianDayToDate(a0,a1,a2,a3);
}

bool sipKCalendarSystem::sipProtect_dateToJulianDay(int a0,int a1,int a2,int& a3) const
{
    return dateToJulianDay(a0,a1,a2,a3);
}

const KLocale * sipKCalendarSystem::sipProtect_locale() const
{
    return KCalendarSystem::locale();
}


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

    {
        const QString& a0def = QLatin1String("gregorian");
        const QString * a0 = &a0def;
        int a0State = 0;
        const KLocale * a1 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1J8",sipType_QString,&a0,&a0State,sipType_KLocale,&a1))
        {
            KCalendarSystem *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCalendarSystem::create(*a0,a1);
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KCalendarSystem::calendarSystems());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCalendarSystem::calendarLabel(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_calendarType);
                return NULL;
            }

            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(sipArgsParsed,sipName_KCalendarSystem,sipName_calendarType);

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::epoch() : sipCpp->epoch()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::earliestValidDate() : sipCpp->earliestValidDate()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::latestValidDate() : sipCpp->latestValidDate()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Biii",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0,&a1,&a2))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isValid);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid(a0,a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::isValid(*a0) : sipCpp->isValid(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDate * a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1iii",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1,&a2,&a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::setDate(*a0,a1,a2,a3) : sipCpp->setDate(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDate * a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1iii",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1,&a2,&a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::setYMD(*a0,a1,a2,a3) : sipCpp->setYMD(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::year(*a0) : sipCpp->year(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::month(*a0) : sipCpp->month(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::day(*a0) : sipCpp->day(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        int a1;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1i",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addYears(*a0,a1) : sipCpp->addYears(*a0,a1)));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        int a1;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1i",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addMonths(*a0,a1) : sipCpp->addMonths(*a0,a1)));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        int a1;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1i",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addDays(*a0,a1) : sipCpp->addDays(*a0,a1)));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::monthsInYear(*a0) : sipCpp->monthsInYear(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weeksInYear(*a0) : sipCpp->weeksInYear(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weeksInYear(a0) : sipCpp->weeksInYear(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInYear(*a0) : sipCpp->daysInYear(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInMonth(*a0) : sipCpp->daysInMonth(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInWeek(*a0) : sipCpp->daysInWeek(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayOfYear(*a0) : sipCpp->dayOfYear(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayOfWeek(*a0) : sipCpp->dayOfWeek(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        int a1 = 0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|i",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,&a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weekNumber(*a0,&a1) : sipCpp->weekNumber(*a0,&a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        int a0;
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLeapYear);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::isLeapYear(*a0) : sipCpp->isLeapYear(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KCalendarSystem::MonthNameFormat a2 = KCalendarSystem::LongName;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bii|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0,&a1,sipType_KCalendarSystem_MonthNameFormat,&a2))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_monthName);
                return NULL;
            }

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

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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem::MonthNameFormat a1 = KCalendarSystem::LongName;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,sipType_KCalendarSystem_MonthNameFormat,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::monthName(*a0,a1) : sipCpp->monthName(*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(sipArgsParsed,sipName_KCalendarSystem,sipName_monthName);

    return NULL;
}


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

    {
        int a0;
        KCalendarSystem::WeekDayNameFormat a1 = KCalendarSystem::LongDayName;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0,sipType_KCalendarSystem_WeekDayNameFormat,&a1))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_weekDayName);
                return NULL;
            }

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

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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem::WeekDayNameFormat a1 = KCalendarSystem::LongDayName;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,sipType_KCalendarSystem_WeekDayNameFormat,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::weekDayName(*a0,a1) : sipCpp->weekDayName(*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(sipArgsParsed,sipName_KCalendarSystem,sipName_weekDayName);

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,sipType_KCalendarSystem_StringFormat,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::yearString(*a0,a1) : sipCpp->yearString(*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(sipArgsParsed,sipName_KCalendarSystem,sipName_yearString);

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,sipType_KCalendarSystem_StringFormat,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::monthString(*a0,a1) : sipCpp->monthString(*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(sipArgsParsed,sipName_KCalendarSystem,sipName_monthString);

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KCalendarSystem,&sipCpp,sipType_QDate,&a0,&a0State,sipType_KCalendarSystem_StringFormat,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::dayString(*a0,a1) : sipCpp->dayString(*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(sipArgsParsed,sipName_KCalendarSystem,sipName_dayString);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::yearStringToInteger(*a0,a1) : sipCpp->yearStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::monthStringToInteger(*a0,a1) : sipCpp->monthStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayStringToInteger(*a0,a1) : sipCpp->dayStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::formatDate(*a0,a1) : 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(sipArgsParsed,sipName_KCalendarSystem,sipName_formatDate);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,&a1) : 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;
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,*a1,&a2) : 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;
        KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,a1,&a2) : 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(sipArgsParsed,sipName_KCalendarSystem,sipName_readDate);

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KCalendarSystem,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weekStartDay() : sipCpp->weekStartDay());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KCalendarSystem,&sipCpp))
        {
            int sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_weekDayOfPray);
                return NULL;
            }

            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(sipArgsParsed,sipName_KCalendarSystem,sipName_weekDayOfPray);

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLunar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLunar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLunisolar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLunisolar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isSolar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSolar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KCalendarSystem *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isProleptic);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isProleptic();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        int a3;
        sipKCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_julianDayToDate);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_julianDayToDate(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(biii)",sipRes,a1,a2,a3);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        int a3;
        sipKCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"piii",&sipSelf,sipType_KCalendarSystem,&sipCpp,&a0,&a1,&a2))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_dateToJulianDay);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_dateToJulianDay(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipKCalendarSystem *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KCalendarSystem,&sipCpp))
        {
            const KLocale *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_locale();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KLocale *>(sipRes),sipType_KLocale,NULL);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCalendarSystem *>(sipCppV);
    else
        delete reinterpret_cast<KCalendarSystem *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const KLocale * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J8",sipType_KLocale,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCalendarSystem(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KCalendarSystem[] = {
    {SIP_MLNAME_CAST(sipName_addDays), meth_KCalendarSystem_addDays, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMonths), meth_KCalendarSystem_addMonths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addYears), meth_KCalendarSystem_addYears, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarLabel), meth_KCalendarSystem_calendarLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystems), meth_KCalendarSystem_calendarSystems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarType), meth_KCalendarSystem_calendarType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KCalendarSystem_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateToJulianDay), meth_KCalendarSystem_dateToJulianDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_day), meth_KCalendarSystem_day, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfWeek), meth_KCalendarSystem_dayOfWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfYear), meth_KCalendarSystem_dayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayString), meth_KCalendarSystem_dayString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayStringToInteger), meth_KCalendarSystem_dayStringToInteger, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInMonth), meth_KCalendarSystem_daysInMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInWeek), meth_KCalendarSystem_daysInWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInYear), meth_KCalendarSystem_daysInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_earliestValidDate), meth_KCalendarSystem_earliestValidDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_epoch), meth_KCalendarSystem_epoch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDate), meth_KCalendarSystem_formatDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLeapYear), meth_KCalendarSystem_isLeapYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLunar), meth_KCalendarSystem_isLunar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLunisolar), meth_KCalendarSystem_isLunisolar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isProleptic), meth_KCalendarSystem_isProleptic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSolar), meth_KCalendarSystem_isSolar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KCalendarSystem_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_julianDayToDate), meth_KCalendarSystem_julianDayToDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_latestValidDate), meth_KCalendarSystem_latestValidDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locale), meth_KCalendarSystem_locale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_month), meth_KCalendarSystem_month, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthName), meth_KCalendarSystem_monthName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthString), meth_KCalendarSystem_monthString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthStringToInteger), meth_KCalendarSystem_monthStringToInteger, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsInYear), meth_KCalendarSystem_monthsInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDate), meth_KCalendarSystem_readDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDate), meth_KCalendarSystem_setDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setYMD), meth_KCalendarSystem_setYMD, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekDayName), meth_KCalendarSystem_weekDayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekDayOfPray), meth_KCalendarSystem_weekDayOfPray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekNumber), meth_KCalendarSystem_weekNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekStartDay), meth_KCalendarSystem_weekStartDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weeksInYear), meth_KCalendarSystem_weeksInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_year), meth_KCalendarSystem_year, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearString), meth_KCalendarSystem_yearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearStringToInteger), meth_KCalendarSystem_yearStringToInteger, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KCalendarSystem[] = {
    {sipName_LongDayName, KCalendarSystem::LongDayName, 14},
    {sipName_LongFormat, KCalendarSystem::LongFormat, 13},
    {sipName_LongName, KCalendarSystem::LongName, 12},
    {sipName_LongNamePossessive, KCalendarSystem::LongNamePossessive, 12},
    {sipName_ShortDayName, KCalendarSystem::ShortDayName, 14},
    {sipName_ShortFormat, KCalendarSystem::ShortFormat, 13},
    {sipName_ShortName, KCalendarSystem::ShortName, 12},
    {sipName_ShortNamePossessive, KCalendarSystem::ShortNamePossessive, 12},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCalendarSystem = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KCalendarSystem,
        {0}
    },
    sipNameNr_KCalendarSystem,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    44, methods_KCalendarSystem,
    8, enummembers_KCalendarSystem,
    0, 0,
    init_KCalendarSystem,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCalendarSystem,
    release_KCalendarSystem,
    cast_KCalendarSystem,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 12229 "sipkdecorepart5.cpp"

#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 12233 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12236 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12239 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12242 "sipkdecorepart5.cpp"


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

    {
        KSycocaType a0;
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KSycocaEntry,&sipCpp,sipType_KSycocaType,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSycocaEntry,&sipCpp))
        {
            KSycocaType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sycocaType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSycocaType);
        }
    }

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

    return NULL;
}


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

    {
        QDataStream * a0;
        QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1",sipType_QDataStream,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycocaEntry::read(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QDataStream * a0;
        QStringList * a1;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1",sipType_QDataStream,&a0,sipType_QStringList,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycocaEntry::read(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSycocaEntry,&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(sipArgsParsed,sipName_KSycocaEntry,sipName_name);

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDeleted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KSycocaEntry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        bool a0;
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KSycocaEntry,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDeleted(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeparator();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSycocaEntry,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->offset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDataStream * a0;
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KSycocaEntry,&sipCpp,sipType_QDataStream,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KSycocaEntry *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

    return sipCpp;
}


static PyMethodDef methods_KSycocaEntry[] = {
    {SIP_MLNAME_CAST(sipName_entryPath), meth_KSycocaEntry_entryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDeleted), meth_KSycocaEntry_isDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeparator), meth_KSycocaEntry_isSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isType), meth_KSycocaEntry_isType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KSycocaEntry_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KSycocaEntry_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KSycocaEntry_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KSycocaEntry_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_KSycocaEntry_propertyNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_read), meth_KSycocaEntry_read, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KSycocaEntry_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDeleted), meth_KSycocaEntry_setDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storageId), meth_KSycocaEntry_storageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sycocaType), meth_KSycocaEntry_sycocaType, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSycocaEntry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSycocaEntry,
        {0}
    },
    sipNameNr_KSycocaEntry,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    14, methods_KSycocaEntry,
    0, 0,
    0, 0,
    init_KSycocaEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSycocaEntry,
    release_KSycocaEntry,
    cast_KSycocaEntry,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 12766 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12770 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 12773 "sipkdecorepart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 12776 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12779 "sipkdecorepart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12832 "sipkdecorepart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 12835 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 12838 "sipkdecorepart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 12841 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 12844 "sipkdecorepart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 12847 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 12850 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12853 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12856 "sipkdecorepart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12859 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12862 "sipkdecorepart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 12865 "sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12868 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 12871 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 12874 "sipkdecorepart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 12877 "sipkdecorepart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 12880 "sipkdecorepart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 12883 "sipkdecorepart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 12886 "sipkdecorepart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 12889 "sipkdecorepart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 12904 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 12907 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 12910 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 12913 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 12916 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 12919 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 12922 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12925 "sipkdecorepart5.cpp"


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

    {
        KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isApplication();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->terminal();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->substituteUid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            KService::DBusStartupType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dbusStartupType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KService_DBusStartupType);
        }
    }

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KService *sipCpp;

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

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

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_genericName);

    return NULL;
}


extern "C" {static PyObject *meth_KService_untranslatedGenericName(PyObject *, PyObject *);}
static PyObject *meth_KService_untranslatedGenericName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->untranslatedGenericName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_untranslatedGenericName);

    return NULL;
}


extern "C" {static PyObject *meth_KService_keywords(PyObject *, PyObject *);}
static PyObject *meth_KService_keywords(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->keywords());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_keywords);

    return NULL;
}


extern "C" {static PyObject *meth_KService_categories(PyObject *, PyObject *);}
static PyObject *meth_KService_categories(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->categories());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_categories);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceTypes(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->serviceTypes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceTypes);

    return NULL;
}


extern "C" {static PyObject *meth_KService_hasServiceType(PyObject *, PyObject *);}
static PyObject *meth_KService_hasServiceType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KService,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasServiceType(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_hasServiceType);

    return NULL;
}


extern "C" {static PyObject *meth_KService_hasMimeType(PyObject *, PyObject *);}
static PyObject *meth_KService_hasMimeType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KServiceType * a0;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KService,&sipCpp,sipType_KServiceType,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasMimeType(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_hasMimeType);

    return NULL;
}


extern "C" {static PyObject *meth_KService_allowAsDefault(PyObject *, PyObject *);}
static PyObject *meth_KService_allowAsDefault(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowAsDefault();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_allowAsDefault);

    return NULL;
}


extern "C" {static PyObject *meth_KService_actions(PyObject *, PyObject *);}
static PyObject *meth_KService_actions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QList<KServiceAction> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KServiceAction>(sipCpp->actions());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KServiceAction,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_actions);

    return NULL;
}


extern "C" {static PyObject *meth_KService_allowMultipleFiles(PyObject *, PyObject *);}
static PyObject *meth_KService_allowMultipleFiles(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowMultipleFiles();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_allowMultipleFiles);

    return NULL;
}


extern "C" {static PyObject *meth_KService_initialPreference(PyObject *, PyObject *);}
static PyObject *meth_KService_initialPreference(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->initialPreference();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_initialPreference);

    return NULL;
}


extern "C" {static PyObject *meth_KService_noDisplay(PyObject *, PyObject *);}
static PyObject *meth_KService_noDisplay(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&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(sipArgsParsed,sipName_KService,sipName_noDisplay);

    return NULL;
}


extern "C" {static PyObject *meth_KService_parentApp(PyObject *, PyObject *);}
static PyObject *meth_KService_parentApp(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->parentApp());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_parentApp);

    return NULL;
}


extern "C" {static PyObject *meth_KService_pluginKeyword(PyObject *, PyObject *);}
static PyObject *meth_KService_pluginKeyword(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->pluginKeyword());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_pluginKeyword);

    return NULL;
}


extern "C" {static PyObject *meth_KService_docPath(PyObject *, PyObject *);}
static PyObject *meth_KService_docPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->docPath());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_docPath);

    return NULL;
}


extern "C" {static PyObject *meth_KService_property(PyObject *, PyObject *);}
static PyObject *meth_KService_property(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        QVariant::Type a1;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1E",&sipSelf,sipType_KService,&sipCpp,sipType_QString,&a0,&a0State,sipType_QVariant_Type,&a1))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(*a0,a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_property);

    return NULL;
}


extern "C" {static PyObject *meth_KService_locateLocal(PyObject *, PyObject *);}
static PyObject *meth_KService_locateLocal(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KService,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->locateLocal());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_locateLocal);

    return NULL;
}


extern "C" {static PyObject *meth_KService_setMenuId(PyObject *, PyObject *);}
static PyObject *meth_KService_setMenuId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KService,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMenuId(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_setMenuId);

    return NULL;
}


extern "C" {static PyObject *meth_KService_setTerminal(PyObject *, PyObject *);}
static PyObject *meth_KService_setTerminal(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KService,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerminal(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_setTerminal);

    return NULL;
}


extern "C" {static PyObject *meth_KService_setTerminalOptions(PyObject *, PyObject *);}
static PyObject *meth_KService_setTerminalOptions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KService,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerminalOptions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_setTerminalOptions);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceByName(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceByName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByName(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceByName);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceByDesktopPath(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceByDesktopPath(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByDesktopPath(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceByDesktopPath);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceByDesktopName(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceByDesktopName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByDesktopName(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceByDesktopName);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceByMenuId(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceByMenuId(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByMenuId(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceByMenuId);

    return NULL;
}


extern "C" {static PyObject *meth_KService_serviceByStorageId(PyObject *, PyObject *);}
static PyObject *meth_KService_serviceByStorageId(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByStorageId(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_serviceByStorageId);

    return NULL;
}


extern "C" {static PyObject *meth_KService_allServices(PyObject *, PyObject *);}
static PyObject *meth_KService_allServices(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KService::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(KService::allServices());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_allServices);

    return NULL;
}


extern "C" {static PyObject *meth_KService_newServicePath(PyObject *, PyObject *);}
static PyObject *meth_KService_newServicePath(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        const QString * a1;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        const QStringList * a3 = 0;
        int a3State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"bJ1|J0J0",&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QStringList,&a3,&a3State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KService::newServicePath(a0,*a1,a2,a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KService,sipName_newServicePath);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KService(void *, const sipTypeDef *);}
static void *cast_KService(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KService)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KSycocaEntry)->ctd_cast((KSycocaEntry *)(KService *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KService(void *, int);}
static void release_KService(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KService *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KService(sipSimpleWrapper *);}
static void dealloc_KService(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KService(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KService(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KService(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KService *sipCpp = 0;

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KService(*a0,*a1,*a2);
            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);
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KService(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const KDesktopFile * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KDesktopFile,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KService(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QDataStream * a0;
        int a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9i",sipType_QDataStream,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KService(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KService[] = {{167, 255, 1}};


static PyMethodDef methods_KService[] = {
    {SIP_MLNAME_CAST(sipName_actions), meth_KService_actions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allServices), meth_KService_allServices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowAsDefault), meth_KService_allowAsDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowMultipleFiles), meth_KService_allowMultipleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_categories), meth_KService_categories, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KService_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dbusStartupType), meth_KService_dbusStartupType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopEntryName), meth_KService_desktopEntryName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopEntryPath), meth_KService_desktopEntryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_docPath), meth_KService_docPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KService_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericName), meth_KService_genericName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasMimeType), meth_KService_hasMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasServiceType), meth_KService_hasServiceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KService_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initialPreference), meth_KService_initialPreference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isApplication), meth_KService_isApplication, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keywords), meth_KService_keywords, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_library), meth_KService_library, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locateLocal), meth_KService_locateLocal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_menuId), meth_KService_menuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_newServicePath), meth_KService_newServicePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_noDisplay), meth_KService_noDisplay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentApp), meth_KService_parentApp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_path), meth_KService_path, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginKeyword), meth_KService_pluginKeyword, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KService_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByDesktopName), meth_KService_serviceByDesktopName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByDesktopPath), meth_KService_serviceByDesktopPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByMenuId), meth_KService_serviceByMenuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByName), meth_KService_serviceByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByStorageId), meth_KService_serviceByStorageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceTypes), meth_KService_serviceTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMenuId), meth_KService_setMenuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerminal), meth_KService_setTerminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerminalOptions), meth_KService_setTerminalOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storageId), meth_KService_storageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substituteUid), meth_KService_substituteUid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_terminal), meth_KService_terminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_terminalOptions), meth_KService_terminalOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KService_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_untranslatedGenericName), meth_KService_untranslatedGenericName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_username), meth_KService_username, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KService[] = {
    {sipName_DBusMulti, KService::DBusMulti, 131},
    {sipName_DBusNone, KService::DBusNone, 131},
    {sipName_DBusUnique, KService::DBusUnique, 131},
    {sipName_DBusWait, KService::DBusWait, 131},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KService = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KService,
        {0}
    },
    sipNameNr_KService,
    -1,
    -1,
    {0, 0, 1},
    supers_KService,
    0,
    43, methods_KService,
    4, enummembers_KService,
    0, 0,
    init_KService,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KService,
    release_KService,
    cast_KService,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 14362 "sipkdecorepart5.cpp"



extern "C" {static void assign_KSharedConfigPtr(void *, const void*);}
static void assign_KSharedConfigPtr(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KSharedConfigPtr *>(sipDst) = *reinterpret_cast<const KSharedConfigPtr *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_KSharedConfigPtr(void *, int);}
static void release_KSharedConfigPtr(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<KSharedConfigPtr *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_KSharedConfigPtr(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedConfigPtr(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KSharedConfigPtr **sipCppPtr = reinterpret_cast<KSharedConfigPtr **>(sipCppPtrV);

#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
    if (sipIsErr == NULL)
        return PyInstance_Check(sipPy);

    int state;
    KSharedConfig* ksc = (KSharedConfig *)sipConvertToInstance(sipPy, sipClass_KSharedConfig, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr);
    *sipCppPtr = new KSharedConfigPtr (ksc);
    ksc->ref.deref();
    return sipGetState(sipTransferObj);
#line 14398 "sipkdecorepart5.cpp"
}


extern "C" {static PyObject *convertFrom_KSharedConfigPtr(void *, PyObject *);}
static PyObject *convertFrom_KSharedConfigPtr(void *sipCppV,PyObject *sipTransferObj)
{
   KSharedConfigPtr *sipCpp = reinterpret_cast<KSharedConfigPtr *>(sipCppV);

#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
    if (!sipCpp)
        return NULL;

    KSharedConfigPtr kcpp = *sipCpp;
    KSharedConfig *ksc    = kcpp.data ();
    ksc->ref.ref();
    PyObject *pyKsc       = sipConvertFromInstance(ksc, sipClass_KSharedConfig, sipTransferObj);
    return pyKsc;
#line 14416 "sipkdecorepart5.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_kdecore_KSharedConfigPtr = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_KSharedConfigPtr,
        {0}
    },
    release_KSharedConfigPtr,
    convertTo_KSharedConfigPtr,
    convertFrom_KSharedConfigPtr
},
    assign_KSharedConfigPtr
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 14439 "sipkdecorepart5.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 14443 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14446 "sipkdecorepart5.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 14449 "sipkdecorepart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 14464 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 14467 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 14470 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 14473 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 14476 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 14479 "sipkdecorepart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 14482 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14485 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 14488 "sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 14491 "sipkdecorepart5.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14498 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14501 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14504 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14507 "sipkdecorepart5.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 14510 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 14513 "sipkdecorepart5.cpp"


extern "C" {static PyObject *meth_KSharedConfig_openConfig(PyObject *, PyObject *);}
static PyObject *meth_KSharedConfig_openConfig(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        KConfig::OpenFlags a1def = KConfig::FullConfig;
        KConfig::OpenFlags * a1 = &a1def;
        int a1State = 0;
        const char * a2 = "config";
        PyObject *a2Keep = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1J1AA",sipType_QString,&a0,&a0State,sipType_KConfig_OpenFlags,&a1,&a1State,&a2Keep,&a2))
        {
            KSharedConfig::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(KSharedConfig::openConfig(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KConfig_OpenFlags,a1State);
            Py_XDECREF(a2Keep);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KSharedConfig,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    {
        const KComponentData * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KConfig::OpenFlags a2def = KConfig::FullConfig;
        KConfig::OpenFlags * a2 = &a2def;
        int a2State = 0;
        const char * a3 = "config";
        PyObject *a3Keep = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|J1J1AA",sipType_KComponentData,&a0,sipType_QString,&a1,&a1State,sipType_KConfig_OpenFlags,&a2,&a2State,&a3Keep,&a3))
        {
            KSharedConfig::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(KSharedConfig::openConfig(*a0,*a1,*a2,a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KConfig_OpenFlags,a2State);
            Py_XDECREF(a3Keep);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KSharedConfig,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSharedConfig,sipName_openConfig);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSharedConfig(void *, const sipTypeDef *);}
static void *cast_KSharedConfig(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KSharedConfig)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfig)->ctd_cast((KConfig *)(KSharedConfig *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSharedConfig(void *, int);}
static void release_KSharedConfig(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSharedConfig *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSharedConfig(sipSimpleWrapper *);}
static void dealloc_KSharedConfig(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSharedConfig(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KSharedConfig[] = {{24, 255, 1}};


static PyMethodDef methods_KSharedConfig[] = {
    {SIP_MLNAME_CAST(sipName_openConfig), meth_KSharedConfig_openConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSharedConfig = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSharedConfig,
        {0}
    },
    sipNameNr_KSharedConfig,
    -1,
    -1,
    {0, 0, 1},
    supers_KSharedConfig,
    0,
    1, methods_KSharedConfig,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSharedConfig,
    release_KSharedConfig,
    cast_KSharedConfig,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 14681 "sipkdecorepart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14685 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14688 "sipkdecorepart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 14691 "sipkdecorepart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14694 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 14697 "sipkdecorepart5.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14704 "sipkdecorepart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14707 "sipkdecorepart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14710 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 14713 "sipkdecorepart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 14716 "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
{
    extern bool sipVH_kdecore_64(sip_gilstate_t,PyObject *,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasGroupImpl);

    if (!meth)
        return KConfig::hasGroupImpl(a0);

    return sipVH_kdecore_64(sipGILState,meth,a0);
}

KConfigGroup sipKDesktopFile::groupImpl(const QByteArray& a0)
{
    extern KConfigGroup sipVH_kdecore_66(sip_gilstate_t,PyObject *,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_groupImpl);

    if (!meth)
        return KConfig::groupImpl(a0);

    return sipVH_kdecore_66(sipGILState,meth,a0);
}

void sipKDesktopFile::deleteGroupImpl(const QByteArray& a0,KConfigBase::WriteConfigFlags a1)
{
    extern void sipVH_kdecore_65(sip_gilstate_t,PyObject *,const QByteArray&,KConfigBase::WriteConfigFlags);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_deleteGroupImpl);

    if (!meth)
    {
        KConfig::deleteGroupImpl(a0,a1);
        return;
    }

    sipVH_kdecore_65(sipGILState,meth,a0,a1);
}

bool sipKDesktopFile::isGroupImmutableImpl(const QByteArray& a0) const
{
    extern bool sipVH_kdecore_64(sip_gilstate_t,PyObject *,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isGroupImmutableImpl);

    if (!meth)
        return KConfig::isGroupImmutableImpl(a0);

    return sipVH_kdecore_64(sipGILState,meth,a0);
}

QStringList sipKDesktopFile::groupList() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_groupList);

    if (!meth)
        return KConfig::groupList();

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

void sipKDesktopFile::sync()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_sync);

    if (!meth)
    {
        KConfig::sync();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipKDesktopFile::markAsClean()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_markAsClean);

    if (!meth)
    {
        KConfig::markAsClean();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

KConfigBase::AccessMode sipKDesktopFile::accessMode() const
{
    extern KConfigBase::AccessMode sipVH_kdecore_67(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_accessMode);

    if (!meth)
        return KConfig::accessMode();

    return sipVH_kdecore_67(sipGILState,meth);
}

bool sipKDesktopFile::isImmutable() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_isImmutable);

    if (!meth)
        return KConfig::isImmutable();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

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)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&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(sipArgsParsed,sipName_KDesktopFile,sipName_hasGroupImpl);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_groupImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_groupImpl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&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(sipArgsParsed,sipName_KDesktopFile,sipName_groupImpl);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_deleteGroupImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_deleteGroupImpl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    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(&sipArgsParsed,sipArgs,"pJ1|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(sipArgsParsed,sipName_KDesktopFile,sipName_deleteGroupImpl);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isGroupImmutableImpl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isGroupImmutableImpl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&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(sipArgsParsed,sipName_KDesktopFile,sipName_isGroupImmutableImpl);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isDesktopFile(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isDesktopFile(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = 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(sipArgsParsed,sipName_KDesktopFile,sipName_isDesktopFile);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_isAuthorizedDesktopFile(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_isAuthorizedDesktopFile(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = 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(sipArgsParsed,sipName_KDesktopFile,sipName_isAuthorizedDesktopFile);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_locateLocal(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_locateLocal(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(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(sipArgsParsed,sipName_KDesktopFile,sipName_locateLocal);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_desktopGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_desktopGroup(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_desktopGroup);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readType);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readIcon(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readIcon(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readIcon);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readName);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readComment(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readComment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readComment);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readGenericName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readGenericName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readGenericName);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readPath(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readPath);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readDevice(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readDevice(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readDevice);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readUrl(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readUrl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readActions(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readActions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readActions);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_actionGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_actionGroup(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_actionGroup);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasActionGroup(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasActionGroup(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_hasActionGroup);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasLinkType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasLinkType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_hasLinkType);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasApplicationType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasApplicationType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_hasApplicationType);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasMimeTypeType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasMimeTypeType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_hasMimeTypeType);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_hasDeviceType(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_hasDeviceType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_hasDeviceType);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_tryExec(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_tryExec(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_tryExec);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_readDocPath(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_readDocPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_readDocPath);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_sortOrder(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_sortOrder(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_sortOrder);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_noDisplay(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_noDisplay(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_noDisplay);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_copyTo(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_copyTo(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_copyTo);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_fileName(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_fileName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_fileName);

    return NULL;
}


extern "C" {static PyObject *meth_KDesktopFile_resource(PyObject *, PyObject *);}
static PyObject *meth_KDesktopFile_resource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KDesktopFile *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KDesktopFile,sipName_resource);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KDesktopFile(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KDesktopFile(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KDesktopFile(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKDesktopFile *sipCpp = 0;

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KDesktopFile[] = {{24, 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 pyqt4Type_kdecore_KDesktopFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KDesktopFile,
        {0}
    },
    sipNameNr_KDesktopFile,
    -1,
    -1,
    {0, 0, 1},
    supers_KDesktopFile,
    0,
    30, methods_KDesktopFile,
    0, 0,
    0, 0,
    init_KDesktopFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KDesktopFile,
    release_KDesktopFile,
    cast_KDesktopFile,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
