/*
 * 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/installation.sip"
#include <knewstuff2/core/installation.h>
#line 12 "sipknewstuffpart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipknewstuffpart2.cpp"


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUncompression(*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_Installation,sipName_setUncompression);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCommand(*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_Installation,sipName_setCommand);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUninstallCommand(*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_Installation,sipName_setUninstallCommand);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStandardResourceDir(*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_Installation,sipName_setStandardResourceDir);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTargetDir(*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_Installation,sipName_setTargetDir);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInstallPath(*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_Installation,sipName_setInstallPath);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAbsoluteInstallPath(*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_Installation,sipName_setAbsoluteInstallPath);

    return NULL;
}


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

    {
        KNS::Installation::Scope a0;
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_KNS_Installation_Scope,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setScope(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation::Policy a0;
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_KNS_Installation_Policy,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setChecksumPolicy(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation::Policy a0;
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KNS_Installation,&sipCpp,sipType_KNS_Installation_Policy,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSignaturePolicy(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KNS_Installation,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomName(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Installation,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRemote();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Installation,&sipCpp))
        {
            KNS::Installation::Policy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checksumPolicy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KNS_Installation_Policy);
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Installation,&sipCpp))
        {
            KNS::Installation::Policy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->signaturePolicy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KNS_Installation_Policy);
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Installation,&sipCpp))
        {
            KNS::Installation::Scope sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->scope();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KNS_Installation_Scope);
        }
    }

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

    return NULL;
}


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

    {
        KNS::Installation *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Installation,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->customName();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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

    return sipCpp;
}


static PyMethodDef methods_KNS_Installation[] = {
    {SIP_MLNAME_CAST(sipName_absoluteInstallPath), meth_KNS_Installation_absoluteInstallPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checksumPolicy), meth_KNS_Installation_checksumPolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_command), meth_KNS_Installation_command, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customName), meth_KNS_Installation_customName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installPath), meth_KNS_Installation_installPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRemote), meth_KNS_Installation_isRemote, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scope), meth_KNS_Installation_scope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAbsoluteInstallPath), meth_KNS_Installation_setAbsoluteInstallPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setChecksumPolicy), meth_KNS_Installation_setChecksumPolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCommand), meth_KNS_Installation_setCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomName), meth_KNS_Installation_setCustomName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInstallPath), meth_KNS_Installation_setInstallPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setScope), meth_KNS_Installation_setScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSignaturePolicy), meth_KNS_Installation_setSignaturePolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStandardResourceDir), meth_KNS_Installation_setStandardResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTargetDir), meth_KNS_Installation_setTargetDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUncompression), meth_KNS_Installation_setUncompression, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUninstallCommand), meth_KNS_Installation_setUninstallCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_signaturePolicy), meth_KNS_Installation_signaturePolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardResourceDir), meth_KNS_Installation_standardResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_targetDir), meth_KNS_Installation_targetDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uncompression), meth_KNS_Installation_uncompression, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uninstallCommand), meth_KNS_Installation_uninstallCommand, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KNS_Installation[] = {
    {sipName_CheckAlways, KNS::Installation::CheckAlways, 8},
    {sipName_CheckIfPossible, KNS::Installation::CheckIfPossible, 8},
    {sipName_CheckNever, KNS::Installation::CheckNever, 8},
    {sipName_ScopeSystem, KNS::Installation::ScopeSystem, 9},
    {sipName_ScopeUser, KNS::Installation::ScopeUser, 9},
};


pyqt4ClassTypeDef pyqt4Type_knewstuff_KNS_Installation = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__Installation,
        {0}
    },
    sipNameNr_Installation,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    23, methods_KNS_Installation,
    5, enummembers_KNS_Installation,
    0, 0,
    init_KNS_Installation,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Installation,
    release_KNS_Installation,
    cast_KNS_Installation,
    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/entry.sip"
#include <knewstuff2/core/entry.h>
#line 795 "sipknewstuffpart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 799 "sipknewstuffpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 802 "sipknewstuffpart2.cpp"
#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 805 "sipknewstuffpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 808 "sipknewstuffpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/knewstuff/author.sip"
#include <knewstuff2/core/author.h>
#line 811 "sipknewstuffpart2.cpp"


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

    {
        const KNS::KTranslatable * a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_KTranslatable,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::KTranslatable *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::KTranslatable(sipCpp->name());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCategory(*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_Entry,sipName_setCategory);

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KNS::Author * a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_Author,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAuthor(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::Author *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::Author(sipCpp->author());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLicense(*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_Entry,sipName_setLicense);

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable * a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_KTranslatable,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSummary(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::KTranslatable *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::KTranslatable(sipCpp->summary());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVersion(*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_Entry,sipName_setVersion);

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KNS_Entry,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRelease(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->release();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate * a0;
        int a0State = 0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QDate,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReleaseDate(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            QDate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->releaseDate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable * a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_KTranslatable,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPayload(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::KTranslatable *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::KTranslatable(sipCpp->payload());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KNS::KTranslatable * a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_KTranslatable,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPreview(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::KTranslatable *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KNS::KTranslatable(sipCpp->preview());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInstalledFiles(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnInstalledFiles(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KNS_Entry,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRating(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rating();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KNS_Entry,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDownloads(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->downloads();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setChecksum(*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_Entry,sipName_setChecksum);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSignature(*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_Entry,sipName_setSignature);

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KNS::Entry::Status a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_Entry_Status,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatus(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::Entry::Status sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KNS_Entry_Status);
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry::Source a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KNS_Entry,&sipCpp,sipType_KNS_Entry_Source,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSource(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            KNS::Entry::Source sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->source();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KNS_Entry_Source);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KNS_Entry,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIdNumber(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KNS::Entry *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KNS_Entry,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->idNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KNS_Entry(void *, const void*);}
static void assign_KNS_Entry(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KNS::Entry *>(sipDst) = *reinterpret_cast<const KNS::Entry *>(sipSrc);
}


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


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

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

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

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

    return sipCpp;
}


static PyMethodDef methods_KNS_Entry[] = {
    {SIP_MLNAME_CAST(sipName_author), meth_KNS_Entry_author, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_category), meth_KNS_Entry_category, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checksum), meth_KNS_Entry_checksum, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_downloads), meth_KNS_Entry_downloads, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_idNumber), meth_KNS_Entry_idNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installedFiles), meth_KNS_Entry_installedFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_license), meth_KNS_Entry_license, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KNS_Entry_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_payload), meth_KNS_Entry_payload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preview), meth_KNS_Entry_preview, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rating), meth_KNS_Entry_rating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_release), meth_KNS_Entry_release, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_releaseDate), meth_KNS_Entry_releaseDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAuthor), meth_KNS_Entry_setAuthor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCategory), meth_KNS_Entry_setCategory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setChecksum), meth_KNS_Entry_setChecksum, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDownloads), meth_KNS_Entry_setDownloads, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIdNumber), meth_KNS_Entry_setIdNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInstalledFiles), meth_KNS_Entry_setInstalledFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicense), meth_KNS_Entry_setLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_KNS_Entry_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPayload), meth_KNS_Entry_setPayload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPreview), meth_KNS_Entry_setPreview, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRating), meth_KNS_Entry_setRating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRelease), meth_KNS_Entry_setRelease, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReleaseDate), meth_KNS_Entry_setReleaseDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSignature), meth_KNS_Entry_setSignature, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSource), meth_KNS_Entry_setSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatus), meth_KNS_Entry_setStatus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSummary), meth_KNS_Entry_setSummary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnInstalledFiles), meth_KNS_Entry_setUnInstalledFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVersion), meth_KNS_Entry_setVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_signature), meth_KNS_Entry_signature, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_source), meth_KNS_Entry_source, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_KNS_Entry_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_summary), meth_KNS_Entry_summary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uninstalledFiles), meth_KNS_Entry_uninstalledFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KNS_Entry_version, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KNS_Entry[] = {
    {sipName_Cache, KNS::Entry::Cache, 5},
    {sipName_Deleted, KNS::Entry::Deleted, 6},
    {sipName_Downloadable, KNS::Entry::Downloadable, 6},
    {sipName_Installed, KNS::Entry::Installed, 6},
    {sipName_Invalid, KNS::Entry::Invalid, 6},
    {sipName_Online, KNS::Entry::Online, 5},
    {sipName_Registry, KNS::Entry::Registry, 5},
    {sipName_Updateable, KNS::Entry::Updateable, 6},
};


pyqt4ClassTypeDef pyqt4Type_knewstuff_KNS_Entry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KNS__Entry,
        {0}
    },
    sipNameNr_Entry,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    38, methods_KNS_Entry,
    8, enummembers_KNS_Entry,
    0, 0,
    init_KNS_Entry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KNS_Entry,
    release_KNS_Entry,
    cast_KNS_Entry,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KNS_Entry,
    0,
    0,
    0
};
