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

#include "sipAPIkdecore.h"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 102 "/usr/share/python3-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 196 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 53 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 102 "/usr/share/python3-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 59 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 196 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 63 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasUser();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPass();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasHost();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0 = KUrl::LeaveTrailingSlash;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QString*sipRes;

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

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

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0 = KUrl::LeaveTrailingSlash;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QString*sipRes;

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPath();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUrl::CleanPathOption a0 = KUrl::SimplifyDirSeparators;
        KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_CleanPathOption, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->cleanPath(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0;
        KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->adjustPath(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0 = KUrl::LeaveTrailingSlash;
        const KUrl::EncodedPathAndQueryOptions& a1def = KUrl::PermitEmptyPath;
        const KUrl::EncodedPathAndQueryOptions* a1 = &a1def;
        int a1State = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|EJ1", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0, sipType_KUrl_EncodedPathAndQueryOptions, &a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->encodedPathAndQuery(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::EncodedPathAndQueryOptions *>(a1),sipType_KUrl_EncodedPathAndQueryOptions,a1State);

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasRef();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasHTMLRef();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocalFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasSubUrl();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl::QueryItemsOptions& a0def = 0;
        const KUrl::QueryItemsOptions* a0 = &a0def;
        int a0State = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_QueryItemsOptions, &a0, &a0State))
        {
            QMap<QString,QString>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QString>(sipCpp->queryItems(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::QueryItemsOptions *>(a0),sipType_KUrl_QueryItemsOptions,a0State);

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KUrl, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addQueryItem(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl::DirectoryOptions& a0def = KUrl::IgnoreTrailingSlash;
        const KUrl::DirectoryOptions* a0 = &a0def;
        int a0State = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_DirectoryOptions, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fileName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::DirectoryOptions *>(a0),sipType_KUrl_DirectoryOptions,a0State);

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

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

    return NULL;
}


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

    {
        const KUrl::DirectoryOptions& a0def = KUrl::IgnoreTrailingSlash;
        const KUrl::DirectoryOptions* a0 = &a0def;
        int a0State = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_DirectoryOptions, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->directory(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::DirectoryOptions *>(a0),sipType_KUrl_DirectoryOptions,a0State);

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0 = KUrl::LeaveTrailingSlash;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QString*sipRes;

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

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

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

    return NULL;
}


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

    {
        KUrl::AdjustPathOption a0 = KUrl::LeaveTrailingSlash;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QString*sipRes;

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

    {
        KUrl::AdjustPathOption a0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QString*sipRes;

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        bool a1 = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl, &a0, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KUrl::EqualsOptions& a1def = 0;
        const KUrl::EqualsOptions* a1 = &a1def;
        int a1State = 0;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J1", &sipSelf, sipType_KUrl, &sipCpp, sipType_KUrl, &a0, sipType_KUrl_EqualsOptions, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->equals(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::EqualsOptions *>(a1),sipType_KUrl_EqualsOptions,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KUrl *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KUrl::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(KUrl::split(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            KUrl::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(KUrl::split(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl::List* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl_List, &a0))
        {
            KUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KUrl::join(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KUrl::fromPath(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KUrl::fromPathOrUrl(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
            KUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KUrl::fromMimeDataByteArray(*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(sipParseErr, sipName_KUrl, sipName_fromMimeDataByteArray, NULL);

    return NULL;
}


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

    {
        QMimeData* a0;
        const KUrl::MetaDataMap& a1def = KUrl::MetaDataMap();
        const KUrl::MetaDataMap* a1 = &a1def;
        int a1State = 0;
        KUrl::MimeDataFlags a2 = KUrl::DefaultMimeDataFlags;
        const KUrl *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J1E", &sipSelf, sipType_KUrl, &sipCpp, sipType_QMimeData, &a0, sipType_QMap_0100QString_0100QString,&a1, &a1State, sipType_KUrl_MimeDataFlags, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::MetaDataMap *>(a1),sipType_QMap_0100QString_0100QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KUrl::encode_string(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KUrl::encode_string_no_slash(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KUrl::decode_string(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KUrl::isRelativeUrl(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KUrl* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_KUrl, &a0, sipType_KUrl, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KUrl::relativeUrl(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KUrl::relativePath(*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_QString,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KUrl___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl *sipCpp = reinterpret_cast<KUrl *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KUrl, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KUrl::operator!=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl *sipCpp = reinterpret_cast<KUrl *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KUrl, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    delete reinterpret_cast<KUrl *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KUrl(void *, SIP_SSIZE_T, const void *);}
static void assign_KUrl(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KUrl *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KUrl *>(sipSrc);
}


extern "C" {static void *array_KUrl(SIP_SSIZE_T);}
static void *array_KUrl(SIP_SSIZE_T sipNrElem)
{
    return new KUrl[sipNrElem];
}


extern "C" {static void *copy_KUrl(const void *, SIP_SSIZE_T);}
static void *copy_KUrl(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KUrl(reinterpret_cast<const KUrl *>(sipSrc)[sipSrcIdx]);
}


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


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

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

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUrl(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUrl(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipCpp;
        }
    }

    {
        const KUrl* a0;

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

            return sipCpp;
        }
    }

    {
        const QUrl* a0;

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

            return sipCpp;
        }
    }

    {
        const KUrl* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1", sipType_KUrl, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUrl(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KUrl[] = {{242, 0, 1}};


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


static PyMethodDef methods_KUrl[] = {
    {SIP_MLNAME_CAST(sipName_addPath), meth_KUrl_addPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addQueryItem), meth_KUrl_addQueryItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_adjustPath), meth_KUrl_adjustPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cd), meth_KUrl_cd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cleanPath), meth_KUrl_cleanPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cmp), meth_KUrl_cmp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decode_string), meth_KUrl_decode_string, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_directory), meth_KUrl_directory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encode_string), meth_KUrl_encode_string, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encode_string_no_slash), meth_KUrl_encode_string_no_slash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodedHtmlRef), meth_KUrl_encodedHtmlRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodedPathAndQuery), meth_KUrl_encodedPathAndQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_equals), meth_KUrl_equals, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileEncoding), meth_KUrl_fileEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KUrl_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromMimeDataByteArray), meth_KUrl_fromMimeDataByteArray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromPath), meth_KUrl_fromPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromPathOrUrl), meth_KUrl_fromPathOrUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasHTMLRef), meth_KUrl_hasHTMLRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasHost), meth_KUrl_hasHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasPass), meth_KUrl_hasPass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasPath), meth_KUrl_hasPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasRef), meth_KUrl_hasRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubUrl), meth_KUrl_hasSubUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasUser), meth_KUrl_hasUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_htmlRef), meth_KUrl_htmlRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalFile), meth_KUrl_isLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParentOf), meth_KUrl_isParentOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelativeUrl), meth_KUrl_isRelativeUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_join), meth_KUrl_join, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pass_), meth_KUrl_pass_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_path), meth_KUrl_path, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pathOrUrl), meth_KUrl_pathOrUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KUrl_populateMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prettyUrl), meth_KUrl_prettyUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_protocol), meth_KUrl_protocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_query), meth_KUrl_query, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryItem), meth_KUrl_queryItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryItems), meth_KUrl_queryItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ref), meth_KUrl_ref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relativePath), meth_KUrl_relativePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relativeUrl), meth_KUrl_relativeUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDirectory), meth_KUrl_setDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncodedPathAndQuery), meth_KUrl_setEncodedPathAndQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileEncoding), meth_KUrl_setFileEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_KUrl_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHTMLRef), meth_KUrl_setHTMLRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPass), meth_KUrl_setPass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPath), meth_KUrl_setPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProtocol), meth_KUrl_setProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQuery), meth_KUrl_setQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRef), meth_KUrl_setRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUser), meth_KUrl_setUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_split), meth_KUrl_split, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLocalFile), meth_KUrl_toLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toMimeDataString), meth_KUrl_toMimeDataString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_upUrl), meth_KUrl_upUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KUrl_url, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_user), meth_KUrl_user, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KUrl[] = {
    {sipName_AddTrailingSlash, static_cast<int>(KUrl::AddTrailingSlash), 222},
    {sipName_AllowEmptyPath, static_cast<int>(KUrl::AllowEmptyPath), 229},
    {sipName_AppendTrailingSlash, static_cast<int>(KUrl::AppendTrailingSlash), 225},
    {sipName_AvoidEmptyPath, static_cast<int>(KUrl::AvoidEmptyPath), 227},
    {sipName_CaseInsensitiveKeys, static_cast<int>(KUrl::CaseInsensitiveKeys), 234},
    {sipName_CompareWithoutFragment, static_cast<int>(KUrl::CompareWithoutFragment), 229},
    {sipName_CompareWithoutTrailingSlash, static_cast<int>(KUrl::CompareWithoutTrailingSlash), 229},
    {sipName_DefaultMimeDataFlags, static_cast<int>(KUrl::DefaultMimeDataFlags), 233},
    {sipName_IgnoreTrailingSlash, static_cast<int>(KUrl::IgnoreTrailingSlash), 225},
    {sipName_KeepDirSeparators, static_cast<int>(KUrl::KeepDirSeparators), 223},
    {sipName_LeaveTrailingSlash, static_cast<int>(KUrl::LeaveTrailingSlash), 222},
    {sipName_NoTextExport, static_cast<int>(KUrl::NoTextExport), 233},
    {sipName_ObeyTrailingSlash, static_cast<int>(KUrl::ObeyTrailingSlash), 225},
    {sipName_PermitEmptyPath, static_cast<int>(KUrl::PermitEmptyPath), 227},
    {sipName_RemoveTrailingSlash, static_cast<int>(KUrl::RemoveTrailingSlash), 222},
    {sipName_SimplifyDirSeparators, static_cast<int>(KUrl::SimplifyDirSeparators), 223},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KUrl,
        {0}
    },
    {
        sipNameNr_KUrl,
        {0, 0, 1},
        59, methods_KUrl,
        16, enummembers_KUrl,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KUrl,
    slots_KUrl,
    init_type_KUrl,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl,
    assign_KUrl,
    array_KUrl,
    copy_KUrl,
    release_KUrl,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 65 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2194 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTzfileTimeZoneSource : public KTzfileTimeZoneSource
{
public:
    sipKTzfileTimeZoneSource(const QString&);
    virtual ~sipKTzfileTimeZoneSource();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

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

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

KTimeZoneData* sipKTzfileTimeZoneSource::parse(const KTimeZone& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneSource::parse(a0);

    extern KTimeZoneData* sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone&);

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


extern "C" {static PyObject *meth_KTzfileTimeZoneSource_parse(PyObject *, PyObject *);}
static PyObject *meth_KTzfileTimeZoneSource_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const KTzfileTimeZoneSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTzfileTimeZoneSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTzfileTimeZoneSource *>(sipCppV);
    else
        delete reinterpret_cast<KTzfileTimeZoneSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTzfileTimeZoneSource(sipSimpleWrapper *);}
static void dealloc_KTzfileTimeZoneSource(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTzfileTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTzfileTimeZoneSource(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTzfileTimeZoneSource[] = {{215, 255, 1}};


static PyMethodDef methods_KTzfileTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_location), meth_KTzfileTimeZoneSource_location, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KTzfileTimeZoneSource_parse, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTzfileTimeZoneSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTzfileTimeZoneSource,
        {0}
    },
    {
        sipNameNr_KTzfileTimeZoneSource,
        {0, 0, 1},
        2, methods_KTzfileTimeZoneSource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTzfileTimeZoneSource,
    0,
    init_type_KTzfileTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTzfileTimeZoneSource,
    0,
    0,
    0,
    release_KTzfileTimeZoneSource,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2421 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2428 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2431 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2434 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2437 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2440 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTzfileTimeZoneBackend : public KTzfileTimeZoneBackend
{
public:
    sipKTzfileTimeZoneBackend(KTzfileTimeZoneSource*,const QString&,const QString&,float,float,const QString&);
    sipKTzfileTimeZoneBackend(const KTzfileTimeZoneBackend&);
    virtual ~sipKTzfileTimeZoneBackend();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTzfileTimeZoneBackend::sipKTzfileTimeZoneBackend(KTzfileTimeZoneSource*a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KTzfileTimeZoneBackend(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTzfileTimeZoneBackend::sipKTzfileTimeZoneBackend(const KTzfileTimeZoneBackend& a0): KTzfileTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKTzfileTimeZoneBackend::isDst(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::isDst(a0,a1);

    extern bool sipVH_kdecore_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

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

bool sipKTzfileTimeZoneBackend::isDstAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::isDstAtUtc(a0,a1);

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

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

int sipKTzfileTimeZoneBackend::offset(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::offset(a0,a1);

    extern int sipVH_kdecore_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

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

int sipKTzfileTimeZoneBackend::offsetAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::offsetAtUtc(a0,a1);

    extern int sipVH_kdecore_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

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

int sipKTzfileTimeZoneBackend::offsetAtZoneTime(const KTimeZone*a0,const QDateTime& a1,int*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

    extern int sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&,int*);

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

QByteArray sipKTzfileTimeZoneBackend::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_kdecore_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTzfileTimeZoneBackend::hasTransitions(const KTimeZone*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::hasTransitions(a0);

    extern bool sipVH_kdecore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*);

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

KTimeZoneBackend* sipKTzfileTimeZoneBackend::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZoneBackend::clone();

    extern KTimeZoneBackend* sipVH_kdecore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


extern "C" {static PyObject *meth_KTzfileTimeZoneBackend_clone(PyObject *, PyObject *);}
static PyObject *meth_KTzfileTimeZoneBackend_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTzfileTimeZoneBackend *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTzfileTimeZoneBackend_hasTransitions(PyObject *, PyObject *);}
static PyObject *meth_KTzfileTimeZoneBackend_hasTransitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const KTzfileTimeZoneBackend *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTzfileTimeZoneBackend_type(PyObject *, PyObject *);}
static PyObject *meth_KTzfileTimeZoneBackend_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTzfileTimeZoneBackend *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTzfileTimeZoneBackend *>(sipCppV);
    else
        delete reinterpret_cast<KTzfileTimeZoneBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTzfileTimeZoneBackend(sipSimpleWrapper *);}
static void dealloc_KTzfileTimeZoneBackend(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTzfileTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTzfileTimeZoneBackend(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KTzfileTimeZoneSource* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        float a3;
        float a4;
        const QString* a5;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1J1ffJ1", sipType_KTzfileTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTzfileTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTzfileTimeZoneBackend* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTzfileTimeZoneBackend[] = {{213, 255, 1}};


static PyMethodDef methods_KTzfileTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KTzfileTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTzfileTimeZoneBackend_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTzfileTimeZoneBackend_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTzfileTimeZoneBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTzfileTimeZoneBackend,
        {0}
    },
    {
        sipNameNr_KTzfileTimeZoneBackend,
        {0, 0, 1},
        3, methods_KTzfileTimeZoneBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTzfileTimeZoneBackend,
    0,
    init_type_KTzfileTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTzfileTimeZoneBackend,
    0,
    0,
    0,
    release_KTzfileTimeZoneBackend,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2839 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2843 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2882 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2885 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2891 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTzfileTimeZone : public KTzfileTimeZone
{
public:
    sipKTzfileTimeZone(KTzfileTimeZoneSource*,const QString&,const QString&,float,float,const QString&);
    sipKTzfileTimeZone(const KTzfileTimeZone&);
    virtual ~sipKTzfileTimeZone();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

sipKTzfileTimeZone::sipKTzfileTimeZone(KTzfileTimeZoneSource*a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KTzfileTimeZone(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTzfileTimeZone::sipKTzfileTimeZone(const KTzfileTimeZone& a0): KTzfileTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKTzfileTimeZone::hasTransitions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::hasTransitions();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTzfileTimeZone::isDst(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::isDst(a0);

    extern bool sipVH_kdecore_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

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

bool sipKTzfileTimeZone::isDstAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::isDstAtUtc(a0);

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

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

int sipKTzfileTimeZone::offset(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::offset(a0);

    extern int sipVH_kdecore_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

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

int sipKTzfileTimeZone::offsetAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::offsetAtUtc(a0);

    extern int sipVH_kdecore_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

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

int sipKTzfileTimeZone::offsetAtZoneTime(const QDateTime& a0,int*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTzfileTimeZone::offsetAtZoneTime(a0,a1);

    extern int sipVH_kdecore_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&,int*);

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


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTzfileTimeZone *>(sipCppV);
    else
        delete reinterpret_cast<KTzfileTimeZone *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTzfileTimeZone(sipSimpleWrapper *);}
static void dealloc_KTzfileTimeZone(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTzfileTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTzfileTimeZone(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1|J1ffJ1", sipType_KTzfileTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTzfileTimeZone(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTzfileTimeZone* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTzfileTimeZone[] = {{209, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTzfileTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTzfileTimeZone,
        {0}
    },
    {
        sipNameNr_KTzfileTimeZone,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTzfileTimeZone,
    0,
    init_type_KTzfileTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTzfileTimeZone,
    0,
    0,
    0,
    release_KTzfileTimeZone,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktoolinvocation.sip"
#include <ktoolinvocation.h>
#line 3168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3172 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3175 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3205 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3208 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3211 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3214 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_self, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_invokeHelp, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_invokeMailer, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_invokeBrowser, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_invokeTerminal, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_startServiceByName, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_startServiceByDesktopPath, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_startServiceByDesktopName, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_kdeinitExec, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_KToolInvocation, sipName_kdeinitExecWait, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KToolInvocation(void *, int);}
static void release_KToolInvocation(void *sipCppV,int)
{
    KToolInvocation *sipCpp = reinterpret_cast<KToolInvocation *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KToolInvocation[] = {{141, 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 signals. */
static const pyqt4QtSignal signals_KToolInvocation[] = {
    {"kapplication_hook(QStringList&,QByteArray&)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KToolInvocation = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KToolInvocation,
        {0}
    },
    {
        sipNameNr_KToolInvocation,
        {0, 0, 1},
        10, methods_KToolInvocation,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KToolInvocation,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KToolInvocation,
    0,
    0,
    0,
    release_KToolInvocation,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KToolInvocation::staticMetaObject,
    0,
    signals_KToolInvocation,
};

#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3865 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3868 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3871 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3874 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3877 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3880 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3883 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3886 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3889 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3892 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3895 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

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

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

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

bool sipKTimeZoneData::hasTransitions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

QList<int> sipKTimeZoneData::utcOffsets() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QList<int> sipVH_kdecore_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QByteArray sipKTimeZoneData::abbreviation(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QByteArray sipVH_kdecore_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

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

QList<QByteArray> sipKTimeZoneData::abbreviations() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef QList<QByteArray> (*sipVH_QtCore_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState, 0, sipPySelf, sipMeth);
}

KTimeZoneData* sipKTimeZoneData::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern KTimeZoneData* sipVH_kdecore_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


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

    {
        const KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KTimeZoneData::abbreviation(*a0) : sipCpp->abbreviation(*a0)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->previousUtcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Transition>(sipCpp->transitions(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone::LeapSeconds(sipCpp->leapSecondChange(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1i", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_Phase,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPhases(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KTimeZone::Phase> *>(a0),sipType_QList_0100KTimeZone_Phase,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J9", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_Phase,&a0, &a0State, sipType_KTimeZone_Phase, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPhases(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KTimeZone::Phase> *>(a0),sipType_QList_0100KTimeZone_Phase,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_Transition,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTransitions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KTimeZone::Transition> *>(a0),sipType_QList_0100KTimeZone_Transition,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_LeapSeconds,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLeapSecondChanges(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KTimeZone::LeapSeconds> *>(a0),sipType_QList_0100KTimeZone_LeapSeconds,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTimeZoneData(SIP_SSIZE_T);}
static void *array_KTimeZoneData(SIP_SSIZE_T sipNrElem)
{
    return new KTimeZoneData[sipNrElem];
}


extern "C" {static void *copy_KTimeZoneData(const void *, SIP_SSIZE_T);}
static void *copy_KTimeZoneData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KTimeZoneData(reinterpret_cast<const KTimeZoneData *>(sipSrc)[sipSrcIdx]);
}


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

    if (sipIsPyOwned(sipSelf))
    {
        release_KTimeZoneData(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTimeZoneData* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZoneData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneData,
        {0}
    },
    {
        sipNameNr_KTimeZoneData,
        {0, 0, 1},
        15, methods_KTimeZoneData,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZoneData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneData,
    assign_KTimeZoneData,
    array_KTimeZoneData,
    copy_KTimeZoneData,
    release_KTimeZoneData,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4644 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const KTimeZone::LeapSeconds *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::LeapSeconds *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZone::LeapSeconds *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->leapSeconds();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::LeapSeconds *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::LeapSeconds* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::LeapSeconds* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTimeZone_LeapSeconds(SIP_SSIZE_T);}
static void *array_KTimeZone_LeapSeconds(SIP_SSIZE_T sipNrElem)
{
    return new KTimeZone::LeapSeconds[sipNrElem];
}


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


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


extern "C" {static void *init_type_KTimeZone_LeapSeconds(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZone_LeapSeconds(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTimeZone::LeapSeconds *sipCpp = 0;

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

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1i|J1", sipType_QDateTime, &a0, &a0State, &a1, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::LeapSeconds(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        const KTimeZone::LeapSeconds* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone_LeapSeconds, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::LeapSeconds(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZone_LeapSeconds = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__LeapSeconds,
        {0}
    },
    {
        sipNameNr_LeapSeconds,
        {209, 255, 0},
        4, methods_KTimeZone_LeapSeconds,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTimeZone_LeapSeconds,
    init_type_KTimeZone_LeapSeconds,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_LeapSeconds,
    assign_KTimeZone_LeapSeconds,
    array_KTimeZone_LeapSeconds,
    copy_KTimeZone_LeapSeconds,
    release_KTimeZone_LeapSeconds,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4997 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5000 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const KTimeZone::Transition *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZone::Transition *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::Transition* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::Transition* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTimeZone_Transition(SIP_SSIZE_T);}
static void *array_KTimeZone_Transition(SIP_SSIZE_T sipNrElem)
{
    return new KTimeZone::Transition[sipNrElem];
}


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


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


extern "C" {static void *init_type_KTimeZone_Transition(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZone_Transition(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTimeZone::Transition *sipCpp = 0;

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

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9", sipType_QDateTime, &a0, &a0State, sipType_KTimeZone_Phase, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Transition(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipCpp;
        }
    }

    {
        const KTimeZone::Transition* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone_Transition, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Transition(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZone_Transition = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__Transition,
        {0}
    },
    {
        sipNameNr_Transition,
        {209, 255, 0},
        2, methods_KTimeZone_Transition,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTimeZone_Transition,
    init_type_KTimeZone_Transition,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_Transition,
    assign_KTimeZone_Transition,
    array_KTimeZone_Transition,
    copy_KTimeZone_Transition,
    release_KTimeZone_Transition,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5286 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const KTimeZone::Phase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->utcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::Phase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZone::Phase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDst();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone::Phase *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::Phase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::Phase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTimeZone_Phase(SIP_SSIZE_T);}
static void *array_KTimeZone_Phase(SIP_SSIZE_T sipNrElem)
{
    return new KTimeZone::Phase[sipNrElem];
}


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


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


extern "C" {static void *init_type_KTimeZone_Phase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZone_Phase(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTimeZone::Phase *sipCpp = 0;

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

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1b|J1", &a0, sipType_QByteArray, &a1, &a1State, &a2, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1b|J1", &a0, sipType_QList_0100QByteArray,&a1, &a1State, &a2, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QByteArray> *>(a1),sipType_QList_0100QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipCpp;
        }
    }

    {
        const KTimeZone::Phase* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone_Phase, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTimeZone::Phase(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZone_Phase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZone__Phase,
        {0}
    },
    {
        sipNameNr_Phase,
        {209, 255, 0},
        4, methods_KTimeZone_Phase,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTimeZone_Phase,
    init_type_KTimeZone_Phase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone_Phase,
    assign_KTimeZone_Phase,
    array_KTimeZone_Phase,
    copy_KTimeZone_Phase,
    release_KTimeZone_Phase,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5664 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5668 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5671 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 5674 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5677 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

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

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

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

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

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

    return NULL;
}


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

    {
        const KTimeZones *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZones, &sipCpp))
        {
            KTimeZones::ZoneMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZones::ZoneMap(sipCpp->zones());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTimeZone* a0;
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZones, &sipCpp, sipType_KTimeZone, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTimeZone* a0;
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZones, &sipCpp, sipType_KTimeZone, &a0))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS

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

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

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

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

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

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

    return NULL;
}


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

    {
        KTimeZones *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZones, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZones *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTimeZones[] = {
    {SIP_MLNAME_CAST(sipName_add), meth_KTimeZones_add, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTimeZones_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_KTimeZones_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zone), meth_KTimeZones_zone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zones), meth_KTimeZones_zones, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZones = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTimeZones,
        {0}
    },
    {
        sipNameNr_KTimeZones,
        {0, 0, 1},
        5, methods_KTimeZones,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZones,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZones,
    0,
    0,
    0,
    release_KTimeZones,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktemporaryfile.sip"
#include <ktemporaryfile.h>
#line 5943 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5947 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5950 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 5953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qtemporaryfile.sip"
#include <qtemporaryfile.h>
#line 5956 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 79 "/usr/share/python3-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 5959 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 5962 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 79 "/usr/share/python3-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 5965 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5974 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5977 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5983 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5986 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6001 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTemporaryFile : public KTemporaryFile
{
public:
    sipKTemporaryFile(const KComponentData&);
    virtual ~sipKTemporaryFile();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool reset();
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool atEnd() const;
    bool seek(qint64);
    qint64 pos() const;
    qint64 size() const;
    void close();
    bool isSequential() const;
    bool open(QIODevice::OpenMode);
    QAbstractFileEngine* fileEngine() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[24];
};

sipKTemporaryFile::sipKTemporaryFile(const KComponentData& a0): KTemporaryFile(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTemporaryFile::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KTemporaryFile);
}

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

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

    return _id;
}

void *sipKTemporaryFile::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KTemporaryFile, _clname)) ? this : KTemporaryFile::qt_metacast(_clname);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKTemporaryFile::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTemporaryFile::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTemporaryFile::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTemporaryFile::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTemporaryFile::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTemporaryFile::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTemporaryFile::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KTemporaryFile::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKTemporaryFile::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KTemporaryFile::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

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

qint64 sipKTemporaryFile::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KTemporaryFile::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

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

bool sipKTemporaryFile::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTemporaryFile::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KTemporaryFile::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKTemporaryFile::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTemporaryFile::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTemporaryFile::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KTemporaryFile::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTemporaryFile::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTemporaryFile::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KTemporaryFile::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QAbstractFileEngine* sipKTemporaryFile::fileEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTemporaryFile::fileEngine();

    typedef QAbstractFileEngine* (*sipVH_QtCore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTemporaryFile(void *, int);}
static void release_KTemporaryFile(void *sipCppV,int)
{
    KTemporaryFile *sipCpp = reinterpret_cast<KTemporaryFile *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTemporaryFile(sipSimpleWrapper *);}
static void dealloc_KTemporaryFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTemporaryFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTemporaryFile(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const KComponentData& a0def = KGlobal::mainComponent();
        const KComponentData* a0 = &a0def;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTemporaryFile[] = {{213, 0, 1}};


static PyMethodDef methods_KTemporaryFile[] = {
    {SIP_MLNAME_CAST(sipName_setPrefix), meth_KTemporaryFile_setPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuffix), meth_KTemporaryFile_setSuffix, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTemporaryFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTemporaryFile,
        {0}
    },
    {
        sipNameNr_KTemporaryFile,
        {0, 0, 1},
        2, methods_KTemporaryFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTemporaryFile,
    0,
    init_type_KTemporaryFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTemporaryFile,
    0,
    0,
    0,
    release_KTemporaryFile,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTemporaryFile::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktempdir.sip"
#include <ktempdir.h>
#include <fixx11h.h>
#line 6642 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6646 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        bool a0;
        KTempDir *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoRemove();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTempDir *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTempDir *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTempDir, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unlink();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTempDir::removeDir(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1i", &sipSelf, sipType_KTempDir, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KTempDir *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTempDir[] = {
    {SIP_MLNAME_CAST(sipName_autoRemove), meth_KTempDir_autoRemove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KTempDir_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_KTempDir_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KTempDir_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeDir), meth_KTempDir_removeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoRemove), meth_KTempDir_setAutoRemove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_KTempDir_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unlink), meth_KTempDir_unlink, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTempDir = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTempDir,
        {0}
    },
    {
        sipNameNr_KTempDir,
        {0, 0, 1},
        8, methods_KTempDir,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTempDir,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTempDir,
    0,
    0,
    0,
    release_KTempDir,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 265 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 6985 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 6989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 6992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


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

    delete reinterpret_cast<KSslErrorUiData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslErrorUiData(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslErrorUiData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KSslErrorUiData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KSslErrorUiData *>(sipSrc);
}


extern "C" {static void *array_KSslErrorUiData(SIP_SSIZE_T);}
static void *array_KSslErrorUiData(SIP_SSIZE_T sipNrElem)
{
    return new KSslErrorUiData[sipNrElem];
}


extern "C" {static void *copy_KSslErrorUiData(const void *, SIP_SSIZE_T);}
static void *copy_KSslErrorUiData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KSslErrorUiData(reinterpret_cast<const KSslErrorUiData *>(sipSrc)[sipSrcIdx]);
}


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


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

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

            return sipCpp;
        }
    }

    {
        const KTcpSocket* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KTcpSocket, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslErrorUiData(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KSslErrorUiData* a0;

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

            return sipCpp;
        }
    }

    {
        const QSslSocket* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QSslSocket, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslErrorUiData(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


pyqt4ClassTypeDef sipTypeDef_kdecore_KSslErrorUiData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslErrorUiData,
        {0}
    },
    {
        sipNameNr_KSslErrorUiData,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslErrorUiData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslErrorUiData,
    assign_KSslErrorUiData,
    array_KSslErrorUiData,
    copy_KSslErrorUiData,
    release_KSslErrorUiData,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7152 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static int slot_KTcpSocket_SslVersions___bool__(PyObject *);}
static int slot_KTcpSocket_SslVersions___bool__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 7178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTcpSocket::SslVersions* a0;
        int a0State = 0;

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

#line 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() != a0->operator KTcpSocket::SslVersions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 7212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
            sipReleaseType(const_cast<KTcpSocket::SslVersions *>(a0),sipType_KTcpSocket_SslVersions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTcpSocket::SslVersions* a0;
        int a0State = 0;

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

#line 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() == a0->operator KTcpSocket::SslVersions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 7252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
            sipReleaseType(const_cast<KTcpSocket::SslVersions *>(a0),sipType_KTcpSocket_SslVersions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___invert__(PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___invert__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;


    {
        {
            KTcpSocket::SslVersions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTcpSocket_SslVersions, &a0, &a0State, &a1))
        {
            KTcpSocket::SslVersions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;
        KTcpSocket::SslVersions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KTcpSocket_SslVersions, &a0, &a0State, sipType_KTcpSocket_SslVersions, &a1, &a1State))
        {
            KTcpSocket::SslVersions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);
            sipReleaseType(a1,sipType_KTcpSocket_SslVersions,a1State);

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

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTcpSocket_SslVersions, &a0, &a0State, &a1))
        {
            KTcpSocket::SslVersions*sipRes = 0;

#line 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KTcpSocket::SslVersions(*a0 ^ a1);
#line 7361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;
        KTcpSocket::SslVersions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KTcpSocket_SslVersions, &a0, &a0State, sipType_KTcpSocket_SslVersions, &a1, &a1State))
        {
            KTcpSocket::SslVersions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);
            sipReleaseType(a1,sipType_KTcpSocket_SslVersions,a1State);

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

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTcpSocket_SslVersions, &a0, &a0State, &a1))
        {
            KTcpSocket::SslVersions*sipRes = 0;

#line 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KTcpSocket::SslVersions(*a0 | a1);
#line 7413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___int__(PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___int__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KTcpSocket::SslVersions* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    delete reinterpret_cast<KTcpSocket::SslVersions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTcpSocket_SslVersions(SIP_SSIZE_T);}
static void *array_KTcpSocket_SslVersions(SIP_SSIZE_T sipNrElem)
{
    return new KTcpSocket::SslVersions[sipNrElem];
}


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


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


extern "C" {static void *init_type_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTcpSocket::SslVersions *sipCpp = 0;

    {
        const KTcpSocket::SslVersions* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 398 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTcpSocket::SslVersions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)) ||
            sipCanConvertToType(sipPy, sipType_KTcpSocket_SslVersions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)))
{
    *sipCppPtr = new KTcpSocket::SslVersions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTcpSocket::SslVersions *>(sipConvertToType(sipPy, sipType_KTcpSocket_SslVersions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7697 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTcpSocket_SslVersions[] = {
    {(void *)slot_KTcpSocket_SslVersions___bool__, bool_slot},
    {(void *)slot_KTcpSocket_SslVersions___ne__, ne_slot},
    {(void *)slot_KTcpSocket_SslVersions___eq__, eq_slot},
    {(void *)slot_KTcpSocket_SslVersions___invert__, invert_slot},
    {(void *)slot_KTcpSocket_SslVersions___and__, and_slot},
    {(void *)slot_KTcpSocket_SslVersions___xor__, xor_slot},
    {(void *)slot_KTcpSocket_SslVersions___or__, or_slot},
    {(void *)slot_KTcpSocket_SslVersions___int__, int_slot},
    {(void *)slot_KTcpSocket_SslVersions___ixor__, ixor_slot},
    {(void *)slot_KTcpSocket_SslVersions___ior__, ior_slot},
    {(void *)slot_KTcpSocket_SslVersions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTcpSocket_SslVersions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket__SslVersions,
        {0}
    },
    {
        sipNameNr_SslVersions,
        {200, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTcpSocket_SslVersions,
    init_type_KTcpSocket_SslVersions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket_SslVersions,
    assign_KTcpSocket_SslVersions,
    array_KTcpSocket_SslVersions,
    copy_KTcpSocket_SslVersions,
    release_KTcpSocket_SslVersions,
    0,
    convertTo_KTcpSocket_SslVersions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7773 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7777 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7780 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 7783 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7786 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 7789 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 7792 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7795 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtNetwork/qssl.sip"
#include <qssl.h>
#line 7798 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7801 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 7804 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7807 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 59 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7810 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7813 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 7816 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 7819 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7822 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 83 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7825 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7828 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7831 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7834 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7837 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7840 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7843 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTcpSocket : public KTcpSocket
{
public:
    sipKTcpSocket(QObject*);
    virtual ~sipKTcpSocket();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
    bool open(QIODevice::OpenMode);
    bool isSequential() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool atEnd() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[23];
};

sipKTcpSocket::sipKTcpSocket(QObject*a0): KTcpSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTcpSocket::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KTcpSocket);
}

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

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

    return _id;
}

void *sipKTcpSocket::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KTcpSocket, _clname)) ? this : KTcpSocket::qt_metacast(_clname);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

qint64 sipKTcpSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KTcpSocket,sipName_writeData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKTcpSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

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

qint64 sipKTcpSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_KTcpSocket,sipName_readData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_31)(sipModuleAPI_kdecore_QtCore->em_virthandlers[31]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTcpSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KTcpSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KTcpSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKTcpSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTcpSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KTcpSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KTcpSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KTcpSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTcpSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KTcpSocket::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTcpSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKTcpSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTcpSocket_atEnd(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_canReadLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_close(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTcpSocket::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_isSequential(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_isSequential(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_open(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForBytesWritten(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForBytesWritten(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForReadyRead(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForReadyRead(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_KTcpSocket_ProxyPolicy, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;
        quint16 a1;
        KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1, sipType_KTcpSocket_ProxyPolicy, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl* a0;
        KTcpSocket::ProxyPolicy a1 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KUrl, &a0, sipType_KTcpSocket_ProxyPolicy, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromHost();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            KTcpSocket::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_Error);
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList<KSslError>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslError>(sipCpp->sslErrors());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->localAddress());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->peerAddress());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QNetworkProxy* a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            KTcpSocket::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_State);
        }
    }

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

    return NULL;
}


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

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QSslCertificate* a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->caCertificates());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList<KSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslCipher>(sipCpp->ciphers());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|J1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHostEncrypted(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->localCertificate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->peerCertificateChain());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSslKey(sipCpp->privateKey());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSslCipher(sipCpp->sessionCipher());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<KSslCipher>* a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100KSslCipher,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KSslCipher> *>(a0),sipType_QList_0100KSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QSslCertificate* a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KSslKey* a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        KSslKey::Algorithm a1 = KSslKey::Rsa;
        QSsl::EncodingFormat a2 = QSsl::Pem;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|EEJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_KSslKey_Algorithm, &a1, sipType_QSsl_EncodingFormat, &a2, sipType_QByteArray, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            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(sipParseErr, sipName_KTcpSocket, sipName_setPrivateKey, NULL);

    return NULL;
}


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

    {
        KTcpSocket::SslVersion a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KTcpSocket_SslVersion, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAdvertisedSslVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->advertisedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_advertisedSslVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negotiatedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_negotiatedSslVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->negotiatedSslVersionName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_negotiatedSslVersionName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForEncrypted(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_waitForEncrypted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_encryptionMode(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_encryptionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            KTcpSocket::EncryptionMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encryptionMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_EncryptionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_encryptionMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_ignoreSslErrors, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->startClientEncryption();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_startClientEncryption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_socketOption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_socketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketOption a0;
        const KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->socketOption(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_socketOption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setSocketOption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setSocketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketOption a0;
        const QVariant* a1;
        int a1State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSocketOption(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setSocketOption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setVerificationPeerName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setVerificationPeerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVerificationPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setVerificationPeerName, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTcpSocket(void *, int);}
static void release_KTcpSocket(void *sipCppV,int)
{
    KTcpSocket *sipCpp = reinterpret_cast<KTcpSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTcpSocket(sipSimpleWrapper *);}
static void dealloc_KTcpSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTcpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTcpSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTcpSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTcpSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTcpSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTcpSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTcpSocket[] = {{81, 0, 1}};


static PyMethodDef methods_KTcpSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_KTcpSocket_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificate), meth_KTcpSocket_addCaCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificates), meth_KTcpSocket_addCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_advertisedSslVersion), meth_KTcpSocket_advertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_KTcpSocket_atEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_KTcpSocket_bytesAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_KTcpSocket_bytesToWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caCertificates), meth_KTcpSocket_caCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_KTcpSocket_canReadLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ciphers), meth_KTcpSocket_ciphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KTcpSocket_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHost), meth_KTcpSocket_connectToHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostEncrypted), meth_KTcpSocket_connectToHostEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHost), meth_KTcpSocket_disconnectFromHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMode), meth_KTcpSocket_encryptionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KTcpSocket_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flush), meth_KTcpSocket_flush, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_KTcpSocket_ignoreSslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_KTcpSocket_isSequential, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTcpSocket_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localAddress), meth_KTcpSocket_localAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localCertificate), meth_KTcpSocket_localCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersion), meth_KTcpSocket_negotiatedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersionName), meth_KTcpSocket_negotiatedSslVersionName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KTcpSocket_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerAddress), meth_KTcpSocket_peerAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerCertificateChain), meth_KTcpSocket_peerCertificateChain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerName), meth_KTcpSocket_peerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerPort), meth_KTcpSocket_peerPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_privateKey), meth_KTcpSocket_privateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxy), meth_KTcpSocket_proxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_KTcpSocket_readBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionCipher), meth_KTcpSocket_sessionCipher, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAdvertisedSslVersion), meth_KTcpSocket_setAdvertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCaCertificates), meth_KTcpSocket_setCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCiphers), meth_KTcpSocket_setCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), meth_KTcpSocket_setLocalCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrivateKey), meth_KTcpSocket_setPrivateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_KTcpSocket_setProxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_KTcpSocket_setReadBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketOption), meth_KTcpSocket_setSocketOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVerificationPeerName), meth_KTcpSocket_setVerificationPeerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_socketOption), meth_KTcpSocket_socketOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sslErrors), meth_KTcpSocket_sslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startClientEncryption), meth_KTcpSocket_startClientEncryption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_KTcpSocket_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), meth_KTcpSocket_waitForBytesWritten, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForConnected), meth_KTcpSocket_waitForConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), meth_KTcpSocket_waitForDisconnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForEncrypted), meth_KTcpSocket_waitForEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), meth_KTcpSocket_waitForReadyRead, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTcpSocket[] = {
    {sipName_AnySslVersion, static_cast<int>(KTcpSocket::AnySslVersion), 204},
    {sipName_AutoProxy, static_cast<int>(KTcpSocket::AutoProxy), 203},
    {sipName_BoundState, static_cast<int>(KTcpSocket::BoundState), 206},
    {sipName_ClosingState, static_cast<int>(KTcpSocket::ClosingState), 206},
    {sipName_ConnectedState, static_cast<int>(KTcpSocket::ConnectedState), 206},
    {sipName_ConnectingState, static_cast<int>(KTcpSocket::ConnectingState), 206},
    {sipName_ConnectionRefusedError, static_cast<int>(KTcpSocket::ConnectionRefusedError), 202},
    {sipName_HostLookupState, static_cast<int>(KTcpSocket::HostLookupState), 206},
    {sipName_HostNotFoundError, static_cast<int>(KTcpSocket::HostNotFoundError), 202},
    {sipName_ListeningState, static_cast<int>(KTcpSocket::ListeningState), 206},
    {sipName_ManualProxy, static_cast<int>(KTcpSocket::ManualProxy), 203},
    {sipName_NetworkError, static_cast<int>(KTcpSocket::NetworkError), 202},
    {sipName_RemoteHostClosedError, static_cast<int>(KTcpSocket::RemoteHostClosedError), 202},
    {sipName_SecureProtocols, static_cast<int>(KTcpSocket::SecureProtocols), 204},
    {sipName_SocketAccessError, static_cast<int>(KTcpSocket::SocketAccessError), 202},
    {sipName_SocketResourceError, static_cast<int>(KTcpSocket::SocketResourceError), 202},
    {sipName_SocketTimeoutError, static_cast<int>(KTcpSocket::SocketTimeoutError), 202},
    {sipName_SslClientMode, static_cast<int>(KTcpSocket::SslClientMode), 201},
    {sipName_SslServerMode, static_cast<int>(KTcpSocket::SslServerMode), 201},
    {sipName_SslV2, static_cast<int>(KTcpSocket::SslV2), 204},
    {sipName_SslV3, static_cast<int>(KTcpSocket::SslV3), 204},
    {sipName_SslV3_1, static_cast<int>(KTcpSocket::SslV3_1), 204},
    {sipName_TlsV1, static_cast<int>(KTcpSocket::TlsV1), 204},
    {sipName_TlsV1SslV3, static_cast<int>(KTcpSocket::TlsV1SslV3), 204},
    {sipName_UnconnectedState, static_cast<int>(KTcpSocket::UnconnectedState), 206},
    {sipName_UnencryptedMode, static_cast<int>(KTcpSocket::UnencryptedMode), 201},
    {sipName_UnknownError, static_cast<int>(KTcpSocket::UnknownError), 202},
    {sipName_UnknownSslVersion, static_cast<int>(KTcpSocket::UnknownSslVersion), 204},
    {sipName_UnsupportedSocketOperationError, static_cast<int>(KTcpSocket::UnsupportedSocketOperationError), 202},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTcpSocket[] = {
    {"encryptedBytesWritten(qint64)", 0, 0, 0},
    {"encryptionModeChanged(KTcpSocket::EncryptionMode)", 0, 0, 0},
    {"encrypted()", 0, 0, 0},
    {"stateChanged(KTcpSocket::State)", 0, 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", 0, 0, 0},
    {"hostFound()", 0, 0, 0},
    {"disconnected()", 0, 0, 0},
    {"connected()", 0, 0, 0},
    {"sslErrors(QList<KSslError>)", 0, &methods_KTcpSocket[43], 0},
    {"error(KTcpSocket::Error)", 0, &methods_KTcpSocket[15], 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTcpSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket,
        {0}
    },
    {
        sipNameNr_KTcpSocket,
        {0, 0, 1},
        51, methods_KTcpSocket,
        29, enummembers_KTcpSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTcpSocket,
    0,
    init_type_KTcpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket,
    0,
    0,
    0,
    release_KTcpSocket,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTcpSocket::staticMetaObject,
    0,
    signals_KTcpSocket,
};

#line 83 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 10013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 10016 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10019 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslError_error(PyObject *, PyObject *);}
static PyObject *meth_KSslError_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
            KSslError::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslError_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_error, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_errorString(PyObject *, PyObject *);}
static PyObject *meth_KSslError_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_errorString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_certificate(PyObject *, PyObject *);}
static PyObject *meth_KSslError_certificate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
            QSslCertificate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->certificate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QSslCertificate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_certificate, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslError(void *, int);}
