/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIkio.h"

#line 100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 340 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 57 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmarkGroup, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOpen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->first());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->previous(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->next(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->indexOf(*a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KBookmarkGroup*sipRes;

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

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

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

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->createNewSeparator());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->addBookmark(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const QString* a0;
        int a0State = 0;
        const KUrl* a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9|J1", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_QString,&a2, &a2State))
        {
            KBookmark*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->addBookmark(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        const KBookmark* a1;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0, sipType_KBookmark, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->moveBookmark(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        const KBookmark* a1;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0, sipType_KBookmark, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->moveItem(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark* a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteBookmark(*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_KBookmarkGroup, sipName_deleteBookmark, NULL);

    return NULL;
}


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

    {
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmarkGroup, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isToolbarGroup();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->findToolbar());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmarkGroup, &sipCpp))
        {
            QList<KUrl>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUrl>(sipCpp->groupUrlList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QDomElement* a0;
        bool a1;
        const KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9b", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_QDomElement, &a0, &a1))
        {
            QDomElement*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->nextKnownTag(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    delete reinterpret_cast<KBookmarkGroup *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KBookmarkGroup(void *, SIP_SSIZE_T, const void *);}
static void assign_KBookmarkGroup(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KBookmarkGroup *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KBookmarkGroup *>(sipSrc);
}


extern "C" {static void *array_KBookmarkGroup(SIP_SSIZE_T);}
static void *array_KBookmarkGroup(SIP_SSIZE_T sipNrElem)
{
    return new KBookmarkGroup[sipNrElem];
}


extern "C" {static void *copy_KBookmarkGroup(const void *, SIP_SSIZE_T);}
static void *copy_KBookmarkGroup(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KBookmarkGroup(reinterpret_cast<const KBookmarkGroup *>(sipSrc)[sipSrcIdx]);
}


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


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

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

            return sipCpp;
        }
    }

    {
        const QDomElement* a0;

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

            return sipCpp;
        }
    }

    {
        const KBookmarkGroup* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KBookmarkGroup[] = {
    {SIP_MLNAME_CAST(sipName_addBookmark), meth_KBookmarkGroup_addBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNewFolder), meth_KBookmarkGroup_createNewFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNewSeparator), meth_KBookmarkGroup_createNewSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteBookmark), meth_KBookmarkGroup_deleteBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findToolbar), meth_KBookmarkGroup_findToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_first), meth_KBookmarkGroup_first, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groupUrlList), meth_KBookmarkGroup_groupUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_indexOf), meth_KBookmarkGroup_indexOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOpen), meth_KBookmarkGroup_isOpen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isToolbarGroup), meth_KBookmarkGroup_isToolbarGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveBookmark), meth_KBookmarkGroup_moveBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveItem), meth_KBookmarkGroup_moveItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_KBookmarkGroup_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextKnownTag), meth_KBookmarkGroup_nextKnownTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previous), meth_KBookmarkGroup_previous, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmarkGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmarkGroup,
        {0}
    },
    {
        sipNameNr_KBookmarkGroup,
        {0, 0, 1},
        15, methods_KBookmarkGroup,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KBookmarkGroup,
    0,
    init_type_KBookmarkGroup,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmarkGroup,
    assign_KBookmarkGroup,
    array_KBookmarkGroup,
    copy_KBookmarkGroup,
    release_KBookmarkGroup,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 645 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 211 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 652 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 655 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        QMimeData* a0;
        const KBookmark::List *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KBookmark_List, &sipCpp, sipType_QMimeData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(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_List, sipName_populateMimeData, NULL);

    return NULL;
}


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

    {
        const QMimeData* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QMimeData, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KBookmark::List::canDecode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KBookmark::List::mimeDataTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QMimeData* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QMimeData, &a0))
        {
            KBookmark::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark::List(KBookmark::List::fromMimeData(a0));
            Py_END_ALLOW_THREADS

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

    {
        const QMimeData* a0;
        QDomDocument* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QMimeData, &a0, sipType_QDomDocument, &a1))
        {
            KBookmark::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark::List(KBookmark::List::fromMimeData(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    delete reinterpret_cast<KBookmark::List *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KBookmark_List(SIP_SSIZE_T);}
static void *array_KBookmark_List(SIP_SSIZE_T sipNrElem)
{
    return new KBookmark::List[sipNrElem];
}


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


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


extern "C" {static void *init_type_KBookmark_List(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KBookmark_List(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KBookmark::List *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const KBookmark::List* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KBookmark_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KBookmark::List(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KBookmark_List[] = {
    {SIP_MLNAME_CAST(sipName_canDecode), meth_KBookmark_List_canDecode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromMimeData), meth_KBookmark_List_fromMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeDataTypes), meth_KBookmark_List_mimeDataTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KBookmark_List_populateMimeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmark_List = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmark__List,
        {0}
    },
    {
        sipNameNr_List,
        {13, 255, 0},
        4, methods_KBookmark_List,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KBookmark_List,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmark_List,
    assign_KBookmark_List,
    array_KBookmark_List,
    copy_KBookmark_List,
    release_KBookmark_List,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 919 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 340 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 923 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 926 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 929 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 57 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 932 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 935 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 938 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        const QString* a0;
        int a0State = 0;
        const KUrl* a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9|J1", sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_QString,&a2, &a2State))
        {
            KBookmark*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(KBookmark::standaloneBookmark(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGroup();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeparator();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasParent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFullText(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmark, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_KBookmark, sipName_setUrl, NULL);

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIcon(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showInToolbar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KBookmark, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowInToolbar(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_KBookmark, sipName_setShowInToolbar, NULL);

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmarkGroup(sipCpp->parentGroup());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmarkGroup(sipCpp->toGroup());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positionInParent();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KBookmark::positionInParent(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->internalElement());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::parentAddress(*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(sipParseErr, sipName_KBookmark, sipName_parentAddress, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::previousAddress(*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(sipParseErr, sipName_KBookmark, sipName_previousAddress, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::nextAddress(*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(sipParseErr, sipName_KBookmark, sipName_nextAddress, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::commonParent(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1;
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1b", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QDomNode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomNode(sipCpp->metaData(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->metaDataItem(*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(sipParseErr, sipName_KBookmark, sipName_metaDataItem, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KBookmark::MetaDataOverwriteMode a2 = KBookmark::OverwriteMetaData;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1|E", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KBookmark_MetaDataOverwriteMode, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMetaDataItem(*a0,*a1,a2);
            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(sipParseErr, sipName_KBookmark, sipName_setMetaDataItem, NULL);

    return NULL;
}


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

    {
        QMimeData* a0;
        const KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QMimeData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(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_KBookmark, sipName_populateMimeData, NULL);

    return NULL;
}


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

    {
        const KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDescription(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KBookmark___ne__(PyObject *,PyObject *);}
static PyObject *slot_KBookmark___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KBookmark *sipCpp = reinterpret_cast<KBookmark *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KBookmark));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KBookmark* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KBookmark, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KBookmark::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KBookmark,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KBookmark___eq__(PyObject *,PyObject *);}
static PyObject *slot_KBookmark___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KBookmark *sipCpp = reinterpret_cast<KBookmark *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KBookmark));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KBookmark* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KBookmark, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KBookmark::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KBookmark,sipSelf,sipArg);
}


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

    delete reinterpret_cast<KBookmark *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KBookmark(void *, SIP_SSIZE_T, const void *);}
static void assign_KBookmark(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KBookmark *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KBookmark *>(sipSrc);
}


extern "C" {static void *array_KBookmark(SIP_SSIZE_T);}
static void *array_KBookmark(SIP_SSIZE_T sipNrElem)
{
    return new KBookmark[sipNrElem];
}


extern "C" {static void *copy_KBookmark(const void *, SIP_SSIZE_T);}
static void *copy_KBookmark(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KBookmark(reinterpret_cast<const KBookmark *>(sipSrc)[sipSrcIdx]);
}


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


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

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

            return sipCpp;
        }
    }

    {
        const QDomElement* a0;

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

            return sipCpp;
        }
    }

    {
        const KBookmark* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KBookmark[] = {
    {(void *)slot_KBookmark___ne__, ne_slot},
    {(void *)slot_KBookmark___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KBookmark[] = {
    {SIP_MLNAME_CAST(sipName_address), meth_KBookmark_address, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commonParent), meth_KBookmark_commonParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_KBookmark_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullText), meth_KBookmark_fullText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasParent), meth_KBookmark_hasParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KBookmark_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalElement), meth_KBookmark_internalElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGroup), meth_KBookmark_isGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KBookmark_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeparator), meth_KBookmark_isSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaData), meth_KBookmark_metaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaDataItem), meth_KBookmark_metaDataItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KBookmark_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextAddress), meth_KBookmark_nextAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentAddress), meth_KBookmark_parentAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentGroup), meth_KBookmark_parentGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KBookmark_populateMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionInParent), meth_KBookmark_positionInParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousAddress), meth_KBookmark_previousAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_KBookmark_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFullText), meth_KBookmark_setFullText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIcon), meth_KBookmark_setIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMetaDataItem), meth_KBookmark_setMetaDataItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeType), meth_KBookmark_setMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowInToolbar), meth_KBookmark_setShowInToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KBookmark_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showInToolbar), meth_KBookmark_showInToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standaloneBookmark), meth_KBookmark_standaloneBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KBookmark_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toGroup), meth_KBookmark_toGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateAccessMetadata), meth_KBookmark_updateAccessMetadata, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KBookmark_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KBookmark[] = {
    {sipName_DontOverwriteMetaData, static_cast<int>(KBookmark::DontOverwriteMetaData), 15},
    {sipName_OverwriteMetaData, static_cast<int>(KBookmark::OverwriteMetaData), 15},
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmark = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmark,
        {0}
    },
    {
        sipNameNr_KBookmark,
        {0, 0, 1},
        32, methods_KBookmark,
        2, enummembers_KBookmark,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KBookmark,
    init_type_KBookmark,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmark,
    assign_KBookmark,
    array_KBookmark,
    copy_KBookmark,
    release_KBookmark,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kautomount.sip"
#include <kautomount.h>
#line 2121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2125 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2131 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2134 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2137 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2140 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2143 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2146 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2152 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2155 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2158 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2161 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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


    Py_END_ALLOW_THREADS
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutoUnmount(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAutoUnmount[] = {{141, 0, 1}};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KAutoUnmount[] = {
    {"error()", 0, 0, 0},
    {"finished()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAutoUnmount = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoUnmount,
        {0}
    },
    {
        sipNameNr_KAutoUnmount,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoUnmount,
    0,
    init_type_KAutoUnmount,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KAutoUnmount,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAutoUnmount::staticMetaObject,
    0,
    signals_KAutoUnmount,
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kautomount.sip"
#include <kautomount.h>
#line 2269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2276 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2279 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2285 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2288 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2294 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2297 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2300 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2303 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2306 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2309 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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


    Py_END_ALLOW_THREADS
}


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

    {
        bool a0;
        const QByteArray* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        bool a5 = 1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "bJ1J1J1J1|b", &a0, sipType_QByteArray, &a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutoMount(a0,*a1,*a2,*a3,*a4,a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAutoMount[] = {{141, 0, 1}};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KAutoMount[] = {
    {"error()", 0, 0, 0},
    {"finished()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAutoMount = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoMount,
        {0}
    },
    {
        sipNameNr_KAutoMount,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoMount,
    0,
    init_type_KAutoMount,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KAutoMount,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAutoMount::staticMetaObject,
    0,
    signals_KAutoMount,
};

#line 156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 35 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2429 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2432 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 93 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2435 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2438 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2441 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKArchiveDirectory : public KArchiveDirectory
{
public:
    sipKArchiveDirectory(KArchive*,const QString&,int,int,const QString&,const QString&,const QString&);
    virtual ~sipKArchiveDirectory();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isFile() const;
    bool isDirectory() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKArchiveDirectory(const sipKArchiveDirectory &);
    sipKArchiveDirectory &operator = (const sipKArchiveDirectory &);

    char sipPyMethods[2];
};

sipKArchiveDirectory::sipKArchiveDirectory(KArchive*a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6): KArchiveDirectory(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchiveDirectory::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveDirectory::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchiveDirectory::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveDirectory::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const KArchiveDirectory *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const KArchiveEntry*sipRes;

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

            return sipConvertFromType(const_cast<KArchiveEntry *>(sipRes),sipType_KArchiveEntry,NULL);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveEntry* a0;
        KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_KArchiveEntry, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEntry(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_KArchiveDirectory, sipName_addEntry, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveDirectory_isDirectory(PyObject *, PyObject *);}
static PyObject *meth_KArchiveDirectory_isDirectory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveDirectory, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveDirectory::isDirectory() : sipCpp->isDirectory());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1 = 1;
        const KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->copyTo(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveDirectory *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveDirectory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KArchiveDirectory(sipSimpleWrapper *);}
static void dealloc_KArchiveDirectory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKArchiveDirectory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KArchiveDirectory(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KArchive* a0;
        const QString* a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        const QString* a6;
        int a6State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveDirectory(a0,*a1,a2,a3,*a4,*a5,*a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KArchiveDirectory[] = {
    {SIP_MLNAME_CAST(sipName_addEntry), meth_KArchiveDirectory_addEntry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyTo), meth_KArchiveDirectory_copyTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entries), meth_KArchiveDirectory_entries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entry), meth_KArchiveDirectory_entry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDirectory), meth_KArchiveDirectory_isDirectory, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveDirectory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KArchiveDirectory,
        {0}
    },
    {
        sipNameNr_KArchiveDirectory,
        {0, 0, 1},
        5, methods_KArchiveDirectory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KArchiveDirectory,
    0,
    init_type_KArchiveDirectory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveDirectory,
    0,
    0,
    0,
    release_KArchiveDirectory,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2785 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 35 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2789 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2792 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 2795 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2798 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2801 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKArchiveFile : public KArchiveFile
{
public:
    sipKArchiveFile(KArchive*,const QString&,int,int,const QString&,const QString&,const QString&,qint64,qint64);
    virtual ~sipKArchiveFile();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isDirectory() const;
    bool isFile() const;
    QIODevice* createDevice() const;
    QByteArray data() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKArchiveFile(const sipKArchiveFile &);
    sipKArchiveFile &operator = (const sipKArchiveFile &);

    char sipPyMethods[4];
};

sipKArchiveFile::sipKArchiveFile(KArchive*a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6,qint64 a7,qint64 a8): KArchiveFile(a0,a1,a2,a3,a4,a5,a6,a7,a8), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchiveFile::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveFile::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchiveFile::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveFile::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

QIODevice* sipKArchiveFile::createDevice() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KArchiveFile::createDevice();

    extern QIODevice* sipVH_kio_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_21(sipGILState, 0, sipPySelf, sipMeth);
}

QByteArray sipKArchiveFile::data() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return KArchiveFile::data();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_kio_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveFile, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->position();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveFile, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->size();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KArchiveFile, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSize(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_KArchiveFile, sipName_setSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveFile_data(PyObject *, PyObject *);}
static PyObject *meth_KArchiveFile_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KArchiveFile::data() : sipCpp->data()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveFile_createDevice(PyObject *, PyObject *);}
static PyObject *meth_KArchiveFile_createDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveFile::createDevice() : sipCpp->createDevice());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveFile_isFile(PyObject *, PyObject *);}
static PyObject *meth_KArchiveFile_isFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveFile::isFile() : sipCpp->isFile());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KArchiveFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->copyTo(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveFile *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KArchiveFile(sipSimpleWrapper *);}
static void dealloc_KArchiveFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKArchiveFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KArchiveFile(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KArchive* a0;
        const QString* a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        const QString* a6;
        int a6State = 0;
        qint64 a7;
        qint64 a8;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1nn", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State, &a7, &a8))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveFile(a0,*a1,a2,a3,*a4,*a5,*a6,a7,a8);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KArchiveFile[] = {
    {SIP_MLNAME_CAST(sipName_copyTo), meth_KArchiveFile_copyTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDevice), meth_KArchiveFile_createDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KArchiveFile_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFile), meth_KArchiveFile_isFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_position), meth_KArchiveFile_position, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSize), meth_KArchiveFile_setSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_size), meth_KArchiveFile_size, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KArchiveFile,
        {0}
    },
    {
        sipNameNr_KArchiveFile,
        {0, 0, 1},
        7, methods_KArchiveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KArchiveFile,
    0,
    init_type_KArchiveFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveFile,
    0,
    0,
    0,
    release_KArchiveFile,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 93 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 35 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3237 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3240 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKArchiveEntry : public KArchiveEntry
{
public:
    sipKArchiveEntry(KArchive*,const QString&,int,int,const QString&,const QString&,const QString&);
    virtual ~sipKArchiveEntry();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isDirectory() const;
    bool isFile() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKArchiveEntry(const sipKArchiveEntry &);
    sipKArchiveEntry &operator = (const sipKArchiveEntry &);

    char sipPyMethods[2];
};

sipKArchiveEntry::sipKArchiveEntry(KArchive*a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6): KArchiveEntry(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchiveEntry::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveEntry::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchiveEntry::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveEntry::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const KArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->datetime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->date();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->permissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveEntry_isFile(PyObject *, PyObject *);}
static PyObject *meth_KArchiveEntry_isFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveEntry::isFile() : sipCpp->isFile());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchiveEntry_isDirectory(PyObject *, PyObject *);}
static PyObject *meth_KArchiveEntry_isDirectory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveEntry::isDirectory() : sipCpp->isDirectory());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            KArchive*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->archive();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveEntry *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveEntry *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KArchiveEntry(sipSimpleWrapper *);}
static void dealloc_KArchiveEntry(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKArchiveEntry *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KArchiveEntry(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KArchive* a0;
        const QString* a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        const QString* a6;
        int a6State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveEntry(a0,*a1,a2,a3,*a4,*a5,*a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KArchiveEntry[] = {
    {SIP_MLNAME_CAST(sipName_archive), meth_KArchiveEntry_archive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_date), meth_KArchiveEntry_date, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_datetime), meth_KArchiveEntry_datetime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_group), meth_KArchiveEntry_group, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDirectory), meth_KArchiveEntry_isDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFile), meth_KArchiveEntry_isFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KArchiveEntry_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_permissions), meth_KArchiveEntry_permissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symLinkTarget), meth_KArchiveEntry_symLinkTarget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_user), meth_KArchiveEntry_user, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveEntry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KArchiveEntry,
        {0}
    },
    {
        sipNameNr_KArchiveEntry,
        {0, 0, 1},
        10, methods_KArchiveEntry,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KArchiveEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveEntry,
    0,
    0,
    0,
    release_KArchiveEntry,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kar.sip"
#include <kar.h>
#line 3718 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 3725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 3728 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3731 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKAr : public KAr
{
public:
    sipKAr(const QString&);
    sipKAr(QIODevice*);
    virtual ~sipKAr();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool createDevice(QIODevice::OpenMode);
    KArchiveDirectory* rootDir();
    bool finishWriting(qint64);
    bool writeData(const char*,qint64);
    bool prepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool writeFile(const QString&,const QString&,const QString&,const char*,qint64,mode_t,time_t,time_t,time_t);
    bool writeSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool close();
    bool open(QIODevice::OpenMode);
    bool closeArchive();
    bool openArchive(QIODevice::OpenMode);
    bool doWriteSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doWriteDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doFinishWriting(qint64);
    bool doPrepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAr(const sipKAr &);
    sipKAr &operator = (const sipKAr &);

    char sipPyMethods[16];
};

sipKAr::sipKAr(const QString& a0): KAr(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAr::sipKAr(QIODevice*a0): KAr(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKAr::createDevice(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KAr::createDevice(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KArchiveDirectory* sipKAr::rootDir()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_rootDir);

    if (!sipMeth)
        return KAr::rootDir();

    extern KArchiveDirectory* sipVH_kio_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_76(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAr::finishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_finishWriting);

    if (!sipMeth)
        return KAr::finishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAr::writeData(const char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KAr::writeData(a0,a1);

    extern bool sipVH_kio_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return sipVH_kio_25(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKAr::prepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_prepareWriting);

    if (!sipMeth)
        return KAr::prepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKAr::writeFile(const QString& a0,const QString& a1,const QString& a2,const char*a3,qint64 a4,mode_t a5,time_t a6,time_t a7,time_t a8)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_writeFile);

    if (!sipMeth)
        return KAr::writeFile(a0,a1,a2,a3,a4,a5,a6,a7,a8);

    extern bool sipVH_kio_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const char*,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_77(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7, a8);
}

bool sipKAr::writeSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_writeSymLink);

    if (!sipMeth)
        return KAr::writeSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKAr::writeDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_writeDir);

    if (!sipMeth)
        return KAr::writeDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6);
}

