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

#include "sipAPIkdecore.h"

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

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


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasUser();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPass();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasHost();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPath();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasRef();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasHTMLRef();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocalFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasSubUrl();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

    {
        const  ::KUrl* a0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KUrl::List* a0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QByteArray* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KUrl( ::KUrl::fromMimeDataByteArray(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KUrl* a0;
        const  ::KUrl* a1;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString( ::KUrl::relativePath(*a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KUrl* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KUrl* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KUrl(void *, const sipTypeDef *);}
static void *cast_KUrl(void *sipCppV, const sipTypeDef *targetType)
{
     ::KUrl *sipCpp = reinterpret_cast< ::KUrl *>(sipCppV);

    if (targetType == sipType_QUrl)
        return static_cast< ::QUrl *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_KUrl(sipGetAddress(sipSelf), 0);
    }
}


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

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

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const char* a0;

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

            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[] = {{35, 0, 1}};


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


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

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


static pyqt4ClassPluginDef plugin_KUrl = {
    0,
    0,
    0
};


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

#line 65 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2198 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2202 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2205 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2208 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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()
{
    sipInstanceDestroyed(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_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone&);

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


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

    {
        const  ::KTimeZone* a0;
        const  ::KTzfileTimeZoneSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTzfileTimeZoneSource *sipCpp;

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

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

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

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTzfileTimeZoneSource(void *, const sipTypeDef *);}
static void *cast_KTzfileTimeZoneSource(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTzfileTimeZoneSource *sipCpp = reinterpret_cast< ::KTzfileTimeZoneSource *>(sipCppV);

    if (targetType == sipType_KTimeZoneSource)
        return static_cast< ::KTimeZoneSource *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTzfileTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTzfileTimeZoneSource(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


static pyqt4ClassPluginDef plugin_KTzfileTimeZoneSource = {
    0,
    0,
    0
};


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

#line 47 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2451 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2455 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2464 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2467 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2470 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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;
     ::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:
    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()
{
    sipInstanceDestroyed(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_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::QByteArray sipVH_kdecore_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_88(sipGILState, 0, sipPySelf, 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[2]),sipPySelf,NULL,sipName_offsetAtZoneTime);

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

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

    return sipVH_kdecore_89(sipGILState, 0, sipPySelf, 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[3]),sipPySelf,NULL,sipName_offsetAtUtc);

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

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

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

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

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

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

    extern int sipVH_kdecore_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

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

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

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

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

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

    return sipVH_kdecore_92(sipGILState, 0, sipPySelf, 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[6]),sipPySelf,NULL,sipName_isDst);

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

    extern bool sipVH_kdecore_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

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

bool sipKTzfileTimeZoneBackend::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  ::KTzfileTimeZoneBackend::hasTransitions(a0);

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

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


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

    {
        const  ::KTzfileTimeZoneBackend *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZone* a0;
        const  ::KTzfileTimeZoneBackend *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTzfileTimeZoneBackend *sipCpp;

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

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

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

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTzfileTimeZoneBackend(void *, const sipTypeDef *);}
static void *cast_KTzfileTimeZoneBackend(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTzfileTimeZoneBackend *sipCpp = reinterpret_cast< ::KTzfileTimeZoneBackend *>(sipCppV);

    if (targetType == sipType_KTimeZoneBackend)
        return static_cast< ::KTimeZoneBackend *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTzfileTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTzfileTimeZoneBackend(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTzfileTimeZoneBackend* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


static pyqt4ClassPluginDef plugin_KTzfileTimeZoneBackend = {
    0,
    0,
    0
};


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

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2885 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 65 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktzfiletimezone.sip"
#include <ktzfiletimezone.h>
#line 2889 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2892 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2895 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2898 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2901 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2904 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2907 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2910 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2913 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2916 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2919 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 2922 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2925 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2928 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2931 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2934 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2937 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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()
{
    sipInstanceDestroyed(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  ::KTzfileTimeZone::offsetAtZoneTime(a0,a1);

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

    return sipVH_kdecore_82(sipGILState, 0, sipPySelf, 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  ::KTzfileTimeZone::offsetAtUtc(a0);

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

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

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

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

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

    extern int sipVH_kdecore_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

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

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

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

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

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

    return sipVH_kdecore_85(sipGILState, 0, sipPySelf, 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  ::KTzfileTimeZone::isDst(a0);

    extern bool sipVH_kdecore_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

    return sipVH_kdecore_86(sipGILState, 0, sipPySelf, 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  ::KTzfileTimeZone::hasTransitions();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTzfileTimeZone(void *, const sipTypeDef *);}
static void *cast_KTzfileTimeZone(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTzfileTimeZone *sipCpp = reinterpret_cast< ::KTzfileTimeZone *>(sipCppV);

    if (targetType == sipType_KTimeZone)
        return static_cast< ::KTimeZone *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTzfileTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTzfileTimeZone(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTzfileTimeZone* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static pyqt4ClassPluginDef plugin_KTzfileTimeZone = {
    0,
    0,
    0
};


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

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktoolinvocation.sip"
#include <ktoolinvocation.h>
#line 3230 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3234 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3237 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3240 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3243 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3249 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3255 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3258 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3261 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3264 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3267 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3270 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3273 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3276 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 inheritance hierarchy. */
extern "C" {static void *cast_KToolInvocation(void *, const sipTypeDef *);}
static void *cast_KToolInvocation(void *sipCppV, const sipTypeDef *targetType)
{
     ::KToolInvocation *sipCpp = reinterpret_cast< ::KToolInvocation *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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


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


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


/* Define this type's signals. */
static const pyqt4QtSignal signals_KToolInvocation[] = {
    {"kapplication_hook(QStringList&,QByteArray&)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KToolInvocation = {
    & ::KToolInvocation::staticMetaObject,
    0,
    signals_KToolInvocation
};


sipClassTypeDef sipTypeDef_kdecore_KToolInvocation = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KToolInvocation,
        {0},
        &plugin_KToolInvocation
    },
    {
        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,
    0,
    0,
    0
};

#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3939 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3943 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3946 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3949 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3952 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3955 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3958 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3961 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3964 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3967 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3970 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3973 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

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

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

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

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

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

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

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern QList< ::QByteArray> sipVH_kdecore_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::KTimeZoneData* sipVH_kdecore_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->previousUtcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZoneData *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTimeZoneData(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTimeZoneData* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static pyqt4ClassPluginDef plugin_KTimeZoneData = {
    0,
    0,
    0
};


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

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4721 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4725 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4728 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const  ::KTimeZone::LeapSeconds *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZone::LeapSeconds *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZone::LeapSeconds *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->leapSeconds();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZone::LeapSeconds *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::LeapSeconds* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::LeapSeconds* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    {
        const  ::KTimeZone::LeapSeconds* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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


static pyqt4ClassPluginDef plugin_KTimeZone_LeapSeconds = {
    0,
    0,
    0
};


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

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5077 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5081 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5084 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const  ::KTimeZone::Transition *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZone::Transition *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::Transition* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::Transition* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    {
        const  ::KTimeZone::Transition* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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


static pyqt4ClassPluginDef plugin_KTimeZone_Transition = {
    0,
    0,
    0
};


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

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5373 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5377 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5380 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5383 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        const  ::KTimeZone::Phase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->utcOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZone::Phase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZone::Phase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDst();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZone::Phase *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::Phase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::Phase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    {
        const  ::KTimeZone::Phase* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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


static pyqt4ClassPluginDef plugin_KTimeZone_Phase = {
    0,
    0,
    0
};


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

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5754 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5758 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5761 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 5764 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 68 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5767 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

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

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZones *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KTimeZone* a0;
         ::KTimeZones *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTimeZone* a0;
         ::KTimeZones *sipCpp;

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
         ::KTimeZones *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast< ::KTimeZones *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static pyqt4ClassPluginDef plugin_KTimeZones = {
    0,
    0,
    0
};


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

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktemporaryfile.sip"
#include <ktemporaryfile.h>
#line 6036 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6040 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6043 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 6046 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qtemporaryfile.sip"
#include <qtemporaryfile.h>
#line 6049 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 75 "/usr/share/sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 6052 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 6055 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 75 "/usr/share/sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 6058 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6061 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6064 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6067 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6070 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6073 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6076 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6079 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6082 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6085 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6088 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6091 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6094 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

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

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

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

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

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

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

    return _id;
}

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

 ::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  ::KTemporaryFile::fileEngine();

    extern  ::QAbstractFileEngine* sipVH_kdecore_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

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

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

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

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

    extern void sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

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

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

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

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

    extern void sipVH_kdecore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern void sipVH_kdecore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

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

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

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

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

    extern void sipVH_kdecore_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

    extern bool sipVH_kdecore_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern bool sipVH_kdecore_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kdecore_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern void sipVH_kdecore_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kdecore_9(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

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

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

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

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

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

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_kdecore_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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


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 inheritance hierarchy. */
extern "C" {static void *cast_KTemporaryFile(void *, const sipTypeDef *);}
static void *cast_KTemporaryFile(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTemporaryFile *sipCpp = reinterpret_cast< ::KTemporaryFile *>(sipCppV);

    if (targetType == sipType_QTemporaryFile)
        return static_cast< ::QTemporaryFile *>(sipCpp);

    if (targetType == sipType_QFile)
        return static_cast< ::QFile *>(sipCpp);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTemporaryFile(sipSimpleWrapper *);}
static void dealloc_KTemporaryFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTemporaryFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTemporaryFile(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
        const  ::KComponentData& a0def = KGlobal::mainComponent();
        const  ::KComponentData* a0 = &a0def;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTemporaryFile[] = {
    {SIP_MLNAME_CAST(sipName_setPrefix), meth_KTemporaryFile_setPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuffix), meth_KTemporaryFile_setSuffix, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTemporaryFile = {
    & ::KTemporaryFile::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTemporaryFile = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTemporaryFile,
        {0},
        &plugin_KTemporaryFile
    },
    {
        sipNameNr_KTemporaryFile,
        {0, 0, 1},
        2, methods_KTemporaryFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTemporaryFile,
    0,
    init_type_KTemporaryFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTemporaryFile,
    0,
    0,
    0,
    release_KTemporaryFile,
    cast_KTemporaryFile,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktempdir.sip"
#include <ktempdir.h>
#include <fixx11h.h>
#line 6760 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6764 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    {
        bool a0;
         ::KTempDir *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoRemove();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTempDir *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
         ::KTempDir *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTempDir *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;
        int a1;
         ::KTempDir *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast< ::KTempDir *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTempDir(sipSimpleWrapper *);}
static void dealloc_KTempDir(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTempDir(sipGetAddress(sipSelf), 0);
    }
}


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

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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTempDir[] = {
    {SIP_MLNAME_CAST(sipName_autoRemove), meth_KTempDir_autoRemove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KTempDir_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_KTempDir_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KTempDir_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeDir), meth_KTempDir_removeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoRemove), meth_KTempDir_setAutoRemove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_KTempDir_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unlink), meth_KTempDir_unlink, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTempDir = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTempDir = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTempDir,
        {0},
        &plugin_KTempDir
    },
    {
        sipNameNr_KTempDir,
        {0, 0, 1},
        8, methods_KTempDir,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTempDir,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTempDir,
    0,
    0,
    0,
    release_KTempDir,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 265 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7110 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 7113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


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

    delete reinterpret_cast< ::KSslErrorUiData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KSslErrorUiData(SIP_SSIZE_T);}
static void *array_KSslErrorUiData(SIP_SSIZE_T sipNrElem)
{
    return new  ::KSslErrorUiData[sipNrElem];
}


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


extern "C" {static void dealloc_KSslErrorUiData(sipSimpleWrapper *);}
static void dealloc_KSslErrorUiData(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSslErrorUiData(sipGetAddress(sipSelf), 0);
    }
}


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

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

            return sipCpp;
        }
    }

    {
        const  ::KTcpSocket* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KTcpSocket, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslErrorUiData(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KSslErrorUiData* a0;

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

            return sipCpp;
        }
    }

    {
        const  ::QSslSocket* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QSslSocket, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslErrorUiData(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static pyqt4ClassPluginDef plugin_KSslErrorUiData = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSslErrorUiData = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslErrorUiData,
        {0},
        &plugin_KSslErrorUiData
    },
    {
        sipNameNr_KSslErrorUiData,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslErrorUiData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslErrorUiData,
    assign_KSslErrorUiData,
    array_KSslErrorUiData,
    copy_KSslErrorUiData,
    release_KSslErrorUiData,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 120 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7276 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 120 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7280 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 381 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 7302 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 372 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() != a0->operator KTcpSocket::SslVersions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 7336 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 363 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTcpSocket::SslVersions::Int() == a0->operator KTcpSocket::SslVersions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 7376 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTcpSocket::SslVersions(*sipCpp ^ a0);
#line 7415 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTcpSocket::SslVersions(*sipCpp | a0);
#line 7489 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_KTcpSocket_SslVersions___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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


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


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_KTcpSocket_SslVersions(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTcpSocket::SslVersions *sipCpp = 0;

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

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

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

    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 390 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTcpSocket::SslVersions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)) ||
            sipCanConvertToType(sipPy, sipType_KTcpSocket_SslVersions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)))
{
    *sipCppPtr = new KTcpSocket::SslVersions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTcpSocket::SslVersions *>(sipConvertToType(sipPy, sipType_KTcpSocket_SslVersions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7777 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___ixor__, ixor_slot},
    {(void *)slot_KTcpSocket_SslVersions___xor__, xor_slot},
    {(void *)slot_KTcpSocket_SslVersions___ior__, ior_slot},
    {(void *)slot_KTcpSocket_SslVersions___or__, or_slot},
    {(void *)slot_KTcpSocket_SslVersions___iand__, iand_slot},
    {(void *)slot_KTcpSocket_SslVersions___and__, and_slot},
    {(void *)slot_KTcpSocket_SslVersions___invert__, invert_slot},
    {(void *)slot_KTcpSocket_SslVersions___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KTcpSocket_SslVersions = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTcpSocket_SslVersions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket__SslVersions,
        {0},
        &plugin_KTcpSocket_SslVersions
    },
    {
        sipNameNr_SslVersions,
        {200, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTcpSocket_SslVersions,
    init_type_KTcpSocket_SslVersions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket_SslVersions,
    assign_KTcpSocket_SslVersions,
    array_KTcpSocket_SslVersions,
    copy_KTcpSocket_SslVersions,
    release_KTcpSocket_SslVersions,
    0,
    convertTo_KTcpSocket_SslVersions,
    0,
    0,
    0,
    0,
    0
};

#line 120 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7856 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7860 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7863 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 7866 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7869 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 7872 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 7875 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7878 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtNetwork/qssl.sip"
#include <qssl.h>
#line 7881 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7884 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 7887 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7890 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 59 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7893 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7896 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 7899 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 7902 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7905 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 83 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7908 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7911 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7914 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7917 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7920 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7923 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7926 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7929 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7932 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7935 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7938 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


class sipKTcpSocket : public  ::KTcpSocket
{
public:
    sipKTcpSocket( ::QObject*);
    virtual ~sipKTcpSocket();

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

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

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

const QMetaObject *sipKTcpSocket::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KTcpSocket);
}

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

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

    return _id;
}

void *sipKTcpSocket::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KTcpSocket, _clname)) ? this :  ::KTcpSocket::qt_metacast(_clname);
}

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

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

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

    extern void sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

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

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

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

    if (!sipMeth)
    {
         ::KTcpSocket::connectNotify(a0);
        return;
    }

    extern void sipVH_kdecore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kdecore_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTcpSocket::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTcpSocket::customEvent(a0);
        return;
    }

    extern void sipVH_kdecore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kdecore_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTcpSocket::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTcpSocket::childEvent(a0);
        return;
    }

    extern void sipVH_kdecore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kdecore_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTcpSocket::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTcpSocket::timerEvent(a0);
        return;
    }

    extern void sipVH_kdecore_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kdecore_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTcpSocket::eventFilter(a0,a1);

    extern bool sipVH_kdecore_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_kdecore_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTcpSocket::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTcpSocket::event(a0);

    extern bool sipVH_kdecore_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_kdecore_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return  ::KTcpSocket::isSequential();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::open( ::QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return  ::KTcpSocket::open(a0);

    extern bool sipVH_kdecore_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

    return sipVH_kdecore_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTcpSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
         ::KTcpSocket::close();
        return;
    }

    extern void sipVH_kdecore_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kdecore_9(sipGILState, 0, sipPySelf, sipMeth);
}

 ::qint64 sipKTcpSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return  ::KTcpSocket::pos();

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth);
}

 ::qint64 sipKTcpSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return  ::KTcpSocket::size();

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::seek( ::qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return  ::KTcpSocket::seek(a0);

    extern bool sipVH_kdecore_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

    return sipVH_kdecore_11(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return  ::KTcpSocket::atEnd();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return  ::KTcpSocket::reset();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}

 ::qint64 sipKTcpSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return  ::KTcpSocket::bytesAvailable();

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth);
}

 ::qint64 sipKTcpSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return  ::KTcpSocket::bytesToWrite();

    extern  ::qint64 sipVH_kdecore_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return  ::KTcpSocket::canReadLine();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTcpSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return  ::KTcpSocket::waitForReadyRead(a0);

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kdecore_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTcpSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return  ::KTcpSocket::waitForBytesWritten(a0);

    extern bool sipVH_kdecore_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kdecore_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::qint64 sipKTcpSocket::readData(char*a0, ::qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,sipName_KTcpSocket,sipName_readData);

    if (!sipMeth)
        return 0;

    extern  ::qint64 sipVH_kdecore_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

    return sipVH_kdecore_13(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::qint64 sipKTcpSocket::readLineData(char*a0, ::qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return  ::KTcpSocket::readLineData(a0,a1);

    extern  ::qint64 sipVH_kdecore_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

    return sipVH_kdecore_14(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::qint64 sipKTcpSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,sipName_KTcpSocket,sipName_writeData);

    if (!sipMeth)
        return 0;

    extern  ::qint64 sipVH_kdecore_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return sipVH_kdecore_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_KTcpSocket_atEnd(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_atEnd, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_bytesAvailable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_bytesToWrite, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_canReadLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_canReadLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_close(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_isSequential, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_open(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTcpSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_waitForReadyRead, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_abort(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_abort, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_connectToHost(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_connectToHost(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::quint16 a1;
         ::KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_KTcpSocket_ProxyPolicy, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QHostAddress* a0;
        int a0State = 0;
         ::quint16 a1;
         ::KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1, sipType_KTcpSocket_ProxyPolicy, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::KUrl* a0;
         ::KTcpSocket::ProxyPolicy a1 = KTcpSocket::AutoProxy;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KUrl, &a0, sipType_KTcpSocket_ProxyPolicy, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_connectToHost, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_disconnectFromHost(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_disconnectFromHost(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromHost();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_disconnectFromHost, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_error(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KTcpSocket::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_error, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_sslErrors(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_sslErrors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList< ::KSslError>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KSslError>(sipCpp->sslErrors());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KSslError,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_sslErrors, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_flush(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_flush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_flush, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_localAddress(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_localAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QHostAddress(sipCpp->localAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_localAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerAddress(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QHostAddress(sipCpp->peerAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_peerAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->peerName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_peerName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerPort(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_peerPort, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_proxy(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_proxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_proxy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_readBufferSize(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_readBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_readBufferSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setProxy(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QNetworkProxy* a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setProxy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setReadBufferSize(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setReadBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::qint64 a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setReadBufferSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_state(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KTcpSocket::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_state, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForConnected(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForConnected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForConnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_waitForConnected, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForDisconnected(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForDisconnected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForDisconnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_waitForDisconnected, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_addCaCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_addCaCertificate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QSslCertificate* a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_addCaCertificate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_addCaCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_addCaCertificates(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList< ::QSslCertificate>* a0;
        int a0State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList< ::QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_addCaCertificates, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_caCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_caCertificates(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList< ::QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::QSslCertificate>(sipCpp->caCertificates());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QSslCertificate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_caCertificates, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_ciphers(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_ciphers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList< ::KSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KSslCipher>(sipCpp->ciphers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KSslCipher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_ciphers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_connectToHostEncrypted(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_connectToHostEncrypted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::quint16 a1;
         ::QIODevice::OpenMode a2def = QIODevice::ReadWrite;
         ::QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t|J1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHostEncrypted(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_connectToHostEncrypted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_localCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_localCertificate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QSslCertificate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QSslCertificate(sipCpp->localCertificate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QSslCertificate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_localCertificate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerCertificateChain(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerCertificateChain(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            QList< ::QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::QSslCertificate>(sipCpp->peerCertificateChain());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QSslCertificate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_peerCertificateChain, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_privateKey(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_privateKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KSslKey*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KSslKey(sipCpp->privateKey());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KSslKey,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_privateKey, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_sessionCipher(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_sessionCipher(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KSslCipher*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KSslCipher(sipCpp->sessionCipher());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KSslCipher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_sessionCipher, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setCaCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setCaCertificates(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList< ::QSslCertificate>* a0;
        int a0State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList< ::QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setCaCertificates, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setCiphers(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setCiphers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList< ::KSslCipher>* a0;
        int a0State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QList_0100KSslCipher,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList< ::KSslCipher> *>(a0),sipType_QList_0100KSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setCiphers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setLocalCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setLocalCertificate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QSslCertificate* a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QSsl::EncodingFormat a1 = QSsl::Pem;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setLocalCertificate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setPrivateKey(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setPrivateKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslKey* a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KSslKey::Algorithm a1 = KSslKey::Rsa;
         ::QSsl::EncodingFormat a2 = QSsl::Pem;
        const  ::QByteArray& a3def = QByteArray();
        const  ::QByteArray* a3 = &a3def;
        int a3State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|EEJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_KSslKey_Algorithm, &a1, sipType_QSsl_EncodingFormat, &a2, sipType_QByteArray, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast< ::QByteArray *>(a3),sipType_QByteArray,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setPrivateKey, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setAdvertisedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setAdvertisedSslVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket::SslVersion a0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_KTcpSocket_SslVersion, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAdvertisedSslVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setAdvertisedSslVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_advertisedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_advertisedSslVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->advertisedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_advertisedSslVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negotiatedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_negotiatedSslVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->negotiatedSslVersionName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_negotiatedSslVersionName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KTcpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForEncrypted(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_waitForEncrypted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_encryptionMode(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_encryptionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
             ::KTcpSocket::EncryptionMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encryptionMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_EncryptionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_encryptionMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_ignoreSslErrors, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->startClientEncryption();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_startClientEncryption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_socketOption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_socketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::QAbstractSocket::SocketOption a0;
        const  ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0))
        {
             ::QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QVariant(sipCpp->socketOption(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_socketOption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setSocketOption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setSocketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::QAbstractSocket::SocketOption a0;
        const  ::QVariant* a1;
        int a1State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSocketOption(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setSocketOption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setVerificationPeerName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setVerificationPeerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTcpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTcpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVerificationPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTcpSocket, sipName_setVerificationPeerName, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTcpSocket(void *, const sipTypeDef *);}
static void *cast_KTcpSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTcpSocket *sipCpp = reinterpret_cast< ::KTcpSocket *>(sipCppV);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTcpSocket(void *, int);}
static void release_KTcpSocket(void *sipCppV, int)
{
     ::KTcpSocket *sipCpp = reinterpret_cast< ::KTcpSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTcpSocket(sipSimpleWrapper *);}
static void dealloc_KTcpSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTcpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTcpSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTcpSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTcpSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTcpSocket *sipCpp = 0;

    {
         ::QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTcpSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTcpSocket[] = {{11, 0, 1}};


static PyMethodDef methods_KTcpSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_KTcpSocket_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificate), meth_KTcpSocket_addCaCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificates), meth_KTcpSocket_addCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_advertisedSslVersion), meth_KTcpSocket_advertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_KTcpSocket_atEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_KTcpSocket_bytesAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_KTcpSocket_bytesToWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caCertificates), meth_KTcpSocket_caCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_KTcpSocket_canReadLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ciphers), meth_KTcpSocket_ciphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KTcpSocket_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHost), meth_KTcpSocket_connectToHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostEncrypted), meth_KTcpSocket_connectToHostEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHost), meth_KTcpSocket_disconnectFromHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMode), meth_KTcpSocket_encryptionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KTcpSocket_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flush), meth_KTcpSocket_flush, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_KTcpSocket_ignoreSslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_KTcpSocket_isSequential, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTcpSocket_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localAddress), meth_KTcpSocket_localAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localCertificate), meth_KTcpSocket_localCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersion), meth_KTcpSocket_negotiatedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersionName), meth_KTcpSocket_negotiatedSslVersionName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KTcpSocket_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerAddress), meth_KTcpSocket_peerAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerCertificateChain), meth_KTcpSocket_peerCertificateChain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerName), meth_KTcpSocket_peerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerPort), meth_KTcpSocket_peerPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_privateKey), meth_KTcpSocket_privateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxy), meth_KTcpSocket_proxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_KTcpSocket_readBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionCipher), meth_KTcpSocket_sessionCipher, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAdvertisedSslVersion), meth_KTcpSocket_setAdvertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCaCertificates), meth_KTcpSocket_setCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCiphers), meth_KTcpSocket_setCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), meth_KTcpSocket_setLocalCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrivateKey), meth_KTcpSocket_setPrivateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_KTcpSocket_setProxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_KTcpSocket_setReadBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketOption), meth_KTcpSocket_setSocketOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVerificationPeerName), meth_KTcpSocket_setVerificationPeerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_socketOption), meth_KTcpSocket_socketOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sslErrors), meth_KTcpSocket_sslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startClientEncryption), meth_KTcpSocket_startClientEncryption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_KTcpSocket_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), meth_KTcpSocket_waitForBytesWritten, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForConnected), meth_KTcpSocket_waitForConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), meth_KTcpSocket_waitForDisconnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForEncrypted), meth_KTcpSocket_waitForEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), meth_KTcpSocket_waitForReadyRead, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTcpSocket[] = {
    {sipName_AnySslVersion, static_cast<int>( ::KTcpSocket::AnySslVersion), 204},
    {sipName_AutoProxy, static_cast<int>( ::KTcpSocket::AutoProxy), 203},
    {sipName_BoundState, static_cast<int>( ::KTcpSocket::BoundState), 206},
    {sipName_ClosingState, static_cast<int>( ::KTcpSocket::ClosingState), 206},
    {sipName_ConnectedState, static_cast<int>( ::KTcpSocket::ConnectedState), 206},
    {sipName_ConnectingState, static_cast<int>( ::KTcpSocket::ConnectingState), 206},
    {sipName_ConnectionRefusedError, static_cast<int>( ::KTcpSocket::ConnectionRefusedError), 202},
    {sipName_HostLookupState, static_cast<int>( ::KTcpSocket::HostLookupState), 206},
    {sipName_HostNotFoundError, static_cast<int>( ::KTcpSocket::HostNotFoundError), 202},
    {sipName_ListeningState, static_cast<int>( ::KTcpSocket::ListeningState), 206},
    {sipName_ManualProxy, static_cast<int>( ::KTcpSocket::ManualProxy), 203},
    {sipName_NetworkError, static_cast<int>( ::KTcpSocket::NetworkError), 202},
    {sipName_RemoteHostClosedError, static_cast<int>( ::KTcpSocket::RemoteHostClosedError), 202},
    {sipName_SecureProtocols, static_cast<int>( ::KTcpSocket::SecureProtocols), 204},
    {sipName_SocketAccessError, static_cast<int>( ::KTcpSocket::SocketAccessError), 202},
    {sipName_SocketResourceError, static_cast<int>( ::KTcpSocket::SocketResourceError), 202},
    {sipName_SocketTimeoutError, static_cast<int>( ::KTcpSocket::SocketTimeoutError), 202},
    {sipName_SslClientMode, static_cast<int>( ::KTcpSocket::SslClientMode), 201},
    {sipName_SslServerMode, static_cast<int>( ::KTcpSocket::SslServerMode), 201},
    {sipName_SslV2, static_cast<int>( ::KTcpSocket::SslV2), 204},
    {sipName_SslV3, static_cast<int>( ::KTcpSocket::SslV3), 204},
    {sipName_SslV3_1, static_cast<int>( ::KTcpSocket::SslV3_1), 204},
    {sipName_TlsV1, static_cast<int>( ::KTcpSocket::TlsV1), 204},
    {sipName_TlsV1SslV3, static_cast<int>( ::KTcpSocket::TlsV1SslV3), 204},
    {sipName_UnconnectedState, static_cast<int>( ::KTcpSocket::UnconnectedState), 206},
    {sipName_UnencryptedMode, static_cast<int>( ::KTcpSocket::UnencryptedMode), 201},
    {sipName_UnknownError, static_cast<int>( ::KTcpSocket::UnknownError), 202},
    {sipName_UnknownSslVersion, static_cast<int>( ::KTcpSocket::UnknownSslVersion), 204},
    {sipName_UnsupportedSocketOperationError, static_cast<int>( ::KTcpSocket::UnsupportedSocketOperationError), 202},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTcpSocket[] = {
    {"encryptedBytesWritten(qint64)", 0, 0, 0},
    {"encryptionModeChanged(KTcpSocket::EncryptionMode)", 0, 0, 0},
    {"encrypted()", 0, 0, 0},
    {"stateChanged(KTcpSocket::State)", 0, 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", 0, 0, 0},
    {"hostFound()", 0, 0, 0},
    {"disconnected()", 0, 0, 0},
    {"connected()", 0, 0, 0},
    {"sslErrors(QList<KSslError>)", 0, &methods_KTcpSocket[43], 0},
    {"error(KTcpSocket::Error)", 0, &methods_KTcpSocket[15], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KTcpSocket = {
    & ::KTcpSocket::staticMetaObject,
    0,
    signals_KTcpSocket
};


sipClassTypeDef sipTypeDef_kdecore_KTcpSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket,
        {0},
        &plugin_KTcpSocket
    },
    {
        sipNameNr_KTcpSocket,
        {0, 0, 1},
        51, methods_KTcpSocket,
        29, enummembers_KTcpSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTcpSocket,
    0,
    init_type_KTcpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket,
    0,
    0,
    0,
    release_KTcpSocket,
    cast_KTcpSocket,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 83 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10111 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 10115 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 10118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslError_error(PyObject *, PyObject *);}
static PyObject *meth_KSslError_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
             ::KSslError::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslError_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_error, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_errorString(PyObject *, PyObject *);}
static PyObject *meth_KSslError_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_errorString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_certificate(PyObject *, PyObject *);}
static PyObject *meth_KSslError_certificate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslError, &sipCpp))
        {
             ::QSslCertificate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QSslCertificate(sipCpp->certificate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QSslCertificate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslError, sipName_certificate, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslError(void *, int);}
static void release_KSslError(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KSslError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslError(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslError(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KSslError *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KSslError *>(sipSrc);
}


extern "C" {static void *array_KSslError(SIP_SSIZE_T);}
static void *array_KSslError(SIP_SSIZE_T sipNrElem)
{
    return new  ::KSslError[sipNrElem];
}


extern "C" {static void *copy_KSslError(const void *, SIP_SSIZE_T);}
static void *copy_KSslError(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KSslError(reinterpret_cast<const  ::KSslError *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslError(sipSimpleWrapper *);}
static void dealloc_KSslError(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSslError(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KSslError(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslError(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KSslError *sipCpp = 0;

    {
         ::KSslError::Error a0 = KSslError::NoError;
        const  ::QSslCertificate& a1def = QSslCertificate();
        const  ::QSslCertificate* a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|EJ9", sipType_KSslError_Error, &a0, sipType_QSslCertificate, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslError(a0,*a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::QSslError* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslError(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KSslError* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslError(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslError[] = {
    {SIP_MLNAME_CAST(sipName_certificate), meth_KSslError_certificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KSslError_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KSslError_errorString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslError[] = {
    {sipName_CertificateSignatureFailed, static_cast<int>( ::KSslError::CertificateSignatureFailed), 182},
    {sipName_ExpiredCertificate, static_cast<int>( ::KSslError::ExpiredCertificate), 182},
    {sipName_HostNameMismatch, static_cast<int>( ::KSslError::HostNameMismatch), 182},
    {sipName_InvalidCertificate, static_cast<int>( ::KSslError::InvalidCertificate), 182},
    {sipName_InvalidCertificateAuthorityCertificate, static_cast<int>( ::KSslError::InvalidCertificateAuthorityCertificate), 182},
    {sipName_InvalidCertificatePurpose, static_cast<int>( ::KSslError::InvalidCertificatePurpose), 182},
    {sipName_NoError, static_cast<int>( ::KSslError::NoError), 182},
    {sipName_NoPeerCertificate, static_cast<int>( ::KSslError::NoPeerCertificate), 182},
    {sipName_PathLengthExceeded, static_cast<int>( ::KSslError::PathLengthExceeded), 182},
    {sipName_RejectedCertificate, static_cast<int>( ::KSslError::RejectedCertificate), 182},
    {sipName_RevokedCertificate, static_cast<int>( ::KSslError::RevokedCertificate), 182},
    {sipName_SelfSignedCertificate, static_cast<int>( ::KSslError::SelfSignedCertificate), 182},
    {sipName_UnknownError, static_cast<int>( ::KSslError::UnknownError), 182},
    {sipName_UntrustedCertificate, static_cast<int>( ::KSslError::UntrustedCertificate), 182},
};


static pyqt4ClassPluginDef plugin_KSslError = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSslError = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslError,
        {0},
        &plugin_KSslError
    },
    {
        sipNameNr_KSslError,
        {0, 0, 1},
        3, methods_KSslError,
        14, enummembers_KSslError,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslError,
    assign_KSslError,
    array_KSslError,
    copy_KSslError,
    release_KSslError,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 59 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10380 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 10384 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10387 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10390 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslCipher_isNull(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_authenticationMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_authenticationMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->authenticationMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_authenticationMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_encryptionMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_encryptionMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->encryptionMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_encryptionMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->keyExchangeMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_keyExchangeMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_digestMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_digestMethod(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->digestMethod());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_digestMethod, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_name(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_supportedBits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_usedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_usedBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_usedBits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedCiphers(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedCiphers(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList< ::KSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KSslCipher>( ::KSslCipher::supportedCiphers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KSslCipher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslCipher, sipName_supportedCiphers, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslCipher(void *, int);}
static void release_KSslCipher(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KSslCipher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslCipher(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslCipher(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KSslCipher *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KSslCipher *>(sipSrc);
}


extern "C" {static void *array_KSslCipher(SIP_SSIZE_T);}
static void *array_KSslCipher(SIP_SSIZE_T sipNrElem)
{
    return new  ::KSslCipher[sipNrElem];
}


extern "C" {static void *copy_KSslCipher(const void *, SIP_SSIZE_T);}
static void *copy_KSslCipher(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KSslCipher(reinterpret_cast<const  ::KSslCipher *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslCipher(sipSimpleWrapper *);}
static void dealloc_KSslCipher(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSslCipher(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KSslCipher(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslCipher(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KSslCipher *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslCipher();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KSslCipher* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslCipher, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslCipher(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::QSslCipher* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslCipher, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslCipher(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslCipher[] = {
    {SIP_MLNAME_CAST(sipName_authenticationMethod), meth_KSslCipher_authenticationMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_digestMethod), meth_KSslCipher_digestMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMethod), meth_KSslCipher_encryptionMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KSslCipher_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyExchangeMethod), meth_KSslCipher_keyExchangeMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KSslCipher_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedBits), meth_KSslCipher_supportedBits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedCiphers), meth_KSslCipher_supportedCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usedBits), meth_KSslCipher_usedBits, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KSslCipher = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSslCipher = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslCipher,
        {0},
        &plugin_KSslCipher
    },
    {
        sipNameNr_KSslCipher,
        {0, 0, 1},
        9, methods_KSslCipher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslCipher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslCipher,
    assign_KSslCipher,
    array_KSslCipher,
    copy_KSslCipher,
    release_KSslCipher,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10794 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 10798 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10801 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslKey_algorithm(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_algorithm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
             ::KSslKey::Algorithm sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->algorithm();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_Algorithm);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_algorithm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_isExportable(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_isExportable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExportable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_isExportable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_secrecy(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_secrecy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
             ::KSslKey::KeySecrecy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->secrecy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_KeySecrecy);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_secrecy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_toDer(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_toDer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSslKey, &sipCpp))
        {
             ::QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QByteArray(sipCpp->toDer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSslKey, sipName_toDer, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslKey(void *, int);}
static void release_KSslKey(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KSslKey *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslKey(void *, SIP_SSIZE_T, const void *);}
static void assign_KSslKey(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KSslKey *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KSslKey *>(sipSrc);
}


extern "C" {static void *array_KSslKey(SIP_SSIZE_T);}
static void *array_KSslKey(SIP_SSIZE_T sipNrElem)
{
    return new  ::KSslKey[sipNrElem];
}


extern "C" {static void *copy_KSslKey(const void *, SIP_SSIZE_T);}
static void *copy_KSslKey(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KSslKey(reinterpret_cast<const  ::KSslKey *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KSslKey(sipSimpleWrapper *);}
static void dealloc_KSslKey(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSslKey(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KSslKey(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSslKey(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KSslKey *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslKey();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KSslKey* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslKey(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::QSslKey* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KSslKey(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSslKey[] = {
    {SIP_MLNAME_CAST(sipName_algorithm), meth_KSslKey_algorithm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExportable), meth_KSslKey_isExportable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secrecy), meth_KSslKey_secrecy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDer), meth_KSslKey_toDer, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslKey[] = {
    {sipName_Dh, static_cast<int>( ::KSslKey::Dh), 185},
    {sipName_Dsa, static_cast<int>( ::KSslKey::Dsa), 185},
    {sipName_PrivateKey, static_cast<int>( ::KSslKey::PrivateKey), 186},
    {sipName_PublicKey, static_cast<int>( ::KSslKey::PublicKey), 186},
    {sipName_Rsa, static_cast<int>( ::KSslKey::Rsa), 185},
};


static pyqt4ClassPluginDef plugin_KSslKey = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSslKey = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslKey,
        {0},
        &plugin_KSslKey
    },
    {
        sipNameNr_KSslKey,
        {0, 0, 1},
        4, methods_KSslKey,
        5, enummembers_KSslKey,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSslKey,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslKey,
    assign_KSslKey,
    array_KSslKey,
    copy_KSslKey,
    release_KSslKey,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 92 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 11075 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11079 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11082 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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()
{
    sipInstanceDestroyed(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_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone&);

    return sipVH_kdecore_95(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_parse(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::KSystemTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KSystemTimeZoneSource, &sipCpp, sipType_KTimeZone, &a0))
        {
             ::KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneSource::parse(*a0) : sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_startParseBlock(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_startParseBlock(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
             ::KSystemTimeZoneSource::startParseBlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_startParseBlock, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneSource_endParseBlock(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneSource_endParseBlock(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
             ::KSystemTimeZoneSource::endParseBlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneSource, sipName_endParseBlock, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KSystemTimeZoneSource(void *, const sipTypeDef *);}
static void *cast_KSystemTimeZoneSource(void *sipCppV, const sipTypeDef *targetType)
{
     ::KSystemTimeZoneSource *sipCpp = reinterpret_cast< ::KSystemTimeZoneSource *>(sipCppV);

    if (targetType == sipType_KTimeZoneSource)
        return static_cast< ::KTimeZoneSource *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKSystemTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSystemTimeZoneSource(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KSystemTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZoneSource(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZoneSource *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneSource();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZoneSource[] = {{215, 255, 1}};


static PyMethodDef methods_KSystemTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_endParseBlock), meth_KSystemTimeZoneSource_endParseBlock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KSystemTimeZoneSource_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startParseBlock), meth_KSystemTimeZoneSource_startParseBlock, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KSystemTimeZoneSource = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSystemTimeZoneSource = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZoneSource,
        {0},
        &plugin_KSystemTimeZoneSource
    },
    {
        sipNameNr_KSystemTimeZoneSource,
        {0, 0, 1},
        3, methods_KSystemTimeZoneSource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZoneSource,
    0,
    init_type_KSystemTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneSource,
    0,
    0,
    0,
    release_KSystemTimeZoneSource,
    cast_KSystemTimeZoneSource,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11343 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11347 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11350 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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()
{
    sipInstanceDestroyed(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_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone&);

    return sipVH_kdecore_95(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTimeZoneSource_parse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneSource_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::KTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZoneSource, &sipCpp, sipType_KTimeZone, &a0))
        {
             ::KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneSource::parse(*a0) : sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneSource, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneSource_useZoneParse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneSource_useZoneParse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZoneSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneSource, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->useZoneParse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneSource, sipName_useZoneParse, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneSource(void *, int);}
static void release_KTimeZoneSource(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneSource *>(sipCppV);
    else
        delete reinterpret_cast< ::KTimeZoneSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTimeZoneSource(sipSimpleWrapper *);}
static void dealloc_KTimeZoneSource(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTimeZoneSource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTimeZoneSource(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTimeZoneSource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZoneSource(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZoneSource *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneSource();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneSource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTimeZoneSource[] = {
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZoneSource_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_useZoneParse), meth_KTimeZoneSource_useZoneParse, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTimeZoneSource = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTimeZoneSource = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneSource,
        {0},
        &plugin_KTimeZoneSource
    },
    {
        sipNameNr_KTimeZoneSource,
        {0, 0, 1},
        2, methods_KTimeZoneSource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZoneSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneSource,
    0,
    0,
    0,
    release_KTimeZoneSource,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 11593 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 11597 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11600 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11603 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11606 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11609 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 11612 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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;
     ::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:
    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()
{
    sipInstanceDestroyed(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_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_87(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QByteArray sipKSystemTimeZoneBackend::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::type();

    extern  ::QByteArray sipVH_kdecore_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_88(sipGILState, 0, sipPySelf, 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[2]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

    extern int sipVH_kdecore_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&,int*);

    return sipVH_kdecore_89(sipGILState, 0, sipPySelf, 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[3]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::offsetAtUtc(a0,a1);

    extern int sipVH_kdecore_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&);

    return sipVH_kdecore_90(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKSystemTimeZoneBackend::offset(const  ::KTimeZone*a0, ::time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::offset(a0,a1);

    extern int sipVH_kdecore_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

    return sipVH_kdecore_91(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKSystemTimeZoneBackend::isDstAtUtc(const  ::KTimeZone*a0,const  ::QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::isDstAtUtc(a0,a1);

    extern bool sipVH_kdecore_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&);

    return sipVH_kdecore_92(sipGILState, 0, sipPySelf, 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[6]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return  ::KSystemTimeZoneBackend::isDst(a0,a1);

    extern bool sipVH_kdecore_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

    return sipVH_kdecore_93(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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  ::KSystemTimeZoneBackend::hasTransitions(a0);

    extern bool sipVH_kdecore_94(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*);

    return sipVH_kdecore_94(sipGILState, 0, sipPySelf, 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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp))
        {
             ::KTimeZoneBackend*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneBackend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        int a2;
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::offsetAtZoneTime(a0,*a1,&a2) : sipCpp->offsetAtZoneTime(a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::offsetAtUtc(a0,*a1) : sipCpp->offsetAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_offset(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
         ::time_t a1;
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::offset(a0,a1) : sipCpp->offset(a0,a1));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::isDstAtUtc(a0,*a1) : sipCpp->isDstAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_isDst(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
         ::time_t a1;
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::isDst(a0,a1) : sipCpp->isDst(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSystemTimeZoneBackend_type(PyObject *, PyObject *);}
static PyObject *meth_KSystemTimeZoneBackend_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KSystemTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSystemTimeZoneBackend, &sipCpp))
        {
             ::QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QByteArray((sipSelfWasArg ? sipCpp-> ::KSystemTimeZoneBackend::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSystemTimeZoneBackend, sipName_type, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KSystemTimeZoneBackend(void *, const sipTypeDef *);}
static void *cast_KSystemTimeZoneBackend(void *sipCppV, const sipTypeDef *targetType)
{
     ::KSystemTimeZoneBackend *sipCpp = reinterpret_cast< ::KSystemTimeZoneBackend *>(sipCppV);

    if (targetType == sipType_KTimeZoneBackend)
        return static_cast< ::KTimeZoneBackend *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKSystemTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSystemTimeZoneBackend(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KSystemTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZoneBackend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZoneBackend *sipCpp = 0;

    {
         ::KSystemTimeZoneSource* a0;
        const  ::QString* a1;
        int a1State = 0;
        const  ::QString* a2;
        int a2State = 0;
        float a3;
        float a4;
        const  ::QString* a5;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1J1ffJ1", sipType_KSystemTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast< ::QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast< ::QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KSystemTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSystemTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZoneBackend[] = {{213, 255, 1}};


static PyMethodDef methods_KSystemTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KSystemTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KSystemTimeZoneBackend_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KSystemTimeZoneBackend_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KSystemTimeZoneBackend_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KSystemTimeZoneBackend_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KSystemTimeZoneBackend_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KSystemTimeZoneBackend_type, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KSystemTimeZoneBackend = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSystemTimeZoneBackend = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZoneBackend,
        {0},
        &plugin_KSystemTimeZoneBackend
    },
    {
        sipNameNr_KSystemTimeZoneBackend,
        {0, 0, 1},
        7, methods_KSystemTimeZoneBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZoneBackend,
    0,
    init_type_KSystemTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZoneBackend,
    0,
    0,
    0,
    release_KSystemTimeZoneBackend,
    cast_KSystemTimeZoneBackend,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12159 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12163 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12166 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12172 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12175 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


class sipKTimeZoneBackend : public  ::KTimeZoneBackend
{
public:
    sipKTimeZoneBackend();
    sipKTimeZoneBackend(const  ::QString&);
    sipKTimeZoneBackend(const  ::KTimeZoneBackend&);
    sipKTimeZoneBackend( ::KTimeZoneSource*,const  ::QString&,const  ::QString&,float,float,const  ::QString&);
    virtual ~sipKTimeZoneBackend();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions(const  ::KTimeZone*) const;
    bool isDst(const  ::KTimeZone*, ::time_t) const;
    bool isDstAtUtc(const  ::KTimeZone*,const  ::QDateTime&) const;
    int offset(const  ::KTimeZone*, ::time_t) const;
    int offsetAtUtc(const  ::KTimeZone*,const  ::QDateTime&) const;
    int offsetAtZoneTime(const  ::KTimeZone*,const  ::QDateTime&,int*) const;
     ::QByteArray type() const;
     ::KTimeZoneBackend* clone() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTimeZoneBackend(const sipKTimeZoneBackend &);
    sipKTimeZoneBackend &operator = (const sipKTimeZoneBackend &);

    char sipPyMethods[8];
};

sipKTimeZoneBackend::sipKTimeZoneBackend():  ::KTimeZoneBackend(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const  ::QString& a0):  ::KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend(const  ::KTimeZoneBackend& a0):  ::KTimeZoneBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::sipKTimeZoneBackend( ::KTimeZoneSource*a0,const  ::QString& a1,const  ::QString& a2,float a3,float a4,const  ::QString& a5):  ::KTimeZoneBackend(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZoneBackend::~sipKTimeZoneBackend()
{
    sipInstanceDestroyed(sipPySelf);
}

bool sipKTimeZoneBackend::hasTransitions(const  ::KTimeZone*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return  ::KTimeZoneBackend::hasTransitions(a0);

    extern bool sipVH_kdecore_94(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*);

    return sipVH_kdecore_94(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTimeZoneBackend::isDst(const  ::KTimeZone*a0, ::time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return  ::KTimeZoneBackend::isDst(a0,a1);

    extern bool sipVH_kdecore_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

    return sipVH_kdecore_93(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTimeZoneBackend::isDstAtUtc(const  ::KTimeZone*a0,const  ::QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return  ::KTimeZoneBackend::isDstAtUtc(a0,a1);

    extern bool sipVH_kdecore_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&);

    return sipVH_kdecore_92(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offset(const  ::KTimeZone*a0, ::time_t a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return  ::KTimeZoneBackend::offset(a0,a1);

    extern int sipVH_kdecore_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*, ::time_t);

    return sipVH_kdecore_91(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offsetAtUtc(const  ::KTimeZone*a0,const  ::QDateTime& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return  ::KTimeZoneBackend::offsetAtUtc(a0,a1);

    extern int sipVH_kdecore_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&);

    return sipVH_kdecore_90(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTimeZoneBackend::offsetAtZoneTime(const  ::KTimeZone*a0,const  ::QDateTime& a1,int*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return  ::KTimeZoneBackend::offsetAtZoneTime(a0,a1,a2);

    extern int sipVH_kdecore_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTimeZone*,const  ::QDateTime&,int*);

    return sipVH_kdecore_89(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QByteArray sipKTimeZoneBackend::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return  ::KTimeZoneBackend::type();

    extern  ::QByteArray sipVH_kdecore_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_88(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KTimeZoneBackend* sipKTimeZoneBackend::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return  ::KTimeZoneBackend::clone();

    extern  ::KTimeZoneBackend* sipVH_kdecore_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_87(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTimeZoneBackend_clone(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneBackend, &sipCpp))
        {
             ::KTimeZoneBackend*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneBackend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_type(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZoneBackend, &sipCpp))
        {
             ::QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QByteArray((sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        int a2;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::offsetAtZoneTime(a0,*a1,&a2) : sipCpp->offsetAtZoneTime(a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::offsetAtUtc(a0,*a1) : sipCpp->offsetAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_offset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
         ::time_t a1;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::offset(a0,a1) : sipCpp->offset(a0,a1));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::isDstAtUtc(a0,*a1) : sipCpp->isDstAtUtc(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_isDst(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
         ::time_t a1;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8l", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::isDst(a0,a1) : sipCpp->isDst(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZoneBackend_hasTransitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZoneBackend_hasTransitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone* a0;
        const  ::KTimeZoneBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTimeZoneBackend, &sipCpp, sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZoneBackend::hasTransitions(a0) : sipCpp->hasTransitions(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZoneBackend, sipName_hasTransitions, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZoneBackend(void *, int);}
static void release_KTimeZoneBackend(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZoneBackend *>(sipCppV);
    else
        delete reinterpret_cast< ::KTimeZoneBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTimeZoneBackend(void *, SIP_SSIZE_T, const void *);}
static void assign_KTimeZoneBackend(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTimeZoneBackend *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTimeZoneBackend *>(sipSrc);
}


extern "C" {static void *array_KTimeZoneBackend(SIP_SSIZE_T);}
static void *array_KTimeZoneBackend(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTimeZoneBackend[sipNrElem];
}


extern "C" {static void *copy_KTimeZoneBackend(const void *, SIP_SSIZE_T);}
static void *copy_KTimeZoneBackend(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTimeZoneBackend(reinterpret_cast<const  ::KTimeZoneBackend *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTimeZoneBackend(sipSimpleWrapper *);}
static void dealloc_KTimeZoneBackend(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTimeZoneBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTimeZoneBackend(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTimeZoneBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZoneBackend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZoneBackend *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::KTimeZoneSource* a0;
        const  ::QString* a1;
        int a1State = 0;
        const  ::QString& a2def = QString();
        const  ::QString* a2 = &a2def;
        int a2State = 0;
        float a3 = KTimeZone::UNKNOWN;
        float a4 = KTimeZone::UNKNOWN;
        const  ::QString& a5def = QString();
        const  ::QString* a5 = &a5def;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1|J1ffJ1", sipType_KTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZoneBackend(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast< ::QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast< ::QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTimeZoneBackend[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_KTimeZoneBackend_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZoneBackend_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZoneBackend_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZoneBackend_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZoneBackend_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZoneBackend_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZoneBackend_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZoneBackend_type, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTimeZoneBackend = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTimeZoneBackend = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZoneBackend,
        {0},
        &plugin_KTimeZoneBackend
    },
    {
        sipNameNr_KTimeZoneBackend,
        {0, 0, 1},
        8, methods_KTimeZoneBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTimeZoneBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZoneBackend,
    assign_KTimeZoneBackend,
    array_KTimeZoneBackend,
    copy_KTimeZoneBackend,
    release_KTimeZoneBackend,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12800 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 92 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 12804 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12807 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12810 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12813 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12816 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12819 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12822 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12825 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12828 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12831 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12834 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 12837 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12840 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12843 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12846 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12849 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12852 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


class sipKSystemTimeZone : public  ::KSystemTimeZone
{
public:
    sipKSystemTimeZone( ::KSystemTimeZoneSource*,const  ::QString&,const  ::QString&,float,float,const  ::QString&);
    sipKSystemTimeZone(const  ::KSystemTimeZone&);
    virtual ~sipKSystemTimeZone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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()
{
    sipInstanceDestroyed(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  ::KSystemTimeZone::offsetAtZoneTime(a0,a1);

    extern int sipVH_kdecore_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&,int*);

    return sipVH_kdecore_82(sipGILState, 0, sipPySelf, 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  ::KSystemTimeZone::offsetAtUtc(a0);

    extern int sipVH_kdecore_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&);

    return sipVH_kdecore_83(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKSystemTimeZone::offset( ::time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return  ::KSystemTimeZone::offset(a0);

    extern int sipVH_kdecore_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

    return sipVH_kdecore_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSystemTimeZone::isDstAtUtc(const  ::QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return  ::KSystemTimeZone::isDstAtUtc(a0);

    extern bool sipVH_kdecore_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&);

    return sipVH_kdecore_85(sipGILState, 0, sipPySelf, 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  ::KSystemTimeZone::isDst(a0);

    extern bool sipVH_kdecore_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

    return sipVH_kdecore_86(sipGILState, 0, sipPySelf, 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  ::KSystemTimeZone::hasTransitions();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KSystemTimeZone(void *, const sipTypeDef *);}
static void *cast_KSystemTimeZone(void *sipCppV, const sipTypeDef *targetType)
{
     ::KSystemTimeZone *sipCpp = reinterpret_cast< ::KSystemTimeZone *>(sipCppV);

    if (targetType == sipType_KTimeZone)
        return static_cast< ::KTimeZone *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKSystemTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSystemTimeZone(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KSystemTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSystemTimeZone(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSystemTimeZone *sipCpp = 0;

    {
         ::KSystemTimeZoneSource* a0;
        const  ::QString* a1;
        int a1State = 0;
        const  ::QString& a2def = QString();
        const  ::QString* a2 = &a2def;
        int a2State = 0;
        float a3 = KTimeZone::UNKNOWN;
        float a4 = KTimeZone::UNKNOWN;
        const  ::QString& a5def = QString();
        const  ::QString* a5 = &a5def;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1|J1ffJ1", sipType_KSystemTimeZoneSource, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZone(a0,*a1,*a2,a3,a4,*a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast< ::QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast< ::QString *>(a5),sipType_QString,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KSystemTimeZone* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KSystemTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSystemTimeZone(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZone[] = {{209, 255, 1}};


static pyqt4ClassPluginDef plugin_KSystemTimeZone = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSystemTimeZone = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZone,
        {0},
        &plugin_KSystemTimeZone
    },
    {
        sipNameNr_KSystemTimeZone,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSystemTimeZone,
    0,
    init_type_KSystemTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSystemTimeZone,
    0,
    0,
    0,
    release_KSystemTimeZone,
    cast_KSystemTimeZone,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13149 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13152 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13155 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13158 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 397 "/usr/share/sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 13161 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13164 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13167 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13170 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13173 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 13179 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13185 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 623 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13188 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13191 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"


class sipKTimeZone : public  ::KTimeZone
{
public:
    sipKTimeZone(const  ::QString&);
    sipKTimeZone(const  ::KTimeZone&);
    sipKTimeZone( ::KTimeZoneBackend*);
    virtual ~sipKTimeZone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasTransitions() const;
    bool isDst( ::time_t) const;
    bool isDstAtUtc(const  ::QDateTime&) const;
    int offset( ::time_t) const;
    int offsetAtUtc(const  ::QDateTime&) const;
    int offsetAtZoneTime(const  ::QDateTime&,int*) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTimeZone(const sipKTimeZone &);
    sipKTimeZone &operator = (const sipKTimeZone &);

    char sipPyMethods[6];
};

sipKTimeZone::sipKTimeZone(const  ::QString& a0):  ::KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone(const  ::KTimeZone& a0):  ::KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::sipKTimeZone( ::KTimeZoneBackend*a0):  ::KTimeZone(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTimeZone::~sipKTimeZone()
{
    sipInstanceDestroyed(sipPySelf);
}

bool sipKTimeZone::hasTransitions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasTransitions);

    if (!sipMeth)
        return  ::KTimeZone::hasTransitions();

    extern bool sipVH_kdecore_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_7(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTimeZone::isDst( ::time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDst);

    if (!sipMeth)
        return  ::KTimeZone::isDst(a0);

    extern bool sipVH_kdecore_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

    return sipVH_kdecore_86(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTimeZone::isDstAtUtc(const  ::QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isDstAtUtc);

    if (!sipMeth)
        return  ::KTimeZone::isDstAtUtc(a0);

    extern bool sipVH_kdecore_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&);

    return sipVH_kdecore_85(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offset( ::time_t a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_offset);

    if (!sipMeth)
        return  ::KTimeZone::offset(a0);

    extern int sipVH_kdecore_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::time_t);

    return sipVH_kdecore_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offsetAtUtc(const  ::QDateTime& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_offsetAtUtc);

    if (!sipMeth)
        return  ::KTimeZone::offsetAtUtc(a0);

    extern int sipVH_kdecore_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&);

    return sipVH_kdecore_83(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTimeZone::offsetAtZoneTime(const  ::QDateTime& a0,int*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_offsetAtZoneTime);

    if (!sipMeth)
        return  ::KTimeZone::offsetAtZoneTime(a0,a1);

    extern int sipVH_kdecore_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&,int*);

    return sipVH_kdecore_82(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_KTimeZone_type(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QByteArray(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_name(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_countryCode(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_countryCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->countryCode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_countryCode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_latitude(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_latitude(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->latitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_latitude, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_longitude(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_longitude(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->longitude();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_longitude, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_comment(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_comment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->comment());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_comment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_abbreviations(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_abbreviations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList< ::QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::QByteArray>(sipCpp->abbreviations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_abbreviations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_abbreviation(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_abbreviation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
             ::QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QByteArray(sipCpp->abbreviation(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_abbreviation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_utcOffsets(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_utcOffsets(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::QList<int>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QList<int>(sipCpp->utcOffsets());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_utcOffsets, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_convert(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_convert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone* a0;
        const  ::QDateTime* a1;
        int a1State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone, &a0, sipType_QDateTime, &a1, &a1State))
        {
             ::QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QDateTime(sipCpp->convert(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_convert, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
             ::QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QDateTime(sipCpp->toUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        bool a1;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
             ::QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QDateTime(sipCpp->toZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_currentOffset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_currentOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::Qt::TimeSpec a0 = Qt::UTC;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_Qt_TimeSpec, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentOffset(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_currentOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offsetAtZoneTime(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offsetAtZoneTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        int a1;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::offsetAtZoneTime(*a0,&a1) : sipCpp->offsetAtZoneTime(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offsetAtZoneTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offsetAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offsetAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::offsetAtUtc(*a0) : sipCpp->offsetAtUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offsetAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_offset(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::time_t a0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bl", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::offset(a0) : sipCpp->offset(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isDstAtUtc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isDstAtUtc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::isDstAtUtc(*a0) : sipCpp->isDstAtUtc(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isDstAtUtc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_isDst(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_isDst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::time_t a0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bl", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::isDst(a0) : sipCpp->isDst(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_isDst, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_phases(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_phases(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList< ::KTimeZone::Phase>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KTimeZone::Phase>(sipCpp->phases());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_Phase,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_phases, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_hasTransitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_hasTransitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTimeZone::hasTransitions() : sipCpp->hasTransitions());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_hasTransitions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitions(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime& a0def = QDateTime();
        const  ::QDateTime* a0 = &a0def;
        int a0State = 0;
        const  ::QDateTime& a1def = QDateTime();
        const  ::QDateTime* a1 = &a1def;
        int a1State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State, sipType_QDateTime, &a1, &a1State))
        {
            QList< ::KTimeZone::Transition>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KTimeZone::Transition>(sipCpp->transitions(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_Transition,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitionIndex(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitionIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime* a0;
        int a0State = 0;
        int a1;
        bool a2;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionIndex(*a0,&a1,&a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipBuildResult(0,"(iib)",sipRes,a1,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitionIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_transitionTimes(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_transitionTimes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone::Phase* a0;
        const  ::QDateTime& a1def = QDateTime();
        const  ::QDateTime* a1 = &a1def;
        int a1State = 0;
        const  ::QDateTime& a2def = QDateTime();
        const  ::QDateTime* a2 = &a2def;
        int a2State = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J1J1", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone_Phase, &a0, sipType_QDateTime, &a1, &a1State, sipType_QDateTime, &a2, &a2State))
        {
            QList< ::QDateTime>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::QDateTime>(sipCpp->transitionTimes(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a1),sipType_QDateTime,a1State);
            sipReleaseType(const_cast< ::QDateTime *>(a2),sipType_QDateTime,a2State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_transitionTimes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_leapSecondChanges(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_leapSecondChanges(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            QList< ::KTimeZone::LeapSeconds>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KTimeZone::LeapSeconds>(sipCpp->leapSecondChanges());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KTimeZone_LeapSeconds,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_leapSecondChanges, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_source(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
             ::KTimeZoneSource*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->source();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTimeZoneSource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_source, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_parse(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_parse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTimeZone, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_parse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_data(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 0;
        const  ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KTimeZone, &sipCpp, &a0))
        {
            const  ::KTimeZoneData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->data(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast< ::KTimeZoneData *>(sipRes),sipType_KTimeZoneData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_updateBase(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_updateBase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone* a0;
         ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->updateBase(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_updateBase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_fromTime_t(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_fromTime_t(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::time_t a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "l", &a0))
        {
             ::QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QDateTime( ::KTimeZone::fromTime_t(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_fromTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_toTime_t(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_toTime_t(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QDateTime* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QDateTime, &a0, &a0State))
        {
             ::time_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KTimeZone::toTime_t(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QDateTime *>(a0),sipType_QDateTime,a0State);

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_toTime_t, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_utc(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_utc(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::KTimeZone*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTimeZone( ::KTimeZone::utc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTimeZone,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_utc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTimeZone_setData(PyObject *, PyObject *);}
static PyObject *meth_KTimeZone_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTimeZoneData* a0;
         ::KTimeZoneSource* a1 = 0;
         ::KTimeZone *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8|J8", &sipSelf, sipType_KTimeZone, &sipCpp, sipType_KTimeZoneData, &a0, sipType_KTimeZoneSource, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTimeZone, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KTimeZone___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTimeZone___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTimeZone *sipCpp = reinterpret_cast< ::KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp-> ::KTimeZone::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore, ne_slot, sipType_KTimeZone, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTimeZone___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTimeZone___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTimeZone *sipCpp = reinterpret_cast< ::KTimeZone *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeZone));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeZone* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KTimeZone, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp-> ::KTimeZone::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore, eq_slot, sipType_KTimeZone, sipSelf, sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_KTimeZone(void *, int);}
static void release_KTimeZone(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTimeZone *>(sipCppV);
    else
        delete reinterpret_cast< ::KTimeZone *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTimeZone(sipSimpleWrapper *);}
static void dealloc_KTimeZone(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTimeZone *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTimeZone(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTimeZone(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTimeZone(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTimeZone *sipCpp = 0;

    {
        const  ::QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTimeZone* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTimeZone, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::KTimeZoneBackend* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KTimeZoneBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTimeZone(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeZone[] = {
    {(void *)slot_KTimeZone___ne__, ne_slot},
    {(void *)slot_KTimeZone___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTimeZone[] = {
    {SIP_MLNAME_CAST(sipName_abbreviation), meth_KTimeZone_abbreviation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_abbreviations), meth_KTimeZone_abbreviations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KTimeZone_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_convert), meth_KTimeZone_convert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_countryCode), meth_KTimeZone_countryCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentOffset), meth_KTimeZone_currentOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KTimeZone_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromTime_t), meth_KTimeZone_fromTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTransitions), meth_KTimeZone_hasTransitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDst), meth_KTimeZone_isDst, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDstAtUtc), meth_KTimeZone_isDstAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTimeZone_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_latitude), meth_KTimeZone_latitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leapSecondChanges), meth_KTimeZone_leapSecondChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_longitude), meth_KTimeZone_longitude, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KTimeZone_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KTimeZone_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtUtc), meth_KTimeZone_offsetAtUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offsetAtZoneTime), meth_KTimeZone_offsetAtZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_KTimeZone_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_phases), meth_KTimeZone_phases, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KTimeZone_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_source), meth_KTimeZone_source, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime_t), meth_KTimeZone_toTime_t, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUtc), meth_KTimeZone_toUtc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toZoneTime), meth_KTimeZone_toZoneTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionIndex), meth_KTimeZone_transitionIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTimes), meth_KTimeZone_transitionTimes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitions), meth_KTimeZone_transitions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KTimeZone_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateBase), meth_KTimeZone_updateBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utc), meth_KTimeZone_utc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_utcOffsets), meth_KTimeZone_utcOffsets, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidOffset(void *, PyObject *, PyObject *)
{
    int sipVal;

    sipVal =  ::KTimeZone::InvalidOffset;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_InvalidTime_t(void *, PyObject *, PyObject *)
{
     ::time_t sipVal;

    sipVal =  ::KTimeZone::InvalidTime_t;

    return PyLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *, PyObject *);}
static PyObject *varget_KTimeZone_UNKNOWN(void *, PyObject *, PyObject *)
{
    float sipVal;

    sipVal =  ::KTimeZone::UNKNOWN;

    return PyFloat_FromDouble((double)sipVal);
}

sipVariableDef variables_KTimeZone[] = {
    {ClassVariable, sipName_InvalidOffset, (PyMethodDef *)varget_KTimeZone_InvalidOffset, NULL, NULL, NULL},
    {ClassVariable, sipName_InvalidTime_t, (PyMethodDef *)varget_KTimeZone_InvalidTime_t, NULL, NULL, NULL},
    {ClassVariable, sipName_UNKNOWN, (PyMethodDef *)varget_KTimeZone_UNKNOWN, NULL, NULL, NULL},
};


static pyqt4ClassPluginDef plugin_KTimeZone = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KTimeZone = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTimeZone,
        {0},
        &plugin_KTimeZone
    },
    {
        sipNameNr_KTimeZone,
        {0, 0, 1},
        33, methods_KTimeZone,
        0, 0,
        3, variables_KTimeZone,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTimeZone,
    init_type_KTimeZone,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeZone,
    0,
    0,
    0,
    release_KTimeZone,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ksystemtimezone.sip"
#include <ksystemtimezone.h>
#line 14582 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"

#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14586 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 14592 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 68 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14595 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 14598 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14601 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14604 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14607 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 14610 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14613 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14616 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14619 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14622 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14625 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 14628 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14631 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kdecore/sipkdecorepart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14634 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 inheritance hierarchy. */
extern "C" {static void *cast_KSystemTimeZones(void *, const sipTypeDef *);}
static void *cast_KSystemTimeZones(void *sipCppV, const sipTypeDef *targetType)
{
     ::KSystemTimeZones *sipCpp = reinterpret_cast< ::KSystemTimeZones *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSystemTimeZones(void *, int);}
static void release_KSystemTimeZones(void *sipCppV, int)
{
     ::KSystemTimeZones *sipCpp = reinterpret_cast< ::KSystemTimeZones *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSystemTimeZones(sipSimpleWrapper *);}
static void dealloc_KSystemTimeZones(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSystemTimeZones(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSystemTimeZones[] = {{21, 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}
};


static pyqt4ClassPluginDef plugin_KSystemTimeZones = {
    & ::KSystemTimeZones::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kdecore_KSystemTimeZones = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSystemTimeZones,
        {0},
        &plugin_KSystemTimeZones
    },
    {
        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,
    0,
    0,
    0
};
