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

#include "sipAPIdnssd.h"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/servicebase.sip"
#include <dnssd/servicebase.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 68 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DNSSD_ServiceBase, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->port();
            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_ServiceBase, sipName_port, NULL);

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DNSSD_ServiceBase, &sipCpp))
        {
            QMap< ::QString, ::QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap< ::QString, ::QByteArray>(sipCpp->textData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_DNSSD_ServiceBase___ne__(PyObject *,PyObject *);}
static PyObject *slot_DNSSD_ServiceBase___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::DNSSD::ServiceBase *sipCpp = reinterpret_cast< ::DNSSD::ServiceBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DNSSD_ServiceBase));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::DNSSD::ServiceBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_dnssd, ne_slot, sipType_DNSSD_ServiceBase, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_DNSSD_ServiceBase___eq__(PyObject *,PyObject *);}
static PyObject *slot_DNSSD_ServiceBase___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::DNSSD::ServiceBase *sipCpp = reinterpret_cast< ::DNSSD::ServiceBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DNSSD_ServiceBase));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::DNSSD::ServiceBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_dnssd, eq_slot, sipType_DNSSD_ServiceBase, sipSelf, sipArg);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_DNSSD_ServiceBase(void *, const sipTypeDef *);}
static void *cast_DNSSD_ServiceBase(void *sipCppV, const sipTypeDef *targetType)
{
     ::DNSSD::ServiceBase *sipCpp = reinterpret_cast< ::DNSSD::ServiceBase *>(sipCppV);

    if (targetType == sipType_KShared)
        return static_cast< ::KShared *>(sipCpp);

    return sipCppV;
}


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

    delete reinterpret_cast< ::DNSSD::ServiceBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DNSSD_ServiceBase(sipSimpleWrapper *);}
static void dealloc_DNSSD_ServiceBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_DNSSD_ServiceBase(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_DNSSD_ServiceBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DNSSD_ServiceBase(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::DNSSD::ServiceBase *sipCpp = 0;

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
        const  ::QString& a1def = QString();
        const  ::QString* a1 = &a1def;
        int a1State = 0;
        const  ::QString& a2def = QString();
        const  ::QString* a2 = &a2def;
        int a2State = 0;
        const  ::QString& a3def = QString();
        const  ::QString* a3 = &a3def;
        int a3State = 0;
        unsigned short a4 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1J1J1J1t", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::DNSSD::ServiceBase(*a0,*a1,*a2,*a3,a4);
            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 sipCpp;
        }
    }

    return NULL;
}


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


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


static PyMethodDef methods_DNSSD_ServiceBase[] = {
    {SIP_MLNAME_CAST(sipName_domain), meth_DNSSD_ServiceBase_domain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hostName), meth_DNSSD_ServiceBase_hostName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_port), meth_DNSSD_ServiceBase_port, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceName), meth_DNSSD_ServiceBase_serviceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textData), meth_DNSSD_ServiceBase_textData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_DNSSD_ServiceBase_type, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_DNSSD_ServiceBase = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_dnssd_DNSSD_ServiceBase = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__ServiceBase,
        {0},
        &plugin_DNSSD_ServiceBase
    },
    {
        sipNameNr_ServiceBase,
        {0, 255, 0},
        6, methods_DNSSD_ServiceBase,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DNSSD_ServiceBase,
    slots_DNSSD_ServiceBase,
    init_type_DNSSD_ServiceBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_ServiceBase,
    0,
    0,
    0,
    release_DNSSD_ServiceBase,
    cast_DNSSD_ServiceBase,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/domainmodel.sip"
#include <dnssd/domainmodel.h>
#line 415 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"

#line 41 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/domainbrowser.sip"
#include <dnssd/domainbrowser.h>
#line 419 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 422 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 425 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 428 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 431 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 434 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 437 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 440 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 443 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 446 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 449 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 452 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 455 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 464 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 467 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 470 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 473 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 476 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 479 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 482 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 485 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 488 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 491 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 494 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart4.cpp"


class sipDNSSD_DomainModel : public  ::DNSSD::DomainModel
{
public:
    sipDNSSD_DomainModel( ::DNSSD::DomainBrowser*, ::QObject*);
    virtual ~sipDNSSD_DomainModel();

    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:
    bool hasIndex(int,int,const  ::QModelIndex&) const;
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QModelIndex index(int,int,const  ::QModelIndex&) const;
     ::QModelIndex parent(const  ::QModelIndex&) const;
    int rowCount(const  ::QModelIndex&) const;
    int columnCount(const  ::QModelIndex&) const;
    bool hasChildren(const  ::QModelIndex&) const;
     ::QVariant data(const  ::QModelIndex&,int) const;
    bool setData(const  ::QModelIndex&,const  ::QVariant&,int);
     ::QVariant headerData(int, ::Qt::Orientation,int) const;
    bool setHeaderData(int, ::Qt::Orientation,const  ::QVariant&,int);
    QMap<int, ::QVariant> itemData(const  ::QModelIndex&) const;
    bool setItemData(const  ::QModelIndex&,const QMap<int, ::QVariant>&);
     ::QStringList mimeTypes() const;
     ::QMimeData* mimeData(const  ::QModelIndexList&) const;
    bool dropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);
     ::Qt::DropActions supportedDropActions() const;
    bool insertRows(int,int,const  ::QModelIndex&);
    bool insertColumns(int,int,const  ::QModelIndex&);
    bool removeRows(int,int,const  ::QModelIndex&);
    bool removeColumns(int,int,const  ::QModelIndex&);
    void fetchMore(const  ::QModelIndex&);
    bool canFetchMore(const  ::QModelIndex&) const;
     ::Qt::ItemFlags flags(const  ::QModelIndex&) const;
    void sort(int, ::Qt::SortOrder);
     ::QModelIndex buddy(const  ::QModelIndex&) const;
     ::QModelIndexList match(const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags) const;
     ::QSize span(const  ::QModelIndex&) const;
    bool submit();
    void revert();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[36];
};

