/*
 * 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/knewstuff/engine.sip"
#include <knewstuff2/engine.h>
#line 12 "sipknewstuffpart1.cpp"

#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "sipknewstuffpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipknewstuffpart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "sipknewstuffpart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/knewstuff/entry.sip"
#include <knewstuff2/core/entry.h>
#line 25 "sipknewstuffpart1.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "sipknewstuffpart1.cpp"


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

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

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KNS_Entry,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KNS_Entry,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Engine,sipName_uploadDialogModal);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Engine,sipName_upload);

    return NULL;
}


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

    {
        KNS::Engine *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_Engine,sipName_downloadDialog);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Engine,sipName_uploadDialog);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Engine,sipName_init);

    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(sipSelf->u.cppPtr,0);
    }
}


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

    if (!sipCpp)
    {
        QWidget * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QWidget,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KNS::Engine(a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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 pyqt4Type_knewstuff_KNS_Engine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__Engine,
        {0}
    },
    sipNameNr_Engine,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    7, methods_KNS_Engine,
    0, 0,
    0, 0,
    init_KNS_Engine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Engine,
    release_KNS_Engine,
    cast_KNS_Engine,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/knewstuff/ktranslatable.sip"
#include <knewstuff2/core/ktranslatable.h>
#line 368 "sipknewstuffpart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 372 "sipknewstuffpart1.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 379 "sipknewstuffpart1.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 382 "sipknewstuffpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 385 "sipknewstuffpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 388 "sipknewstuffpart1.cpp"


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_addString);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_representation);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_translated);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_strings);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_languages);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_language);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QMap_0200QString_0200QString,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_isTranslated);

    return NULL;
}


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

    {
        KNS::KTranslatable *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_KTranslatable,sipName_isEmpty);

    return NULL;
}


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

    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 *, const void*);}
static void assign_KNS_KTranslatable(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KNS::KTranslatable *>(sipDst) = *reinterpret_cast<const KNS::KTranslatable *>(sipSrc);
}


extern "C" {static void dealloc_KNS_KTranslatable(sipSimpleWrapper *);}
static void dealloc_KNS_KTranslatable(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KNS_KTranslatable(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KNS_KTranslatable(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KNS_KTranslatable(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KNS::KTranslatable *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KNS::KTranslatable();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const KNS::KTranslatable * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KNS_KTranslatable,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KNS::KTranslatable(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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


pyqt4ClassTypeDef pyqt4Type_knewstuff_KNS_KTranslatable = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__KTranslatable,
        {0}
    },
    sipNameNr_KTranslatable,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    9, methods_KNS_KTranslatable,
    0, 0,
    0, 0,
    init_KNS_KTranslatable,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_KTranslatable,
    release_KNS_KTranslatable,
    cast_KNS_KTranslatable,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KNS_KTranslatable,
    0,
    0,
    0
};
