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

#include "sipAPIknewstuff.h"


#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 13 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.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/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1qSJ8|s", sipType_QString,&a0, &a0State, "()", &a1, &a2, &a2, sipType_KActionCollection, &a3, &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);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1yJ8|s", sipType_QString,&a0, &a0State, "()", &a1, &a2, sipType_KActionCollection, &a3, &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);

            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;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1qSJ8|s", sipType_QString,&a0, &a0State, "()", &a1, &a2, &a2, sipType_KActionCollection, &a3, &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);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1yJ8|s", sipType_QString,&a0, &a0State, "()", &a1, &a2, sipType_KActionCollection, &a3, &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);

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


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


sipClassTypeDef sipTypeDef_knewstuff_KNS3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KNS3,
        {0},
        &plugin_KNS3
    },
    {
        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
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/knewstuff/knewstuffbutton.sip"
#include <knewstuff2/ui/knewstuffbutton.h>
#line 194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 198 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 201 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kauthaction.sip"
#include <kauthaction.h>
#line 204 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 524 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 207 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 210 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 252 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 213 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qdrag.sip"
#include <qdrag.h>
#line 216 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 222 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 225 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 228 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 505 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 231 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 474 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 234 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 237 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 696 "/usr/share/sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 240 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 243 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qbuttongroup.sip"
#include <qbuttongroup.h>
#line 249 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 252 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 255 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 258 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 261 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 264 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 267 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 270 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 273 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 276 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 279 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 282 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 285 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 288 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 291 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 294 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 297 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 300 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 303 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 306 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 309 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 647 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 312 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 607 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 315 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 596 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 318 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 739 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 321 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 792 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 324 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 765 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 327 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 781 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 854 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 333 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 403 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 336 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 618 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 339 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 574 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 342 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 561 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 345 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 548 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 348 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 347 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 351 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 354 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 52 "/usr/share/sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 357 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 34 "/usr/share/sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 360 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 363 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 366 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 369 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 372 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 375 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 378 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 384 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 387 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 390 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 393 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 396 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 399 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 402 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 405 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 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*);
    void changeEvent( ::QEvent*);
    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 paintEvent( ::QPaintEvent*);
    void leaveEvent( ::QEvent*);
    void enterEvent( ::QEvent*);
    void focusOutEvent( ::QFocusEvent*);
    void focusInEvent( ::QFocusEvent*);
    void keyReleaseEvent( ::QKeyEvent*);
    void keyPressEvent( ::QKeyEvent*);
    void wheelEvent( ::QWheelEvent*);
    void mouseMoveEvent( ::QMouseEvent*);
    void mouseDoubleClickEvent( ::QMouseEvent*);
    void mouseReleaseEvent( ::QMouseEvent*);
    void mousePressEvent( ::QMouseEvent*);
    int heightForWidth(int) const;
     ::QSize minimumSizeHint() const;
     ::QSize sizeHint() const;
    void setVisible(bool);
    int devType() const;
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);
    bool hitButton(const  ::QPoint&) const;
    void checkStateSet();
    void nextCheckState();
     ::QDrag* dragObject();
    void startDrag();

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()
{
    sipInstanceDestroyed(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::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

    extern void sipVH_knewstuff_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

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

    extern void sipVH_knewstuff_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QFont&);

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

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

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

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

    extern void sipVH_knewstuff_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPalette&);

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

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

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

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

    extern void sipVH_knewstuff_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

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

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

    return sipVH_knewstuff_34(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[6]),sipPySelf,NULL,sipName_inputMethodQuery);

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

    extern  ::QVariant sipVH_knewstuff_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::Qt::InputMethodQuery);

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

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

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

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

    extern void sipVH_knewstuff_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QInputMethodEvent*);

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

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

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

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

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

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

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

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

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

    extern void sipVH_knewstuff_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

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

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

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

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

    extern void sipVH_knewstuff_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

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

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

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

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

    extern void sipVH_knewstuff_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDropEvent*);

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

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

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

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

    extern void sipVH_knewstuff_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragLeaveEvent*);

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

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

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

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

    extern void sipVH_knewstuff_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragMoveEvent*);

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

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

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

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

    extern void sipVH_knewstuff_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragEnterEvent*);

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

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

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

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

    extern void sipVH_knewstuff_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QActionEvent*);

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

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

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

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

    extern void sipVH_knewstuff_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

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

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

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

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

    extern void sipVH_knewstuff_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QContextMenuEvent*);

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

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

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

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

    extern void sipVH_knewstuff_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QCloseEvent*);

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

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

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

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

    extern void sipVH_knewstuff_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

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

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

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

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

    extern void sipVH_knewstuff_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

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

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

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

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

    extern void sipVH_knewstuff_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern void sipVH_knewstuff_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

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

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

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

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

    extern void sipVH_knewstuff_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

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

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

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

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

    extern void sipVH_knewstuff_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

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

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

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

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

    extern void sipVH_knewstuff_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

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

    extern void sipVH_knewstuff_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

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

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

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

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

    extern void sipVH_knewstuff_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_knewstuff_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_knewstuff_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_knewstuff_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern int sipVH_knewstuff_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern  ::QSize sipVH_knewstuff_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::QSize sipVH_knewstuff_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_knewstuff_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

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

    extern int sipVH_knewstuff_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern  ::QPaintEngine* sipVH_knewstuff_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern int sipVH_knewstuff_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern bool sipVH_knewstuff_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPoint&);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern  ::QDrag* sipVH_knewstuff_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

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

    sipVH_knewstuff_0(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 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_KPushButton)
        return static_cast< ::KPushButton *>(sipCpp);

    if (targetType == sipType_QPushButton)
        return static_cast< ::QPushButton *>(sipCpp);

    if (targetType == sipType_QAbstractButton)
        return static_cast< ::QAbstractButton *>(sipCpp);

    if (targetType == sipType_QWidget)
        return static_cast< ::QWidget *>(sipCpp);

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

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

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


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[] = {{3, 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}
};


static pyqt4ClassPluginDef plugin_KNS_Button = {
    & ::KNS::Button::staticMetaObject,
    0,
    signals_KNS_Button
};


sipClassTypeDef sipTypeDef_knewstuff_KNS_Button = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KNS__Button,
        {0},
        &plugin_KNS_Button
    },
    {
        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
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/knewstuff/ktranslatable.sip"
#include <knewstuff2/core/ktranslatable.h>
#line 1720 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1724 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1727 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 68 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1730 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/knewstuff/sipknewstuffpart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1733 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 (sipIsOwnedByPython(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}
};


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


sipClassTypeDef sipTypeDef_knewstuff_KNS_KTranslatable = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__KTranslatable,
        {0},
        &plugin_KNS_KTranslatable
    },
    {
        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
};
