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

#include "sipAPIkdecore.h"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 201 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 201 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 63 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        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;

    {
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        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;
        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;
        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;
        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;
        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;

    {
        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;
        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;

    {
        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;

    {
        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;
        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;
        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;
        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;
        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);
}


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

    if (targetType == sipType_KUrl)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QUrl)->ctd_cast((QUrl *)(KUrl *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* 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_KUrl(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{235, 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, KUrl::AddTrailingSlash, 222},
    {sipName_AllowEmptyPath, KUrl::AllowEmptyPath, 229},
    {sipName_AppendTrailingSlash, KUrl::AppendTrailingSlash, 225},
    {sipName_AvoidEmptyPath, KUrl::AvoidEmptyPath, 227},
    {sipName_CaseInsensitiveKeys, KUrl::CaseInsensitiveKeys, 234},
    {sipName_CompareWithoutFragment, KUrl::CompareWithoutFragment, 229},
    {sipName_CompareWithoutTrailingSlash, KUrl::CompareWithoutTrailingSlash, 229},
    {sipName_DefaultMimeDataFlags, KUrl::DefaultMimeDataFlags, 233},
    {sipName_IgnoreTrailingSlash, KUrl::IgnoreTrailingSlash, 225},
    {sipName_KeepDirSeparators, KUrl::KeepDirSeparators, 223},
    {sipName_LeaveTrailingSlash, KUrl::LeaveTrailingSlash, 222},
    {sipName_NoTextExport, KUrl::NoTextExport, 233},
    {sipName_ObeyTrailingSlash, KUrl::ObeyTrailingSlash, 225},
    {sipName_PermitEmptyPath, KUrl::PermitEmptyPath, 227},
    {sipName_RemoveTrailingSlash, KUrl::RemoveTrailingSlash, 222},
    {sipName_SimplifyDirSeparators, 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_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,
    cast_KUrl,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2197 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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,PyObject *,const KTimeZone&);

    return sipVH_kdecore_0(sipGILState,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;
        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;

    {
        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;
}


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

    if (targetType == sipType_KTzfileTimeZoneSource)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZoneSource)->ctd_cast((KTimeZoneSource *)(KTzfileTimeZoneSource *)ptr,targetType)) != NULL)
        return res;

    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_KTzfileTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KTzfileTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTzfileTimeZoneSource,
    0,
    0,
    0,
    release_KTzfileTimeZoneSource,
    cast_KTzfileTimeZoneSource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2451 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2454 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2457 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2460 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2463 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2466 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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:
    KTimeZoneBackend * clone() const;
    bool hasTransitions(const KTimeZone *) const;
    QByteArray type() const;
    int offsetAtZoneTime(const KTimeZone *,const QDateTime&,int *) const;
    int offsetAtUtc(const KTimeZone *,const QDateTime&) const;
    int offset(const KTimeZone *,time_t) const;
    bool isDstAtUtc(const KTimeZone *,const QDateTime&) const;
    bool isDst(const KTimeZone *,time_t) const;

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);
}

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

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

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

    extern KTimeZoneBackend * sipVH_kdecore_2(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_2(sipGILState,sipMeth);
}

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

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

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

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

    return sipVH_kdecore_1(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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[3]),sipPySelf,NULL,sipName_offsetAtZoneTime);

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

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

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