sipDNSSD_DomainModel::sipDNSSD_DomainModel( ::DNSSD::DomainBrowser*a0, ::QObject*a1):  ::DNSSD::DomainModel(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDNSSD_DomainModel::~sipDNSSD_DomainModel()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipDNSSD_DomainModel::metaObject() const
{
    return sip_dnssd_qt_metaobject(sipPySelf,sipType_DNSSD_DomainModel);
}

int sipDNSSD_DomainModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::DNSSD::DomainModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_dnssd_qt_metacall(sipPySelf,sipType_DNSSD_DomainModel,_c,_id,_a);

    return _id;
}

void *sipDNSSD_DomainModel::qt_metacast(const char *_clname)
{
    return (sip_dnssd_qt_metacast(sipPySelf, sipType_DNSSD_DomainModel, _clname)) ? this :  ::DNSSD::DomainModel::qt_metacast(_clname);
}

bool sipDNSSD_DomainModel::hasIndex(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::hasIndex(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

void sipDNSSD_DomainModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::disconnectNotify(a0);
        return;
    }

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_DomainModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::connectNotify(a0);
        return;
    }

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_DomainModel::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::customEvent(a0);
        return;
    }

    extern void sipVH_dnssd_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_dnssd_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_DomainModel::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::childEvent(a0);
        return;
    }

    extern void sipVH_dnssd_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_dnssd_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_DomainModel::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::timerEvent(a0);
        return;
    }

    extern void sipVH_dnssd_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_dnssd_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::eventFilter(a0,a1);

    extern bool sipVH_dnssd_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