bool sipKAr::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
        return KAr::close();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAr::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KAr::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAr::closeArchive()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_closeArchive);

    if (!sipMeth)
        return KAr::closeArchive();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAr::openArchive(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_openArchive);

    if (!sipMeth)
        return KAr::openArchive(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAr::doWriteSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doWriteSymLink);

    if (!sipMeth)
        return KAr::doWriteSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKAr::doWriteDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_doWriteDir);

    if (!sipMeth)
        return KAr::doWriteDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6);
}

bool sipKAr::doFinishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_doFinishWriting);

    if (!sipMeth)
        return KAr::doFinishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAr::doPrepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_doPrepareWriting);

    if (!sipMeth)
        return KAr::doPrepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}


extern "C" {static PyObject *meth_KAr_doPrepareWriting(PyObject *, PyObject *);}
static PyObject *meth_KAr_doPrepareWriting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1nulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::doPrepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7) : sipCpp->doPrepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KAr_doFinishWriting(PyObject *, PyObject *);}
static PyObject *meth_KAr_doFinishWriting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_KAr, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::doFinishWriting(a0) : sipCpp->doFinishWriting(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KAr_doWriteDir(PyObject *, PyObject *);}
static PyObject *meth_KAr_doWriteDir(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        mode_t a3;
        time_t a4;
        time_t a5;
        time_t a6;
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1ulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::doWriteDir(*a0,*a1,*a2,a3,a4,a5,a6) : sipCpp->doWriteDir(*a0,*a1,*a2,a3,a4,a5,a6));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KAr_doWriteSymLink(PyObject *, PyObject *);}
static PyObject *meth_KAr_doWriteSymLink(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1J1ulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::doWriteSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7) : sipCpp->doWriteSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KAr_openArchive(PyObject *, PyObject *);}
static PyObject *meth_KAr_openArchive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KAr, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::openArchive(*a0) : sipCpp->openArchive(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KAr_closeArchive(PyObject *, PyObject *);}
static PyObject *meth_KAr_closeArchive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KAr, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAr::closeArchive() : sipCpp->closeArchive());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAr *>(sipCppV);
    else
        delete reinterpret_cast<KAr *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAr(sipSimpleWrapper *);}