int sipKTzfileTimeZoneBackend::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,PyObject *,const KTimeZone *,const QDateTime&);

    return sipVH_kdecore_9(sipGILState,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[5]),sipPySelf,NULL,sipName_offset);

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

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

    return sipVH_kdecore_8(sipGILState,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[6]),sipPySelf,NULL,sipName_isDstAtUtc);

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

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

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

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

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

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

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

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


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));

    {
        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;
        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));

    {
        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;
}


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

    if (targetType == sipType_KTzfileTimeZoneBackend)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZoneBackend)->ctd_cast((KTimeZoneBackend *)(KTzfileTimeZoneBackend *)ptr,targetType)) != NULL)
        return res;

    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_KTzfileTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KTzfileTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTzfileTimeZoneBackend,
    0,
    0,
    0,
    release_KTzfileTimeZoneBackend,
    cast_KTzfileTimeZoneBackend,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2878 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2882 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2900 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2906 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2918 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2921 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2924 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2927 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2930 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    void sipProtect_setData(KTimeZoneData *,KTimeZoneSource *);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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);
}

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

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

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

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

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

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

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

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

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

    return sipVH_kdecore_14(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_13(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_12(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_11(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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


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

    {
        KTimeZoneData * a0;
        KTimeZoneSource * a1 = 0;
        sipKTzfileTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J8", &sipSelf, sipType_KTzfileTimeZone, &sipCpp, sipType_KTimeZoneData, &a0, sipType_KTimeZoneSource, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KTzfileTimeZone)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZone)->ctd_cast((KTimeZone *)(KTzfileTimeZone *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* 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_KTzfileTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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}};


static PyMethodDef methods_KTzfileTimeZone[] = {
    {SIP_MLNAME_CAST(sipName_setData), meth_KTzfileTimeZone_setData, METH_VARARGS, NULL}
};


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktoolinvocation.sip"
#include <ktoolinvocation.h>
#line 3264 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3268 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3271 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3274 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3277 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3280 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3283 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3286 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3289 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3292 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3295 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3298 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3301 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3304 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3307 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3310 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
}


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

    if (targetType == sipType_KToolInvocation)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KToolInvocation *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KToolInvocation[] = {
    {SIP_MLNAME_CAST(sipName_invokeBrowser), meth_KToolInvocation_invokeBrowser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeHelp), meth_KToolInvocation_invokeHelp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeMailer), meth_KToolInvocation_invokeMailer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invokeTerminal), meth_KToolInvocation_invokeTerminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kdeinitExec), meth_KToolInvocation_kdeinitExec, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kdeinitExecWait), meth_KToolInvocation_kdeinitExecWait, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KToolInvocation_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByDesktopName), meth_KToolInvocation_startServiceByDesktopName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByDesktopPath), meth_KToolInvocation_startServiceByDesktopPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startServiceByName), meth_KToolInvocation_startServiceByName, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KToolInvocation[] = {
    {"kapplication_hook(QStringList&,QByteArray&)", 0, 0},
    {0, 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,
    cast_KToolInvocation,
    0,
    0,
    0
},
    &KToolInvocation::staticMetaObject,
    0,
    pyqt4_signals_KToolInvocation
};