bool sipDNSSD_DomainModel::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::event(a0);

    extern bool sipVH_dnssd_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_dnssd_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndex sipDNSSD_DomainModel::index(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::index(a0,a1,a2);

    extern  ::QModelIndex sipVH_dnssd_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

 ::QModelIndex sipDNSSD_DomainModel::parent(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::parent(a0);

    extern  ::QModelIndex sipVH_dnssd_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipDNSSD_DomainModel::rowCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::rowCount(a0);

    extern int sipVH_dnssd_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_26(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipDNSSD_DomainModel::columnCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::columnCount(a0);

    extern int sipVH_dnssd_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_26(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::hasChildren(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::hasChildren(a0);

    extern bool sipVH_dnssd_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QVariant sipDNSSD_DomainModel::data(const  ::QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::data(a0,a1);

    extern  ::QVariant sipVH_dnssd_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int);

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

bool sipDNSSD_DomainModel::setData(const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::setData(a0,a1,a2);

    extern bool sipVH_dnssd_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QVariant&,int);

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

 ::QVariant sipDNSSD_DomainModel::headerData(int a0, ::Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::headerData(a0,a1,a2);

    extern  ::QVariant sipVH_dnssd_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,int);

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

bool sipDNSSD_DomainModel::setHeaderData(int a0, ::Qt::Orientation a1,const  ::QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::setHeaderData(a0,a1,a2,a3);

    extern bool sipVH_dnssd_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,const  ::QVariant&,int);

    return sipVH_dnssd_22(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

QMap<int, ::QVariant> sipDNSSD_DomainModel::itemData(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::itemData(a0);

    extern QMap<int, ::QVariant> sipVH_dnssd_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_21(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::setItemData(const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::setItemData(a0,a1);

    extern bool sipVH_dnssd_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const QMap<int, ::QVariant>&);

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

 ::QStringList sipDNSSD_DomainModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::mimeTypes();

    extern  ::QStringList sipVH_dnssd_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

 ::QMimeData* sipDNSSD_DomainModel::mimeData(const  ::QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::mimeData(a0);

    extern  ::QMimeData* sipVH_dnssd_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndexList&);

    return sipVH_dnssd_18(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::dropMimeData(const  ::QMimeData*a0, ::Qt::DropAction a1,int a2,int a3,const  ::QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::dropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_dnssd_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_dnssd_17(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::Qt::DropActions sipDNSSD_DomainModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::supportedDropActions();

    extern  ::Qt::DropActions sipVH_dnssd_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

bool sipDNSSD_DomainModel::insertRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::insertRows(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_DomainModel::insertColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::insertColumns(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_DomainModel::removeRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::removeRows(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_DomainModel::removeColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::removeColumns(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

void sipDNSSD_DomainModel::fetchMore(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::fetchMore(a0);
        return;
    }

    extern void sipVH_dnssd_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    sipVH_dnssd_14(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::canFetchMore(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::canFetchMore(a0);

    extern bool sipVH_dnssd_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::Qt::ItemFlags sipDNSSD_DomainModel::flags(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::flags(a0);

    extern  ::Qt::ItemFlags sipVH_dnssd_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_DomainModel::sort(int a0, ::Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::sort(a0,a1);
        return;
    }

    extern void sipVH_dnssd_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::SortOrder);

    sipVH_dnssd_11(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QModelIndex sipDNSSD_DomainModel::buddy(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::buddy(a0);

    extern  ::QModelIndex sipVH_dnssd_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndexList sipDNSSD_DomainModel::match(const  ::QModelIndex& a0,int a1,const  ::QVariant& a2,int a3, ::Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::match(a0,a1,a2,a3,a4);

    extern  ::QModelIndexList sipVH_dnssd_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags);

    return sipVH_dnssd_9(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QSize sipDNSSD_DomainModel::span(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::DomainModel::span(a0);

    extern  ::QSize sipVH_dnssd_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_DomainModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return  ::DNSSD::DomainModel::submit();

    extern bool sipVH_dnssd_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

void sipDNSSD_DomainModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
         ::DNSSD::DomainModel::revert();
        return;
    }

    extern void sipVH_dnssd_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_dnssd_6(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::columnCount(*a0) : sipCpp->columnCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::rowCount(*a0) : sipCpp->rowCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::parent(*a0) : sipCpp->parent(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const  ::QModelIndex& a2def = QModelIndex();
        const  ::QModelIndex* a2 = &a2def;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii|J9", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|i", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
             ::QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::data(*a0,a1) : sipCpp->data(*a0,a1)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const  ::QModelIndex* a2;
        const  ::DNSSD::DomainModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_DNSSD_DomainModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::DomainModel::hasIndex(a0,a1,*a2) : sipCpp->hasIndex(a0,a1,*a2));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_DNSSD_DomainModel(void *, const sipTypeDef *);}
static void *cast_DNSSD_DomainModel(void *sipCppV, const sipTypeDef *targetType)
{
     ::DNSSD::DomainModel *sipCpp = reinterpret_cast< ::DNSSD::DomainModel *>(sipCppV);

    if (targetType == sipType_QAbstractItemModel)
        return static_cast< ::QAbstractItemModel *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_DNSSD_DomainModel(void *, int);}
static void release_DNSSD_DomainModel(void *sipCppV, int)
{
     ::DNSSD::DomainModel *sipCpp = reinterpret_cast< ::DNSSD::DomainModel *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DNSSD_DomainModel(sipSimpleWrapper *);}
static void dealloc_DNSSD_DomainModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipDNSSD_DomainModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_DNSSD_DomainModel(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
         ::DNSSD::DomainBrowser* a0;
         ::QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_DNSSD_DomainBrowser, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDNSSD_DomainModel(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DNSSD_DomainModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_DNSSD_DomainModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_DNSSD_DomainModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasIndex), meth_DNSSD_DomainModel_hasIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_DNSSD_DomainModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_DNSSD_DomainModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_DNSSD_DomainModel_rowCount, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_DNSSD_DomainModel = {
    & ::DNSSD::DomainModel::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_dnssd_DNSSD_DomainModel = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__DomainModel,
        {0},
        &plugin_DNSSD_DomainModel
    },
    {
        sipNameNr_DomainModel,
        {0, 255, 0},
        6, methods_DNSSD_DomainModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DNSSD_DomainModel,
    0,
    init_type_DNSSD_DomainModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_DomainModel,
    0,
    0,
    0,
    release_DNSSD_DomainModel,
    cast_DNSSD_DomainModel,
    0,
    0,
    0,
    0,
    0,
    0
};
