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

#include "sipAPIknewstuff.h"


#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 13 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"


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

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;
        KActionCollection* a3;
        const char* a4 = 0;
        PyObject *a4Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1qSJ8|AA", sipType_QString,&a0, &a0State, "()", &a1, &a2, &a2, sipType_KActionCollection, &a3, &a4Keep, &a4))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS3::standardActionUpload(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a4Keep);

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

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;
        KActionCollection* a3;
        const char* a4 = 0;
        PyObject *a4Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1yJ8|AA", sipType_QString,&a0, &a0State, "()", &a1, &a2, sipType_KActionCollection, &a3, &a4Keep, &a4))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS3::standardActionUpload(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a4Keep);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;
        KActionCollection* a3;
        const char* a4 = 0;
        PyObject *a4Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1qSJ8|AA", sipType_QString,&a0, &a0State, "()", &a1, &a2, &a2, sipType_KActionCollection, &a3, &a4Keep, &a4))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS3::standardAction(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a4Keep);

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

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;
        KActionCollection* a3;
        const char* a4 = 0;
        PyObject *a4Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1yJ8|AA", sipType_QString,&a0, &a0State, "()", &a1, &a2, sipType_KActionCollection, &a3, &a4Keep, &a4))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS3::standardAction(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a4Keep);

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

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

    return NULL;
}


static PyMethodDef methods_KNS3[] = {
    {SIP_MLNAME_CAST(sipName_standardAction), meth_KNS3_standardAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardActionUpload), meth_KNS3_standardActionUpload, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_knewstuff_KNS3 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KNS3,
        {0}
    },
    {
        sipNameNr_KNS3,
        {0, 0, 1},
        2, methods_KNS3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/knewstuff/knewstuffbutton.sip"
#include <knewstuff2/ui/knewstuffbutton.h>
#line 199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 203 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 206 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kauthaction.sip"
#include <kauthaction.h>
#line 209 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 215 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 218 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qdrag.sip"
#include <qdrag.h>
#line 221 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 224 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 227 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 230 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 236 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 242 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 700 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qbuttongroup.sip"
#include <qbuttongroup.h>
#line 254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 260 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 266 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 272 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 275 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 278 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 281 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 326 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 335 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 341 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 344 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 350 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 353 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 362 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 365 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 368 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 371 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 374 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 377 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 380 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 383 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"


class sipKNS_Button : public KNS::Button
{
public:
    sipKNS_Button(const QString&,const QString&,const QString&,QWidget*);
    sipKNS_Button(QWidget*);
    virtual ~sipKNS_Button();

    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*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void closeEvent(QCloseEvent*);
    void resizeEvent(QResizeEvent*);
    void moveEvent(QMoveEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    void setVisible(bool);
    int devType() const;
    void timerEvent(QTimerEvent*);
    void changeEvent(QEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void nextCheckState();
    void checkStateSet();
    bool hitButton(const QPoint&) const;
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyPressEvent(QKeyEvent*);
    bool event(QEvent*);
    QSize minimumSizeHint() const;
    void paintEvent(QPaintEvent*);
    QSize sizeHint() const;
    void startDrag();
    void mouseMoveEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    QDrag* dragObject();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[52];
};

sipKNS_Button::sipKNS_Button(const QString& a0,const QString& a1,const QString& a2,QWidget*a3): KNS::Button(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKNS_Button::sipKNS_Button(QWidget*a0): KNS::Button(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKNS_Button::metaObject() const
{
    return sip_knewstuff_qt_metaobject(sipPySelf,sipType_KNS_Button);
}

int sipKNS_Button::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KNS::Button::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_knewstuff_qt_metacall(sipPySelf,sipType_KNS_Button,_c,_id,_a);

    return _id;
}

void *sipKNS_Button::qt_metacast(const char *_clname)
{
    return (sip_knewstuff_qt_metacast(sipPySelf, sipType_KNS_Button, _clname)) ? this : KNS::Button::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipKNS_Button::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::languageChange();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_knewstuff_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKNS_Button::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::windowActivationChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::fontChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QFont&);

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

void sipKNS_Button::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::paletteChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPalette&);

    ((sipVH_QtGui_10)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[10]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKNS_Button::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::focusNextPrevChild(a0);

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

    return ((sipVH_QtGui_11)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QVariant sipKNS_Button::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtGui_12)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[12]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtGui_13)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[13]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKNS_Button::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::metric(a0);

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_14)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[0]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_1)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtGui_15)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtGui_16)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

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

void sipKNS_Button::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtGui_18)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtGui_19)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[19]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_20)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtGui_21)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KNS::Button::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtGui_22)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        KNS::Button::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[2]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        KNS::Button::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_23)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        KNS::Button::leaveEvent(a0);
        return;
    }

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

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

void sipKNS_Button::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        KNS::Button::enterEvent(a0);
        return;
    }

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

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