static void dealloc_KAr(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAr *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAr(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAr(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAr(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KAr[] = {
    {SIP_MLNAME_CAST(sipName_closeArchive), meth_KAr_closeArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doFinishWriting), meth_KAr_doFinishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doPrepareWriting), meth_KAr_doPrepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteDir), meth_KAr_doWriteDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteSymLink), meth_KAr_doWriteSymLink, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openArchive), meth_KAr_openArchive, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAr = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAr,
        {0}
    },
    {
        sipNameNr_KAr,
        {0, 0, 1},
        6, methods_KAr,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAr,
    0,
    init_type_KAr,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAr,
    0,
    0,
    0,
    release_KAr,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 4382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 4389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 4392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 4395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKArchive : public KArchive
{
public:
    sipKArchive(const QString&);
    sipKArchive(QIODevice*);
    virtual ~sipKArchive();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool createDevice(QIODevice::OpenMode);
    bool doFinishWriting(qint64);
    bool doPrepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool doWriteSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doWriteDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    KArchiveDirectory* rootDir();
    bool closeArchive();
    bool openArchive(QIODevice::OpenMode);
    bool finishWriting(qint64);
    bool writeData(const char*,qint64);
    bool prepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool writeFile(const QString&,const QString&,const QString&,const char*,qint64,mode_t,time_t,time_t,time_t);
    bool writeSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool close();
    bool open(QIODevice::OpenMode);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKArchive(const sipKArchive &);
    sipKArchive &operator = (const sipKArchive &);

    char sipPyMethods[16];
};

sipKArchive::sipKArchive(const QString& a0): KArchive(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKArchive::sipKArchive(QIODevice*a0): KArchive(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchive::createDevice(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KArchive::createDevice(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKArchive::doFinishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_KArchive,sipName_doFinishWriting);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKArchive::doPrepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KArchive,sipName_doPrepareWriting);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKArchive::doWriteSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_KArchive,sipName_doWriteSymLink);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKArchive::doWriteDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_KArchive,sipName_doWriteDir);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6);
}

KArchiveDirectory* sipKArchive::rootDir()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_rootDir);

    if (!sipMeth)
        return KArchive::rootDir();

    extern KArchiveDirectory* sipVH_kio_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_76(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchive::closeArchive()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_KArchive,sipName_closeArchive);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchive::openArchive(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KArchive,sipName_openArchive);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKArchive::finishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_finishWriting);

    if (!sipMeth)
        return KArchive::finishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKArchive::writeData(const char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KArchive::writeData(a0,a1);

    extern bool sipVH_kio_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return sipVH_kio_25(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKArchive::prepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_prepareWriting);

    if (!sipMeth)
        return KArchive::prepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKArchive::writeFile(const QString& a0,const QString& a1,const QString& a2,const char*a3,qint64 a4,mode_t a5,time_t a6,time_t a7,time_t a8)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_writeFile);

    if (!sipMeth)
        return KArchive::writeFile(a0,a1,a2,a3,a4,a5,a6,a7,a8);

    extern bool sipVH_kio_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const char*,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_77(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7, a8);
}

bool sipKArchive::writeSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeSymLink);

    if (!sipMeth)
        return KArchive::writeSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7);
}

bool sipKArchive::writeDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeDir);

    if (!sipMeth)
        return KArchive::writeDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6);
}

bool sipKArchive::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
        return KArchive::close();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKArchive::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KArchive::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KArchive_open(PyObject *, PyObject *);}
static PyObject *meth_KArchive_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_close(PyObject *, PyObject *);}
static PyObject *meth_KArchive_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOpen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            QIODevice::OpenMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIODevice::OpenMode(sipCpp->mode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->device();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KArchive *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            const KArchiveDirectory*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->directory();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KArchiveDirectory *>(sipRes),sipType_KArchiveDirectory,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_writeDir(PyObject *, PyObject *);}
static PyObject *meth_KArchive_writeDir(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        mode_t a3 = 16877;
        time_t a4 = KArchive::UnknownTime;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeDir(*a0,*a1,*a2,a3,a4,a5,a6) : sipCpp->writeDir(*a0,*a1,*a2,a3,a4,a5,a6));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_writeSymLink(PyObject *, PyObject *);}
static PyObject *meth_KArchive_writeSymLink(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        mode_t a4 = 41453;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7) : sipCpp->writeSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_writeFile(PyObject *, PyObject *);}
static PyObject *meth_KArchive_writeFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const char* a3;
        PyObject *a3Keep;
        qint64 a4;
        mode_t a5 = 33188;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        time_t a8 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1AAn|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3Keep, &a3, &a4, &a5, &a6, &a7, &a8))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeFile(*a0,*a1,*a2,a3,a4,a5,a6,a7,a8) : sipCpp->writeFile(*a0,*a1,*a2,a3,a4,a5,a6,a7,a8));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            Py_DECREF(a3Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_prepareWriting(PyObject *, PyObject *);}
static PyObject *meth_KArchive_prepareWriting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4 = 33188;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1n|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::prepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7) : sipCpp->prepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_writeData(PyObject *, PyObject *);}
static PyObject *meth_KArchive_writeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char* a0;
        PyObject *a0Keep;
        qint64 a1;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAn", &sipSelf, sipType_KArchive, &sipCpp, &a0Keep, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeData(a0,a1) : sipCpp->writeData(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_finishWriting(PyObject *, PyObject *);}
static PyObject *meth_KArchive_finishWriting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KArchive, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::finishWriting(a0) : sipCpp->finishWriting(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_openArchive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->openArchive(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KArchive, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_closeArchive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->closeArchive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_rootDir(PyObject *, PyObject *);}
static PyObject *meth_KArchive_rootDir(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KArchive, &sipCpp))
        {
            KArchiveDirectory*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::rootDir() : sipCpp->rootDir());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        mode_t a3;
        time_t a4;
        time_t a5;
        time_t a6;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doWriteDir);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doWriteDir(*a0,*a1,*a2,a3,a4,a5,a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1J1ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doWriteSymLink);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doWriteSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1J1nulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doPrepareWriting);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doPrepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_KArchive, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doFinishWriting);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doFinishWriting(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KArchiveDirectory*sipRes;

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KArchive_createDevice(PyObject *, PyObject *);}
static PyObject *meth_KArchive_createDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::createDevice(*a0) : sipCpp->createDevice(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice* a0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KArchive, &sipCpp, sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDevice(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_KArchive, sipName_setDevice, NULL);

    return NULL;
}


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

    {
        KArchiveDirectory* a0;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KArchive, &sipCpp, sipType_KArchiveDirectory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRootDir(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_KArchive, sipName_setRootDir, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchive *>(sipCppV);
    else
        delete reinterpret_cast<KArchive *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KArchive(sipSimpleWrapper *);}
static void dealloc_KArchive(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKArchive *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KArchive(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchive(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchive(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KArchive[] = {
    {SIP_MLNAME_CAST(sipName_addLocalDirectory), meth_KArchive_addLocalDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLocalFile), meth_KArchive_addLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KArchive_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeArchive), meth_KArchive_closeArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDevice), meth_KArchive_createDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_device), meth_KArchive_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_directory), meth_KArchive_directory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doFinishWriting), meth_KArchive_doFinishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doPrepareWriting), meth_KArchive_doPrepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteDir), meth_KArchive_doWriteDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteSymLink), meth_KArchive_doWriteSymLink, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KArchive_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findOrCreate), meth_KArchive_findOrCreate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishWriting), meth_KArchive_finishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOpen), meth_KArchive_isOpen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KArchive_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KArchive_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openArchive), meth_KArchive_openArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prepareWriting), meth_KArchive_prepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rootDir), meth_KArchive_rootDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_KArchive_setDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRootDir), meth_KArchive_setRootDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KArchive_writeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeDir), meth_KArchive_writeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeFile), meth_KArchive_writeFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeSymLink), meth_KArchive_writeSymLink, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KArchive[] = {
    {sipName_UnknownTime, static_cast<int>(KArchive::UnknownTime), -1},
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchive = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KArchive,
        {0}
    },
    {
        sipNameNr_KArchive,
        {0, 0, 1},
        26, methods_KArchive,
        1, enummembers_KArchive,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KArchive,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchive,
    0,
    0,
    0,
    release_KArchive,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kacl.sip"
#include <qlist.h>
#line 5738 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"



extern "C" {static void assign_ACLUserPermissionsList(void *, SIP_SSIZE_T, const void *);}
static void assign_ACLUserPermissionsList(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<ACLUserPermissionsList *>(sipDst)[sipDstIdx] = *reinterpret_cast<const ACLUserPermissionsList *>(sipSrc);
}


extern "C" {static void *array_ACLUserPermissionsList(SIP_SSIZE_T);}
static void *array_ACLUserPermissionsList(SIP_SSIZE_T sipNrElem)
{
    return new ACLUserPermissionsList[sipNrElem];
}


extern "C" {static void *copy_ACLUserPermissionsList(const void *, SIP_SSIZE_T);}
static void *copy_ACLUserPermissionsList(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new ACLUserPermissionsList(reinterpret_cast<const ACLUserPermissionsList *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_ACLUserPermissionsList(void *, int);}
static void release_ACLUserPermissionsList(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<ACLUserPermissionsList *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_ACLUserPermissionsList(PyObject *, void **, int *, PyObject *);}
static int convertTo_ACLUserPermissionsList(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    ACLUserPermissionsList **sipCppPtr = reinterpret_cast<ACLUserPermissionsList **>(sipCppPtrV);

#line 137 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kacl.sip"
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QList<QPair<QString, unsigned short> > *cpplist = new QList<QPair<QString, unsigned short> >;

    QString p1;
    int iserr = 0;

    for (int i = 0; i < PyList_Size (sipPy); i++)
    {
        PyObject *elem = PyList_GET_ITEM (sipPy, i);
        PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0);
        p1 = *(QString *)sipForceConvertToType(pyp1, sipType_QString, NULL, 0, NULL, &iserr);
        if (iserr)
        {
            *sipIsErr = 1;
            delete cpplist;
            return 0;
        }
#if PY_MAJOR_VERSION >= 3
        ushort p2 = (ushort)(PyLong_AsLong (PyTuple_GET_ITEM (elem, 1)));
#else
        ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1)));
#endif
        cpplist->append (QPair<QString, unsigned short> (p1, p2));
    }

    *sipCppPtr = cpplist;

    return 1;
#line 5810 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
}


extern "C" {static PyObject *convertFrom_ACLUserPermissionsList(void *, PyObject *);}
static PyObject *convertFrom_ACLUserPermissionsList(void *sipCppV, PyObject *)
{
   ACLUserPermissionsList *sipCpp = reinterpret_cast<ACLUserPermissionsList *>(sipCppV);

#line 104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kacl.sip"
    if (!sipCpp)
        return PyList_New(0);

    // Create the list
    PyObject *pylist;
    if ((pylist = PyList_New(0)) == NULL)
        return NULL;

    QList<QPair<QString, unsigned short> > *cpplist = (QList<QPair<QString, unsigned short> > *)sipCpp;
    PyObject *inst = NULL;

    // Get it.
    QList<QPair<QString, unsigned short> >::Iterator it;
    for( it = cpplist->begin(); it != cpplist->end(); ++it )
    {
        QString s = (*it).first;
        ushort  u = (*it).second;
        PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipType_QString);
        if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL)
            || PyList_Append (pylist, inst) < 0)
        {
            Py_XDECREF (inst);
            Py_XDECREF (pys);
            Py_DECREF (pylist);
            return NULL;
        }
    }

    return pylist;