#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3965 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3972 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3978 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3981 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3987 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3990 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3993 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3999 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"


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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

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

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

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

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

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

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

    extern KTimeZoneData * sipVH_kdecore_5(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_5(sipGILState,sipMeth);
}

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

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

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState,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,PyObject *,const QDateTime&);

    return sipVH_kdecore_4(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_3(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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


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

    {
        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));

    {
        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;
        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));

    {
        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;

    {
        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;

    {
        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));

    {
        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;
        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;
        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;
        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;

    {
        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;
        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;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_Phase,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPhases(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KTimeZone::Phase> *>(a0),sipType_QList_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;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_Transition,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKTimeZoneData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZoneData, &sipCpp, sipType_QList_0100KTimeZone_LeapSeconds,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
}


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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneData(void *, int);}
static void release_KTimeZoneData(void *sipCppV,int 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_KTimeZoneData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KTimeZoneData,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4761 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4764 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_LeapSeconds(void *, 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_KTimeZone_LeapSeconds(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KTimeZone_LeapSeconds,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5118 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_Transition(void *, 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_KTimeZone_Transition(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KTimeZone_Transition,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5423 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5429 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZone_Phase(void *, 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_KTimeZone_Phase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KTimeZone_Phase,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5805 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5809 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 5815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        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;

    {
        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;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTimeZones *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *init_KTimeZones(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KTimeZones,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZones,
    0,
    0,
    0,
    release_KTimeZones,
    cast_KTimeZones,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktemporaryfile.sip"
#include <ktemporaryfile.h>
#line 6092 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6096 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6099 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 6102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qtemporaryfile.sip"
#include <qtemporaryfile.h>
#line 6105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 6108 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 6111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 6114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6150 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);
    bool sipProtectVirt_open(bool,QIODevice::OpenMode);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_kdecore_qt_metacast(sipPySelf,sipType_KTemporaryFile,_clname)) ? this : KTemporaryFile::qt_metacast(_clname);
}

QAbstractFileEngine * sipKTemporaryFile::fileEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTemporaryFile::fileEngine();

    typedef QAbstractFileEngine * (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

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

bool sipKTemporaryFile::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTemporaryFile::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

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

bool sipKTemporaryFile::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

void sipKTemporaryFile::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

qint64 sipKTemporaryFile::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

qint64 sipKTemporaryFile::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

bool sipKTemporaryFile::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

bool sipKTemporaryFile::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

qint64 sipKTemporaryFile::readData(char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_readData);

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

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

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

qint64 sipKTemporaryFile::readLineData(char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_readLineData);

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

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

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

qint64 sipKTemporaryFile::writeData(const char *a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_writeData);

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

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

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

bool sipKTemporaryFile::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_reset);

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

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

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

qint64 sipKTemporaryFile::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

qint64 sipKTemporaryFile::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

bool sipKTemporaryFile::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

bool sipKTemporaryFile::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForReadyRead);

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

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *,int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState,sipMeth,a0);
}

bool sipKTemporaryFile::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForBytesWritten);

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

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *,int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState,sipMeth,a0);
}

bool sipKTemporaryFile::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKTemporaryFile::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

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

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

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

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

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

bool sipKTemporaryFile::sipProtectVirt_open(bool sipSelfWasArg,QIODevice::OpenMode a0)
{
    return (sipSelfWasArg ? QTemporaryFile::open(a0) : open(a0));
}


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

    {
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTemporaryFile, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 6721 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 6763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTemporaryFile, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTemporaryFile, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTemporaryFile, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTemporaryFile, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 141 "/usr/local/share/py-sip/QtCore/qfile.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QFile::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 7024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKTemporaryFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 179 "/usr/local/share/py-sip/QtCore/qfile.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QFile::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 7090 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bk", &sipSelf, sipType_KTemporaryFile, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTemporaryFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->open();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_open(sipSelfWasArg,*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_KTemporaryFile, sipName_open, NULL);

    return NULL;
}


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;
}


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

    if (targetType == sipType_KTemporaryFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTemporaryFile)->ctd_cast((QTemporaryFile *)(KTemporaryFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTemporaryFile *>(sipCppV);
    else
        delete reinterpret_cast<KTemporaryFile *>(sipCppV);

    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_KTemporaryFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{206, 0, 1}};


static PyMethodDef methods_KTemporaryFile[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTemporaryFile_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTemporaryFile_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTemporaryFile_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTemporaryFile_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KTemporaryFile_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), meth_KTemporaryFile_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KTemporaryFile_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTemporaryFile_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KTemporaryFile_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KTemporaryFile_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KTemporaryFile_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrefix), meth_KTemporaryFile_setPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuffix), meth_KTemporaryFile_setSuffix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTemporaryFile_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KTemporaryFile_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KTemporaryFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTemporaryFile,
        {0}
    },
    {
        sipNameNr_KTemporaryFile,
        {0, 0, 1},
        15, methods_KTemporaryFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTemporaryFile,
    0,
    init_KTemporaryFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTemporaryFile,
    0,
    0,
    0,
    release_KTemporaryFile,
    cast_KTemporaryFile,
    0,
    0,
    0
},
    &KTemporaryFile::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktempdir.sip"
#include <ktempdir.h>
#include <fixx11h.h>
#line 7385 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"


