/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:18:25 2009
 */

#include "sipAPIknewstuff.h"


#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 13 "sipknewstuffpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipknewstuffpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "sipknewstuffpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 22 "sipknewstuffpart4.cpp"


extern "C" {static PyObject *meth_KNS_standardAction(PyObject *,PyObject *);}
static PyObject *meth_KNS_standardAction(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS::standardAction(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_DECREF(a2Keep);
            Py_XDECREF(a4Keep);

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

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

    return NULL;
}


static PyMethodDef methods_KNS[] = {
    {SIP_MLNAME_CAST(sipName_standardAction), meth_KNS_standardAction, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_knewstuff_KNS = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KNS,
        {0}
    },
    sipNameNr_KNS,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    1, methods_KNS,
    0, 0,
    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,
    0
},
    0,
    0,
    0,
    0
};