#line 5849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
}


sipMappedTypeDef sipTypeDef_kio_ACLUserPermissionsList = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_ACLUserPermissionsList,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_ACLUserPermissionsList,
    array_ACLUserPermissionsList,
    copy_ACLUserPermissionsList,
    release_ACLUserPermissionsList,
    convertTo_ACLUserPermissionsList,
    convertFrom_ACLUserPermissionsList
};

#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kacl.sip"
#include <kacl.h>
#line 5880 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5884 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kacl.sip"
#include <qlist.h>
#line 5887 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ownerPermissions();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KACL, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOwnerPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->owningGroupPermissions();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KACL, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOwningGroupPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->othersPermissions();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KACL, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOthersPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->basePermissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExtended();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maskPermissions(a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(tb)",sipRes,a0);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KACL, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setMaskPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1;
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State))
        {
            unsigned short sipRes;

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

            return sipBuildResult(0,"(tb)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        unsigned short a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ACLUserPermissionsList(sipCpp->allUserPermissions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const ACLUserPermissionsList* a0;
        int a0State = 0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setAllUserPermissions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<ACLUserPermissionsList *>(a0),sipType_ACLUserPermissionsList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1;
        const KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State))
        {
            unsigned short sipRes;

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

            return sipBuildResult(0,"(tb)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        unsigned short a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ACLGroupPermissionsList(sipCpp->allGroupPermissions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const ACLGroupPermissionsList* a0;
        int a0State = 0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setAllGroupPermissions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<ACLGroupPermissionsList *>(a0),sipType_ACLUserPermissionsList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KACL *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KACL *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KACL___ne__(PyObject *,PyObject *);}
static PyObject *slot_KACL___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KACL *sipCpp = reinterpret_cast<KACL *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KACL));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KACL* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KACL, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KACL::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KACL,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KACL___eq__(PyObject *,PyObject *);}
static PyObject *slot_KACL___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KACL *sipCpp = reinterpret_cast<KACL *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KACL));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KACL* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KACL, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KACL::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KACL,sipSelf,sipArg);
}


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

    delete reinterpret_cast<KACL *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KACL(void *, SIP_SSIZE_T, const void *);}
static void assign_KACL(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KACL *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KACL *>(sipSrc);
}


extern "C" {static void *array_KACL(SIP_SSIZE_T);}
static void *array_KACL(SIP_SSIZE_T sipNrElem)
{
    return new KACL[sipNrElem];
}


extern "C" {static void *copy_KACL(const void *, SIP_SSIZE_T);}
static void *copy_KACL(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KACL(reinterpret_cast<const KACL *>(sipSrc)[sipSrcIdx]);
}


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


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KACL(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const KACL* a0;

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

            return sipCpp;
        }
    }

    {
        mode_t a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "u", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KACL(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KACL[] = {
    {(void *)slot_KACL___ne__, ne_slot},
    {(void *)slot_KACL___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KACL[] = {
    {SIP_MLNAME_CAST(sipName_allGroupPermissions), meth_KACL_allGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allUserPermissions), meth_KACL_allUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_asString), meth_KACL_asString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_basePermissions), meth_KACL_basePermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExtended), meth_KACL_isExtended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KACL_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maskPermissions), meth_KACL_maskPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namedGroupPermissions), meth_KACL_namedGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namedUserPermissions), meth_KACL_namedUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_othersPermissions), meth_KACL_othersPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerPermissions), meth_KACL_ownerPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_owningGroupPermissions), meth_KACL_owningGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setACL), meth_KACL_setACL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllGroupPermissions), meth_KACL_setAllGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllUserPermissions), meth_KACL_setAllUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaskPermissions), meth_KACL_setMaskPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedGroupPermissions), meth_KACL_setNamedGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedUserPermissions), meth_KACL_setNamedUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOthersPermissions), meth_KACL_setOthersPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOwnerPermissions), meth_KACL_setOwnerPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOwningGroupPermissions), meth_KACL_setOwningGroupPermissions, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KACL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KACL,
        {0}
    },
    {
        sipNameNr_KACL,
        {0, 0, 1},
        21, methods_KACL,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KACL,
    init_type_KACL,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KACL,
    assign_KACL,
    array_KACL,
    copy_KACL,
    release_KACL,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kabstractfilewidget.sip"
#include <kabstractfilewidget.h>
#line 6759 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 6763 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6766 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 6769 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kfilefiltercombo.sip"
#include <kfilefiltercombo.h>
#line 6772 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kurlcombobox.sip"
#include <kurlcombobox.h>
#line 6775 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 6778 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 6781 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kfile.sip"
#include <kfile.h>
#line 6784 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kpreviewwidgetbase.sip"
#include <kpreviewwidgetbase.h>
#line 6787 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6790 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6793 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 6796 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6799 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6802 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileWidget : public KAbstractFileWidget
{
public:
    sipKAbstractFileWidget();
    sipKAbstractFileWidget(const KAbstractFileWidget&);
    virtual ~sipKAbstractFileWidget();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void virtual_hook(int,void*);
    void slotCancel();
    void accept();
    void slotOk();
    void setCustomWidget(const QString&,QWidget*);
    void setCustomWidget(QWidget*);
    KActionCollection* actionCollection() const;
    KFileFilterCombo* filterWidget() const;
    KUrlComboBox* locationEdit() const;
    KPushButton* cancelButton() const;
    KPushButton* okButton() const;
    KToolBar* toolBar() const;
    void setLocationLabel(const QString&);
    KFile::Modes mode() const;
    void setMode(KFile::Modes);
    void setPreviewWidget(KPreviewWidgetBase*);
    void clearFilter();
    QString currentMimeFilter() const;
    void setMimeFilter(const QStringList&,const QString&);
    KMimeType::Ptr currentFilterMimeType();
    QString currentFilter() const;
    void setFilter(const QString&);
    bool keepsLocation() const;
    void setKeepLocation(bool);
    KAbstractFileWidget::OperationMode operationMode() const;
    void setOperationMode(KAbstractFileWidget::OperationMode);
    void setSelection(const QString&);
    void setUrl(const KUrl&,bool);
    QStringList selectedFiles() const;
    QString selectedFile() const;
    KUrl baseUrl() const;
    KUrl::List selectedUrls() const;
    KUrl selectedUrl() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAbstractFileWidget(const sipKAbstractFileWidget &);
    sipKAbstractFileWidget &operator = (const sipKAbstractFileWidget &);

    char sipPyMethods[33];
};

sipKAbstractFileWidget::sipKAbstractFileWidget(): KAbstractFileWidget(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAbstractFileWidget::sipKAbstractFileWidget(const KAbstractFileWidget& a0): KAbstractFileWidget(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKAbstractFileWidget::virtual_hook(int a0,void*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KAbstractFileWidget,sipName_virtual_hook);

    if (!sipMeth)
        return;

    extern void sipVH_kio_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,void*);

    sipVH_kio_78(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKAbstractFileWidget::slotCancel()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_KAbstractFileWidget,sipName_slotCancel);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KAbstractFileWidget,sipName_accept);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::slotOk()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_KAbstractFileWidget,sipName_slotOk);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setCustomWidget(const QString& a0,QWidget*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_KAbstractFileWidget,sipName_setCustomWidget);

    if (!sipMeth)
        return;

    extern void sipVH_kio_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,QWidget*);

    sipVH_kio_39(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKAbstractFileWidget::setCustomWidget(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_KAbstractFileWidget,sipName_setCustomWidget);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_kio_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KActionCollection* sipKAbstractFileWidget::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_KAbstractFileWidget,sipName_actionCollection);

    if (!sipMeth)
        return 0;

    typedef KActionCollection* (*sipVH_kdeui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_20)(sipModuleAPI_kio_kdeui->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth);
}

KFileFilterCombo* sipKAbstractFileWidget::filterWidget() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_KAbstractFileWidget,sipName_filterWidget);

    if (!sipMeth)
        return 0;

    extern KFileFilterCombo* sipVH_kio_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_79(sipGILState, 0, sipPySelf, sipMeth);
}

KUrlComboBox* sipKAbstractFileWidget::locationEdit() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_KAbstractFileWidget,sipName_locationEdit);

    if (!sipMeth)
        return 0;

    extern KUrlComboBox* sipVH_kio_80(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_80(sipGILState, 0, sipPySelf, sipMeth);
}

KPushButton* sipKAbstractFileWidget::cancelButton() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_KAbstractFileWidget,sipName_cancelButton);

    if (!sipMeth)
        return 0;

    extern KPushButton* sipVH_kio_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_81(sipGILState, 0, sipPySelf, sipMeth);
}

KPushButton* sipKAbstractFileWidget::okButton() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,sipName_KAbstractFileWidget,sipName_okButton);

    if (!sipMeth)
        return 0;

    extern KPushButton* sipVH_kio_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_81(sipGILState, 0, sipPySelf, sipMeth);
}

KToolBar* sipKAbstractFileWidget::toolBar() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,sipName_KAbstractFileWidget,sipName_toolBar);

    if (!sipMeth)
        return 0;

    extern KToolBar* sipVH_kio_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_82(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setLocationLabel(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_KAbstractFileWidget,sipName_setLocationLabel);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KFile::Modes sipKAbstractFileWidget::mode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,sipName_KAbstractFileWidget,sipName_mode);

    if (!sipMeth)
        return KFile::Modes();

    extern KFile::Modes sipVH_kio_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_40(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setMode(KFile::Modes a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_KAbstractFileWidget,sipName_setMode);

    if (!sipMeth)
        return;

    extern void sipVH_kio_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KFile::Modes);

    sipVH_kio_41(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileWidget::setPreviewWidget(KPreviewWidgetBase*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_KAbstractFileWidget,sipName_setPreviewWidget);

    if (!sipMeth)
        return;

    extern void sipVH_kio_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KPreviewWidgetBase*);

    sipVH_kio_42(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileWidget::clearFilter()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_KAbstractFileWidget,sipName_clearFilter);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKAbstractFileWidget::currentMimeFilter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,sipName_KAbstractFileWidget,sipName_currentMimeFilter);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setMimeFilter(const QStringList& a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,sipName_KAbstractFileWidget,sipName_setMimeFilter);

    if (!sipMeth)
        return;

    extern void sipVH_kio_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QStringList&,const QString&);

    sipVH_kio_43(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

KMimeType::Ptr sipKAbstractFileWidget::currentFilterMimeType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,sipName_KAbstractFileWidget,sipName_currentFilterMimeType);

    if (!sipMeth)
        return KMimeType::Ptr();

    extern KSharedPtr<KMimeType> sipVH_kio_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_44(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKAbstractFileWidget::currentFilter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,sipName_KAbstractFileWidget,sipName_currentFilter);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setFilter(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,sipName_KAbstractFileWidget,sipName_setFilter);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAbstractFileWidget::keepsLocation() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,sipName_KAbstractFileWidget,sipName_keepsLocation);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setKeepLocation(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,sipName_KAbstractFileWidget,sipName_setKeepLocation);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_kio_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KAbstractFileWidget::OperationMode sipKAbstractFileWidget::operationMode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,sipName_KAbstractFileWidget,sipName_operationMode);

    if (!sipMeth)
        return (KAbstractFileWidget::OperationMode)0;

    extern KAbstractFileWidget::OperationMode sipVH_kio_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_45(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAbstractFileWidget::setOperationMode(KAbstractFileWidget::OperationMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,sipName_KAbstractFileWidget,sipName_setOperationMode);

    if (!sipMeth)
        return;

    extern void sipVH_kio_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KAbstractFileWidget::OperationMode);

    sipVH_kio_46(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileWidget::setSelection(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,sipName_KAbstractFileWidget,sipName_setSelection);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileWidget::setUrl(const KUrl& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,sipName_KAbstractFileWidget,sipName_setUrl);

    if (!sipMeth)
        return;

    extern void sipVH_kio_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&,bool);

    sipVH_kio_6(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QStringList sipKAbstractFileWidget::selectedFiles() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedFiles);

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_kio_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKAbstractFileWidget::selectedFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedFile);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

