/*
 * 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/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 12 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipkdecorepart3.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 19 "sipkdecorepart3.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 22 "sipkdecorepart3.cpp"


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

    {
        KLocalizedString *sipCpp;

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

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

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

    {
        const KLocale * a0;
        KLocalizedString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KLocalizedString,&sipCpp,sipType_KLocale,&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_KLocalizedString,sipName_toString);

    return NULL;
}


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

    {
        KLocalizedString *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qlonglong a0;
        int a1 = 0;
        int a2 = 10;
        const QChar& a3def = QLatin1Char(' ');
        const QChar * a3 = &a3def;
        KLocalizedString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bn|iiJ9",&sipSelf,sipType_KLocalizedString,&sipCpp,&a0,&a1,&a2,sipType_QChar,&a3))
        {
            KLocalizedString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(a0,a1,a2,*a3));
            Py_END_ALLOW_THREADS

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

    {
        QChar * a0;
        int a1 = 0;
        const QChar& a2def = QLatin1Char(' ');
        const QChar * a2 = &a2def;
        KLocalizedString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|iJ9",&sipSelf,sipType_KLocalizedString,&sipCpp,sipType_QChar,&a0,&a1,sipType_QChar,&a2))
        {
            KLocalizedString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(*a0,a1,*a2));
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;
        int a1 = 0;
        const QChar& a2def = QLatin1Char(' ');
        const QChar * a2 = &a2def;
        KLocalizedString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|iJ9",&sipSelf,sipType_KLocalizedString,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QChar,&a2))
        {
            KLocalizedString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(*a0,a1,*a2));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J1",&sipSelf,sipType_KLocalizedString,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            KLocalizedString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->inContext(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocalizedString *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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

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

    if (!sipCpp)
    {
        const KLocalizedString * a0;

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

    return sipCpp;
}


static PyMethodDef methods_KLocalizedString[] = {
    {SIP_MLNAME_CAST(sipName_inContext), meth_KLocalizedString_inContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KLocalizedString_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subs), meth_KLocalizedString_subs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_KLocalizedString_toString, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLocalizedString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocalizedString,
        {0}
    },
    sipNameNr_KLocalizedString,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    4, methods_KLocalizedString,
    0, 0,
    0, 0,
    init_KLocalizedString,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalizedString,
    release_KLocalizedString,
    cast_KLocalizedString,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KLocalizedString,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 328 "sipkdecorepart3.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 332 "sipkdecorepart3.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<KLocale::DateTimeFormatOptions *>(a0),sipType_KLocale_DateTimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<KLocale::DateTimeFormatOptions *>(a0),sipType_KLocale_DateTimeFormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;


    {
        {
            KLocale::DateTimeFormatOptions *sipRes;

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

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

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

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

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

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

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeFormatOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS

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

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

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_KLocale_DateTimeFormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeFormatOptions::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_KLocale_DateTimeFormatOptions(void *, const sipTypeDef *);}
static void *cast_KLocale_DateTimeFormatOptions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KLocale_DateTimeFormatOptions)
        return ptr;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

    if (!sipCpp)
    {
        const KLocale::DateTimeFormatOptions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KLocale_DateTimeFormatOptions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::DateTimeFormatOptions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KLocale::DateTimeFormatOptions *>(a0),sipType_KLocale_DateTimeFormatOptions,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

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

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

    return sipCpp;
}


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

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

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 781 "sipkdecorepart3.cpp"
}


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


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

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 849 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 853 "sipkdecorepart3.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 868 "sipkdecorepart3.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 871 "sipkdecorepart3.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 874 "sipkdecorepart3.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 877 "sipkdecorepart3.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 880 "sipkdecorepart3.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 883 "sipkdecorepart3.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 886 "sipkdecorepart3.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 889 "sipkdecorepart3.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 892 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 895 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 81 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 900 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 903 "sipkdecorepart3.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 906 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 909 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 912 "sipkdecorepart3.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 915 "sipkdecorepart3.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 918 "sipkdecorepart3.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 921 "sipkdecorepart3.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 974 "sipkdecorepart3.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 977 "sipkdecorepart3.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 980 "sipkdecorepart3.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 983 "sipkdecorepart3.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 986 "sipkdecorepart3.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 989 "sipkdecorepart3.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 992 "sipkdecorepart3.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 995 "sipkdecorepart3.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 998 "sipkdecorepart3.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 1001 "sipkdecorepart3.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 1004 "sipkdecorepart3.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 1007 "sipkdecorepart3.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 1010 "sipkdecorepart3.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 1013 "sipkdecorepart3.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 1016 "sipkdecorepart3.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 1019 "sipkdecorepart3.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 1022 "sipkdecorepart3.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 1025 "sipkdecorepart3.cpp"


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

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

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

            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(a4,sipType_QString,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            sipReleaseType(a4,sipType_QString,a4State);
            sipReleaseType(a5,sipType_QString,a5State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->digitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fracDigits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positivePrefixCurrencySymbol();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negativePrefixCurrencySymbol();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positiveMonetarySignPosition();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_SignPosition);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negativeMonetarySignPosition();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_SignPosition);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monetaryDigitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        long a0;
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        double a0;
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        unsigned long a0;
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        unsigned long a0;
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->nounDeclension();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

            sipReleaseType(a2,sipType_KLocale_DateTimeFormatOptions,a2State);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dateMonthNamePossessive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dateTimeDigitSet();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_DigitSet);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->use12Clock();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekStartDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->workingWeekStartDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->workingWeekEndDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekDayOfPray();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendar();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingMib();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->codecForEncoding();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fileEncodingMib();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::SignPosition a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::SignPosition a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DigitSet a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pageSize();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->measureSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_MeasureSystem);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::MeasureSystem a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(a4,sipType_QString,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KLocale::langLookup(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        KLocale *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->useTranscript();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale * a0;
        KLocale *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KLocale *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J1",sipType_QString,&a0,&a0State,sipType_KSharedPtr_0200KSharedConfig,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale(*a0,*a1);
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1|J1J8",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_KConfig,&a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const KLocale * a0;

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

    return sipCpp;
}


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

static sipEnumMemberDef enummembers_KLocale[] = {
    {sipName_AfterMoney, KLocale::AfterMoney, 98},
    {sipName_AfterQuantityMoney, KLocale::AfterQuantityMoney, 98},
    {sipName_ArabicDigits, KLocale::ArabicDigits, 94},
    {sipName_ArabicIndicDigits, KLocale::ArabicIndicDigits, 94},
    {sipName_BeforeMoney, KLocale::BeforeMoney, 98},
    {sipName_BeforeQuantityMoney, KLocale::BeforeQuantityMoney, 98},
    {sipName_DevenagariDigits, KLocale::DevenagariDigits, 94},
    {sipName_EasternArabicIndicDigits, KLocale::EasternArabicIndicDigits, 94},
    {sipName_FancyLongDate, KLocale::FancyLongDate, 91},
    {sipName_FancyShortDate, KLocale::FancyShortDate, 91},
    {sipName_Imperial, KLocale::Imperial, 95},
    {sipName_LongDate, KLocale::LongDate, 91},
    {sipName_Metric, KLocale::Metric, 95},
    {sipName_NormalFormat, KLocale::NormalFormat, 96},
    {sipName_ParensAround, KLocale::ParensAround, 98},
    {sipName_Seconds, KLocale::Seconds, 92},
    {sipName_ShortDate, KLocale::ShortDate, 91},
    {sipName_ShortFormat, KLocale::ShortFormat, 96},
    {sipName_TimeZone, KLocale::TimeZone, 92},
    {sipName_WithSeconds, KLocale::WithSeconds, 97},
    {sipName_WithoutSeconds, KLocale::WithoutSeconds, 97},
};


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

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kencodingprober.sip"
#include <kencodingprober.h>
#line 4386 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4390 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4393 "sipkdecorepart3.cpp"


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

    {
        KEncodingProber *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEncodingProber,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KEncodingProber::ProberState sipRes;

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

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAi",&sipSelf,sipType_KEncodingProber,&sipCpp,&a0Keep,&a0,&a1))
        {
            KEncodingProber::ProberState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->feed(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingProber,&sipCpp))
        {
            KEncodingProber::ProberState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberState);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingProber,&sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingName();
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KEncodingProber *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KEncodingProber *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->confidence();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingProber,&sipCpp))
        {
            KEncodingProber::ProberType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->proberType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberType);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingProber::ProberType a0;
        KEncodingProber *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KEncodingProber,&sipCpp,sipType_KEncodingProber_ProberType,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProberType(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KEncodingProber::ProberType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingProber::proberTypeForName(*a0);
            Py_END_ALLOW_THREADS

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

            return sipConvertFromEnum(sipRes,sipType_KEncodingProber_ProberType);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingProber::ProberType a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KEncodingProber::nameForProberType(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KEncodingProber *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    if (!sipCpp)
    {
        KEncodingProber::ProberType a0 = KEncodingProber::Universal;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|E",sipType_KEncodingProber_ProberType,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEncodingProber(a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KEncodingProber[] = {
    {SIP_MLNAME_CAST(sipName_confidence), meth_KEncodingProber_confidence, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KEncodingProber_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingName), meth_KEncodingProber_encodingName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_feed), meth_KEncodingProber_feed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nameForProberType), meth_KEncodingProber_nameForProberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proberType), meth_KEncodingProber_proberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proberTypeForName), meth_KEncodingProber_proberTypeForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KEncodingProber_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProberType), meth_KEncodingProber_setProberType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_KEncodingProber_state, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEncodingProber[] = {
    {sipName_Arabic, KEncodingProber::Arabic, 70},
    {sipName_Baltic, KEncodingProber::Baltic, 70},
    {sipName_CentralEuropean, KEncodingProber::CentralEuropean, 70},
    {sipName_ChineseSimplified, KEncodingProber::ChineseSimplified, 70},
    {sipName_ChineseTraditional, KEncodingProber::ChineseTraditional, 70},
    {sipName_Cyrillic, KEncodingProber::Cyrillic, 70},
    {sipName_FoundIt, KEncodingProber::FoundIt, 69},
    {sipName_Greek, KEncodingProber::Greek, 70},
    {sipName_Hebrew, KEncodingProber::Hebrew, 70},
    {sipName_Japanese, KEncodingProber::Japanese, 70},
    {sipName_Korean, KEncodingProber::Korean, 70},
    {sipName_None, KEncodingProber::None, 70},
    {sipName_NorthernSaami, KEncodingProber::NorthernSaami, 70},
    {sipName_NotMe, KEncodingProber::NotMe, 69},
    {sipName_Other, KEncodingProber::Other, 70},
    {sipName_Probing, KEncodingProber::Probing, 69},
    {sipName_SouthEasternEurope, KEncodingProber::SouthEasternEurope, 70},
    {sipName_Thai, KEncodingProber::Thai, 70},
    {sipName_Turkish, KEncodingProber::Turkish, 70},
    {sipName_Unicode, KEncodingProber::Unicode, 70},
    {sipName_Universal, KEncodingProber::Universal, 70},
    {sipName_WesternEuropean, KEncodingProber::WesternEuropean, 70},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KEncodingProber = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEncodingProber,
        {0}
    },
    sipNameNr_KEncodingProber,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    10, methods_KEncodingProber,
    22, enummembers_KEncodingProber,
    0, 0,
    init_KEncodingProber,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEncodingProber,
    release_KEncodingProber,
    cast_KEncodingProber,
    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/kencodingdetector.sip"
#include <kencodingdetector.h>
#line 4837 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 81 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 4843 "sipkdecorepart3.cpp"
#line 136 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 4846 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4849 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4852 "sipkdecorepart3.cpp"


class sipKEncodingDetector : public KEncodingDetector
{
public:
    sipKEncodingDetector();
    sipKEncodingDetector(QTextCodec *,KEncodingDetector::EncodingChoiceSource,KEncodingDetector::AutoDetectScript);
    ~sipKEncodingDetector();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_processNull(char *,int);
    bool sipProtect_errorsIfUtf8(const char *,int);
    bool sipProtect_analyze(const char *,int);
    QTextDecoder * sipProtect_decoder();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKEncodingDetector(const sipKEncodingDetector &);
    sipKEncodingDetector &operator = (const sipKEncodingDetector &);
};

sipKEncodingDetector::sipKEncodingDetector(): KEncodingDetector(), sipPySelf(0)
{
}

sipKEncodingDetector::sipKEncodingDetector(QTextCodec *a0,KEncodingDetector::EncodingChoiceSource a1,KEncodingDetector::AutoDetectScript a2): KEncodingDetector(a0,a1,a2), sipPySelf(0)
{
}

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

bool sipKEncodingDetector::sipProtect_processNull(char *a0,int a1)
{
    return KEncodingDetector::processNull(a0,a1);
}

bool sipKEncodingDetector::sipProtect_errorsIfUtf8(const char *a0,int a1)
{
    return KEncodingDetector::errorsIfUtf8(a0,a1);
}

bool sipKEncodingDetector::sipProtect_analyze(const char *a0,int a1)
{
    return KEncodingDetector::analyze(a0,a1);
}

QTextDecoder * sipKEncodingDetector::sipProtect_decoder()
{
    return KEncodingDetector::decoder();
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        KEncodingDetector::EncodingChoiceSource a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAE",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,sipType_KEncodingDetector_EncodingChoiceSource,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setEncoding(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingDetector,&sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encoding();
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->visuallyOrdered();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector::AutoDetectScript a0;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KEncodingDetector,&sipCpp,sipType_KEncodingDetector_AutoDetectScript,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDetectLanguage(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingDetector,&sipCpp))
        {
            KEncodingDetector::AutoDetectScript sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoDetectLanguage();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_AutoDetectScript);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEncodingDetector,&sipCpp))
        {
            KEncodingDetector::EncodingChoiceSource sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encodingChoiceSource();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_EncodingChoiceSource);
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAi",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->decode(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

    {
        const QByteArray * a0;
        int a0State = 0;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEncodingDetector,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            QString *sipRes;

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

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        KEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAi",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->decodeWithBuffering(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->decodedInvalidCharacters();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KEncodingDetector::AutoDetectScript sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingDetector::scriptForName(*a0);
            Py_END_ALLOW_THREADS

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

            return sipConvertFromEnum(sipRes,sipType_KEncodingDetector_AutoDetectScript);
        }
    }

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

    return NULL;
}


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

    {
        KEncodingDetector::AutoDetectScript a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KEncodingDetector::nameForScript(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KEncodingDetector::AutoDetectScript a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"E",sipType_KEncodingDetector_AutoDetectScript,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KEncodingDetector::hasAutoDetectionForScript(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pAAi",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_processNull(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pAAi",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_errorsIfUtf8(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        int a1;
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pAAi",&sipSelf,sipType_KEncodingDetector,&sipCpp,&a0Keep,&a0,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_analyze(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKEncodingDetector *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KEncodingDetector,&sipCpp))
        {
            QTextDecoder *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_decoder();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKEncodingDetector *>(sipCppV);
    else
        delete reinterpret_cast<KEncodingDetector *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (!sipCpp)
    {
        QTextCodec * a0;
        KEncodingDetector::EncodingChoiceSource a1;
        KEncodingDetector::AutoDetectScript a2 = KEncodingDetector::None;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8E|E",sipType_QTextCodec,&a0,sipType_KEncodingDetector_EncodingChoiceSource,&a1,sipType_KEncodingDetector_AutoDetectScript,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKEncodingDetector(a0,a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KEncodingDetector[] = {
    {SIP_MLNAME_CAST(sipName_analyze), meth_KEncodingDetector_analyze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autoDetectLanguage), meth_KEncodingDetector_autoDetectLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decode), meth_KEncodingDetector_decode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodeWithBuffering), meth_KEncodingDetector_decodeWithBuffering, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodedInvalidCharacters), meth_KEncodingDetector_decodedInvalidCharacters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decoder), meth_KEncodingDetector_decoder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KEncodingDetector_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingChoiceSource), meth_KEncodingDetector_encodingChoiceSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorsIfUtf8), meth_KEncodingDetector_errorsIfUtf8, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flush), meth_KEncodingDetector_flush, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAutoDetectionForScript), meth_KEncodingDetector_hasAutoDetectionForScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nameForScript), meth_KEncodingDetector_nameForScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processNull), meth_KEncodingDetector_processNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetDecoder), meth_KEncodingDetector_resetDecoder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scriptForName), meth_KEncodingDetector_scriptForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDetectLanguage), meth_KEncodingDetector_setAutoDetectLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_KEncodingDetector_setEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_visuallyOrdered), meth_KEncodingDetector_visuallyOrdered, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEncodingDetector[] = {
    {sipName_Arabic, KEncodingDetector::Arabic, 66},
    {sipName_AutoDetectedEncoding, KEncodingDetector::AutoDetectedEncoding, 67},
    {sipName_BOM, KEncodingDetector::BOM, 67},
    {sipName_Baltic, KEncodingDetector::Baltic, 66},
    {sipName_CentralEuropean, KEncodingDetector::CentralEuropean, 66},
    {sipName_ChineseSimplified, KEncodingDetector::ChineseSimplified, 66},
    {sipName_ChineseTraditional, KEncodingDetector::ChineseTraditional, 66},
    {sipName_Cyrillic, KEncodingDetector::Cyrillic, 66},
    {sipName_DefaultEncoding, KEncodingDetector::DefaultEncoding, 67},
    {sipName_EncodingFromHTTPHeader, KEncodingDetector::EncodingFromHTTPHeader, 67},
    {sipName_EncodingFromMetaTag, KEncodingDetector::EncodingFromMetaTag, 67},
    {sipName_EncodingFromXMLHeader, KEncodingDetector::EncodingFromXMLHeader, 67},
    {sipName_Greek, KEncodingDetector::Greek, 66},
    {sipName_Hebrew, KEncodingDetector::Hebrew, 66},
    {sipName_Japanese, KEncodingDetector::Japanese, 66},
    {sipName_Korean, KEncodingDetector::Korean, 66},
    {sipName_None, KEncodingDetector::None, 66},
    {sipName_NorthernSaami, KEncodingDetector::NorthernSaami, 66},
    {sipName_SemiautomaticDetection, KEncodingDetector::SemiautomaticDetection, 66},
    {sipName_SouthEasternEurope, KEncodingDetector::SouthEasternEurope, 66},
    {sipName_Thai, KEncodingDetector::Thai, 66},
    {sipName_Turkish, KEncodingDetector::Turkish, 66},
    {sipName_Unicode, KEncodingDetector::Unicode, 66},
    {sipName_UserChosenEncoding, KEncodingDetector::UserChosenEncoding, 67},
    {sipName_WesternEuropean, KEncodingDetector::WesternEuropean, 66},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KEncodingDetector = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEncodingDetector,
        {0}
    },
    sipNameNr_KEncodingDetector,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    18, methods_KEncodingDetector,
    25, enummembers_KEncodingDetector,
    0, 0,
    init_KEncodingDetector,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEncodingDetector,
    release_KEncodingDetector,
    cast_KEncodingDetector,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 5622 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5626 "sipkdecorepart3.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 5679 "sipkdecorepart3.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 5682 "sipkdecorepart3.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 5685 "sipkdecorepart3.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 5688 "sipkdecorepart3.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 5691 "sipkdecorepart3.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 5694 "sipkdecorepart3.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 5697 "sipkdecorepart3.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 5700 "sipkdecorepart3.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 5703 "sipkdecorepart3.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5706 "sipkdecorepart3.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 5709 "sipkdecorepart3.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 5712 "sipkdecorepart3.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 5715 "sipkdecorepart3.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 5718 "sipkdecorepart3.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 5721 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5724 "sipkdecorepart3.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 5727 "sipkdecorepart3.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 5730 "sipkdecorepart3.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 5733 "sipkdecorepart3.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 5736 "sipkdecorepart3.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 5739 "sipkdecorepart3.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 5754 "sipkdecorepart3.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 5757 "sipkdecorepart3.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 5760 "sipkdecorepart3.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 5763 "sipkdecorepart3.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 5766 "sipkdecorepart3.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 5769 "sipkdecorepart3.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 5772 "sipkdecorepart3.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 5775 "sipkdecorepart3.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 5778 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 81 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 5783 "sipkdecorepart3.cpp"


class sipKCharsets : public KCharsets
{
public:
    sipKCharsets();
    ~sipKCharsets();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCharsets(const sipKCharsets &);
    sipKCharsets &operator = (const sipKCharsets &);
};

sipKCharsets::sipKCharsets(): KCharsets(), sipPySelf(0)
{
}

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


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCharsets,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QTextCodec *sipRes;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCharsets,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QTextCodec *sipRes;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(KCharsets::fromEntity(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(KCharsets::fromEntity(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QChar * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCharsets::toEntity(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KCharsets_resolveEntities(PyObject *, PyObject *);}
static PyObject *meth_KCharsets_resolveEntities(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(KCharsets::resolveEntities(*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_KCharsets,sipName_resolveEntities);

    return NULL;
}


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

    {
        KCharsets *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KCharsets *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KCharsets *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QStringList>(sipCpp->encodingsByScript());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->languageForEncoding(*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_KCharsets,sipName_languageForEncoding);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->descriptionForEncoding(*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_KCharsets,sipName_descriptionForEncoding);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->encodingForName(*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_KCharsets,sipName_encodingForName);

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCharsets *>(sipCppV);
    else
        delete reinterpret_cast<KCharsets *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KCharsets[] = {
    {SIP_MLNAME_CAST(sipName_availableEncodingNames), meth_KCharsets_availableEncodingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codecForName), meth_KCharsets_codecForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codecForName2), meth_KCharsets_codecForName2, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptionForEncoding), meth_KCharsets_descriptionForEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptiveEncodingNames), meth_KCharsets_descriptiveEncodingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingForName), meth_KCharsets_encodingForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingsByScript), meth_KCharsets_encodingsByScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromEntity), meth_KCharsets_fromEntity, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromEntity2), meth_KCharsets_fromEntity2, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageForEncoding), meth_KCharsets_languageForEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resolveEntities), meth_KCharsets_resolveEntities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toEntity), meth_KCharsets_toEntity, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCharsets = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCharsets,
        {0}
    },
    sipNameNr_KCharsets,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    12, methods_KCharsets,
    0, 0,
    0, 0,
    init_KCharsets,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCharsets,
    release_KCharsets,
    cast_KCharsets,
    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/ktoolinvocation.sip"
#include <ktoolinvocation.h>
#line 6294 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6298 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6301 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6304 "sipkdecorepart3.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 6307 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6310 "sipkdecorepart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6313 "sipkdecorepart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6316 "sipkdecorepart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6319 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6322 "sipkdecorepart3.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 6353 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 6356 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6359 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6362 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 6365 "sipkdecorepart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6368 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6371 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6374 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6377 "sipkdecorepart3.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        const QByteArray& a2def = QByteArray();
        const QByteArray * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QByteArray,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeHelp(*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<QByteArray *>(a2),sipType_QByteArray,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QByteArray,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeMailer(*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<QByteArray *>(a2),sipType_QByteArray,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl * a0;
        const QByteArray& a1def = QByteArray();
        const QByteArray * a1 = &a1def;
        int a1State = 0;
        bool a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|J1b",sipType_KUrl,&a0,sipType_QByteArray,&a1,&a1State,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeMailer(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        const QString& a5def = QString();
        const QString * a5 = &a5def;
        int a5State = 0;
        const QStringList& a6def = QStringList();
        const QStringList * a6 = &a6def;
        int a6State = 0;
        const QByteArray& a7def = QByteArray();
        const QByteArray * a7 = &a7def;
        int a7State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1J1J1J1|J1J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QString,&a4,&a4State,sipType_QString,&a5,&a5State,sipType_QStringList,&a6,&a6State,sipType_QByteArray,&a7,&a7State))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeMailer(*a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7);
            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);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QStringList *>(a6),sipType_QStringList,a6State);
            sipReleaseType(const_cast<QByteArray *>(a7),sipType_QByteArray,a7State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1",sipType_QString,&a0,&a0State,sipType_QByteArray,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeBrowser(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        const QByteArray& a2def = "";
        const QByteArray * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QByteArray,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KToolInvocation::invokeTerminal(*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<QByteArray *>(a2),sipType_QByteArray,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J0J0J1b",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByName(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J0J0J1b",sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByName(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J0J0J1b",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByDesktopPath(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J0J0J1b",sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByDesktopPath(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J0J0J1b",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByDesktopName(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

    {
        const QString * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        QString * a3 = 0;
        int a3State = 0;
        int a4;
        const QByteArray& a5def = QByteArray();
        const QByteArray * a5 = &a5def;
        int a5State = 0;
        bool a6 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J0J0J1b",sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,sipType_QByteArray,&a5,&a5State,&a6))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::startServiceByDesktopName(*a0,*a1,a2,a3,&a4,*a5,a6);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);
            sipReleaseType(const_cast<QByteArray *>(a5),sipType_QByteArray,a5State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        int a3;
        const QByteArray& a4def = QByteArray();
        const QByteArray * a4 = &a4def;
        int a4State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J0J1",sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QByteArray,&a4,&a4State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::kdeinitExec(*a0,*a1,a2,&a3,*a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        QString * a2 = 0;
        int a2State = 0;
        int a3;
        const QByteArray& a4def = QByteArray();
        const QByteArray * a4 = &a4def;
        int a4State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J0J1",sipType_QString,&a0,&a0State,sipType_QStringList,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QByteArray,&a4,&a4State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KToolInvocation::kdeinitExecWait(*a0,*a1,a2,&a3,*a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KToolInvocation)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KToolInvocation *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KToolInvocation[] = {
    {SIP_MLNAME_CAST(sipName_invokeBrowser), meth_KToolInvocation_invokeBrowser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeHelp), meth_KToolInvocation_invokeHelp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeMailer), meth_KToolInvocation_invokeMailer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeTerminal), meth_KToolInvocation_invokeTerminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kdeinitExec), meth_KToolInvocation_kdeinitExec, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kdeinitExecWait), meth_KToolInvocation_kdeinitExecWait, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KToolInvocation_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByDesktopName), meth_KToolInvocation_startServiceByDesktopName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByDesktopPath), meth_KToolInvocation_startServiceByDesktopPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByName), meth_KToolInvocation_startServiceByName, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KToolInvocation[] = {
    {"kapplication_hook(QStringList&,QByteArray&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KToolInvocation = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KToolInvocation,
        {0}
    },
    sipNameNr_KToolInvocation,
    -1,
    -1,
    {0, 0, 1},
    supers_KToolInvocation,
    0,
    10, methods_KToolInvocation,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KToolInvocation,
    release_KToolInvocation,
    cast_KToolInvocation,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KToolInvocation::staticMetaObject,
    0,
    pyqt4_signals_KToolInvocation
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 7041 "sipkdecorepart3.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 7045 "sipkdecorepart3.cpp"


extern "C" {static int slot_KStandardDirs_SearchOptions___bool__(PyObject *sipSelf);}
static int slot_KStandardDirs_SearchOptions___bool__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KStandardDirs_SearchOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KStandardDirs::SearchOptions * a0;
        int a0State = 0;

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

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

            sipReleaseType(const_cast<KStandardDirs::SearchOptions *>(a0),sipType_KStandardDirs_SearchOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KStandardDirs_SearchOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KStandardDirs::SearchOptions * a0;
        int a0State = 0;

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

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

            sipReleaseType(const_cast<KStandardDirs::SearchOptions *>(a0),sipType_KStandardDirs_SearchOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___invert__(PyObject *sipSelf);}
static PyObject *slot_KStandardDirs_SearchOptions___invert__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KStandardDirs::SearchOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        KStandardDirs::SearchOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KStandardDirs_SearchOptions,&a0,&a0State,&a1))
        {
            KStandardDirs::SearchOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

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

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


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

    {
        KStandardDirs::SearchOptions * a0;
        int a0State = 0;
        KStandardDirs::SearchOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KStandardDirs_SearchOptions,&a0,&a0State,sipType_KStandardDirs_SearchOptions,&a1,&a1State))
        {
            KStandardDirs::SearchOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

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

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

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


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

    {
        KStandardDirs::SearchOptions * a0;
        int a0State = 0;
        KStandardDirs::SearchOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KStandardDirs_SearchOptions,&a0,&a0State,sipType_KStandardDirs_SearchOptions,&a1,&a1State))
        {
            KStandardDirs::SearchOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS

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

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

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___int__(PyObject *sipSelf);}
static PyObject *slot_KStandardDirs_SearchOptions___int__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    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_KStandardDirs_SearchOptions___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KStandardDirs_SearchOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KStandardDirs::SearchOptions * a0;
        int a0State = 0;

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

            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KStandardDirs::SearchOptions * a0;
        int a0State = 0;

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

            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KStandardDirs::SearchOptions::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_KStandardDirs_SearchOptions(void *, const sipTypeDef *);}
static void *cast_KStandardDirs_SearchOptions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KStandardDirs_SearchOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KStandardDirs::SearchOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KStandardDirs_SearchOptions(void *, const void*);}
static void assign_KStandardDirs_SearchOptions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KStandardDirs::SearchOptions *>(sipDst) = *reinterpret_cast<const KStandardDirs::SearchOptions *>(sipSrc);
}


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


extern "C" {static void *init_KStandardDirs_SearchOptions(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KStandardDirs_SearchOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KStandardDirs::SearchOptions *sipCpp = 0;

    if (!sipCpp)
    {
        const KStandardDirs::SearchOptions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KStandardDirs_SearchOptions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KStandardDirs::SearchOptions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KStandardDirs::SearchOptions *>(a0),sipType_KStandardDirs_SearchOptions,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

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

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

    return sipCpp;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOption)) ||
            sipCanConvertToType(sipPy, sipType_KStandardDirs_SearchOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOption)))
{
    *sipCppPtr = new KStandardDirs::SearchOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KStandardDirs::SearchOptions *>(sipConvertToType(sipPy, sipType_KStandardDirs_SearchOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7494 "sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KStandardDirs_SearchOptions[] = {
    {(void *)slot_KStandardDirs_SearchOptions___bool__, bool_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ne__, ne_slot},
    {(void *)slot_KStandardDirs_SearchOptions___eq__, eq_slot},
    {(void *)slot_KStandardDirs_SearchOptions___invert__, invert_slot},
    {(void *)slot_KStandardDirs_SearchOptions___and__, and_slot},
    {(void *)slot_KStandardDirs_SearchOptions___xor__, xor_slot},
    {(void *)slot_KStandardDirs_SearchOptions___or__, or_slot},
    {(void *)slot_KStandardDirs_SearchOptions___int__, int_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ixor__, ixor_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ior__, ior_slot},
    {(void *)slot_KStandardDirs_SearchOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KStandardDirs_SearchOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KStandardDirs__SearchOptions,
        {0}
    },
    sipNameNr_SearchOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {161, 255, 0},
    0,
    slots_KStandardDirs_SearchOptions,
    0, 0,
    0, 0,
    0, 0,
    init_KStandardDirs_SearchOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KStandardDirs_SearchOptions,
    release_KStandardDirs_SearchOptions,
    cast_KStandardDirs_SearchOptions,
    convertTo_KStandardDirs_SearchOptions,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KStandardDirs_SearchOptions,
    0,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 7562 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7566 "sipkdecorepart3.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 7569 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7572 "sipkdecorepart3.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 7575 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 7578 "sipkdecorepart3.cpp"


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrefix(*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_KStandardDirs,sipName_addPrefix);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addXdgConfigPrefix(*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_KStandardDirs,sipName_addXdgConfigPrefix);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_addXdgDataPrefix(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_addXdgDataPrefix(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addXdgDataPrefix(*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_KStandardDirs,sipName_addXdgDataPrefix);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_addResourceType(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_addResourceType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1|b",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const QString * a2;
        int a2State = 0;
        bool a3 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAAAJ1|b",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,&a1Keep,&a1,sipType_QString,&a2,&a2State,&a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);

            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        bool a3 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAAAAA|b",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,&a1Keep,&a1,&a2Keep,&a2,&a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_addResourceType);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_addResourceDir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_addResourceDir(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1|b",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceDir(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_addResourceDir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findResource(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findResource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResource(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findResource);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_isRestrictedResource(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_isRestrictedResource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA|J1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRestrictedResource(a0,*a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_isRestrictedResource);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_calcResourceHash(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_calcResourceHash(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a2 = &a2def;
        int a2State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1|J1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,sipType_KStandardDirs_SearchOptions,&a2,&a2State))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calcResourceHash(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_calcResourceHash);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findDirs(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findDirs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findDirs(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findDirs);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findResourceDir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findResourceDir(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResourceDir(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findResourceDir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findAllResources(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findAllResources(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a2 = &a2def;
        int a2State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA|J1J1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,sipType_KStandardDirs_SearchOptions,&a2,&a2State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findAllResources(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs::SearchOptions * a2;
        int a2State = 0;
        QStringList * a3;
        int a3State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1J1J1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,sipType_KStandardDirs_SearchOptions,&a2,&a2State,sipType_QStringList,&a3,&a3State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findAllResources(a0,*a1,*a2,*a3));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);
            sipReleaseType(a3,sipType_QStringList,a3State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findAllResources);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_systemPaths(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_systemPaths(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))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStandardDirs::systemPaths(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_systemPaths);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findExe(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findExe(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_KStandardDirs_SearchOptions,&a2,&a2State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::findExe(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findExe);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_findAllExe(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_findAllExe(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QStringList * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        KStandardDirs::SearchOptions a3def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J1J1",sipType_QStringList,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_KStandardDirs_SearchOptions,&a3,&a3State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::findAllExe(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QStringList,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(a3,sipType_KStandardDirs_SearchOptions,a3State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_findAllExe);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_addCustomized(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_addCustomized(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KConfig * a0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KStandardDirs,&sipCpp,sipType_KConfig,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addCustomized(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_addCustomized);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_resourceDirs(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_resourceDirs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->resourceDirs(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_resourceDirs);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_allTypes(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_allTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->allTypes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_allTypes);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_saveLocation(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_saveLocation(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAA|J1b",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->saveLocation(a0,*a1,a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_saveLocation);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_relativeLocation(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_relativeLocation(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1",&sipSelf,sipType_KStandardDirs,&sipCpp,&a0Keep,&a0,sipType_QString,&a1,&a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->relativeLocation(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_relativeLocation);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_makeDir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_makeDir(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        int a1 = 493;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|i",sipType_QString,&a0,&a0State,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::makeDir(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_makeDir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_kde_default(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_kde_default(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::kde_default(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_kde_default);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_kfsstnd_prefixes(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_kfsstnd_prefixes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->kfsstnd_prefixes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_kfsstnd_prefixes);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_kfsstnd_xdg_conf_prefixes(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_kfsstnd_xdg_conf_prefixes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->kfsstnd_xdg_conf_prefixes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_kfsstnd_xdg_conf_prefixes);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_kfsstnd_xdg_data_prefixes(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_kfsstnd_xdg_data_prefixes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->kfsstnd_xdg_data_prefixes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_kfsstnd_xdg_data_prefixes);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_localkdedir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_localkdedir(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localkdedir());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_localkdedir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_localxdgdatadir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_localxdgdatadir(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localxdgdatadir());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_localxdgdatadir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_localxdgconfdir(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_localxdgconfdir(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KStandardDirs,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localxdgconfdir());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_localxdgconfdir);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_installPath(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_installPath(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::installPath(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_installPath);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_exists(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_exists(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 = KStandardDirs::exists(*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_KStandardDirs,sipName_exists);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_realPath(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_realPath(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(KStandardDirs::realPath(*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_KStandardDirs,sipName_realPath);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_realFilePath(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_realFilePath(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(KStandardDirs::realFilePath(*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_KStandardDirs,sipName_realFilePath);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_locate(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_locate(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AAJ1|J9",&a0Keep,&a0,sipType_QString,&a1,&a1State,sipType_KComponentData,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locate(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_locate);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_locateLocal(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_locateLocal(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData * a2 = &a2def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AAJ1|J9",&a0Keep,&a0,sipType_QString,&a1,&a1State,sipType_KComponentData,&a2))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locateLocal(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        bool a2;
        const KComponentData& a3def = KGlobal::mainComponent();
        const KComponentData * a3 = &a3def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AAJ1b|J9",&a0Keep,&a0,sipType_QString,&a1,&a1State,&a2,sipType_KComponentData,&a3))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locateLocal(a0,*a1,a2,*a3));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_locateLocal);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_checkAccess(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_checkAccess(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        int a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1i",sipType_QString,&a0,&a0State,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::checkAccess(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KStandardDirs,sipName_checkAccess);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KStandardDirs(void *, const sipTypeDef *);}
static void *cast_KStandardDirs(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KStandardDirs)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KStandardDirs(void *, int);}
static void release_KStandardDirs(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KStandardDirs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KStandardDirs(sipSimpleWrapper *);}
static void dealloc_KStandardDirs(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KStandardDirs(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KStandardDirs(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KStandardDirs(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KStandardDirs *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KStandardDirs();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KStandardDirs[] = {
    {SIP_MLNAME_CAST(sipName_addCustomized), meth_KStandardDirs_addCustomized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addPrefix), meth_KStandardDirs_addPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addResourceDir), meth_KStandardDirs_addResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addResourceType), meth_KStandardDirs_addResourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addXdgConfigPrefix), meth_KStandardDirs_addXdgConfigPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addXdgDataPrefix), meth_KStandardDirs_addXdgDataPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allTypes), meth_KStandardDirs_allTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calcResourceHash), meth_KStandardDirs_calcResourceHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAccess), meth_KStandardDirs_checkAccess, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_KStandardDirs_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findAllExe), meth_KStandardDirs_findAllExe, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findAllResources), meth_KStandardDirs_findAllResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findDirs), meth_KStandardDirs_findDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findExe), meth_KStandardDirs_findExe, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findResource), meth_KStandardDirs_findResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findResourceDir), meth_KStandardDirs_findResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installPath), meth_KStandardDirs_installPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRestrictedResource), meth_KStandardDirs_isRestrictedResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kde_default), meth_KStandardDirs_kde_default, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_prefixes), meth_KStandardDirs_kfsstnd_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_xdg_conf_prefixes), meth_KStandardDirs_kfsstnd_xdg_conf_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_xdg_data_prefixes), meth_KStandardDirs_kfsstnd_xdg_data_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localkdedir), meth_KStandardDirs_localkdedir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localxdgconfdir), meth_KStandardDirs_localxdgconfdir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localxdgdatadir), meth_KStandardDirs_localxdgdatadir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locate), meth_KStandardDirs_locate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locateLocal), meth_KStandardDirs_locateLocal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_makeDir), meth_KStandardDirs_makeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realFilePath), meth_KStandardDirs_realFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realPath), meth_KStandardDirs_realPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relativeLocation), meth_KStandardDirs_relativeLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceDirs), meth_KStandardDirs_resourceDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveLocation), meth_KStandardDirs_saveLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemPaths), meth_KStandardDirs_systemPaths, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KStandardDirs[] = {
    {sipName_IgnoreExecBit, KStandardDirs::IgnoreExecBit, 162},
    {sipName_NoDuplicates, KStandardDirs::NoDuplicates, 162},
    {sipName_NoSearchOptions, KStandardDirs::NoSearchOptions, 162},
    {sipName_Recursive, KStandardDirs::Recursive, 162},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KStandardDirs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KStandardDirs,
        {0}
    },
    sipNameNr_KStandardDirs,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    34, methods_KStandardDirs,
    4, enummembers_KStandardDirs,
    0, 0,
    init_KStandardDirs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KStandardDirs,
    release_KStandardDirs,
    cast_KStandardDirs,
    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/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 8910 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 8913 "sipkdecorepart3.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 8916 "sipkdecorepart3.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 8919 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8922 "sipkdecorepart3.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 8925 "sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KGlobal_charsets(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_charsets(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KCharsets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::charsets();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KCharsets,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_charsets);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_setLocale(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_setLocale(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocale * a0;
        KGlobal::CopyCatalogs a1 = KGlobal::DoCopyCatalogs;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8|E",sipType_KLocale,&a0,sipType_KGlobal_CopyCatalogs,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setLocale(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_setLocale);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_caption(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_caption(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KGlobal::caption());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_caption);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_setActiveComponent(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_setActiveComponent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KComponentData * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setActiveComponent(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_setActiveComponent);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_activeComponent(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_activeComponent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KComponentData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KGlobal::activeComponent());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KComponentData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_activeComponent);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_setAllowQuit(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_setAllowQuit(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"b",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setAllowQuit(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_setAllowQuit);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_deref(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_deref(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::deref();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_deref);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_ref(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_ref(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::ref();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_ref);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_staticQString(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_staticQString(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KGlobal::staticQString(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KGlobal::staticQString(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_staticQString);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_umask(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_umask(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::umask();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_umask);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_hasLocale(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_hasLocale(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::hasLocale();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_hasLocale);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_locale(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_locale(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KLocale *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::locale();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KLocale,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_locale);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_config(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_config(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KSharedConfigPtr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfigPtr(KGlobal::config());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedConfigPtr,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_config);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_dirs(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_dirs(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KStandardDirs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::dirs();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KStandardDirs,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_dirs);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_hasMainComponent(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_hasMainComponent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::hasMainComponent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_hasMainComponent);

    return NULL;
}


extern "C" {static PyObject *meth_KGlobal_mainComponent(PyObject *,PyObject *);}
static PyObject *meth_KGlobal_mainComponent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KComponentData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KGlobal::mainComponent());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KComponentData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_mainComponent);

    return NULL;
}


static PyMethodDef methods_KGlobal[] = {
    {SIP_MLNAME_CAST(sipName_activeComponent), meth_KGlobal_activeComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caption), meth_KGlobal_caption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_charsets), meth_KGlobal_charsets, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KGlobal_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deref), meth_KGlobal_deref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dirs), meth_KGlobal_dirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasLocale), meth_KGlobal_hasLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasMainComponent), meth_KGlobal_hasMainComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locale), meth_KGlobal_locale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mainComponent), meth_KGlobal_mainComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ref), meth_KGlobal_ref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActiveComponent), meth_KGlobal_setActiveComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowQuit), meth_KGlobal_setAllowQuit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocale), meth_KGlobal_setLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staticQString), meth_KGlobal_staticQString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_umask), meth_KGlobal_umask, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KGlobal[] = {
    {sipName_DoCopyCatalogs, KGlobal::DoCopyCatalogs, 76},
    {sipName_DontCopyCatalogs, KGlobal::DontCopyCatalogs, 76},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KGlobal = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KGlobal,
        {0}
    },
    sipNameNr_KGlobal,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    16, methods_KGlobal,
    2, enummembers_KGlobal,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 9427 "sipkdecorepart3.cpp"

#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9431 "sipkdecorepart3.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 9434 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9437 "sipkdecorepart3.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 9452 "sipkdecorepart3.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 9455 "sipkdecorepart3.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 9458 "sipkdecorepart3.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 9461 "sipkdecorepart3.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 9464 "sipkdecorepart3.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 9467 "sipkdecorepart3.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 9470 "sipkdecorepart3.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 9473 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 9476 "sipkdecorepart3.cpp"


class sipKComponentData : public KComponentData
{
public:
    sipKComponentData();
    sipKComponentData(const KComponentData&);
    sipKComponentData(const QByteArray&,const QByteArray&,KComponentData::MainComponentRegistration);
    sipKComponentData(const KAboutData&,KComponentData::MainComponentRegistration);
    sipKComponentData(const KAboutData *,KComponentData::MainComponentRegistration);
    ~sipKComponentData();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_setConfigName(const QString&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKComponentData(const sipKComponentData &);
    sipKComponentData &operator = (const sipKComponentData &);
};

sipKComponentData::sipKComponentData(): KComponentData(), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KComponentData& a0): KComponentData(a0), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const QByteArray& a0,const QByteArray& a1,KComponentData::MainComponentRegistration a2): KComponentData(a0,a1,a2), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KAboutData& a0,KComponentData::MainComponentRegistration a1): KComponentData(a0,a1), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KAboutData *a0,KComponentData::MainComponentRegistration a1): KComponentData(a0,a1), sipPySelf(0)
{
}

sipKComponentData::~sipKComponentData()
{
    sipCommonDtor(sipPySelf);
}

void sipKComponentData::sipProtect_setConfigName(const QString& a0)
{
    KComponentData::setConfigName(a0);
}


extern "C" {static PyObject *meth_KComponentData_isValid(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&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_KComponentData,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_dirs(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_dirs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&sipCpp))
        {
            KStandardDirs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dirs();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KStandardDirs,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KComponentData,sipName_dirs);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_config(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_config(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&sipCpp))
        {
            KSharedConfig::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(sipCpp->config());
            Py_END_ALLOW_THREADS

            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_KComponentData,sipName_config);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_aboutData(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_aboutData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&sipCpp))
        {
            const KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KComponentData,sipName_aboutData);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_componentName(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_componentName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->componentName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KComponentData,sipName_componentName);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_catalogName(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_catalogName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KComponentData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->catalogName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KComponentData,sipName_catalogName);

    return NULL;
}


extern "C" {static PyObject *meth_KComponentData_setConfigName(PyObject *, PyObject *);}
static PyObject *meth_KComponentData_setConfigName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKComponentData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KComponentData,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setConfigName(*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_KComponentData,sipName_setConfigName);

    return NULL;
}


extern "C" {static PyObject *slot_KComponentData___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KComponentData___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KComponentData *sipCpp = reinterpret_cast<KComponentData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KComponentData));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KComponentData * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KComponentData,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KComponentData::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KComponentData,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KComponentData___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KComponentData___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KComponentData *sipCpp = reinterpret_cast<KComponentData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KComponentData));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KComponentData * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KComponentData,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KComponentData::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KComponentData,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KComponentData(void *, const sipTypeDef *);}
static void *cast_KComponentData(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KComponentData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KComponentData(void *, int);}
static void release_KComponentData(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKComponentData *>(sipCppV);
    else
        delete reinterpret_cast<KComponentData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KComponentData(void *, const void*);}
static void assign_KComponentData(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KComponentData *>(sipDst) = *reinterpret_cast<const KComponentData *>(sipSrc);
}


extern "C" {static void dealloc_KComponentData(sipSimpleWrapper *);}
static void dealloc_KComponentData(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKComponentData *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KComponentData(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KComponentData(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KComponentData(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKComponentData *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKComponentData();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KComponentData * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKComponentData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray * a1 = &a1def;
        int a1State = 0;
        KComponentData::MainComponentRegistration a2 = KComponentData::RegisterAsMainComponent;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J1E",sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State,sipType_KComponentData_MainComponentRegistration,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKComponentData(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
        }
    }

    if (!sipCpp)
    {
        const KAboutData * a0;
        KComponentData::MainComponentRegistration a1 = KComponentData::RegisterAsMainComponent;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|E",sipType_KAboutData,&a0,sipType_KComponentData_MainComponentRegistration,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKComponentData(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KAboutData * a0;
        KComponentData::MainComponentRegistration a1 = KComponentData::RegisterAsMainComponent;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8|E",sipType_KAboutData,&a0,sipType_KComponentData_MainComponentRegistration,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKComponentData(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KComponentData[] = {
    {(void *)slot_KComponentData___ne__, ne_slot},
    {(void *)slot_KComponentData___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KComponentData[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KComponentData_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_catalogName), meth_KComponentData_catalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_componentName), meth_KComponentData_componentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KComponentData_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dirs), meth_KComponentData_dirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KComponentData_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfigName), meth_KComponentData_setConfigName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KComponentData[] = {
    {sipName_RegisterAsMainComponent, KComponentData::RegisterAsMainComponent, 22},
    {sipName_SkipMainComponentRegistration, KComponentData::SkipMainComponentRegistration, 22},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KComponentData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KComponentData,
        {0}
    },
    sipNameNr_KComponentData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    slots_KComponentData,
    7, methods_KComponentData,
    2, enummembers_KComponentData,
    0, 0,
    init_KComponentData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KComponentData,
    release_KComponentData,
    cast_KComponentData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KComponentData,
    0,
    0,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 9987 "sipkdecorepart3.cpp"

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 9994 "sipkdecorepart3.cpp"


extern "C" {static int slot_KCmdLineArgs_StdCmdLineArgs___bool__(PyObject *sipSelf);}
static int slot_KCmdLineArgs_StdCmdLineArgs___bool__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 10012 "sipkdecorepart3.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 10040 "sipkdecorepart3.cpp"

            sipReleaseType(const_cast<KCmdLineArgs::StdCmdLineArgs *>(a0),sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KCmdLineArgs_StdCmdLineArgs,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 10072 "sipkdecorepart3.cpp"

            sipReleaseType(const_cast<KCmdLineArgs::StdCmdLineArgs *>(a0),sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KCmdLineArgs_StdCmdLineArgs,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___invert__(PyObject *sipSelf);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___invert__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;


    {
        {
            KCmdLineArgs::StdCmdLineArgs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KCmdLineArgs_StdCmdLineArgs,NULL);
        }
    }
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State,&a1))
        {
            KCmdLineArgs::StdCmdLineArgs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            return sipConvertFromNewType(sipRes,sipType_KCmdLineArgs_StdCmdLineArgs,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;
        KCmdLineArgs::StdCmdLineArgs * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State,sipType_KCmdLineArgs_StdCmdLineArgs,&a1,&a1State))
        {
            KCmdLineArgs::StdCmdLineArgs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);
            sipReleaseType(a1,sipType_KCmdLineArgs_StdCmdLineArgs,a1State);

            return sipConvertFromNewType(sipRes,sipType_KCmdLineArgs_StdCmdLineArgs,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;
        KCmdLineArgs::StdCmdLineArgs * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State,sipType_KCmdLineArgs_StdCmdLineArgs,&a1,&a1State))
        {
            KCmdLineArgs::StdCmdLineArgs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);
            sipReleaseType(a1,sipType_KCmdLineArgs_StdCmdLineArgs,a1State);

            return sipConvertFromNewType(sipRes,sipType_KCmdLineArgs_StdCmdLineArgs,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___int__(PyObject *sipSelf);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___int__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    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_KCmdLineArgs_StdCmdLineArgs___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArgs)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCmdLineArgs::StdCmdLineArgs::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArgs)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCmdLineArgs::StdCmdLineArgs::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArgs)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCmdLineArgs::StdCmdLineArgs::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_KCmdLineArgs_StdCmdLineArgs(void *, const sipTypeDef *);}
static void *cast_KCmdLineArgs_StdCmdLineArgs(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KCmdLineArgs_StdCmdLineArgs)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCmdLineArgs_StdCmdLineArgs(void *, int);}
static void release_KCmdLineArgs_StdCmdLineArgs(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KCmdLineArgs_StdCmdLineArgs(void *, const void*);}
static void assign_KCmdLineArgs_StdCmdLineArgs(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipDst) = *reinterpret_cast<const KCmdLineArgs::StdCmdLineArgs *>(sipSrc);
}


extern "C" {static void dealloc_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *);}
static void dealloc_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KCmdLineArgs_StdCmdLineArgs(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = 0;

    if (!sipCpp)
    {
        const KCmdLineArgs::StdCmdLineArgs * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineArgs::StdCmdLineArgs(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KCmdLineArgs::StdCmdLineArgs *>(a0),sipType_KCmdLineArgs_StdCmdLineArgs,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineArgs::StdCmdLineArgs(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineArgs::StdCmdLineArgs();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_KCmdLineArgs_StdCmdLineArgs(PyObject *, void **, int *, PyObject *);}
static int convertTo_KCmdLineArgs_StdCmdLineArgs(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KCmdLineArgs::StdCmdLineArgs **sipCppPtr = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KCmdLineArgs::StdCmdLineArgs is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArg)) ||
            sipCanConvertToType(sipPy, sipType_KCmdLineArgs_StdCmdLineArgs, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArg)))
{
    *sipCppPtr = new KCmdLineArgs::StdCmdLineArgs(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipConvertToType(sipPy, sipType_KCmdLineArgs_StdCmdLineArgs, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 10443 "sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KCmdLineArgs_StdCmdLineArgs[] = {
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___bool__, bool_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ne__, ne_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___eq__, eq_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___invert__, invert_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___and__, and_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___xor__, xor_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___or__, or_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___int__, int_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ixor__, ixor_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ior__, ior_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCmdLineArgs_StdCmdLineArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineArgs__StdCmdLineArgs,
        {0}
    },
    sipNameNr_StdCmdLineArgs,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {17, 255, 0},
    0,
    slots_KCmdLineArgs_StdCmdLineArgs,
    0, 0,
    0, 0,
    0, 0,
    init_KCmdLineArgs_StdCmdLineArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineArgs_StdCmdLineArgs,
    release_KCmdLineArgs_StdCmdLineArgs,
    cast_KCmdLineArgs_StdCmdLineArgs,
    convertTo_KCmdLineArgs_StdCmdLineArgs,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KCmdLineArgs_StdCmdLineArgs,
    0,
    1,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 10514 "sipkdecorepart3.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 10520 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 10523 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10526 "sipkdecorepart3.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 10529 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 10532 "sipkdecorepart3.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 10535 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10538 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10541 "sipkdecorepart3.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 10547 "sipkdecorepart3.cpp"


class sipKCmdLineArgs : public KCmdLineArgs
{
public:
    sipKCmdLineArgs(const KCmdLineOptions&,const KLocalizedString&,const QByteArray&);
    ~sipKCmdLineArgs();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCmdLineArgs(const sipKCmdLineArgs &);
    sipKCmdLineArgs &operator = (const sipKCmdLineArgs &);
};

sipKCmdLineArgs::sipKCmdLineArgs(const KCmdLineOptions& a0,const KLocalizedString& a1,const QByteArray& a2): KCmdLineArgs(a0,a1,a2), sipPySelf(0)
{
}

sipKCmdLineArgs::~sipKCmdLineArgs()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_KCmdLineArgs_init(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_init(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        PyObject * a0;
        const QByteArray * a1;
        int a1State = 0;
        const QByteArray * a2;
        int a2State = 0;
        const KLocalizedString * a3;
        const QByteArray * a4;
        int a4State = 0;
        const KLocalizedString& a5def = KLocalizedString();
        const KLocalizedString * a5 = &a5def;
        int a6 = 3;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"TJ1J1J9J1|J9i",&PyList_Type,&a0,sipType_QByteArray,&a1,&a1State,sipType_QByteArray,&a2,&a2State,sipType_KLocalizedString,&a3,sipType_QByteArray,&a4,&a4State,sipType_KLocalizedString,&a5,&a6))
        {
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
KCmdLineArgs::StdCmdLineArgs cmdLineArgs = (KCmdLineArgs::StdCmdLineArgs) a6;
    int argc, nargc;
    char **argv;
      
    // Convert the list.

    if ((argv = pyArgvToC(a0, &argc)) == NULL)
        return NULL;

    // Create it now the arguments are right.
    nargc = argc;

    Py_BEGIN_ALLOW_THREADS
    KCmdLineArgs::init (nargc, argv, *a1, *a2, *a3, *a4, *a5, cmdLineArgs);
    Py_END_ALLOW_THREADS

    // Now modify the original list.

    updatePyArgv (a0, argc, argv);
#line 10614 "sipkdecorepart3.cpp"

            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        PyObject * a0;
        const KAboutData * a1;
        int a2 = 3;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"TJ8|i",&PyList_Type,&a0,sipType_KAboutData,&a1,&a2))
        {
#line 88 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcmdlineargs.sip"
KCmdLineArgs::StdCmdLineArgs cmdLineArgs = (KCmdLineArgs::StdCmdLineArgs) a2;
    int argc, nargc;
    char **argv;
       
    // Convert the list.

    if ((argv = pyArgvToC(a0, &argc)) == NULL)
        return NULL;

    // Create it now the arguments are right.
    nargc = argc;

    Py_BEGIN_ALLOW_THREADS
    KCmdLineArgs::init (nargc, argv, a1, cmdLineArgs);
    Py_END_ALLOW_THREADS

    // Now modify the original list.

    updatePyArgv (a0, argc, argv);
#line 10652 "sipkdecorepart3.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KAboutData * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8",sipType_KAboutData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::init(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_KCmdLineArgs,sipName_init);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_addStdCmdLineOptions(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_addStdCmdLineOptions(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs::StdCmdLineArgs a0def = KCmdLineArgs::StdCmdLineArgs(KCmdLineArgs::CmdLineArgQt | KCmdLineArgs::CmdLineArgKDE);
        KCmdLineArgs::StdCmdLineArgs * a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1",sipType_KCmdLineArgs_StdCmdLineArgs,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addStdCmdLineOptions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_addStdCmdLineOptions);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_addCmdLineOptions(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_addCmdLineOptions(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KCmdLineOptions * a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString * a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray * a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|J9J1J1",sipType_KCmdLineOptions,&a0,sipType_KLocalizedString,&a1,sipType_QByteArray,&a2,&a2State,sipType_QByteArray,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addCmdLineOptions(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_addCmdLineOptions);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_parsedArgs(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_parsedArgs(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray * a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1",sipType_QByteArray,&a0,&a0State))
        {
            KCmdLineArgs *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::parsedArgs(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KCmdLineArgs,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_parsedArgs);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_cwd(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_cwd(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCmdLineArgs::cwd());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_cwd);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_appName(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_appName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCmdLineArgs::appName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_appName);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_usage(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_usage(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray * a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1",sipType_QByteArray,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::usage(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_usage);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_usageError(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_usageError(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::usageError(*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_KCmdLineArgs,sipName_usageError);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_enable_i18n(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_enable_i18n(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::enable_i18n();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_enable_i18n);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_getOption(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_getOption(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCmdLineArgs,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->getOption(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_getOption);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_getOptionList(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_getOptionList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCmdLineArgs,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->getOptionList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_getOptionList);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_isSet(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_isSet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KCmdLineArgs,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSet(*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_KCmdLineArgs,sipName_isSet);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_count(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_count(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KCmdLineArgs,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_count);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_arg(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_arg(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KCmdLineArgs,&sipCpp,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->arg(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_arg);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_url(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_url(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KCmdLineArgs,&sipCpp,&a0))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_url);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_makeURL(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_makeURL(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QByteArray,&a0,&a0State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KCmdLineArgs::makeURL(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_makeURL);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_setCwd(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_setCwd(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QByteArray,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::setCwd(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_setCwd);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_clear(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_clear(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KCmdLineArgs,&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_KCmdLineArgs,sipName_clear);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_reset(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_reset(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_reset);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_loadAppArgs(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_loadAppArgs(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QDataStream * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_QDataStream,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::loadAppArgs(*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_KCmdLineArgs,sipName_loadAppArgs);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_saveAppArgs(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_saveAppArgs(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QDataStream * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_QDataStream,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::saveAppArgs(*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_KCmdLineArgs,sipName_saveAppArgs);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_addTempFileOption(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_addTempFileOption(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addTempFileOption();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_addTempFileOption);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_isTempFileSet(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_isTempFileSet(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::isTempFileSet();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_isTempFileSet);

    return NULL;
}


extern "C" {static PyObject *meth_KCmdLineArgs_aboutData(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineArgs_aboutData(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            const KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineArgs,sipName_aboutData);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCmdLineArgs(void *, const sipTypeDef *);}
static void *cast_KCmdLineArgs(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KCmdLineArgs)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCmdLineArgs(void *, int);}
static void release_KCmdLineArgs(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCmdLineArgs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCmdLineArgs(sipSimpleWrapper *);}
static void dealloc_KCmdLineArgs(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCmdLineArgs *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCmdLineArgs(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KCmdLineArgs(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KCmdLineArgs(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKCmdLineArgs *sipCpp = 0;

    if (!sipCpp)
    {
        const KCmdLineOptions * a0;
        const KLocalizedString * a1;
        const QByteArray * a2;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J1",sipType_KCmdLineOptions,&a0,sipType_KLocalizedString,&a1,sipType_QByteArray,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCmdLineArgs(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KCmdLineArgs[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KCmdLineArgs_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCmdLineOptions), meth_KCmdLineArgs_addCmdLineOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStdCmdLineOptions), meth_KCmdLineArgs_addStdCmdLineOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTempFileOption), meth_KCmdLineArgs_addTempFileOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appName), meth_KCmdLineArgs_appName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arg), meth_KCmdLineArgs_arg, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KCmdLineArgs_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_KCmdLineArgs_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cwd), meth_KCmdLineArgs_cwd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enable_i18n), meth_KCmdLineArgs_enable_i18n, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOption), meth_KCmdLineArgs_getOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOptionList), meth_KCmdLineArgs_getOptionList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_KCmdLineArgs_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSet), meth_KCmdLineArgs_isSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTempFileSet), meth_KCmdLineArgs_isTempFileSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadAppArgs), meth_KCmdLineArgs_loadAppArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_makeURL), meth_KCmdLineArgs_makeURL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parsedArgs), meth_KCmdLineArgs_parsedArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KCmdLineArgs_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveAppArgs), meth_KCmdLineArgs_saveAppArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCwd), meth_KCmdLineArgs_setCwd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KCmdLineArgs_url, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usage), meth_KCmdLineArgs_usage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usageError), meth_KCmdLineArgs_usageError, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KCmdLineArgs[] = {
    {sipName_CmdLineArgKDE, KCmdLineArgs::CmdLineArgKDE, 18},
    {sipName_CmdLineArgNone, KCmdLineArgs::CmdLineArgNone, 18},
    {sipName_CmdLineArgQt, KCmdLineArgs::CmdLineArgQt, 18},
    {sipName_CmdLineArgsMask, KCmdLineArgs::CmdLineArgsMask, 18},
    {sipName_Reserved, KCmdLineArgs::Reserved, 18},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCmdLineArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineArgs,
        {0}
    },
    sipNameNr_KCmdLineArgs,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    24, methods_KCmdLineArgs,
    5, enummembers_KCmdLineArgs,
    0, 0,
    init_KCmdLineArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineArgs,
    release_KCmdLineArgs,
    cast_KCmdLineArgs,
    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/kcmdlineargs.sip"
#include <kcmdlineargs.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 11473 "sipkdecorepart3.cpp"

#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11477 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 11480 "sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KCmdLineOptions_add(PyObject *, PyObject *);}
static PyObject *meth_KCmdLineOptions_add(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString * a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray * a2 = &a2def;
        int a2State = 0;
        KCmdLineOptions *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J9J1",&sipSelf,sipType_KCmdLineOptions,&sipCpp,sipType_QByteArray,&a0,&a0State,sipType_KLocalizedString,&a1,sipType_QByteArray,&a2,&a2State))
        {
            KCmdLineOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->add(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);

            return sipConvertFromType(sipRes,sipType_KCmdLineOptions,NULL);
        }
    }

    {
        const KCmdLineOptions * a0;
        KCmdLineOptions *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KCmdLineOptions,&sipCpp,sipType_KCmdLineOptions,&a0))
        {
            KCmdLineOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->add(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KCmdLineOptions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KCmdLineOptions,sipName_add);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCmdLineOptions(void *, const sipTypeDef *);}
static void *cast_KCmdLineOptions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KCmdLineOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCmdLineOptions(void *, int);}
static void release_KCmdLineOptions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KCmdLineOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KCmdLineOptions(void *, const void*);}
static void assign_KCmdLineOptions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KCmdLineOptions *>(sipDst) = *reinterpret_cast<const KCmdLineOptions *>(sipSrc);
}


extern "C" {static void dealloc_KCmdLineOptions(sipSimpleWrapper *);}
static void dealloc_KCmdLineOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KCmdLineOptions(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KCmdLineOptions(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KCmdLineOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KCmdLineOptions *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineOptions();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KCmdLineOptions * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KCmdLineOptions,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineOptions(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KCmdLineOptions[] = {
    {SIP_MLNAME_CAST(sipName_add), meth_KCmdLineOptions_add, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KCmdLineOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineOptions,
        {0}
    },
    sipNameNr_KCmdLineOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    1, methods_KCmdLineOptions,
    0, 0,
    0, 0,
    init_KCmdLineOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineOptions,
    release_KCmdLineOptions,
    cast_KCmdLineOptions,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KCmdLineOptions,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 11659 "sipkdecorepart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 11663 "sipkdecorepart3.cpp"


extern "C" {static int slot_KAutostart_Conditions___bool__(PyObject *sipSelf);}
static int slot_KAutostart_Conditions___bool__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 11681 "sipkdecorepart3.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KAutostart_Conditions___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KAutostart_Conditions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KAutostart::Conditions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KAutostart_Conditions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 11709 "sipkdecorepart3.cpp"

            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KAutostart_Conditions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KAutostart_Conditions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KAutostart::Conditions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KAutostart_Conditions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 11741 "sipkdecorepart3.cpp"

            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KAutostart_Conditions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___invert__(PyObject *sipSelf);}
static PyObject *slot_KAutostart_Conditions___invert__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;


    {
        {
            KAutostart::Conditions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }
}


extern "C" {static PyObject *slot_KAutostart_Conditions___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KAutostart_Conditions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KAutostart::Conditions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KAutostart_Conditions,&a0,&a0State,&a1))
        {
            KAutostart::Conditions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KAutostart_Conditions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KAutostart::Conditions * a0;
        int a0State = 0;
        KAutostart::Conditions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KAutostart_Conditions,&a0,&a0State,sipType_KAutostart_Conditions,&a1,&a1State))
        {
            KAutostart::Conditions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KAutostart_Conditions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KAutostart::Conditions * a0;
        int a0State = 0;
        KAutostart::Conditions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KAutostart_Conditions,&a0,&a0State,sipType_KAutostart_Conditions,&a1,&a1State))
        {
            KAutostart::Conditions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___int__(PyObject *sipSelf);}
static PyObject *slot_KAutostart_Conditions___int__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    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_KAutostart_Conditions___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KAutostart_Conditions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KAutostart::Conditions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KAutostart_Conditions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KAutostart_Conditions___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KAutostart_Conditions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KAutostart::Conditions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KAutostart_Conditions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KAutostart_Conditions___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KAutostart_Conditions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::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_KAutostart_Conditions(void *, const sipTypeDef *);}
static void *cast_KAutostart_Conditions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KAutostart_Conditions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAutostart_Conditions(void *, int);}
static void release_KAutostart_Conditions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAutostart::Conditions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KAutostart_Conditions(void *, const void*);}
static void assign_KAutostart_Conditions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KAutostart::Conditions *>(sipDst) = *reinterpret_cast<const KAutostart::Conditions *>(sipSrc);
}


extern "C" {static void dealloc_KAutostart_Conditions(sipSimpleWrapper *);}
static void dealloc_KAutostart_Conditions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAutostart_Conditions(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KAutostart_Conditions(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KAutostart_Conditions(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KAutostart::Conditions *sipCpp = 0;

    if (!sipCpp)
    {
        const KAutostart::Conditions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KAutostart_Conditions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_KAutostart_Conditions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KAutostart_Conditions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KAutostart::Conditions **sipCppPtr = reinterpret_cast<KAutostart::Conditions **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KAutostart::Conditions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KAutostart_Condition)) ||
            sipCanConvertToType(sipPy, sipType_KAutostart_Conditions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KAutostart_Condition)))
{
    *sipCppPtr = new KAutostart::Conditions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KAutostart::Conditions *>(sipConvertToType(sipPy, sipType_KAutostart_Conditions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 12112 "sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KAutostart_Conditions[] = {
    {(void *)slot_KAutostart_Conditions___bool__, bool_slot},
    {(void *)slot_KAutostart_Conditions___ne__, ne_slot},
    {(void *)slot_KAutostart_Conditions___eq__, eq_slot},
    {(void *)slot_KAutostart_Conditions___invert__, invert_slot},
    {(void *)slot_KAutostart_Conditions___and__, and_slot},
    {(void *)slot_KAutostart_Conditions___xor__, xor_slot},
    {(void *)slot_KAutostart_Conditions___or__, or_slot},
    {(void *)slot_KAutostart_Conditions___int__, int_slot},
    {(void *)slot_KAutostart_Conditions___ixor__, ixor_slot},
    {(void *)slot_KAutostart_Conditions___ior__, ior_slot},
    {(void *)slot_KAutostart_Conditions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAutostart_Conditions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAutostart__Conditions,
        {0}
    },
    sipNameNr_Conditions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {7, 255, 0},
    0,
    slots_KAutostart_Conditions,
    0, 0,
    0, 0,
    0, 0,
    init_KAutostart_Conditions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutostart_Conditions,
    release_KAutostart_Conditions,
    cast_KAutostart_Conditions,
    convertTo_KAutostart_Conditions,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KAutostart_Conditions,
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 12180 "sipkdecorepart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12184 "sipkdecorepart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12187 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12190 "sipkdecorepart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 12193 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12196 "sipkdecorepart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12199 "sipkdecorepart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12202 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12205 "sipkdecorepart3.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 12236 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 12239 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 12242 "sipkdecorepart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12245 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 12248 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 12251 "sipkdecorepart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12254 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12257 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12260 "sipkdecorepart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12263 "sipkdecorepart3.cpp"


class sipKAutostart : public KAutostart
{
public:
    sipKAutostart(const QString&,QObject *);
    virtual ~sipKAutostart();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAutostart(const sipKAutostart &);
    sipKAutostart &operator = (const sipKAutostart &);

    char sipPyMethods[7];
};

sipKAutostart::sipKAutostart(const QString& a0,QObject *a1): KAutostart(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAutostart::~sipKAutostart()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKAutostart::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KAutostart);
}

int sipKAutostart::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KAutostart::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KAutostart,_c,_id,_a);

    return _id;
}

void *sipKAutostart::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KAutostart,_clname)) ? this : KAutostart::qt_metacast(_clname);
}

bool sipKAutostart::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKAutostart::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKAutostart::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kdecore_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKAutostart::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKAutostart::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kdecore_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKAutostart::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKAutostart::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKAutostart::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKAutostart::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKAutostart::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKAutostart::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKAutostart::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKAutostart::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_KAutostart_receivers(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KAutostart,&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 12516 "sipkdecorepart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KAutostart,&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_KAutostart,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KAutostart,&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_KAutostart,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KAutostart,&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_KAutostart,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KAutostart,&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_KAutostart,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KAutostart,&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_KAutostart,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setAutostarts(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setAutostarts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KAutostart,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutostarts(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_KAutostart,sipName_setAutostarts);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_autostarts(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_autostarts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        KAutostart::Conditions a1def = KAutostart::NoConditions;
        KAutostart::Conditions * a1 = &a1def;
        int a1State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1J1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State,sipType_KAutostart_Conditions,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autostarts(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_autostarts);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_command(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_command(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->command());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_command);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setCommand(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setCommand(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCommand(*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_KAutostart,sipName_setCommand);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_visibleName(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_visibleName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->visibleName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_visibleName);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setVisibleName(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setVisibleName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVisibleName(*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_KAutostart,sipName_setVisibleName);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_isServiceRegistered(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_isServiceRegistered(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 = KAutostart::isServiceRegistered(*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_KAutostart,sipName_isServiceRegistered);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_commandToCheck(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_commandToCheck(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->commandToCheck());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_commandToCheck);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setCommandToCheck(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setCommandToCheck(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCommandToCheck(*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_KAutostart,sipName_setCommandToCheck);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_startPhase(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_startPhase(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            KAutostart::StartPhase sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startPhase();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAutostart_StartPhase);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_startPhase);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setStartPhase(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setStartPhase(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart::StartPhase a0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KAutostart,&sipCpp,sipType_KAutostart_StartPhase,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartPhase(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_KAutostart,sipName_setStartPhase);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_allowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_allowedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->allowedEnvironments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_allowedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setAllowedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllowedEnvironments(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_setAllowedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_addToAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_addToAllowedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addToAllowedEnvironments(*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_KAutostart,sipName_addToAllowedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_removeFromAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_removeFromAllowedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeFromAllowedEnvironments(*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_KAutostart,sipName_removeFromAllowedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_excludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_excludedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->excludedEnvironments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_excludedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setExcludedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExcludedEnvironments(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_setExcludedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_addToExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_addToExcludedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addToExcludedEnvironments(*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_KAutostart,sipName_addToExcludedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_removeFromExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_removeFromExcludedEnvironments(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeFromExcludedEnvironments(*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_KAutostart,sipName_removeFromExcludedEnvironments);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_startAfter(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_startAfter(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAutostart,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->startAfter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAutostart,sipName_startAfter);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_checkAllowedEnvironment(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_checkAllowedEnvironment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAutostart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checkAllowedEnvironment(*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_KAutostart,sipName_checkAllowedEnvironment);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAutostart(void *, const sipTypeDef *);}
static void *cast_KAutostart(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KAutostart)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KAutostart *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAutostart(void *, int);}
static void release_KAutostart(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAutostart *>(sipCppV);
    else
        delete reinterpret_cast<KAutostart *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAutostart(sipSimpleWrapper *);}
static void dealloc_KAutostart(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAutostart *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAutostart(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KAutostart(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KAutostart(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKAutostart *sipCpp = 0;

    if (!sipCpp)
    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J1JH",sipType_QString,&a0,&a0State,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAutostart(*a0,a1);
            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_KAutostart[] = {{111, 0, 1}};


static PyMethodDef methods_KAutostart[] = {
    {SIP_MLNAME_CAST(sipName_addToAllowedEnvironments), meth_KAutostart_addToAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addToExcludedEnvironments), meth_KAutostart_addToExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowedEnvironments), meth_KAutostart_allowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autostarts), meth_KAutostart_autostarts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAllowedEnvironment), meth_KAutostart_checkAllowedEnvironment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KAutostart_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_command), meth_KAutostart_command, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commandToCheck), meth_KAutostart_commandToCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KAutostart_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAutostart_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAutostart_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_excludedEnvironments), meth_KAutostart_excludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isServiceRegistered), meth_KAutostart_isServiceRegistered, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KAutostart_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeFromAllowedEnvironments), meth_KAutostart_removeFromAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeFromExcludedEnvironments), meth_KAutostart_removeFromExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowedEnvironments), meth_KAutostart_setAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutostarts), meth_KAutostart_setAutostarts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCommand), meth_KAutostart_setCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCommandToCheck), meth_KAutostart_setCommandToCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExcludedEnvironments), meth_KAutostart_setExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartPhase), meth_KAutostart_setStartPhase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVisibleName), meth_KAutostart_setVisibleName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startAfter), meth_KAutostart_startAfter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startPhase), meth_KAutostart_startPhase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KAutostart_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_visibleName), meth_KAutostart_visibleName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAutostart[] = {
    {sipName_Applications, KAutostart::Applications, 10},
    {sipName_BaseDesktop, KAutostart::BaseDesktop, 10},
    {sipName_CheckAll, KAutostart::CheckAll, 8},
    {sipName_CheckCommand, KAutostart::CheckCommand, 8},
    {sipName_CheckCondition, KAutostart::CheckCondition, 8},
    {sipName_DesktopServices, KAutostart::DesktopServices, 10},
    {sipName_NoConditions, KAutostart::NoConditions, 8},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAutostart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutostart,
        {0}
    },
    sipNameNr_KAutostart,
    -1,
    -1,
    {0, 0, 1},
    supers_KAutostart,
    0,
    27, methods_KAutostart,
    7, enummembers_KAutostart,
    0, 0,
    init_KAutostart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutostart,
    release_KAutostart,
    cast_KAutostart,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KAutostart::staticMetaObject,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13445 "sipkdecorepart3.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 13448 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13451 "sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KAuthorized_authorizeControlModules(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_authorizeControlModules(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QStringList,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KAuthorized::authorizeControlModules(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_authorizeControlModules);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeControlModule(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_authorizeControlModule(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 = KAuthorized::authorizeControlModule(*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. */
    sipNoFunction(sipArgsParsed,sipName_authorizeControlModule);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_allowUrlAction(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_allowUrlAction(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;
        const KUrl * a2;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J9J9",sipType_QString,&a0,&a0State,sipType_KUrl,&a1,sipType_KUrl,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KAuthorized::allowUrlAction(*a0,*a1,*a2);
            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. */
    sipNoFunction(sipArgsParsed,sipName_allowUrlAction);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeUrlAction(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_authorizeUrlAction(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;
        const KUrl * a2;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J9J9",sipType_QString,&a0,&a0State,sipType_KUrl,&a1,sipType_KUrl,&a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuthorized::authorizeUrlAction(*a0,*a1,*a2);
            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. */
    sipNoFunction(sipArgsParsed,sipName_authorizeUrlAction);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeKAction(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_authorizeKAction(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 = KAuthorized::authorizeKAction(*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. */
    sipNoFunction(sipArgsParsed,sipName_authorizeKAction);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorize(PyObject *,PyObject *);}
static PyObject *meth_KAuthorized_authorize(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 = KAuthorized::authorize(*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. */
    sipNoFunction(sipArgsParsed,sipName_authorize);

    return NULL;
}


static PyMethodDef methods_KAuthorized[] = {
    {SIP_MLNAME_CAST(sipName_allowUrlAction), meth_KAuthorized_allowUrlAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorize), meth_KAuthorized_authorize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeControlModule), meth_KAuthorized_authorizeControlModule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeControlModules), meth_KAuthorized_authorizeControlModules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeKAction), meth_KAuthorized_authorizeKAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeUrlAction), meth_KAuthorized_authorizeUrlAction, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAuthorized = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KAuthorized,
        {0}
    },
    sipNameNr_KAuthorized,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    6, methods_KAuthorized,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 13695 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13698 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 13701 "sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KAboutLicense_text(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_text(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutLicense *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutLicense,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->text());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutLicense,sipName_text);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_name(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData::NameFormat a0;
        KAboutLicense *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KAboutLicense,&sipCpp,sipType_KAboutData_NameFormat,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutLicense,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_key(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_key(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutLicense *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutLicense,&sipCpp))
        {
            KAboutData::LicenseKey sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->key();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAboutData_LicenseKey);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutLicense,sipName_key);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_byKeyword(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_byKeyword(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KAboutLicense *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAboutLicense(KAboutLicense::byKeyword(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAboutLicense,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutLicense,sipName_byKeyword);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAboutLicense(void *, const sipTypeDef *);}
static void *cast_KAboutLicense(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KAboutLicense)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAboutLicense(void *, int);}
static void release_KAboutLicense(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAboutLicense *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAboutLicense(sipSimpleWrapper *);}
static void dealloc_KAboutLicense(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAboutLicense(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KAboutLicense(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KAboutLicense(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KAboutLicense *sipCpp = 0;

    if (!sipCpp)
    {
        const KAboutLicense * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KAboutLicense,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutLicense(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KAboutLicense[] = {
    {SIP_MLNAME_CAST(sipName_byKeyword), meth_KAboutLicense_byKeyword, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_key), meth_KAboutLicense_key, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KAboutLicense_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KAboutLicense_text, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAboutLicense = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAboutLicense,
        {0}
    },
    sipNameNr_KAboutLicense,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    4, methods_KAboutLicense,
    0, 0,
    0, 0,
    init_KAboutLicense,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAboutLicense,
    release_KAboutLicense,
    cast_KAboutLicense,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 13925 "sipkdecorepart3.cpp"

#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13929 "sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 13932 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13935 "sipkdecorepart3.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 13988 "sipkdecorepart3.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 13991 "sipkdecorepart3.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 13994 "sipkdecorepart3.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 13997 "sipkdecorepart3.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 14000 "sipkdecorepart3.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 14003 "sipkdecorepart3.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 14006 "sipkdecorepart3.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 14009 "sipkdecorepart3.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 14012 "sipkdecorepart3.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14015 "sipkdecorepart3.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 14018 "sipkdecorepart3.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 14021 "sipkdecorepart3.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 14024 "sipkdecorepart3.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 14027 "sipkdecorepart3.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 14030 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14033 "sipkdecorepart3.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 14036 "sipkdecorepart3.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 14039 "sipkdecorepart3.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 14042 "sipkdecorepart3.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 14045 "sipkdecorepart3.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 14048 "sipkdecorepart3.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 14063 "sipkdecorepart3.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 14066 "sipkdecorepart3.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 14069 "sipkdecorepart3.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 14072 "sipkdecorepart3.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 14075 "sipkdecorepart3.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 14078 "sipkdecorepart3.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 14081 "sipkdecorepart3.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 14084 "sipkdecorepart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14087 "sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KAboutData_addAuthor(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addAuthor(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString * a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray * a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray * a3 = &a3def;
        int a3State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J9J1J1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0,sipType_KLocalizedString,&a1,sipType_QByteArray,&a2,&a2State,sipType_QByteArray,&a3,&a3State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addAuthor(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_addAuthor);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addCredit(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addCredit(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString * a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray * a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray * a3 = &a3def;
        int a3State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J9J1J1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0,sipType_KLocalizedString,&a1,sipType_QByteArray,&a2,&a2State,sipType_QByteArray,&a3,&a3State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addCredit(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_addCredit);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setTranslator(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setTranslator(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        const KLocalizedString * a1;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0,sipType_KLocalizedString,&a1))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setTranslator(*a0,*a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setTranslator);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicenseText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicenseText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicenseText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setLicenseText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicenseText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicenseText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicenseText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_addLicenseText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicenseTextFile(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicenseTextFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicenseTextFile(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setLicenseTextFile);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicenseTextFile(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicenseTextFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicenseTextFile(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_addLicenseTextFile);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setAppName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setAppName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setAppName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setAppName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramName(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setProgramName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramIconName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramIconName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramIconName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setProgramIconName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramLogo(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramLogo(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QVariant * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QVariant,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramLogo(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setProgramLogo);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setVersion(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setVersion(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setShortDescription(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setShortDescription(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setShortDescription(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setShortDescription);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCatalogName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCatalogName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCatalogName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setCatalogName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicense(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicense(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData::LicenseKey a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KAboutData_LicenseKey,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicense(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setLicense);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicense(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicense(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData::LicenseKey a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KAboutData_LicenseKey,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicense(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_addLicense);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCopyrightStatement(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCopyrightStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCopyrightStatement(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setCopyrightStatement);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setOtherText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setOtherText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setOtherText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setOtherText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setHomepage(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setHomepage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setHomepage(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setHomepage);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setBugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setBugAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setBugAddress(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setBugAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setOrganizationDomain(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setOrganizationDomain(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setOrganizationDomain(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setOrganizationDomain);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProductName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProductName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KAboutData,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProductName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setProductName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_appName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_appName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->appName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_appName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_productName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_productName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->productName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_productName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->programName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_programName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_organizationDomain(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_organizationDomain(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->organizationDomain());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_organizationDomain);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalProgramName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalProgramName();
            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_KAboutData,sipName_internalProgramName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_translateInternalProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_translateInternalProgramName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateInternalProgramName();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_translateInternalProgramName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programIconName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programIconName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->programIconName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_programIconName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programLogo(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programLogo(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->programLogo());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_programLogo);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_version(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_version(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->version());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_version);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalVersion(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalVersion();
            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_KAboutData,sipName_internalVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_shortDescription(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_shortDescription(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->shortDescription());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_shortDescription);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_catalogName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_catalogName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->catalogName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_catalogName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_homepage(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_homepage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->homepage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_homepage);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_bugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_bugAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->bugAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_bugAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalBugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalBugAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            const char *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalBugAddress();
            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_KAboutData,sipName_internalBugAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_authors(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_authors(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QList<KAboutPerson> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->authors());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KAboutPerson,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_authors);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_credits(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_credits(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QList<KAboutPerson> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->credits());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KAboutPerson,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_credits);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_translators(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_translators(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QList<KAboutPerson> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->translators());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KAboutPerson,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_translators);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_aboutTranslationTeam(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_aboutTranslationTeam(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KAboutData::aboutTranslationTeam());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_aboutTranslationTeam);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_otherText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_otherText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->otherText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_otherText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_license(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_license(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->license());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_license);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_licenseName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_licenseName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData::NameFormat a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KAboutData_NameFormat,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->licenseName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_licenseName);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_licenses(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_licenses(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QList<KAboutLicense> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutLicense>(sipCpp->licenses());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KAboutLicense,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_licenses);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_copyrightStatement(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_copyrightStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->copyrightStatement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_copyrightStatement);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorPlainText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorPlainText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->customAuthorPlainText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_customAuthorPlainText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorRichText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorRichText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->customAuthorRichText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_customAuthorRichText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorTextEnabled(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorTextEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->customAuthorTextEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_customAuthorTextEnabled);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCustomAuthorText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCustomAuthorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KLocalizedString * a0;
        const KLocalizedString * a1;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_KAboutData,&sipCpp,sipType_KLocalizedString,&a0,sipType_KLocalizedString,&a1))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCustomAuthorText(*a0,*a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_setCustomAuthorText);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_unsetCustomAuthorText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_unsetCustomAuthorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KAboutData,&sipCpp))
        {
            KAboutData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->unsetCustomAuthorText();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KAboutData,sipName_unsetCustomAuthorText);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAboutData(void *, const sipTypeDef *);}
static void *cast_KAboutData(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KAboutData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAboutData(void *, int);}
static void release_KAboutData(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAboutData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAboutData(sipSimpleWrapper *);}
static void dealloc_KAboutData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAboutData(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KAboutData(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KAboutData(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KAboutData *sipCpp = 0;

    if (!sipCpp)
    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        const KLocalizedString * a2;
        const QByteArray * a3;
        int a3State = 0;
        const KLocalizedString& a4def = KLocalizedString();
        const KLocalizedString * a4 = &a4def;
        KAboutData::LicenseKey a5 = KAboutData::License_Unknown;
        const KLocalizedString& a6def = KLocalizedString();
        const KLocalizedString * a6 = &a6def;
        const KLocalizedString& a7def = KLocalizedString();
        const KLocalizedString * a7 = &a7def;
        const QByteArray& a8def = QByteArray();
        const QByteArray * a8 = &a8def;
        int a8State = 0;
        const QByteArray& a9def = "submit@bugs.kde.org";
        const QByteArray * a9 = &a9def;
        int a9State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1J9J1|J9EJ9J9J1J1",sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State,sipType_KLocalizedString,&a2,sipType_QByteArray,&a3,&a3State,sipType_KLocalizedString,&a4,sipType_KAboutData_LicenseKey,&a5,sipType_KLocalizedString,&a6,sipType_KLocalizedString,&a7,sipType_QByteArray,&a8,&a8State,sipType_QByteArray,&a9,&a9State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutData(*a0,*a1,*a2,*a3,*a4,a5,*a6,*a7,*a8,*a9);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);
            sipReleaseType(const_cast<QByteArray *>(a8),sipType_QByteArray,a8State);
            sipReleaseType(const_cast<QByteArray *>(a9),sipType_QByteArray,a9State);
        }
    }

    if (!sipCpp)
    {
        const KAboutData * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KAboutData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KAboutData[] = {
    {SIP_MLNAME_CAST(sipName_aboutTranslationTeam), meth_KAboutData_aboutTranslationTeam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAuthor), meth_KAboutData_addAuthor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCredit), meth_KAboutData_addCredit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicense), meth_KAboutData_addLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicenseText), meth_KAboutData_addLicenseText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicenseTextFile), meth_KAboutData_addLicenseTextFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appName), meth_KAboutData_appName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authors), meth_KAboutData_authors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bugAddress), meth_KAboutData_bugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_catalogName), meth_KAboutData_catalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyrightStatement), meth_KAboutData_copyrightStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_credits), meth_KAboutData_credits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorPlainText), meth_KAboutData_customAuthorPlainText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorRichText), meth_KAboutData_customAuthorRichText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorTextEnabled), meth_KAboutData_customAuthorTextEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_homepage), meth_KAboutData_homepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalBugAddress), meth_KAboutData_internalBugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalProgramName), meth_KAboutData_internalProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalVersion), meth_KAboutData_internalVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_license), meth_KAboutData_license, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_licenseName), meth_KAboutData_licenseName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_licenses), meth_KAboutData_licenses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_organizationDomain), meth_KAboutData_organizationDomain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_otherText), meth_KAboutData_otherText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_productName), meth_KAboutData_productName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programIconName), meth_KAboutData_programIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programLogo), meth_KAboutData_programLogo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programName), meth_KAboutData_programName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAppName), meth_KAboutData_setAppName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBugAddress), meth_KAboutData_setBugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCatalogName), meth_KAboutData_setCatalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCopyrightStatement), meth_KAboutData_setCopyrightStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomAuthorText), meth_KAboutData_setCustomAuthorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHomepage), meth_KAboutData_setHomepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicense), meth_KAboutData_setLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicenseText), meth_KAboutData_setLicenseText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicenseTextFile), meth_KAboutData_setLicenseTextFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOrganizationDomain), meth_KAboutData_setOrganizationDomain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOtherText), meth_KAboutData_setOtherText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProductName), meth_KAboutData_setProductName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramIconName), meth_KAboutData_setProgramIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramLogo), meth_KAboutData_setProgramLogo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramName), meth_KAboutData_setProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShortDescription), meth_KAboutData_setShortDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTranslator), meth_KAboutData_setTranslator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVersion), meth_KAboutData_setVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shortDescription), meth_KAboutData_shortDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translateInternalProgramName), meth_KAboutData_translateInternalProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translators), meth_KAboutData_translators, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unsetCustomAuthorText), meth_KAboutData_unsetCustomAuthorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KAboutData_version, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAboutData[] = {
    {sipName_FullName, KAboutData::FullName, 2},
    {sipName_License_Artistic, KAboutData::License_Artistic, 1},
    {sipName_License_BSD, KAboutData::License_BSD, 1},
    {sipName_License_Custom, KAboutData::License_Custom, 1},
    {sipName_License_File, KAboutData::License_File, 1},
    {sipName_License_GPL, KAboutData::License_GPL, 1},
    {sipName_License_GPL_V2, KAboutData::License_GPL_V2, 1},
    {sipName_License_GPL_V3, KAboutData::License_GPL_V3, 1},
    {sipName_License_LGPL, KAboutData::License_LGPL, 1},
    {sipName_License_LGPL_V2, KAboutData::License_LGPL_V2, 1},
    {sipName_License_LGPL_V3, KAboutData::License_LGPL_V3, 1},
    {sipName_License_QPL, KAboutData::License_QPL, 1},
    {sipName_License_QPL_V1_0, KAboutData::License_QPL_V1_0, 1},
    {sipName_License_Unknown, KAboutData::License_Unknown, 1},
    {sipName_ShortName, KAboutData::ShortName, 2},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KAboutData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAboutData,
        {0}
    },
    sipNameNr_KAboutData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    51, methods_KAboutData,
    15, enummembers_KAboutData,
    0, 0,
    init_KAboutData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAboutData,
    release_KAboutData,
    cast_KAboutData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