class sipKTempDir : public KTempDir
{
public:
    sipKTempDir(const QString&,int);
    ~sipKTempDir();

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

public:
    sipSimpleWrapper *sipPySelf;

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

sipKTempDir::sipKTempDir(const QString& a0,int a1): KTempDir(a0,a1), sipPySelf(0)
{
}

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

bool sipKTempDir::sipProtect_create(const QString& a0,int a1)
{
    return KTempDir::create(a0,a1);
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        sipKTempDir *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KTempDir, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTempDir *>(sipCppV);
    else
        delete reinterpret_cast<KTempDir *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_KTempDir(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KTempDir(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTempDir *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 sipKTempDir(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            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_KTempDir,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTempDir,
    0,
    0,
    0,
    release_KTempDir,
    cast_KTempDir,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 261 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7779 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7783 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"


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

    return NULL;
}


/* 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_KSslErrorUiData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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;
        }
    }

    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_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,
    cast_KSslErrorUiData,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7938 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7942 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7960 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7990 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 8026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTcpSocket::SslVersions(*a0 ^ a1);
#line 8135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTcpSocket::SslVersions(*a0 | a1);
#line 8187 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
}


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

    return NULL;
}


/* 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_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 8482 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    cast_KTcpSocket_SslVersions,
    convertTo_KTcpSocket_SslVersions,
    0,
    0
},
    0,
    1,
    0
};

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8555 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 8559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8562 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 8565 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8568 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 8571 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 8574 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8577 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 8580 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8583 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 8586 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8592 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 8598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 8601 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8622 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8625 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 8631 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8634 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8637 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtect_readData(char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtect_writeData(const char *,PY_LONG_LONG);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_kdecore_qt_metacast(sipPySelf,sipType_KTcpSocket,_clname)) ? this : KTcpSocket::qt_metacast(_clname);
}

bool sipKTcpSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::atEnd();

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

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

qint64 sipKTcpSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

qint64 sipKTcpSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

bool sipKTcpSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::canReadLine();

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

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

void sipKTcpSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTcpSocket::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

bool sipKTcpSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTcpSocket::isSequential();

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

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

bool sipKTcpSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KTcpSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

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

bool sipKTcpSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KTcpSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *,int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState,sipMeth,a0);
}

bool sipKTcpSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KTcpSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *,int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState,sipMeth,a0);
}

qint64 sipKTcpSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QIODevice::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

qint64 sipKTcpSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QIODevice::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState,sipMeth);
}

bool sipKTcpSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return QIODevice::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

bool sipKTcpSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

qint64 sipKTcpSocket::readData(char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KTcpSocket,sipName_readData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_31)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

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

qint64 sipKTcpSocket::readLineData(char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QIODevice::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

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

qint64 sipKTcpSocket::writeData(const char *a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_KTcpSocket,sipName_writeData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

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

bool sipKTcpSocket::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKTcpSocket::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

qint64 sipKTcpSocket::sipProtect_readData(char *a0,qint64 a1)
{
    return readData(a0,a1);
}

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

qint64 sipKTcpSocket::sipProtect_writeData(const char *a0,PY_LONG_LONG a1)
{
    return writeData(a0,a1);
}

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

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


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

    {
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 9186 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 9228 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KTcpSocket, sipName_readData);
                return NULL;
            }

#line 174 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtect_readData(s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 9437 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 239 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QIODevice::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 9503 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bk", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KTcpSocket, sipName_writeData);
                return NULL;
            }

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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));

    {
        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));

    {
        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));

    {
        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));

    {
        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));

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* 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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
}


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

    if (targetType == sipType_KTcpSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(KTcpSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTcpSocket *>(sipCppV);
    else
        delete reinterpret_cast<KTcpSocket *>(sipCppV);

    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_KTcpSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{79, 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_childEvent), meth_KTcpSocket_childEvent, 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_connectNotify), meth_KTcpSocket_connectNotify, 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_customEvent), meth_KTcpSocket_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHost), meth_KTcpSocket_disconnectFromHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTcpSocket_disconnectNotify, 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_readData), meth_KTcpSocket_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KTcpSocket_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTcpSocket_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KTcpSocket_sender, 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_setErrorString), meth_KTcpSocket_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), meth_KTcpSocket_setLocalCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KTcpSocket_setOpenMode, 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_timerEvent), meth_KTcpSocket_timerEvent, 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},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KTcpSocket_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTcpSocket[] = {
    {sipName_AnySslVersion, KTcpSocket::AnySslVersion, 204},
    {sipName_AutoProxy, KTcpSocket::AutoProxy, 203},
    {sipName_BoundState, KTcpSocket::BoundState, 206},
    {sipName_ClosingState, KTcpSocket::ClosingState, 206},
    {sipName_ConnectedState, KTcpSocket::ConnectedState, 206},
    {sipName_ConnectingState, KTcpSocket::ConnectingState, 206},
    {sipName_ConnectionRefusedError, KTcpSocket::ConnectionRefusedError, 202},
    {sipName_HostLookupState, KTcpSocket::HostLookupState, 206},
    {sipName_HostNotFoundError, KTcpSocket::HostNotFoundError, 202},
    {sipName_ListeningState, KTcpSocket::ListeningState, 206},
    {sipName_ManualProxy, KTcpSocket::ManualProxy, 203},
    {sipName_NetworkError, KTcpSocket::NetworkError, 202},
    {sipName_RemoteHostClosedError, KTcpSocket::RemoteHostClosedError, 202},
    {sipName_SocketAccessError, KTcpSocket::SocketAccessError, 202},
    {sipName_SocketResourceError, KTcpSocket::SocketResourceError, 202},
    {sipName_SocketTimeoutError, KTcpSocket::SocketTimeoutError, 202},
    {sipName_SslClientMode, KTcpSocket::SslClientMode, 201},
    {sipName_SslServerMode, KTcpSocket::SslServerMode, 201},
    {sipName_SslV2, KTcpSocket::SslV2, 204},
    {sipName_SslV3, KTcpSocket::SslV3, 204},
    {sipName_SslV3_1, KTcpSocket::SslV3_1, 204},
    {sipName_TlsV1, KTcpSocket::TlsV1, 204},
    {sipName_UnconnectedState, KTcpSocket::UnconnectedState, 206},
    {sipName_UnencryptedMode, KTcpSocket::UnencryptedMode, 201},
    {sipName_UnknownError, KTcpSocket::UnknownError, 202},
    {sipName_UnknownSslVersion, KTcpSocket::UnknownSslVersion, 204},
    {sipName_UnsupportedSocketOperationError, KTcpSocket::UnsupportedSocketOperationError, 202},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTcpSocket[] = {
    {"encryptionModeChanged(KTcpSocket::EncryptionMode)", 0, 0},
    {"encrypted()", 0, 0},
    {"stateChanged(KTcpSocket::State)", 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator *)", 0, 0},
    {"hostFound()", 0, 0},
    {"disconnected()", 0, 0},
    {"connected()", 0, 0},
    {"sslErrors(QList<KSslError>)", 0, &methods_KTcpSocket[53]},
    {"error(KTcpSocket::Error)", 0, &methods_KTcpSocket[19]},
    {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},
        63, methods_KTcpSocket,
        27, enummembers_KTcpSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTcpSocket,
    0,
    init_KTcpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket,
    0,
    0,
    0,
    release_KTcpSocket,
    cast_KTcpSocket,
    0,
    0,
    0
},
    &KTcpSocket::staticMetaObject,
    0,
    pyqt4_signals_KTcpSocket
};

#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 11337 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 34 "/usr/local/share/py-sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 11341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 11344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;
}


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

    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_KSslError(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KSslError::CertificateSignatureFailed, 182},
    {sipName_ExpiredCertificate, KSslError::ExpiredCertificate, 182},
    {sipName_HostNameMismatch, KSslError::HostNameMismatch, 182},
    {sipName_InvalidCertificate, KSslError::InvalidCertificate, 182},
    {sipName_InvalidCertificateAuthorityCertificate, KSslError::InvalidCertificateAuthorityCertificate, 182},
    {sipName_InvalidCertificatePurpose, KSslError::InvalidCertificatePurpose, 182},
    {sipName_NoError, KSslError::NoError, 182},
    {sipName_NoPeerCertificate, KSslError::NoPeerCertificate, 182},
    {sipName_PathLengthExceeded, KSslError::PathLengthExceeded, 182},
    {sipName_RejectedCertificate, KSslError::RejectedCertificate, 182},
    {sipName_RevokedCertificate, KSslError::RevokedCertificate, 182},
    {sipName_SelfSignedCertificate, KSslError::SelfSignedCertificate, 182},
    {sipName_UnknownError, KSslError::UnknownError, 182},
    {sipName_UntrustedCertificate, 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_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,
    cast_KSslError,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 11611 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 34 "/usr/local/share/py-sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 11615 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11618 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11621 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
}


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

    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_KSslCipher(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KSslCipher,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 12030 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 34 "/usr/local/share/py-sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 12034 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
}


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

    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_KSslKey(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KSslKey::Dh, 185},
    {sipName_Dsa, KSslKey::Dsa, 185},
    {sipName_PrivateKey, KSslKey::PrivateKey, 186},
    {sipName_PublicKey, KSslKey::PublicKey, 186},
    {sipName_Rsa, 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_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,
    cast_KSslKey,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 92 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12316 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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,PyObject *,const KTimeZone&);

    return sipVH_kdecore_0(sipGILState,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;
        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;
}


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

    if (targetType == sipType_KSystemTimeZoneSource)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZoneSource)->ctd_cast((KTimeZoneSource *)(KSystemTimeZoneSource *)ptr,targetType)) != NULL)
        return res;

    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_KSystemTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KSystemTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneSource,
    0,
    0,
    0,
    release_KSystemTimeZoneSource,
    cast_KSystemTimeZoneSource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12581 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12585 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12588 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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,PyObject *,const KTimeZone&);

    return sipVH_kdecore_0(sipGILState,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;
        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;

    {
        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;
}


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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneSource(void *, int);}
static void release_KTimeZoneSource(void *sipCppV,int 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_KTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneSource,
    0,
    0,
    0,
    release_KTimeZoneSource,
    cast_KTimeZoneSource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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:
    KTimeZoneBackend * clone() const;
    int offsetAtZoneTime(const KTimeZone *,const QDateTime&,int *) const;
    int offsetAtUtc(const KTimeZone *,const QDateTime&) const;
    int offset(const KTimeZone *,time_t) const;
    bool isDstAtUtc(const KTimeZone *,const QDateTime&) const;
    bool isDst(const KTimeZone *,time_t) const;
    QByteArray type() const;
    bool hasTransitions(const KTimeZone *) 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);
}

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

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

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

    extern KTimeZoneBackend * sipVH_kdecore_2(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_2(sipGILState,sipMeth);
}

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[1]),sipPySelf,NULL,sipName_offsetAtZoneTime);

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

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

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

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

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

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

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

    return sipVH_kdecore_9(sipGILState,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[3]),sipPySelf,NULL,sipName_offset);

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

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

    return sipVH_kdecore_8(sipGILState,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[4]),sipPySelf,NULL,sipName_isDstAtUtc);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_kdecore_1(sipGILState,sipMeth,a0);
}


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));

    {
        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;
        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;
        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;
        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;
        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;
        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));

    {
        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;
}


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

    if (targetType == sipType_KSystemTimeZoneBackend)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZoneBackend)->ctd_cast((KTimeZoneBackend *)(KSystemTimeZoneBackend *)ptr,targetType)) != NULL)
        return res;

    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_KSystemTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KSystemTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneBackend,
    0,
    0,
    0,
    release_KSystemTimeZoneBackend,
    cast_KSystemTimeZoneBackend,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13399 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13403 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13406 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13409 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 13412 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13415 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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:
    KTimeZoneBackend * clone() const;
    QByteArray type() const;
    int offsetAtZoneTime(const KTimeZone *,const QDateTime&,int *) const;
    int offsetAtUtc(const KTimeZone *,const QDateTime&) const;
    int offset(const KTimeZone *,time_t) const;
    bool isDstAtUtc(const KTimeZone *,const QDateTime&) const;
    bool isDst(const KTimeZone *,time_t) const;
    bool hasTransitions(const KTimeZone *) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

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

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

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

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

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

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

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

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

    extern KTimeZoneBackend * sipVH_kdecore_2(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_2(sipGILState,sipMeth);
}

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

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

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

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

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

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[2]),sipPySelf,NULL,sipName_offsetAtZoneTime);

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

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

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

int sipKTimeZoneBackend::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 KTimeZoneBackend::offsetAtUtc(a0,a1);

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

    return sipVH_kdecore_9(sipGILState,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[4]),sipPySelf,NULL,sipName_offset);

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

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

    return sipVH_kdecore_8(sipGILState,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[5]),sipPySelf,NULL,sipName_isDstAtUtc);

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_kdecore_1(sipGILState,sipMeth,a0);
}


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));

    {
        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));

    {
        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;
        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;
        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;
        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;
        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;
        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;
        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;
}


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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneBackend(void *, int);}
static void release_KTimeZoneBackend(void *sipCppV,int 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_KTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KTimeZoneBackend,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 14045 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 14049 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14052 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14058 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14061 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14064 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14067 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14070 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14073 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14076 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14079 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14082 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14085 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14088 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14091 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14094 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14097 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    void sipProtect_setData(KTimeZoneData *,KTimeZoneSource *);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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);
}

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

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

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

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

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

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

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

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

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

    return sipVH_kdecore_14(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_13(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_12(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_11(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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


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

    {
        KTimeZoneData * a0;
        KTimeZoneSource * a1 = 0;
        sipKSystemTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J8", &sipSelf, sipType_KSystemTimeZone, &sipCpp, sipType_KTimeZoneData, &a0, sipType_KTimeZoneSource, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KSystemTimeZone)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTimeZone)->ctd_cast((KTimeZone *)(KSystemTimeZone *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* 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_KSystemTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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}};


static PyMethodDef methods_KSystemTimeZone[] = {
    {SIP_MLNAME_CAST(sipName_setData), meth_KSystemTimeZone_setData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSystemTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZone,
        {0}
    },
    {
        sipNameNr_KSystemTimeZone,
        {0, 0, 1},
        1, methods_KSystemTimeZone,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZone,
    0,
    init_KSystemTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZone,
    0,
    0,
    0,
    release_KSystemTimeZone,
    cast_KSystemTimeZone,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14435 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14465 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14471 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14474 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14477 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14480 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"


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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_kdecore_14(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_13(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_12(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_kdecore_11(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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


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

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;

    {
        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));

    {
        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;
        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;
        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;
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        sipKTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J8", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZoneData, &a0, sipType_KTimeZoneSource, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(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);
}


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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZone(void *, int);}
static void release_KTimeZone(void *sipCppV,int 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_KTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 *);}
static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *)
{
    int sipVal;
    sipVal = KTimeZone::InvalidOffset;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *)
{
    time_t sipVal;
    sipVal = KTimeZone::InvalidTime_t;

    return PyLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *);}
static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *)
{
    float sipVal;
    sipVal = KTimeZone::UNKNOWN;

    return PyFloat_FromDouble((double)sipVal);
}

sipVariableDef variables_KTimeZone[] = {
    {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_KTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone,
    0,
    0,
    0,
    release_KTimeZone,
    cast_KTimeZone,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 15881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 15885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 15891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 15897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15900 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15906 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 15909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 15918 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15921 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15924 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 15927 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 15930 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 15933 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
}


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

    if (targetType == sipType_KSystemTimeZones)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KSystemTimeZones *>(sipCppV);

    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[] = {{134, 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,
    cast_KSystemTimeZones,
    0,
    0,
    0
},
    &KSystemTimeZones::staticMetaObject,
    0,
    0
};