KUrl sipKAbstractFileWidget::baseUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,sipName_KAbstractFileWidget,sipName_baseUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_47(sipGILState, 0, sipPySelf, sipMeth);
}

KUrl::List sipKAbstractFileWidget::selectedUrls() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedUrls);

    if (!sipMeth)
        return KUrl::List();

    extern KUrl::List sipVH_kio_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_48(sipGILState, 0, sipPySelf, sipMeth);
}

KUrl sipKAbstractFileWidget::selectedUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kio_47(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->selectedUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KUrl::List*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedUrls);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(sipCpp->selectedUrls());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_baseUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->baseUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedFile);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedFiles);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        bool a1 = 1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KUrl, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setSelection);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget::OperationMode a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KAbstractFileWidget_OperationMode, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setOperationMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOperationMode(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_KAbstractFileWidget, sipName_setOperationMode, NULL);

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KAbstractFileWidget::OperationMode sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_operationMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->operationMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAbstractFileWidget_OperationMode);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setKeepLocation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setKeepLocation(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_KAbstractFileWidget, sipName_setKeepLocation, NULL);

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_keepsLocation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->keepsLocation();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setFilter);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentFilter);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KMimeType::Ptr*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentFilterMimeType);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(sipCpp->currentFilterMimeType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QStringList* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QStringList,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setMimeFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeFilter(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,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(sipParseErr, sipName_KAbstractFileWidget, sipName_setMimeFilter, NULL);

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentMimeFilter);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_clearFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearFilter();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPreviewWidgetBase* a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KPreviewWidgetBase, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setPreviewWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPreviewWidget(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_KAbstractFileWidget, sipName_setPreviewWidget, NULL);

    return NULL;
}


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

    {
        KFile::Modes* a0;
        int a0State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KFile_Modes, &a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KFile_Modes,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KFile::Modes*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_mode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KFile::Modes(sipCpp->mode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setLocationLabel);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_toolBar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toolBar();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_okButton);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->okButton();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_cancelButton);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cancelButton();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_locationEdit);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->locationEdit();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_filterWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->filterWidget();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_actionCollection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->actionCollection();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QWidget* a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QWidget, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setCustomWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomWidget(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QWidget* a1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State, sipType_QWidget, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setCustomWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomWidget(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_slotOk);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->slotOk();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_accept);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->accept();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_slotCancel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->slotCancel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        void* a1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biv", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_virtual_hook);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->virtual_hook(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfirmOverwrite(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_KAbstractFileWidget, sipName_setConfirmOverwrite, NULL);

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInlinePreviewShown(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_KAbstractFileWidget, sipName_setInlinePreviewShown, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAbstractFileWidget *>(sipCppV);
    else
        delete reinterpret_cast<KAbstractFileWidget *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAbstractFileWidget(sipSimpleWrapper *);}
static void dealloc_KAbstractFileWidget(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAbstractFileWidget *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAbstractFileWidget(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KAbstractFileWidget* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAbstractFileWidget[] = {
    {SIP_MLNAME_CAST(sipName_accept), meth_KAbstractFileWidget_accept, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionCollection), meth_KAbstractFileWidget_actionCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_KAbstractFileWidget_baseUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cancelButton), meth_KAbstractFileWidget_cancelButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilter), meth_KAbstractFileWidget_clearFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentFilter), meth_KAbstractFileWidget_currentFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentFilterMimeType), meth_KAbstractFileWidget_currentFilterMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentMimeFilter), meth_KAbstractFileWidget_currentMimeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterWidget), meth_KAbstractFileWidget_filterWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keepsLocation), meth_KAbstractFileWidget_keepsLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locationEdit), meth_KAbstractFileWidget_locationEdit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KAbstractFileWidget_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_okButton), meth_KAbstractFileWidget_okButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_operationMode), meth_KAbstractFileWidget_operationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedFile), meth_KAbstractFileWidget_selectedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedFiles), meth_KAbstractFileWidget_selectedFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedUrl), meth_KAbstractFileWidget_selectedUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedUrls), meth_KAbstractFileWidget_selectedUrls, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfirmOverwrite), meth_KAbstractFileWidget_setConfirmOverwrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomWidget), meth_KAbstractFileWidget_setCustomWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFilter), meth_KAbstractFileWidget_setFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInlinePreviewShown), meth_KAbstractFileWidget_setInlinePreviewShown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setKeepLocation), meth_KAbstractFileWidget_setKeepLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocationLabel), meth_KAbstractFileWidget_setLocationLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeFilter), meth_KAbstractFileWidget_setMimeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_KAbstractFileWidget_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOperationMode), meth_KAbstractFileWidget_setOperationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPreviewWidget), meth_KAbstractFileWidget_setPreviewWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelection), meth_KAbstractFileWidget_setSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KAbstractFileWidget_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotCancel), meth_KAbstractFileWidget_slotCancel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotOk), meth_KAbstractFileWidget_slotOk, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toolBar), meth_KAbstractFileWidget_toolBar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_virtual_hook), meth_KAbstractFileWidget_virtual_hook, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAbstractFileWidget[] = {
    {sipName_Opening, static_cast<int>(KAbstractFileWidget::Opening), 5},
    {sipName_Other, static_cast<int>(KAbstractFileWidget::Other), 5},
    {sipName_Saving, static_cast<int>(KAbstractFileWidget::Saving), 5},
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileWidget,
        {0}
    },
    {
        sipNameNr_KAbstractFileWidget,
        {0, 0, 1},
        34, methods_KAbstractFileWidget,
        3, enummembers_KAbstractFileWidget,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KAbstractFileWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileWidget,
    0,
    0,
    0,
    release_KAbstractFileWidget,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kabstractfilemodule.sip"
#include <kabstractfilemodule.h>
#line 8714 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 8718 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8721 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 8724 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8727 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8730 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8733 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8736 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8739 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8742 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8745 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8748 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8751 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 8754 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8757 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8760 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileModule : public KAbstractFileModule
{
public:
    sipKAbstractFileModule(QObject*);
    virtual ~sipKAbstractFileModule();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    KUrl selectDirectory(const KUrl&,bool,QWidget*,const QString&);
    void setStartDir(const KUrl&);
    KUrl getStartUrl(const KUrl&,QString&);
    QWidget* createFileWidget(const KUrl&,QWidget*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAbstractFileModule(const sipKAbstractFileModule &);
    sipKAbstractFileModule &operator = (const sipKAbstractFileModule &);

    char sipPyMethods[11];
};

sipKAbstractFileModule::sipKAbstractFileModule(QObject*a0): KAbstractFileModule(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKAbstractFileModule::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KAbstractFileModule);
}

int sipKAbstractFileModule::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KAbstractFileModule::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KAbstractFileModule,_c,_id,_a);

    return _id;
}

void *sipKAbstractFileModule::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast(sipPySelf, sipType_KAbstractFileModule, _clname)) ? this : KAbstractFileModule::qt_metacast(_clname);
}

void sipKAbstractFileModule::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KAbstractFileModule::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileModule::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KAbstractFileModule::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileModule::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KAbstractFileModule::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileModule::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KAbstractFileModule::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileModule::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KAbstractFileModule::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAbstractFileModule::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KAbstractFileModule::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKAbstractFileModule::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KAbstractFileModule::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KUrl sipKAbstractFileModule::selectDirectory(const KUrl& a0,bool a1,QWidget*a2,const QString& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KAbstractFileModule,sipName_selectDirectory);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&,bool,QWidget*,const QString&);

    return sipVH_kio_83(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

void sipKAbstractFileModule::setStartDir(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_KAbstractFileModule,sipName_setStartDir);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdecore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&);

    ((sipVH_kdecore_47)(sipModuleAPI_kio_kdecore->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KUrl sipKAbstractFileModule::getStartUrl(const KUrl& a0,QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_KAbstractFileModule,sipName_getStartUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&,QString&);

    return sipVH_kio_84(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QWidget* sipKAbstractFileModule::createFileWidget(const KUrl& a0,QWidget*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_KAbstractFileModule,sipName_createFileWidget);

    if (!sipMeth)
        return 0;

    extern QWidget* sipVH_kio_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&,QWidget*);

    return sipVH_kio_85(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


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

    {
        const KUrl* a0;
        QWidget* a1;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J:", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, sipType_QWidget, &a1))
        {
            QWidget*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_createFileWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createFileWidget(*a0,a1);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        QString* a1;
        int a1State = 0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, sipType_QString,&a1, &a1State))
        {
            KUrl*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_getStartUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->getStartUrl(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_setStartDir);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartDir(*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_KAbstractFileModule, sipName_setStartDir, NULL);

    return NULL;
}


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

    {
        const KUrl* a0;
        bool a1;
        QWidget* a2;
        const QString* a3;
        int a3State = 0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bJ:J1", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, &a1, sipType_QWidget, &a2, sipType_QString,&a3, &a3State))
        {
            KUrl*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_selectDirectory);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->selectDirectory(*a0,a1,a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

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

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAbstractFileModule(void *, int);}
static void release_KAbstractFileModule(void *sipCppV,int)
{
    KAbstractFileModule *sipCpp = reinterpret_cast<KAbstractFileModule *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAbstractFileModule(sipSimpleWrapper *);}
static void dealloc_KAbstractFileModule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAbstractFileModule *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAbstractFileModule(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAbstractFileModule(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAbstractFileModule[] = {{141, 0, 1}};


static PyMethodDef methods_KAbstractFileModule[] = {
    {SIP_MLNAME_CAST(sipName_createFileWidget), meth_KAbstractFileModule_createFileWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getStartUrl), meth_KAbstractFileModule_getStartUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectDirectory), meth_KAbstractFileModule_selectDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartDir), meth_KAbstractFileModule_setStartDir, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileModule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileModule,
        {0}
    },
    {
        sipNameNr_KAbstractFileModule,
        {0, 0, 1},
        4, methods_KAbstractFileModule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAbstractFileModule,
    0,
    init_type_KAbstractFileModule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileModule,
    0,
    0,
    0,
    release_KAbstractFileModule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAbstractFileModule::staticMetaObject,
    0,
    0
};

#line 23 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kabstractfileitemactionplugin.sip"
#include <kabstractfileitemactionplugin.h>
#line 9280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 9290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/kfileitemlistproperties.sip"
#include <kfileitemlistproperties.h>
#line 9293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9326 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileItemActionPlugin : public KAbstractFileItemActionPlugin
{
public:
    sipKAbstractFileItemActionPlugin(QObject*);
    virtual ~sipKAbstractFileItemActionPlugin();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QList<QAction*> actions(const KFileItemListProperties&,QWidget*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAbstractFileItemActionPlugin(const sipKAbstractFileItemActionPlugin &);
    sipKAbstractFileItemActionPlugin &operator = (const sipKAbstractFileItemActionPlugin &);

    char sipPyMethods[8];
};

sipKAbstractFileItemActionPlugin::sipKAbstractFileItemActionPlugin(QObject*a0): KAbstractFileItemActionPlugin(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKAbstractFileItemActionPlugin::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KAbstractFileItemActionPlugin);
}

int sipKAbstractFileItemActionPlugin::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KAbstractFileItemActionPlugin::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KAbstractFileItemActionPlugin,_c,_id,_a);

    return _id;
}

void *sipKAbstractFileItemActionPlugin::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast(sipPySelf, sipType_KAbstractFileItemActionPlugin, _clname)) ? this : KAbstractFileItemActionPlugin::qt_metacast(_clname);
}