static void release_KSslError(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslError(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslError(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KSslError *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KSslError *>(sipSrc);
}


extern "C" {static void *array_KSslError(SIP_SSIZE_T);}
static void *array_KSslError(SIP_SSIZE_T sipNrElem)
{
    return new KSslError[sipNrElem];
}


extern "C" {static void *copy_KSslError(const void *, SIP_SSIZE_T);}
static void *copy_KSslError(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KSslError(reinterpret_cast<const KSslError *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslError(sipSimpleWrapper *);}
static void dealloc_KSslError(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslError(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KSslError(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslError(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KSslError *sipCpp = 0;

    {
        KSslError::Error a0 = KSslError::NoError;
        const QSslCertificate& a1def = QSslCertificate();
        const QSslCertificate* a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|EJ9", sipType_KSslError_Error, &a0, sipType_QSslCertificate, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(a0,*a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QSslError* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KSslError* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslError[] = {
    {SIP_MLNAME_CAST(sipName_certificate), meth_KSslError_certificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KSslError_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KSslError_errorString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslError[] = {
    {sipName_CertificateSignatureFailed, static_cast<int>(KSslError::CertificateSignatureFailed), 182},
    {sipName_ExpiredCertificate, static_cast<int>(KSslError::ExpiredCertificate), 182},
    {sipName_HostNameMismatch, static_cast<int>(KSslError::HostNameMismatch), 182},
    {sipName_InvalidCertificate, static_cast<int>(KSslError::InvalidCertificate), 182},
    {sipName_InvalidCertificateAuthorityCertificate, static_cast<int>(KSslError::InvalidCertificateAuthorityCertificate), 182},
    {sipName_InvalidCertificatePurpose, static_cast<int>(KSslError::InvalidCertificatePurpose), 182},
    {sipName_NoError, static_cast<int>(KSslError::NoError), 182},
    {sipName_NoPeerCertificate, static_cast<int>(KSslError::NoPeerCertificate), 182},
    {sipName_PathLengthExceeded, static_cast<int>(KSslError::PathLengthExceeded), 182},
    {sipName_RejectedCertificate, static_cast<int>(KSslError::RejectedCertificate), 182},
    {sipName_RevokedCertificate, static_cast<int>(KSslError::RevokedCertificate), 182},
    {sipName_SelfSignedCertificate, static_cast<int>(KSslError::SelfSignedCertificate), 182},
    {sipName_UnknownError, static_cast<int>(KSslError::UnknownError), 182},
    {sipName_UntrustedCertificate, static_cast<int>(KSslError::UntrustedCertificate), 182},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSslError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslError,
        {0}
    },
    {
        sipNameNr_KSslError,
        {0, 0, 1},
        3, methods_KSslError,
        14, enummembers_KSslError,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslError,
    assign_KSslError,
    array_KSslError,
    copy_KSslError,
    release_KSslError,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 59 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10275 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 10279 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10285 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslCipher_isNull(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_authenticationMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_authenticationMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->authenticationMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_authenticationMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_encryptionMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_encryptionMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->encryptionMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_encryptionMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->keyExchangeMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_keyExchangeMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_digestMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_digestMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->digestMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_digestMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_name(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_supportedBits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_usedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_usedBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_usedBits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedCiphers(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedCiphers(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<KSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslCipher>(KSslCipher::supportedCiphers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KSslCipher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_supportedCiphers, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslCipher(void *, int);}
static void release_KSslCipher(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslCipher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslCipher(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslCipher(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KSslCipher *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KSslCipher *>(sipSrc);
}


extern "C" {static void *array_KSslCipher(SIP_SSIZE_T);}
static void *array_KSslCipher(SIP_SSIZE_T sipNrElem)
{
    return new KSslCipher[sipNrElem];
}


extern "C" {static void *copy_KSslCipher(const void *, SIP_SSIZE_T);}
static void *copy_KSslCipher(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KSslCipher(reinterpret_cast<const KSslCipher *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslCipher(sipSimpleWrapper *);}
static void dealloc_KSslCipher(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslCipher(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KSslCipher(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslCipher(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KSslCipher *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KSslCipher* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslCipher, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QSslCipher* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslCipher, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslCipher[] = {
    {SIP_MLNAME_CAST(sipName_authenticationMethod), meth_KSslCipher_authenticationMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_digestMethod), meth_KSslCipher_digestMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMethod), meth_KSslCipher_encryptionMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KSslCipher_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyExchangeMethod), meth_KSslCipher_keyExchangeMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KSslCipher_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedBits), meth_KSslCipher_supportedBits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedCiphers), meth_KSslCipher_supportedCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usedBits), meth_KSslCipher_usedBits, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSslCipher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslCipher,
        {0}
    },
    {
        sipNameNr_KSslCipher,
        {0, 0, 1},
        9, methods_KSslCipher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslCipher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslCipher,
    assign_KSslCipher,
    array_KSslCipher,
    copy_KSslCipher,
    release_KSslCipher,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10686 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 10690 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10693 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslKey_algorithm(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_algorithm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
            KSslKey::Algorithm sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->algorithm();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_Algorithm);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_algorithm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_isExportable(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_isExportable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExportable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_isExportable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_secrecy(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_secrecy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
            KSslKey::KeySecrecy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->secrecy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_KeySecrecy);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_secrecy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_toDer(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_toDer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toDer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_toDer, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslKey(void *, int);}
static void release_KSslKey(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslKey *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslKey(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslKey(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KSslKey *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KSslKey *>(sipSrc);
}


extern "C" {static void *array_KSslKey(SIP_SSIZE_T);}
static void *array_KSslKey(SIP_SSIZE_T sipNrElem)
{
    return new KSslKey[sipNrElem];
}


extern "C" {static void *copy_KSslKey(const void *, SIP_SSIZE_T);}
static void *copy_KSslKey(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KSslKey(reinterpret_cast<const KSslKey *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslKey(sipSimpleWrapper *);}
static void dealloc_KSslKey(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslKey(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KSslKey(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslKey(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KSslKey *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KSslKey* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QSslKey* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslKey[] = {
    {SIP_MLNAME_CAST(sipName_algorithm), meth_KSslKey_algorithm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExportable), meth_KSslKey_isExportable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secrecy), meth_KSslKey_secrecy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDer), meth_KSslKey_toDer, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslKey[] = {
    {sipName_Dh, static_cast<int>(KSslKey::Dh), 185},
    {sipName_Dsa, static_cast<int>(KSslKey::Dsa), 185},
    {sipName_PrivateKey, static_cast<int>(KSslKey::PrivateKey), 186},
    {sipName_PublicKey, static_cast<int>(KSslKey::PublicKey), 186},
    {sipName_Rsa, static_cast<int>(KSslKey::Rsa), 185},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSslKey = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslKey,
        {0}
    },
    {
        sipNameNr_KSslKey,
        {0, 0, 1},
        4, methods_KSslKey,
        5, enummembers_KSslKey,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslKey,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslKey,
    assign_KSslKey,
    array_KSslKey,
    copy_KSslKey,
    release_KSslKey,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 92 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 10964 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 10968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 10971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKSystemTimeZoneSource : public KSystemTimeZoneSource
{
public:
    sipKSystemTimeZoneSource();
    virtual ~sipKSystemTimeZoneSource();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTimeZoneData* parse(const KTimeZone&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKSystemTimeZoneSource(const sipKSystemTimeZoneSource &);
    sipKSystemTimeZoneSource &operator = (const sipKSystemTimeZoneSource &);

    char sipPyMethods[1];
};

sipKSystemTimeZoneSource::sipKSystemTimeZoneSource(): KSystemTimeZoneSource(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSystemTimeZoneSource::~sipKSystemTimeZoneSource()
{
    sipCommonDtor(sipPySelf);
}

KTimeZoneData* sipKSystemTimeZoneSource::parse(const KTimeZone& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_parse);

    if (!sipMeth)
        return KSystemTimeZoneSource::parse(a0);

    extern KTimeZoneData* sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone&);

    return sipVH_kdecore_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_parse(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const KSystemTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KSystemTimeZoneSource, &sipCpp, sipType_KTimeZone, &a0))
        {
            KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneSource::parse(*a0) : sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_startParseBlock(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_startParseBlock(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSystemTimeZoneSource::startParseBlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_startParseBlock, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_endParseBlock(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_endParseBlock(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSystemTimeZoneSource::endParseBlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_endParseBlock, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSystemTimeZoneSource(void *, int);}
static void release_KSystemTimeZoneSource(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSystemTimeZoneSource *>(sipCppV);
    else
        delete reinterpret_cast<KSystemTimeZoneSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSystemTimeZoneSource(sipSimpleWrapper *);}
static void dealloc_KSystemTimeZoneSource(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKSystemTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KSystemTimeZoneSource(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KSystemTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZoneSource(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZoneSource *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneSource();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZoneSource[] = {{215, 255, 1}};


static PyMethodDef methods_KSystemTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_endParseBlock), meth_KSystemTimeZoneSource_endParseBlock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KSystemTimeZoneSource_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startParseBlock), meth_KSystemTimeZoneSource_startParseBlock, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSystemTimeZoneSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZoneSource,
        {0}
    },
    {
        sipNameNr_KSystemTimeZoneSource,
        {0, 0, 1},
        3, methods_KSystemTimeZoneSource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZoneSource,
    0,
    init_type_KSystemTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneSource,
    0,
    0,
    0,
    release_KSystemTimeZoneSource,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11220 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11223 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTimeZoneSource : public KTimeZoneSource
{
public:
    sipKTimeZoneSource();
    sipKTimeZoneSource(bool);
    virtual ~sipKTimeZoneSource();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTimeZoneData* parse(const KTimeZone&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTimeZoneSource(const sipKTimeZoneSource &);
    sipKTimeZoneSource &operator = (const sipKTimeZoneSource &);

    char sipPyMethods[1];
};

sipKTimeZoneSource::sipKTimeZoneSource(): KTimeZoneSource(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneSource::sipKTimeZoneSource(bool a0): KTimeZoneSource(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneSource::~sipKTimeZoneSource()
{
    sipCommonDtor(sipPySelf);
}

KTimeZoneData* sipKTimeZoneSource::parse(const KTimeZone& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_parse);

    if (!sipMeth)
        return KTimeZoneSource::parse(a0);

    extern KTimeZoneData* sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone&);

    return sipVH_kdecore_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTimeZoneSource_parse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneSource_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const KTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZoneSource, &sipCpp, sipType_KTimeZone, &a0))
        {
            KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneSource::parse(*a0) : sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneSource, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneSource_useZoneParse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneSource_useZoneParse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneSource, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->useZoneParse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneSource, sipName_useZoneParse, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneSource(void *, int);}
static void release_KTimeZoneSource(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneSource *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZoneSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTimeZoneSource(sipSimpleWrapper *);}
static void dealloc_KTimeZoneSource(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTimeZoneSource(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZoneSource(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZoneSource *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneSource();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneSource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZoneSource_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_useZoneParse), meth_KTimeZoneSource_useZoneParse, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZoneSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneSource,
        {0}
    },
    {
        sipNameNr_KTimeZoneSource,
        {0, 0, 1},
        2, methods_KTimeZoneSource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneSource,
    0,
    0,
    0,
    release_KTimeZoneSource,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 70 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 11463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 11467 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11470 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11473 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKSystemTimeZoneBackend : public KSystemTimeZoneBackend
{
public:
    sipKSystemTimeZoneBackend(KSystemTimeZoneSource*,const QString&,const QString&,float,float,const QString&);
    sipKSystemTimeZoneBackend(const KSystemTimeZoneBackend&);
    virtual ~sipKSystemTimeZoneBackend();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions(const KTimeZone*) const;
    QByteArray type() const;
    bool isDst(const KTimeZone*,time_t) const;
    bool isDstAtUtc(const KTimeZone*,const QDateTime&) const;
    int offset(const KTimeZone*,time_t) const;
    int offsetAtUtc(const KTimeZone*,const QDateTime&) const;
    int offsetAtZoneTime(const KTimeZone*,const QDateTime&,int*) const;
    KTimeZoneBackend* clone() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKSystemTimeZoneBackend(const sipKSystemTimeZoneBackend &);
    sipKSystemTimeZoneBackend &operator = (const sipKSystemTimeZoneBackend &);

    char sipPyMethods[8];
};

sipKSystemTimeZoneBackend::sipKSystemTimeZoneBackend(KSystemTimeZoneSource*a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KSystemTimeZoneBackend(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSystemTimeZoneBackend::sipKSystemTimeZoneBackend(const KSystemTimeZoneBackend& a0): KSystemTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSystemTimeZoneBackend::~sipKSystemTimeZoneBackend()
{
    sipCommonDtor(sipPySelf);
}

bool sipKSystemTimeZoneBackend::hasTransitions(const KTimeZone*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return KSystemTimeZoneBackend::hasTransitions(a0);

    extern bool sipVH_kdecore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*);

    return sipVH_kdecore_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QByteArray sipKSystemTimeZoneBackend::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return KSystemTimeZoneBackend::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_kdecore_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSystemTimeZoneBackend::isDst(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return KSystemTimeZoneBackend::isDst(a0,a1);

    extern bool sipVH_kdecore_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

    return sipVH_kdecore_6(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKSystemTimeZoneBackend::isDstAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return KSystemTimeZoneBackend::isDstAtUtc(a0,a1);

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKSystemTimeZoneBackend::offset(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return KSystemTimeZoneBackend::offset(a0,a1);

    extern int sipVH_kdecore_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

    return sipVH_kdecore_8(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKSystemTimeZoneBackend::offsetAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return KSystemTimeZoneBackend::offsetAtUtc(a0,a1);

    extern int sipVH_kdecore_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

    return sipVH_kdecore_9(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKSystemTimeZoneBackend::offsetAtZoneTime(const KTimeZone*a0,const QDateTime& a1,int*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return KSystemTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

    extern int sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&,int*);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

KTimeZoneBackend* sipKSystemTimeZoneBackend::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return KSystemTimeZoneBackend::clone();

    extern KTimeZoneBackend* sipVH_kdecore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_2(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_clone(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp))
        {
            KTimeZoneBackend*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneBackend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        int a2;
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::offsetAtZoneTime(a0,*a1,&a2) : sipCpp->offsetAtZoneTime(a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::offsetAtUtc(a0,*a1) : sipCpp->offsetAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offset(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        time_t a1;
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::offset(a0,a1) : sipCpp->offset(a0,a1));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::isDstAtUtc(a0,*a1) : sipCpp->isDstAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_isDst(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        time_t a1;
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::isDst(a0,a1) : sipCpp->isDst(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_type(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KSystemTimeZoneBackend::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_type, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSystemTimeZoneBackend(void *, int);}
static void release_KSystemTimeZoneBackend(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSystemTimeZoneBackend *>(sipCppV);
    else
        delete reinterpret_cast<KSystemTimeZoneBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSystemTimeZoneBackend(sipSimpleWrapper *);}
static void dealloc_KSystemTimeZoneBackend(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKSystemTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KSystemTimeZoneBackend(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KSystemTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZoneBackend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZoneBackend *sipCpp = 0;

    {
        KSystemTimeZoneSource* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        float a3;
        float a4;
        const QString* a5;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1J1ffJ1", sipType_KSystemTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KSystemTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSystemTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZoneBackend[] = {{213, 255, 1}};


static PyMethodDef methods_KSystemTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KSystemTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KSystemTimeZoneBackend_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KSystemTimeZoneBackend_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KSystemTimeZoneBackend_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KSystemTimeZoneBackend_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KSystemTimeZoneBackend_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KSystemTimeZoneBackend_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSystemTimeZoneBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZoneBackend,
        {0}
    },
    {
        sipNameNr_KSystemTimeZoneBackend,
        {0, 0, 1},
        7, methods_KSystemTimeZoneBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZoneBackend,
    0,
    init_type_KSystemTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneBackend,
    0,
    0,
    0,
    release_KSystemTimeZoneBackend,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTimeZoneBackend : public KTimeZoneBackend
{
public:
    sipKTimeZoneBackend();
    sipKTimeZoneBackend(const QString&);
    sipKTimeZoneBackend(const KTimeZoneBackend&);
    sipKTimeZoneBackend(KTimeZoneSource*,const QString&,const QString&,float,float,const QString&);
    virtual ~sipKTimeZoneBackend();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions(const KTimeZone*) const;
    bool isDst(const KTimeZone*,time_t) const;
    bool isDstAtUtc(const KTimeZone*,const QDateTime&) const;
    int offset(const KTimeZone*,time_t) const;
    int offsetAtUtc(const KTimeZone*,const QDateTime&) const;
    int offsetAtZoneTime(const KTimeZone*,const QDateTime&,int*) const;
    QByteArray type() const;
    KTimeZoneBackend* clone() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTimeZoneBackend(const sipKTimeZoneBackend &);
    sipKTimeZoneBackend &operator = (const sipKTimeZoneBackend &);

    char sipPyMethods[8];
};

sipKTimeZoneBackend::sipKTimeZoneBackend(): KTimeZoneBackend(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const QString& a0): KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const KTimeZoneBackend& a0): KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(KTimeZoneSource*a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KTimeZoneBackend(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::~sipKTimeZoneBackend()
{
    sipCommonDtor(sipPySelf);
}

bool sipKTimeZoneBackend::hasTransitions(const KTimeZone*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return KTimeZoneBackend::hasTransitions(a0);

    extern bool sipVH_kdecore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*);

    return sipVH_kdecore_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTimeZoneBackend::isDst(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return KTimeZoneBackend::isDst(a0,a1);

    extern bool sipVH_kdecore_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

    return sipVH_kdecore_6(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTimeZoneBackend::isDstAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return KTimeZoneBackend::isDstAtUtc(a0,a1);

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offset(const KTimeZone*a0,time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return KTimeZoneBackend::offset(a0,a1);

    extern int sipVH_kdecore_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,long);

    return sipVH_kdecore_8(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offsetAtUtc(const KTimeZone*a0,const QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return KTimeZoneBackend::offsetAtUtc(a0,a1);

    extern int sipVH_kdecore_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&);

    return sipVH_kdecore_9(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offsetAtZoneTime(const KTimeZone*a0,const QDateTime& a1,int*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return KTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

    extern int sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTimeZone*,const QDateTime&,int*);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QByteArray sipKTimeZoneBackend::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return KTimeZoneBackend::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_kdecore_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

KTimeZoneBackend* sipKTimeZoneBackend::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return KTimeZoneBackend::clone();

    extern KTimeZoneBackend* sipVH_kdecore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_2(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTimeZoneBackend_clone(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneBackend, &sipCpp))
        {
            KTimeZoneBackend*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneBackend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_type(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneBackend, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KTimeZoneBackend::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        int a2;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offsetAtZoneTime(a0,*a1,&a2) : sipCpp->offsetAtZoneTime(a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offsetAtUtc(a0,*a1) : sipCpp->offsetAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        time_t a1;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::offset(a0,a1) : sipCpp->offset(a0,a1));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::isDstAtUtc(a0,*a1) : sipCpp->isDstAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_isDst(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        time_t a1;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::isDst(a0,a1) : sipCpp->isDst(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_hasTransitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_hasTransitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone* a0;
        const KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZoneBackend::hasTransitions(a0) : sipCpp->hasTransitions(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_hasTransitions, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneBackend(void *, int);}
static void release_KTimeZoneBackend(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneBackend *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZoneBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZoneBackend(void *, SIP_SSIZE_T, const void *);}
static void assign_KTimeZoneBackend(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KTimeZoneBackend *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KTimeZoneBackend *>(sipSrc);
}


extern "C" {static void *array_KTimeZoneBackend(SIP_SSIZE_T);}
static void *array_KTimeZoneBackend(SIP_SSIZE_T sipNrElem)
{
    return new KTimeZoneBackend[sipNrElem];
}


extern "C" {static void *copy_KTimeZoneBackend(const void *, SIP_SSIZE_T);}
static void *copy_KTimeZoneBackend(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KTimeZoneBackend(reinterpret_cast<const KTimeZoneBackend *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTimeZoneBackend(sipSimpleWrapper *);}
static void dealloc_KTimeZoneBackend(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTimeZoneBackend(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZoneBackend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZoneBackend *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KTimeZoneSource* a0;
        const QString* a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        float a3 = KTimeZone::UNKNOWN;
        float a4 = KTimeZone::UNKNOWN;
        const QString& a5def = QString();
        const QString* a5 = &a5def;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1|J1ffJ1", sipType_KTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZoneBackend_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZoneBackend_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZoneBackend_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZoneBackend_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZoneBackend_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZoneBackend_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZoneBackend_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZoneBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneBackend,
        {0}
    },
    {
        sipNameNr_KTimeZoneBackend,
        {0, 0, 1},
        8, methods_KTimeZoneBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneBackend,
    assign_KTimeZoneBackend,
    array_KTimeZoneBackend,
    copy_KTimeZoneBackend,
    release_KTimeZoneBackend,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12651 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12655 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12658 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12661 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12664 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12667 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12670 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12673 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12676 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12679 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12682 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12685 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12688 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12691 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12694 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12697 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12700 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12703 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKSystemTimeZone : public KSystemTimeZone
{
public:
    sipKSystemTimeZone(KSystemTimeZoneSource*,const QString&,const QString&,float,float,const QString&);
    sipKSystemTimeZone(const KSystemTimeZone&);
    virtual ~sipKSystemTimeZone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions() const;
    bool isDst(time_t) const;
    bool isDstAtUtc(const QDateTime&) const;
    int offset(time_t) const;
    int offsetAtUtc(const QDateTime&) const;
    int offsetAtZoneTime(const QDateTime&,int*) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKSystemTimeZone(const sipKSystemTimeZone &);
    sipKSystemTimeZone &operator = (const sipKSystemTimeZone &);

    char sipPyMethods[6];
};

sipKSystemTimeZone::sipKSystemTimeZone(KSystemTimeZoneSource*a0,const QString& a1,const QString& a2,float a3,float a4,const QString& a5): KSystemTimeZone(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSystemTimeZone::sipKSystemTimeZone(const KSystemTimeZone& a0): KSystemTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSystemTimeZone::~sipKSystemTimeZone()
{
    sipCommonDtor(sipPySelf);
}

bool sipKSystemTimeZone::hasTransitions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return KSystemTimeZone::hasTransitions();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSystemTimeZone::isDst(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return KSystemTimeZone::isDst(a0);

    extern bool sipVH_kdecore_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

    return sipVH_kdecore_11(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSystemTimeZone::isDstAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return KSystemTimeZone::isDstAtUtc(a0);

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

    return sipVH_kdecore_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKSystemTimeZone::offset(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return KSystemTimeZone::offset(a0);

    extern int sipVH_kdecore_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

    return sipVH_kdecore_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKSystemTimeZone::offsetAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return KSystemTimeZone::offsetAtUtc(a0);

    extern int sipVH_kdecore_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

    return sipVH_kdecore_14(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKSystemTimeZone::offsetAtZoneTime(const QDateTime& a0,int*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return KSystemTimeZone::offsetAtZoneTime(a0,a1);

    extern int sipVH_kdecore_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&,int*);

    return sipVH_kdecore_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


/* Call the instance's destructor. */
extern "C" {static void release_KSystemTimeZone(void *, int);}
static void release_KSystemTimeZone(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSystemTimeZone *>(sipCppV);
    else
        delete reinterpret_cast<KSystemTimeZone *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSystemTimeZone(sipSimpleWrapper *);}
static void dealloc_KSystemTimeZone(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKSystemTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KSystemTimeZone(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KSystemTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZone(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZone *sipCpp = 0;

    {
        KSystemTimeZoneSource* a0;
        const QString* a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        float a3 = KTimeZone::UNKNOWN;
        float a4 = KTimeZone::UNKNOWN;
        const QString& a5def = QString();
        const QString* a5 = &a5def;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1|J1ffJ1", sipType_KSystemTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZone(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KSystemTimeZone* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSystemTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZone(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZone[] = {{209, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSystemTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZone,
        {0}
    },
    {
        sipNameNr_KSystemTimeZone,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZone,
    0,
    init_type_KSystemTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZone,
    0,
    0,
    0,
    release_KSystemTimeZone,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12987 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12990 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12996 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12999 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13002 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13005 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13008 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13011 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13014 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


class sipKTimeZone : public KTimeZone
{
public:
    sipKTimeZone(const QString&);
    sipKTimeZone(const KTimeZone&);
    sipKTimeZone(KTimeZoneBackend*);
    virtual ~sipKTimeZone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions() const;
    bool isDst(time_t) const;
    bool isDstAtUtc(const QDateTime&) const;
    int offset(time_t) const;
    int offsetAtUtc(const QDateTime&) const;
    int offsetAtZoneTime(const QDateTime&,int*) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTimeZone(const sipKTimeZone &);
    sipKTimeZone &operator = (const sipKTimeZone &);

    char sipPyMethods[6];
};

sipKTimeZone::sipKTimeZone(const QString& a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone(const KTimeZone& a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone(KTimeZoneBackend*a0): KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::~sipKTimeZone()
{
    sipCommonDtor(sipPySelf);
}

bool sipKTimeZone::hasTransitions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return KTimeZone::hasTransitions();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTimeZone::isDst(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return KTimeZone::isDst(a0);

    extern bool sipVH_kdecore_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

    return sipVH_kdecore_11(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTimeZone::isDstAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return KTimeZone::isDstAtUtc(a0);

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

    return sipVH_kdecore_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offset(time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return KTimeZone::offset(a0);

    extern int sipVH_kdecore_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);

    return sipVH_kdecore_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offsetAtUtc(const QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return KTimeZone::offsetAtUtc(a0);

    extern int sipVH_kdecore_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

    return sipVH_kdecore_14(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offsetAtZoneTime(const QDateTime& a0,int*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return KTimeZone::offsetAtZoneTime(a0,a1);

    extern int sipVH_kdecore_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&,int*);

    return sipVH_kdecore_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_KTimeZone_type(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_name(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_countryCode(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_countryCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->countryCode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_countryCode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_latitude(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_latitude(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->latitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_latitude, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_longitude(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_longitude(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->longitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_longitude, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_comment(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_comment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_comment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_abbreviations(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_abbreviations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList<QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->abbreviations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_abbreviations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_abbreviation(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_abbreviation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->abbreviation(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_abbreviation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_utcOffsets(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_utcOffsets(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList<int>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->utcOffsets());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_utcOffsets, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_convert(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_convert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone* a0;
        const QDateTime* a1;
        int a1State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->convert(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_convert, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        bool a1;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_currentOffset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_currentOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::TimeSpec a0 = Qt::UTC;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_Qt_TimeSpec, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentOffset(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_currentOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QDateTime* a0;
        int a0State = 0;
        int a1;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offsetAtZoneTime(*a0,&a1) : sipCpp->offsetAtZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QDateTime* a0;
        int a0State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offsetAtUtc(*a0) : sipCpp->offsetAtUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        time_t a0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bl", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::offset(a0) : sipCpp->offset(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QDateTime* a0;
        int a0State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::isDstAtUtc(*a0) : sipCpp->isDstAtUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isDst(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        time_t a0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bl", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::isDst(a0) : sipCpp->isDst(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_phases(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_phases(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList<KTimeZone::Phase>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Phase>(sipCpp->phases());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_Phase,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_phases, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_hasTransitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_hasTransitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTimeZone::hasTransitions() : sipCpp->hasTransitions());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_hasTransitions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime& a0def = QDateTime();
        const QDateTime* a0 = &a0def;
        int a0State = 0;
        const QDateTime& a1def = QDateTime();
        const QDateTime* a1 = &a1def;
        int a1State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State, sipType_QDateTime, &a1, &a1State))
        {
            QList<KTimeZone::Transition>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::Transition>(sipCpp->transitions(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_Transition,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitionIndex(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitionIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        int a1;
        bool a2;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionIndex(*a0,&a1,&a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(iib)",sipRes,a1,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitionIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitionTimes(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitionTimes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone::Phase* a0;
        const QDateTime& a1def = QDateTime();
        const QDateTime* a1 = &a1def;
        int a1State = 0;
        const QDateTime& a2def = QDateTime();
        const QDateTime* a2 = &a2def;
        int a2State = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J1J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone_Phase, &a0, sipType_QDateTime, &a1, &a1State, sipType_QDateTime, &a2, &a2State))
        {
            QList<QDateTime>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDateTime>(sipCpp->transitionTimes(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a1),sipType_QDateTime,a1State);
            sipReleaseType(const_cast<QDateTime *>(a2),sipType_QDateTime,a2State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitionTimes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_leapSecondChanges(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_leapSecondChanges(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList<KTimeZone::LeapSeconds>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTimeZone::LeapSeconds>(sipCpp->leapSecondChanges());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_LeapSeconds,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_leapSecondChanges, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_source(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            KTimeZoneSource*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->source();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneSource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_source, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_parse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_data(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 0;
        const KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            const KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->data(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KTimeZoneData *>(sipRes),sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_updateBase(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_updateBase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone* a0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->updateBase(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_updateBase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_fromTime_t(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_fromTime_t(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        time_t a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "l", &a0))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(KTimeZone::fromTime_t(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_fromTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toTime_t(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toTime_t(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QDateTime, &a0, &a0State))
        {
            time_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTimeZone::toTime_t(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_utc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_utc(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KTimeZone::utc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_utc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_setData(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTimeZoneData* a0;
        KTimeZoneSource* a1 = 0;
        KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8|J8", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZoneData, &a0, sipType_KTimeZoneSource, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTimeZone___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone *sipCpp = reinterpret_cast<KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KTimeZone,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTimeZone___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTimeZone___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTimeZone *sipCpp = reinterpret_cast<KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTimeZone* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTimeZone::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KTimeZone,sipSelf,sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZone(void *, int);}
static void release_KTimeZone(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZone *>(sipCppV);
    else
        delete reinterpret_cast<KTimeZone *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTimeZone(sipSimpleWrapper *);}
static void dealloc_KTimeZone(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTimeZone(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZone(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZone *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTimeZone* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone[] = {
    {(void *)slot_KTimeZone___ne__, ne_slot},
    {(void *)slot_KTimeZone___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone[] = {
    {SIP_MLNAME_CAST(sipName_abbreviation), meth_KTimeZone_abbreviation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_abbreviations), meth_KTimeZone_abbreviations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KTimeZone_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_convert), meth_KTimeZone_convert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countryCode), meth_KTimeZone_countryCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentOffset), meth_KTimeZone_currentOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KTimeZone_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromTime_t), meth_KTimeZone_fromTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZone_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZone_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZone_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTimeZone_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_latitude), meth_KTimeZone_latitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSecondChanges), meth_KTimeZone_leapSecondChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_longitude), meth_KTimeZone_longitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KTimeZone_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZone_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZone_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZone_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZone_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_phases), meth_KTimeZone_phases, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KTimeZone_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_source), meth_KTimeZone_source, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime_t), meth_KTimeZone_toTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUtc), meth_KTimeZone_toUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toZoneTime), meth_KTimeZone_toZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionIndex), meth_KTimeZone_transitionIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTimes), meth_KTimeZone_transitionTimes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitions), meth_KTimeZone_transitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZone_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateBase), meth_KTimeZone_updateBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utc), meth_KTimeZone_utc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffsets), meth_KTimeZone_utcOffsets, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *, PyObject *)
{
    int sipVal;

    sipVal = KTimeZone::InvalidOffset;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *, PyObject *)
{
    time_t sipVal;

    sipVal = KTimeZone::InvalidTime_t;

    return PyLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *, PyObject *)
{
    float sipVal;

    sipVal = KTimeZone::UNKNOWN;

    return PyFloat_FromDouble((double)sipVal);
}

sipVariableDef variables_KTimeZone[] = {
    {ClassVariable, sipName_InvalidOffset, (PyMethodDef *)varget_KTimeZone_InvalidOffset, NULL, NULL, NULL},
    {ClassVariable, sipName_InvalidTime_t, (PyMethodDef *)varget_KTimeZone_InvalidTime_t, NULL, NULL, NULL},
    {ClassVariable, sipName_UNKNOWN, (PyMethodDef *)varget_KTimeZone_UNKNOWN, NULL, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZone,
        {0}
    },
    {
        sipNameNr_KTimeZone,
        {0, 0, 1},
        33, methods_KTimeZone,
        0, 0,
        3, variables_KTimeZone,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTimeZone,
    init_type_KTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone,
    0,
    0,
    0,
    release_KTimeZone,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 14414 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14418 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14421 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 14424 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14427 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14430 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14433 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14436 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14439 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 14442 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14445 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14457 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 14460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14466 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSystemTimeZones_timeZones(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_timeZones(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTimeZones*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSystemTimeZones::timeZones();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZones,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_timeZones, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_zones(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_zones(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTimeZones::ZoneMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZones::ZoneMap(KSystemTimeZones::zones());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QMap_0100QString_0100KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_zones, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_zone(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_zone(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KSystemTimeZones::zone(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_zone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_readZone(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_readZone(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KSystemTimeZones::readZone(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_readZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_local(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_local(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KSystemTimeZones::local());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_local, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_zoneinfoDir(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_zoneinfoDir(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KSystemTimeZones::zoneinfoDir());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_zoneinfoDir, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_realLocalZone(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_realLocalZone(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTimeZone(KSystemTimeZones::realLocalZone());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_realLocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_setLocalZone(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_setLocalZone(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTimeZone* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KSystemTimeZones::setLocalZone(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_setLocalZone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_isSimulated(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_isSimulated(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSystemTimeZones::isSimulated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_isSimulated, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZones_isTimeZoneDaemonAvailable(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZones_isTimeZoneDaemonAvailable(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSystemTimeZones::isTimeZoneDaemonAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZones, sipName_isTimeZoneDaemonAvailable, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSystemTimeZones(void *, int);}
static void release_KSystemTimeZones(void *sipCppV,int)
{
    KSystemTimeZones *sipCpp = reinterpret_cast<KSystemTimeZones *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSystemTimeZones(sipSimpleWrapper *);}
static void dealloc_KSystemTimeZones(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSystemTimeZones(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZones[] = {{141, 0, 1}};


static PyMethodDef methods_KSystemTimeZones[] = {
    {SIP_MLNAME_CAST(sipName_isSimulated), meth_KSystemTimeZones_isSimulated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTimeZoneDaemonAvailable), meth_KSystemTimeZones_isTimeZoneDaemonAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_local), meth_KSystemTimeZones_local, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readZone), meth_KSystemTimeZones_readZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realLocalZone), meth_KSystemTimeZones_realLocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalZone), meth_KSystemTimeZones_setLocalZone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeZones), meth_KSystemTimeZones_timeZones, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zone), meth_KSystemTimeZones_zone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zoneinfoDir), meth_KSystemTimeZones_zoneinfoDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_zones), meth_KSystemTimeZones_zones, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSystemTimeZones = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZones,
        {0}
    },
    {
        sipNameNr_KSystemTimeZones,
        {0, 0, 1},
        10, methods_KSystemTimeZones,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZones,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZones,
    0,
    0,
    0,
    release_KSystemTimeZones,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KSystemTimeZones::staticMetaObject,
    0,
    0
};
