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

#include "sipAPIknewstuff.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/author.sip"
#include <knewstuff2/core/author.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"

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


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Author, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*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_Author, sipName_setName, NULL);

    return NULL;
}


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

    {
        KNS::Author *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Author, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEmail(*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_Author, sipName_setEmail, NULL);

    return NULL;
}


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

    {
        KNS::Author *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Author, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setJabber(*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_Author, sipName_setJabber, NULL);

    return NULL;
}


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

    {
        KNS::Author *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Author, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHomepage(*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_Author, sipName_setHomepage, NULL);

    return NULL;
}


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

    {
        KNS::Author *sipCpp;

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

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

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

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const KNS::Author * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KNS_Author[] = {
    {SIP_MLNAME_CAST(sipName_email), meth_KNS_Author_email, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_homepage), meth_KNS_Author_homepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_jabber), meth_KNS_Author_jabber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KNS_Author_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEmail), meth_KNS_Author_setEmail, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHomepage), meth_KNS_Author_setHomepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setJabber), meth_KNS_Author_setJabber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_KNS_Author_setName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_knewstuff_KNS_Author = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__Author,
        {0}
    },
    {
        sipNameNr_Author,
        {0, 255, 0},
        8, methods_KNS_Author,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KNS_Author,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Author,
    assign_KNS_Author,
    array_KNS_Author,
    copy_KNS_Author,
    release_KNS_Author,
    cast_KNS_Author,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/engine.sip"
#include <engine.h>
#line 394 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/entry.sip"
#include <knewstuff2/core/entry.h>
#line 407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"


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

    {
        QWidget * a0 = 0;
        KNS::Engine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:", &sipSelf, sipType_KNS_Engine, &sipCpp, sipType_QWidget, &a0))
        {
            KNS::Entry::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::Entry::List(sipCpp->downloadDialogModal(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KNS::Entry::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::Entry::List(KNS::Engine::download());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KNS::Engine::upload(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        KNS::Engine *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QObject * a0;
        const char * a1;
        PyObject *a1Keep;
        KNS::Engine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8AA", &sipSelf, sipType_KNS_Engine, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->downloadDialog(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KNS_Engine, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->uploadDialog(*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_Engine, sipName_uploadDialog, NULL);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

    {
        QWidget * a0 = 0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KNS_Engine[] = {
    {SIP_MLNAME_CAST(sipName_download), meth_KNS_Engine_download, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_downloadDialog), meth_KNS_Engine_downloadDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_downloadDialogModal), meth_KNS_Engine_downloadDialogModal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_KNS_Engine_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_upload), meth_KNS_Engine_upload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uploadDialog), meth_KNS_Engine_uploadDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uploadDialogModal), meth_KNS_Engine_uploadDialogModal, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_knewstuff_KNS_Engine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__Engine,
        {0}
    },
    {
        sipNameNr_Engine,
        {0, 255, 0},
        7, methods_KNS_Engine,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KNS_Engine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Engine,
    0,
    0,
    0,
    release_KNS_Engine,
    cast_KNS_Engine,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 747 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 750 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 753 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 756 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/knewstuff/sipknewstuffpart5.cpp"


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_standardAction, NULL);

    return NULL;
}


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


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