void sipKAbstractFileItemActionPlugin::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KAbstractFileItemActionPlugin::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileItemActionPlugin::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KAbstractFileItemActionPlugin::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileItemActionPlugin::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KAbstractFileItemActionPlugin::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileItemActionPlugin::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KAbstractFileItemActionPlugin::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAbstractFileItemActionPlugin::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KAbstractFileItemActionPlugin::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAbstractFileItemActionPlugin::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KAbstractFileItemActionPlugin::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKAbstractFileItemActionPlugin::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KAbstractFileItemActionPlugin::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QList<QAction*> sipKAbstractFileItemActionPlugin::actions(const KFileItemListProperties& a0,QWidget*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KAbstractFileItemActionPlugin,sipName_actions);

    if (!sipMeth)
        return QList<QAction*>();

    extern QList<QAction*> sipVH_kio_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KFileItemListProperties&,QWidget*);

    return sipVH_kio_50(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


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

    {
        const KFileItemListProperties* a0;
        QWidget* a1;
        KAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, sipType_KFileItemListProperties, &a0, sipType_QWidget, &a1))
        {
            QList<QAction*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileItemActionPlugin, sipName_actions);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAction*>(sipCpp->actions(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAbstractFileItemActionPlugin(void *, int);}
static void release_KAbstractFileItemActionPlugin(void *sipCppV,int)
{
    KAbstractFileItemActionPlugin *sipCpp = reinterpret_cast<KAbstractFileItemActionPlugin *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAbstractFileItemActionPlugin(sipSimpleWrapper *);}
static void dealloc_KAbstractFileItemActionPlugin(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAbstractFileItemActionPlugin *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAbstractFileItemActionPlugin(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAbstractFileItemActionPlugin(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAbstractFileItemActionPlugin[] = {{141, 0, 1}};


static PyMethodDef methods_KAbstractFileItemActionPlugin[] = {
    {SIP_MLNAME_CAST(sipName_actions), meth_KAbstractFileItemActionPlugin_actions, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileItemActionPlugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileItemActionPlugin,
        {0}
    },
    {
        sipNameNr_KAbstractFileItemActionPlugin,
        {0, 0, 1},
        1, methods_KAbstractFileItemActionPlugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAbstractFileItemActionPlugin,
    0,
    init_type_KAbstractFileItemActionPlugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileItemActionPlugin,
    0,
    0,
    0,
    release_KAbstractFileItemActionPlugin,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAbstractFileItemActionPlugin::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 9689 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 9693 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9696 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9699 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9702 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9705 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9708 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9711 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9714 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9717 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9720 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9723 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9726 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9729 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9732 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9735 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9738 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKIO_JobUiDelegate : public KIO::JobUiDelegate
{
public:
    sipKIO_JobUiDelegate();
    virtual ~sipKIO_JobUiDelegate();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void slotWarning(KJob*,const QString&,const QString&);
    void showErrorMessage();
    KIO::SkipDialog_Result askSkip(KJob*,bool,const QString&);
    KIO::RenameDialog_Result askFileRename(KJob*,const QString&,const QString&,const QString&,KIO::RenameDialog_Mode,QString&,KIO::filesize_t,KIO::filesize_t,time_t,time_t,time_t,time_t);
    void setWindow(QWidget*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKIO_JobUiDelegate(const sipKIO_JobUiDelegate &);
    sipKIO_JobUiDelegate &operator = (const sipKIO_JobUiDelegate &);

    char sipPyMethods[12];
};

sipKIO_JobUiDelegate::sipKIO_JobUiDelegate(): KIO::JobUiDelegate(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKIO_JobUiDelegate::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KIO_JobUiDelegate);
}

int sipKIO_JobUiDelegate::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KIO::JobUiDelegate::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KIO_JobUiDelegate,_c,_id,_a);

    return _id;
}

void *sipKIO_JobUiDelegate::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast(sipPySelf, sipType_KIO_JobUiDelegate, _clname)) ? this : KIO::JobUiDelegate::qt_metacast(_clname);
}

void sipKIO_JobUiDelegate::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_JobUiDelegate::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_JobUiDelegate::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_JobUiDelegate::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_JobUiDelegate::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKIO_JobUiDelegate::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KIO::JobUiDelegate::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKIO_JobUiDelegate::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KIO::JobUiDelegate::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_JobUiDelegate::slotWarning(KJob*a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotWarning);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::slotWarning(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_kio_kdecore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKIO_JobUiDelegate::showErrorMessage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_showErrorMessage);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::showErrorMessage();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

KIO::SkipDialog_Result sipKIO_JobUiDelegate::askSkip(KJob*a0,bool a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_askSkip);

    if (!sipMeth)
        return KIO::JobUiDelegate::askSkip(a0,a1,a2);

    extern KIO::SkipDialog_Result sipVH_kio_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,bool,const QString&);

    return sipVH_kio_86(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

KIO::RenameDialog_Result sipKIO_JobUiDelegate::askFileRename(KJob*a0,const QString& a1,const QString& a2,const QString& a3,KIO::RenameDialog_Mode a4,QString& a5,KIO::filesize_t a6,KIO::filesize_t a7,time_t a8,time_t a9,time_t a10,time_t a11)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_askFileRename);

    if (!sipMeth)
        return KIO::JobUiDelegate::askFileRename(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11);

    extern KIO::RenameDialog_Result sipVH_kio_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,const QString&,const QString&,const QString&,KIO::RenameDialog_Mode,QString&,unsigned PY_LONG_LONG,unsigned PY_LONG_LONG,long,long,long,long);

    return sipVH_kio_87(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
}