void sipKNS_Button::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        KNS::Button::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        KNS::Button::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QPaintEngine* sipKNS_Button::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_27)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKNS_Button::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::heightForWidth(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        KNS::Button::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKNS_Button::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_knewstuff_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

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

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

void sipKNS_Button::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        KNS::Button::changeEvent(a0);
        return;
    }

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

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

void sipKNS_Button::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        KNS::Button::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        KNS::Button::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipKNS_Button::nextCheckState()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_nextCheckState);

    if (!sipMeth)
    {
        KNS::Button::nextCheckState();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_knewstuff_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKNS_Button::checkStateSet()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_checkStateSet);

    if (!sipMeth)
    {
        KNS::Button::checkStateSet();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_knewstuff_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKNS_Button::hitButton(const QPoint& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::hitButton(a0);

    typedef bool (*sipVH_QtGui_57)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPoint&);

    return ((sipVH_QtGui_57)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[57]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        KNS::Button::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipKNS_Button::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        KNS::Button::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipKNS_Button::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        KNS::Button::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

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

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

    if (!sipMeth)
        return KNS::Button::event(a0);

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

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

QSize sipKNS_Button::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKNS_Button::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        KNS::Button::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[3]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QSize sipKNS_Button::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KNS::Button::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKNS_Button::startDrag()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_startDrag);

    if (!sipMeth)
    {
        KNS::Button::startDrag();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_knewstuff_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKNS_Button::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        KNS::Button::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKNS_Button::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        KNS::Button::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_knewstuff_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QDrag* sipKNS_Button::dragObject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_dragObject);

    if (!sipMeth)
        return KNS::Button::dragObject();

    typedef QDrag* (*sipVH_kdeui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_52)(sipModuleAPI_knewstuff_kdeui->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Button, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProviderList(*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_Button, sipName_setProviderList, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Button, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResourceType(*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_Button, sipName_setResourceType, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Button, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setButtonText(*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_Button, sipName_setButtonText, NULL);

    return NULL;
}


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

    {
        KNS::Button *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KNS_Button, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showDialog();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        QWidget* a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1JH", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QWidget, &a3, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKNS_Button(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKNS_Button(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KNS_Button[] = {{248, 6, 1}};


static PyMethodDef methods_KNS_Button[] = {
    {SIP_MLNAME_CAST(sipName_setButtonText), meth_KNS_Button_setButtonText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProviderList), meth_KNS_Button_setProviderList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResourceType), meth_KNS_Button_setResourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showDialog), meth_KNS_Button_showDialog, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KNS_Button[] = {
    {"dialogFinished()", 0, 0, 0},
    {"aboutToShowDialog()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_knewstuff_KNS_Button = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KNS__Button,
        {0}
    },
    {
        sipNameNr_Button,
        {0, 255, 0},
        4, methods_KNS_Button,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KNS_Button,
    0,
    init_type_KNS_Button,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Button,
    0,
    0,
    0,
    release_KNS_Button,
    cast_KNS_Button,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KNS::Button::staticMetaObject,
    0,
    signals_KNS_Button,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/knewstuff/ktranslatable.sip"
#include <knewstuff2/core/ktranslatable.h>
#line 1707 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1711 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1714 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1717 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1720 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/knewstuff/sipknewstuffpart3.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KNS_KTranslatable, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addString(*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_KTranslatable, sipName_addString, NULL);

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->translated(*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_KTranslatable, sipName_translated, NULL);

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KNS_KTranslatable, &sipCpp))
        {
            QMap<QString,QString>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QString>(sipCpp->stringmap());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTranslated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KNS::KTranslatable *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KNS::KTranslatable *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KNS_KTranslatable(SIP_SSIZE_T);}
static void *array_KNS_KTranslatable(SIP_SSIZE_T sipNrElem)
{
    return new KNS::KTranslatable[sipNrElem];
}


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KNS::KTranslatable();
            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 KNS::KTranslatable(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const KNS::KTranslatable* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KNS_KTranslatable, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KNS::KTranslatable(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KNS_KTranslatable[] = {
    {SIP_MLNAME_CAST(sipName_addString), meth_KNS_KTranslatable_addString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KNS_KTranslatable_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTranslated), meth_KNS_KTranslatable_isTranslated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_KNS_KTranslatable_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languages), meth_KNS_KTranslatable_languages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_representation), meth_KNS_KTranslatable_representation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringmap), meth_KNS_KTranslatable_stringmap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_strings), meth_KNS_KTranslatable_strings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translated), meth_KNS_KTranslatable_translated, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_knewstuff_KNS_KTranslatable = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__KTranslatable,
        {0}
    },
    {
        sipNameNr_KTranslatable,
        {0, 255, 0},
        9, methods_KNS_KTranslatable,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KNS_KTranslatable,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_KTranslatable,
    assign_KNS_KTranslatable,
    array_KNS_KTranslatable,
    copy_KNS_KTranslatable,
    release_KNS_KTranslatable,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
