/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:11:26 2010
 */

#include "sipAPInepomuk.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 12 "sipnepomukpart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 16 "sipnepomukpart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 22 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 25 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 28 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 31 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 34 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 37 "sipnepomukpart7.cpp"


class sipNepomuk_Query_AndTerm : public Nepomuk::Query::AndTerm
{
public:
    sipNepomuk_Query_AndTerm();
    sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm&);
    sipNepomuk_Query_AndTerm(const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&);
    sipNepomuk_Query_AndTerm(const QList<Nepomuk::Query::Term>&);
    ~sipNepomuk_Query_AndTerm();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Query_AndTerm(const sipNepomuk_Query_AndTerm &);
    sipNepomuk_Query_AndTerm &operator = (const sipNepomuk_Query_AndTerm &);
};

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(): Nepomuk::Query::AndTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm& a0): Nepomuk::Query::AndTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const Nepomuk::Query::Term& a0,const Nepomuk::Query::Term& a1,const Nepomuk::Query::Term& a2,const Nepomuk::Query::Term& a3,const Nepomuk::Query::Term& a4,const Nepomuk::Query::Term& a5): Nepomuk::Query::AndTerm(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const QList<Nepomuk::Query::Term>& a0): Nepomuk::Query::AndTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::~sipNepomuk_Query_AndTerm()
{
    sipCommonDtor(sipPySelf);
}


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

    if (targetType == sipType_Nepomuk_Query_AndTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_GroupTerm)->ctd_cast((Nepomuk::Query::GroupTerm *)(Nepomuk::Query::AndTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_AndTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::AndTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_AndTerm(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_AndTerm(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::AndTerm *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::AndTerm *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_AndTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_AndTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::AndTerm[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_AndTerm(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_AndTerm(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::AndTerm(reinterpret_cast<const Nepomuk::Query::AndTerm *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_AndTerm(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_AndTerm(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Query_AndTerm *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_AndTerm(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Nepomuk_Query_AndTerm(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_AndTerm(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_Query_AndTerm *sipCpp = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::AndTerm * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_AndTerm, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;
        const Nepomuk::Query::Term * a1;
        const Nepomuk::Query::Term& a2def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a2 = &a2def;
        const Nepomuk::Query::Term& a3def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a3 = &a3def;
        const Nepomuk::Query::Term& a4def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a4 = &a4def;
        const Nepomuk::Query::Term& a5def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a5 = &a5def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|J9J9J9J9", sipType_Nepomuk_Query_Term, &a0, sipType_Nepomuk_Query_Term, &a1, sipType_Nepomuk_Query_Term, &a2, sipType_Nepomuk_Query_Term, &a3, sipType_Nepomuk_Query_Term, &a4, sipType_Nepomuk_Query_Term, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*a0,*a1,*a2,*a3,*a4,*a5);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QList<Nepomuk::Query::Term> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100Nepomuk_Query_Term,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Term> *>(a0),sipType_QList_0100Nepomuk_Query_Term,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_Query_AndTerm[] = {{11, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_AndTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__AndTerm,
        {0}
    },
    {
        sipNameNr_AndTerm,
        {6, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_AndTerm,
    0,
    init_Nepomuk_Query_AndTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_AndTerm,
    assign_Nepomuk_Query_AndTerm,
    array_Nepomuk_Query_AndTerm,
    copy_Nepomuk_Query_AndTerm,
    release_Nepomuk_Query_AndTerm,
    cast_Nepomuk_Query_AndTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/groupterm.sip"
#include <nepomuk/groupterm.h>
#line 278 "sipnepomukpart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 282 "sipnepomukpart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 285 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 288 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 291 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 294 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 297 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 300 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 303 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 306 "sipnepomukpart7.cpp"


class sipNepomuk_Query_GroupTerm : public Nepomuk::Query::GroupTerm
{
public:
    sipNepomuk_Query_GroupTerm(const Nepomuk::Query::Term&);
    sipNepomuk_Query_GroupTerm(const Nepomuk::Query::GroupTerm&);
    ~sipNepomuk_Query_GroupTerm();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Query_GroupTerm(const sipNepomuk_Query_GroupTerm &);
    sipNepomuk_Query_GroupTerm &operator = (const sipNepomuk_Query_GroupTerm &);
};

sipNepomuk_Query_GroupTerm::sipNepomuk_Query_GroupTerm(const Nepomuk::Query::Term& a0): Nepomuk::Query::GroupTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_GroupTerm::sipNepomuk_Query_GroupTerm(const Nepomuk::Query::GroupTerm& a0): Nepomuk::Query::GroupTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_GroupTerm::~sipNepomuk_Query_GroupTerm()
{
    sipCommonDtor(sipPySelf);
}


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

    {
        Nepomuk::Query::GroupTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_GroupTerm, &sipCpp))
        {
            QList<Nepomuk::Query::Term> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Term>(sipCpp->subTerms());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Query::Term> * a0;
        int a0State = 0;
        Nepomuk::Query::GroupTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_GroupTerm, &sipCpp, sipType_QList_0100Nepomuk_Query_Term,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubTerms(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Term> *>(a0),sipType_QList_0100Nepomuk_Query_Term,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Term * a0;
        Nepomuk::Query::GroupTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_GroupTerm, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSubTerm(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_GroupTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Term)->ctd_cast((Nepomuk::Query::Term *)(Nepomuk::Query::GroupTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_GroupTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::GroupTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Nepomuk_Query_GroupTerm(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_GroupTerm(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Query_GroupTerm *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_GroupTerm(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Nepomuk_Query_GroupTerm(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_GroupTerm(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_Query_GroupTerm *sipCpp = 0;

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_GroupTerm(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::GroupTerm * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_GroupTerm, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_GroupTerm(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_Query_GroupTerm[] = {{25, 255, 1}};


static PyMethodDef methods_Nepomuk_Query_GroupTerm[] = {
    {SIP_MLNAME_CAST(sipName_addSubTerm), meth_Nepomuk_Query_GroupTerm_addSubTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSubTerms), meth_Nepomuk_Query_GroupTerm_setSubTerms, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTerms), meth_Nepomuk_Query_GroupTerm_subTerms, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_GroupTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__GroupTerm,
        {0}
    },
    {
        sipNameNr_GroupTerm,
        {6, 255, 0},
        3, methods_Nepomuk_Query_GroupTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_GroupTerm,
    0,
    init_Nepomuk_Query_GroupTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_GroupTerm,
    0,
    0,
    0,
    release_Nepomuk_Query_GroupTerm,
    cast_Nepomuk_Query_GroupTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 570 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 573 "sipnepomukpart7.cpp"


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

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Query::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Query::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Nepomuk_Query[] = {
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_Query_qHash, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {4, 255, 0},
        1, methods_Nepomuk_Query,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 41 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 676 "sipnepomukpart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 679 "sipnepomukpart7.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 682 "sipnepomukpart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 685 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 688 "sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 691 "sipnepomukpart7.cpp"


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

    {
        const Soprano::Node * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Soprano_Node, &a0))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(Nepomuk::RDFLiteralToValue(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Variant, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Nepomuk::valueToRDFNode(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Variant, &a0))
        {
            QList<Soprano::Node> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Node>(Nepomuk::valuesToRDFNodes(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Resource, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ErrorCode a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Nepomuk_ErrorCode, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::errorString(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Nepomuk::extractNamespace(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Nepomuk[] = {
    {SIP_MLNAME_CAST(sipName_RDFLiteralToValue), meth_Nepomuk_RDFLiteralToValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Nepomuk_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractNamespace), meth_Nepomuk_extractNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_qHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valueToRDFNode), meth_Nepomuk_valueToRDFNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valuesToRDFNodes), meth_Nepomuk_valuesToRDFNodes, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk[] = {
    {sipName_CommunicationError, Nepomuk::CommunicationError, 5},
    {sipName_InvalidType, Nepomuk::InvalidType, 5},
    {sipName_NoError, Nepomuk::NoError, 5},
    {sipName_UnknownError, Nepomuk::UnknownError, 5},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk,
        {0}
    },
    {
        sipNameNr_Nepomuk,
        {0, 0, 1},
        6, methods_Nepomuk,
        4, enummembers_Nepomuk,
        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
};