void sipKIO_JobUiDelegate::setWindow(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setWindow);

    if (!sipMeth)
    {
        KIO::JobUiDelegate::setWindow(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_kio_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_setWindow(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_setWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWidget* a0;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::setWindow(a0) : sipCpp->setWindow(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_JobUiDelegate, sipName_setWindow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_askFileRename(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_askFileRename(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        KIO::RenameDialog_Mode a4;
        QString* a5;
        int a5State = 0;
        KIO::filesize_t a6 = -1;
        KIO::filesize_t a7 = -1;
        time_t a8 = -1;
        time_t a9 = -1;
        time_t a10 = -1;
        time_t a11 = -1;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1J1EJ1|oollll", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_KIO_RenameDialog_Mode, &a4, sipType_QString,&a5, &a5State, &a6, &a7, &a8, &a9, &a10, &a11))
        {
            KIO::RenameDialog_Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::askFileRename(a0,*a1,*a2,*a3,a4,*a5,a6,a7,a8,a9,a10,a11) : sipCpp->askFileRename(a0,*a1,*a2,*a3,a4,*a5,a6,a7,a8,a9,a10,a11));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(a5,sipType_QString,a5State);

            return sipConvertFromEnum(sipRes,sipType_KIO_RenameDialog_Result);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_askSkip(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_askSkip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob* a0;
        bool a1;
        const QString* a2;
        int a2State = 0;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8bJ1", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KJob, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            KIO::SkipDialog_Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::askSkip(a0,a1,*a2) : sipCpp->askSkip(a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromEnum(sipRes,sipType_KIO_SkipDialog_Result);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl::List* a0;
        KIO::JobUiDelegate::DeletionType a1;
        KIO::JobUiDelegate::ConfirmationType a2;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EE", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KUrl_List, &a0, sipType_KIO_JobUiDelegate_DeletionType, &a1, sipType_KIO_JobUiDelegate_ConfirmationType, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->askDeleteConfirmation(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_JobUiDelegate(void *, int);}
static void release_KIO_JobUiDelegate(void *sipCppV,int)
{
    KIO::JobUiDelegate *sipCpp = reinterpret_cast<KIO::JobUiDelegate *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_JobUiDelegate(sipSimpleWrapper *);}
static void dealloc_KIO_JobUiDelegate(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKIO_JobUiDelegate *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_JobUiDelegate(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_JobUiDelegate[] = {{94, 7, 1}};


static PyMethodDef methods_KIO_JobUiDelegate[] = {
    {SIP_MLNAME_CAST(sipName_askDeleteConfirmation), meth_KIO_JobUiDelegate_askDeleteConfirmation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askFileRename), meth_KIO_JobUiDelegate_askFileRename, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askSkip), meth_KIO_JobUiDelegate_askSkip, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWindow), meth_KIO_JobUiDelegate_setWindow, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KIO_JobUiDelegate[] = {
    {sipName_DefaultConfirmation, static_cast<int>(KIO::JobUiDelegate::DefaultConfirmation), 131},
    {sipName_Delete, static_cast<int>(KIO::JobUiDelegate::Delete), 132},
    {sipName_EmptyTrash, static_cast<int>(KIO::JobUiDelegate::EmptyTrash), 132},
    {sipName_ForceConfirmation, static_cast<int>(KIO::JobUiDelegate::ForceConfirmation), 131},
    {sipName_Trash, static_cast<int>(KIO::JobUiDelegate::Trash), 132},
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_JobUiDelegate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__JobUiDelegate,
        {0}
    },
    {
        sipNameNr_JobUiDelegate,
        {101, 255, 0},
        4, methods_KIO_JobUiDelegate,
        5, enummembers_KIO_JobUiDelegate,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_JobUiDelegate,
    0,
    init_type_KIO_JobUiDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_JobUiDelegate,
    0,
    0,
    0,
    release_KIO_JobUiDelegate,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::JobUiDelegate::staticMetaObject,
    0,
    0
};

#line 373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 10280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 10284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 10290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 10296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 10299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 10302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 10305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 10311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 10317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 10323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 10326 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 10329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10335 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 10341 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10344 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10350 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10353 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 10356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10362 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


class sipKIO_SpecialJob : public KIO::SpecialJob
{
public:
    sipKIO_SpecialJob(const KUrl&,const QByteArray&);
    virtual ~sipKIO_SpecialJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QString errorString() const;
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    void slotWarning(const QString&);
    void putOnHold();
    bool doKill();
    bool doSuspend();
    void slotMetaData(const KIO::MetaData&);
    void slotMimetype(const QString&);
    void slotDataReq();
    void slotData(const QByteArray&);
    void slotFinished();
    void slotRedirection(const KUrl&);
    bool doResume();
    void slotResult(KJob*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKIO_SpecialJob(const sipKIO_SpecialJob &);
    sipKIO_SpecialJob &operator = (const sipKIO_SpecialJob &);

    char sipPyMethods[24];
};

sipKIO_SpecialJob::sipKIO_SpecialJob(const KUrl& a0,const QByteArray& a1): KIO::SpecialJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKIO_SpecialJob::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KIO_SpecialJob);
}

int sipKIO_SpecialJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KIO::SpecialJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KIO_SpecialJob,_c,_id,_a);

    return _id;
}

void *sipKIO_SpecialJob::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast(sipPySelf, sipType_KIO_SpecialJob, _clname)) ? this : KIO::SpecialJob::qt_metacast(_clname);
}

void sipKIO_SpecialJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KIO::SpecialJob::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KIO::SpecialJob::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KIO::SpecialJob::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KIO::SpecialJob::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KIO::SpecialJob::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKIO_SpecialJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KIO::SpecialJob::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKIO_SpecialJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KIO::SpecialJob::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKIO_SpecialJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return KIO::SpecialJob::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        KIO::SpecialJob::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::slotInfoMessage(KJob*a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_kio_kdecore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKIO_SpecialJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return KIO::SpecialJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_53)(sipModuleAPI_kio_kdecore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKIO_SpecialJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return KIO::SpecialJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_53)(sipModuleAPI_kio_kdecore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::slotWarning(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_slotWarning);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotWarning(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::putOnHold()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_putOnHold);

    if (!sipMeth)
    {
        KIO::SpecialJob::putOnHold();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKIO_SpecialJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return KIO::SpecialJob::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKIO_SpecialJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return KIO::SpecialJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::slotMetaData(const KIO::MetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_slotMetaData);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotMetaData(a0);
        return;
    }

    extern void sipVH_kio_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KIO::MetaData&);

    sipVH_kio_17(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::slotMimetype(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_slotMimetype);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotMimetype(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::slotDataReq()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_slotDataReq);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotDataReq();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::slotData(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_slotData);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotData(a0);
        return;
    }

    typedef void (*sipVH_QtXml_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&);

    ((sipVH_QtXml_29)(sipModuleAPI_kio_QtXml->em_virthandlers[29]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKIO_SpecialJob::slotFinished()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_slotFinished);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotFinished();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::slotRedirection(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_slotRedirection);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotRedirection(a0);
        return;
    }

    typedef void (*sipVH_kdecore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&);

    ((sipVH_kdecore_47)(sipModuleAPI_kio_kdecore->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKIO_SpecialJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return KIO::SpecialJob::doResume();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKIO_SpecialJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        KIO::SpecialJob::slotResult(a0);
        return;
    }

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    ((sipVH_kdecore_27)(sipModuleAPI_kio_kdecore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        KIO::SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setArguments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KIO::SpecialJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->arguments());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_SpecialJob(void *, int);}
static void release_KIO_SpecialJob(void *sipCppV,int)
{
    KIO::SpecialJob *sipCpp = reinterpret_cast<KIO::SpecialJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_SpecialJob(sipSimpleWrapper *);}
static void dealloc_KIO_SpecialJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKIO_SpecialJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_SpecialJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const KUrl* a0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J1", sipType_KUrl, &a0, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKIO_SpecialJob(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KIO_SpecialJob[] = {
    {SIP_MLNAME_CAST(sipName_arguments), meth_KIO_SpecialJob_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setArguments), meth_KIO_SpecialJob_setArguments, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_SpecialJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__SpecialJob,
        {0}
    },
    {
        sipNameNr_SpecialJob,
        {101, 255, 0},
        2, methods_KIO_SpecialJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_SpecialJob,
    0,
    init_type_KIO_SpecialJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_SpecialJob,
    0,
    0,
    0,
    release_KIO_SpecialJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::SpecialJob::staticMetaObject,
    0,
    0
};

#line 339 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11033 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11037 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 11040 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11043 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11046 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11049 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/udsentry.sip"
#include <udsentry.h>
#line 11052 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11055 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 11058 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11061 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11064 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11067 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 11070 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11073 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 11076 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11079 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 11082 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11085 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11088 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11091 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11094 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11097 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11115 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        const KIO::ListJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->redirectionUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KIO_ListJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnrestricted(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_ListJob, sipName_setUnrestricted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_ListJob_slotFinished(PyObject *, PyObject *);}
static PyObject *meth_KIO_ListJob_slotFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KIO_ListJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::ListJob::slotFinished() : sipCpp->slotFinished());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_ListJob_slotMetaData(PyObject *, PyObject *);}
static PyObject *meth_KIO_ListJob_slotMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KIO::MetaData* a0;
        int a0State = 0;
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KIO_ListJob, &sipCpp, sipType_KIO_MetaData,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::ListJob::slotMetaData(*a0) : sipCpp->slotMetaData(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::MetaData *>(a0),sipType_KIO_MetaData,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_ListJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_KIO_ListJob_slotResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob* a0;
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KIO_ListJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::ListJob::slotResult(a0) : sipCpp->slotResult(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_ListJob, sipName_slotResult, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_ListJob(void *, int);}
static void release_KIO_ListJob(void *sipCppV,int)
{
    KIO::ListJob *sipCpp = reinterpret_cast<KIO::ListJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_ListJob[] = {
    {SIP_MLNAME_CAST(sipName_redirectionUrl), meth_KIO_ListJob_redirectionUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnrestricted), meth_KIO_ListJob_setUnrestricted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotFinished), meth_KIO_ListJob_slotFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotMetaData), meth_KIO_ListJob_slotMetaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_KIO_ListJob_slotResult, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KIO_ListJob[] = {
    {"permanentRedirection(KIO::Job*,KUrl,KUrl)", 0, 0, 0},
    {"redirection(KIO::Job*,KUrl)", 0, 0, 0},
    {"entries(KIO::Job*,KIO::UDSEntryList)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_ListJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__ListJob,
        {0}
    },
    {
        sipNameNr_ListJob,
        {101, 255, 0},
        5, methods_KIO_ListJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_ListJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_ListJob,
    0,
    0,
    0,
    release_KIO_ListJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::ListJob::staticMetaObject,
    0,
    signals_KIO_ListJob,
};

#line 305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11368 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11371 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11374 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11377 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11380 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 11383 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 11386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 11398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 11404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 11410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11416 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11419 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11428 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11431 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11434 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11437 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11440 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11443 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11446 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        KIO::filesize_t a0;
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bo", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSourceSize(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_FileCopyJob, sipName_setSourceSize, NULL);

    return NULL;
}


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

    {
        const QDateTime* a0;
        int a0State = 0;
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModificationTime(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KIO::FileCopyJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->srcUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KIO::FileCopyJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->destUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doSuspend();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doResume();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_slotResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob* a0;
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::FileCopyJob::slotResult(a0) : sipCpp->slotResult(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_FileCopyJob, sipName_slotResult, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_FileCopyJob(void *, int);}
static void release_KIO_FileCopyJob(void *sipCppV,int)
{
    KIO::FileCopyJob *sipCpp = reinterpret_cast<KIO::FileCopyJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_FileCopyJob[] = {
    {SIP_MLNAME_CAST(sipName_destUrl), meth_KIO_FileCopyJob_destUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_KIO_FileCopyJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_KIO_FileCopyJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModificationTime), meth_KIO_FileCopyJob_setModificationTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSourceSize), meth_KIO_FileCopyJob_setSourceSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_KIO_FileCopyJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_srcUrl), meth_KIO_FileCopyJob_srcUrl, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KIO_FileCopyJob[] = {
    {"mimetype(KIO::Job*,QString)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_FileCopyJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__FileCopyJob,
        {0}
    },
    {
        sipNameNr_FileCopyJob,
        {101, 255, 0},
        7, methods_KIO_FileCopyJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_FileCopyJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_FileCopyJob,
    0,
    0,
    0,
    release_KIO_FileCopyJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::FileCopyJob::staticMetaObject,
    0,
    signals_KIO_FileCopyJob,
};

#line 282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11745 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 11749 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11752 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11755 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11758 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11761 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11764 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11767 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 11770 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11773 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11776 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11779 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 11782 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11785 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 11788 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11791 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 11794 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11797 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11800 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11803 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11806 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11809 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11815 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11818 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11821 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11824 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11827 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_MimetypeJob_slotFinished(PyObject *, PyObject *);}
static PyObject *meth_KIO_MimetypeJob_slotFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KIO::MimetypeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KIO_MimetypeJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::MimetypeJob::slotFinished() : sipCpp->slotFinished());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_MimetypeJob(void *, int);}
static void release_KIO_MimetypeJob(void *sipCppV,int)
{
    KIO::MimetypeJob *sipCpp = reinterpret_cast<KIO::MimetypeJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_MimetypeJob[] = {
    {SIP_MLNAME_CAST(sipName_slotFinished), meth_KIO_MimetypeJob_slotFinished, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_MimetypeJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__MimetypeJob,
        {0}
    },
    {
        sipNameNr_MimetypeJob,
        {101, 255, 0},
        1, methods_KIO_MimetypeJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_MimetypeJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_MimetypeJob,
    0,
    0,
    0,
    release_KIO_MimetypeJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::MimetypeJob::staticMetaObject,
    0,
    0
};

#line 248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11948 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11952 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11955 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11958 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 11961 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11964 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11967 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11970 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 11973 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11976 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11979 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11982 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 11985 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11988 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 11991 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11994 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 11997 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12000 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12003 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12006 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12012 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12015 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12018 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12021 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12024 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12027 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12030 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        long a0;
        const KUrl* a1;
        const KIO::MetaData* a2;
        int a2State = 0;
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BlJ9J1", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp, &a0, sipType_KUrl, &a1, sipType_KIO_MetaData,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->get(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::MetaData *>(a2),sipType_KIO_MetaData,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_MultiGetJob_slotRedirection(PyObject *, PyObject *);}
static PyObject *meth_KIO_MultiGetJob_slotRedirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KUrl* a0;
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::MultiGetJob::slotRedirection(*a0) : sipCpp->slotRedirection(*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_MultiGetJob, sipName_slotRedirection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_MultiGetJob_slotFinished(PyObject *, PyObject *);}
static PyObject *meth_KIO_MultiGetJob_slotFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::MultiGetJob::slotFinished() : sipCpp->slotFinished());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_MultiGetJob_slotData(PyObject *, PyObject *);}
static PyObject *meth_KIO_MultiGetJob_slotData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::MultiGetJob::slotData(*a0) : sipCpp->slotData(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_MultiGetJob_slotMimetype(PyObject *, PyObject *);}
static PyObject *meth_KIO_MultiGetJob_slotMimetype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::MultiGetJob::slotMimetype(*a0) : sipCpp->slotMimetype(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_MultiGetJob(void *, int);}
static void release_KIO_MultiGetJob(void *sipCppV,int)
{
    KIO::MultiGetJob *sipCpp = reinterpret_cast<KIO::MultiGetJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_MultiGetJob[] = {
    {SIP_MLNAME_CAST(sipName_get), meth_KIO_MultiGetJob_get, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotData), meth_KIO_MultiGetJob_slotData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotFinished), meth_KIO_MultiGetJob_slotFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotMimetype), meth_KIO_MultiGetJob_slotMimetype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotRedirection), meth_KIO_MultiGetJob_slotRedirection, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KIO_MultiGetJob[] = {
    {"result(long)", 0, 0, 0},
    {"mimetype(long,QString)", 0, 0, 0},
    {"data(long,QByteArray)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_MultiGetJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__MultiGetJob,
        {0}
    },
    {
        sipNameNr_MultiGetJob,
        {101, 255, 0},
        5, methods_KIO_MultiGetJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_MultiGetJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_MultiGetJob,
    0,
    0,
    0,
    release_KIO_MultiGetJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::MultiGetJob::staticMetaObject,
    0,
    signals_KIO_MultiGetJob,
};

#line 222 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 12283 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 12290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 12299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 12302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 401 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 12314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 12320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 12326 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 12329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 12332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12335 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12341 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12344 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12350 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12353 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12362 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12365 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        const QByteArray* a0;
        int a0State = 0;
        KIO::StoredTransferJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_StoredTransferJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KIO::StoredTransferJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->data());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_StoredTransferJob(void *, int);}
static void release_KIO_StoredTransferJob(void *sipCppV,int)
{
    KIO::StoredTransferJob *sipCpp = reinterpret_cast<KIO::StoredTransferJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_StoredTransferJob[] = {
    {SIP_MLNAME_CAST(sipName_data), meth_KIO_StoredTransferJob_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KIO_StoredTransferJob_setData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_StoredTransferJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__StoredTransferJob,
        {0}
    },
    {
        sipNameNr_StoredTransferJob,
        {101, 255, 0},
        2, methods_KIO_StoredTransferJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_StoredTransferJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_StoredTransferJob,
    0,
    0,
    0,
    release_KIO_StoredTransferJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::StoredTransferJob::staticMetaObject,
    0,
    0
};

#line 130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 12516 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12520 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 12523 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 12526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/udsentry.sip"
#include <udsentry.h>
#line 12529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 12535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 12544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 12550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 12556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 12559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 12562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"


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

    {
        KIO::StatJob::StatSide a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KIO_StatJob, &sipCpp, sipType_KIO_StatJob_StatSide, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSide(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        bool a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BXb", &sipSelf, sipType_KIO_StatJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSide(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_StatJob, sipName_setSide, NULL);

    return NULL;
}


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

    {
        short a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bh", &sipSelf, sipType_KIO_StatJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDetails(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_StatJob, sipName_setDetails, NULL);

    return NULL;
}


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

    {
        const KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_StatJob, &sipCpp))
        {
            KIO::UDSEntry*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::UDSEntry(sipCpp->statResult());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StatJob_slotFinished(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_slotFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KIO_StatJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::StatJob::slotFinished() : sipCpp->slotFinished());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StatJob_slotMetaData(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_slotMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KIO::MetaData* a0;
        int a0State = 0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KIO_StatJob, &sipCpp, sipType_KIO_MetaData,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::StatJob::slotMetaData(*a0) : sipCpp->slotMetaData(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::MetaData *>(a0),sipType_KIO_MetaData,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KIO::StatJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->mostLocalUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_StatJob(void *, int);}
static void release_KIO_StatJob(void *sipCppV,int)
{
    KIO::StatJob *sipCpp = reinterpret_cast<KIO::StatJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KIO_StatJob[] = {
    {SIP_MLNAME_CAST(sipName_mostLocalUrl), meth_KIO_StatJob_mostLocalUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDetails), meth_KIO_StatJob_setDetails, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSide), meth_KIO_StatJob_setSide, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotFinished), meth_KIO_StatJob_slotFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotMetaData), meth_KIO_StatJob_slotMetaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statResult), meth_KIO_StatJob_statResult, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KIO_StatJob[] = {
    {sipName_DestinationSide, static_cast<int>(KIO::StatJob::DestinationSide), 169},
    {sipName_SourceSide, static_cast<int>(KIO::StatJob::SourceSide), 169},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KIO_StatJob[] = {
    {"permanentRedirection(KIO::Job*,KUrl,KUrl)", 0, 0, 0},
    {"redirection(KIO::Job*,KUrl)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_StatJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__StatJob,
        {0}
    },
    {
        sipNameNr_StatJob,
        {101, 255, 0},
        6, methods_KIO_StatJob,
        2, enummembers_KIO_StatJob,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_StatJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_StatJob,
    0,
    0,
    0,
    release_KIO_StatJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KIO::StatJob::staticMetaObject,
    0,
    signals_KIO_StatJob,
};




extern "C" {static int slot_KIO_JobFlags___bool__(PyObject *);}
static int slot_KIO_JobFlags___bool__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KIO::JobFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 12910 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KIO::JobFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KIO::JobFlags::Int() != a0->operator KIO::JobFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 12944 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KIO_JobFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KIO_JobFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KIO::JobFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KIO::JobFlags::Int() == a0->operator KIO::JobFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 12984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KIO_JobFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KIO_JobFlags___invert__(PyObject *);}
static PyObject *slot_KIO_JobFlags___invert__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KIO::JobFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags* a0;
        int a0State = 0;
        KIO::JobFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KIO_JobFlags, &a0, &a0State, sipType_KIO_JobFlags, &a1, &a1State))
        {
            KIO::JobFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);
            sipReleaseType(a1,sipType_KIO_JobFlags,a1State);

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

    {
        KIO::JobFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags*sipRes = 0;

#line 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KIO::JobFlags(*a0 ^ a1);
#line 13093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags* a0;
        int a0State = 0;
        KIO::JobFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KIO_JobFlags, &a0, &a0State, sipType_KIO_JobFlags, &a1, &a1State))
        {
            KIO::JobFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);
            sipReleaseType(a1,sipType_KIO_JobFlags,a1State);

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

    {
        KIO::JobFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags*sipRes = 0;

#line 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KIO::JobFlags(*a0 | a1);
#line 13145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___int__(PyObject *);}
static PyObject *slot_KIO_JobFlags___int__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KIO_JobFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    delete reinterpret_cast<KIO::JobFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KIO_JobFlags(SIP_SSIZE_T);}
static void *array_KIO_JobFlags(SIP_SSIZE_T sipNrElem)
{
    return new KIO::JobFlags[sipNrElem];
}


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


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


extern "C" {static void *init_type_KIO_JobFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KIO_JobFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KIO::JobFlags *sipCpp = 0;

    {
        const KIO::JobFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KIO::JobFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KIO::JobFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KIO_JobFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_KIO_JobFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KIO::JobFlags **sipCppPtr = reinterpret_cast<KIO::JobFlags **>(sipCppPtrV);

#line 398 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KIO::JobFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KIO_JobFlag)) ||
            sipCanConvertToType(sipPy, sipType_KIO_JobFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KIO_JobFlag)))
{
    *sipCppPtr = new KIO::JobFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KIO::JobFlags *>(sipConvertToType(sipPy, sipType_KIO_JobFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 13429 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KIO_JobFlags[] = {
    {(void *)slot_KIO_JobFlags___bool__, bool_slot},
    {(void *)slot_KIO_JobFlags___ne__, ne_slot},
    {(void *)slot_KIO_JobFlags___eq__, eq_slot},
    {(void *)slot_KIO_JobFlags___invert__, invert_slot},
    {(void *)slot_KIO_JobFlags___and__, and_slot},
    {(void *)slot_KIO_JobFlags___xor__, xor_slot},
    {(void *)slot_KIO_JobFlags___or__, or_slot},
    {(void *)slot_KIO_JobFlags___int__, int_slot},
    {(void *)slot_KIO_JobFlags___ixor__, ixor_slot},
    {(void *)slot_KIO_JobFlags___ior__, ior_slot},
    {(void *)slot_KIO_JobFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_JobFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KIO__JobFlags,
        {0}
    },
    {
        sipNameNr_JobFlags,
        {101, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KIO_JobFlags,
    init_type_KIO_JobFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_JobFlags,
    assign_KIO_JobFlags,
    array_KIO_JobFlags,
    copy_KIO_JobFlags,
    release_KIO_JobFlags,
    0,
    convertTo_KIO_JobFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
#include<qmap.h>
#line 13505 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"



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


extern "C" {static void *array_KIO_MetaData(SIP_SSIZE_T);}
static void *array_KIO_MetaData(SIP_SSIZE_T sipNrElem)
{
    return new KIO::MetaData[sipNrElem];
}


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


/* Call the mapped type's destructor. */
extern "C" {static void release_KIO_MetaData(void *, int);}
static void release_KIO_MetaData(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<KIO::MetaData *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_KIO_MetaData(PyObject *, void **, int *, PyObject *);}
static int convertTo_KIO_MetaData(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KIO::MetaData **sipCppPtr = reinterpret_cast<KIO::MetaData **>(sipCppPtrV);

#line 231 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
    // Convert a Python dictionary to a QMap on the heap.

    if (sipIsErr == NULL)
        return PyDict_Check(sipPy);


    QMap<QString,QString> *cppmap = new QMap<QString,QString>;

    PyObject *aelem, *belem;
    SIP_SSIZE_T pos = 0;
    QString *acpp;
    QString *bcpp;

    while (PyDict_Next(sipPy, &pos, &aelem, &belem))
    {
        int iserr = 0;

        acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, NULL, 0, NULL, &iserr);
        bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, NULL, 0, NULL, &iserr);

        if (iserr)
        {
            *sipIsErr = 1;
            delete cppmap;
            return 0;
        }

        cppmap->insert (*acpp, *bcpp);
    }

    *sipCppPtr = (KIO::MetaData *)cppmap;

    return 1;
#line 13580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
}


extern "C" {static PyObject *convertFrom_KIO_MetaData(void *, PyObject *);}
static PyObject *convertFrom_KIO_MetaData(void *sipCppV, PyObject *)
{
   KIO::MetaData *sipCpp = reinterpret_cast<KIO::MetaData *>(sipCppV);

#line 192 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/global.sip"
    // Convert to a Python dict

    if (!sipCpp)
        return PyDict_New();

    PyObject *dict;

    // Create the dictionary.

    if ((dict = PyDict_New()) == NULL)
        return NULL;

    // Get it.

    const QMap<QString,QString> cppmap = *sipCpp;
    QMap<QString,QString>::ConstIterator it;

    for (it = cppmap.begin (); it != cppmap.end (); ++it)
    {
        QString acpp = it.key ();
        QString bcpp = it.value ();
        PyObject *ainst = 0;
        PyObject *binst = 0;
        if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipType_QString)) == NULL)
            || ((binst = sipBuildResult (NULL, "N", new QString (bcpp), sipType_QString)) == NULL)
            || (PyDict_SetItem (dict, ainst, binst) < 0))
        {
            Py_XDECREF (ainst);
            Py_XDECREF (binst);
            Py_DECREF (dict);
            return NULL;
        }
    }

    return dict;
#line 13625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kio/sipkiopart6.cpp"
}


sipMappedTypeDef sipTypeDef_kio_KIO_MetaData = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_KIO__MetaData,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KIO_MetaData,
    array_KIO_MetaData,
    copy_KIO_MetaData,
    release_KIO_MetaData,
    convertTo_KIO_MetaData,
    convertFrom_KIO_MetaData
};
