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

#include "sipAPIdnssd.h"

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

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/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 superclass hierarchy. */
extern "C" {static void *cast_DNSSD_ServiceBase(void *, const sipTypeDef *);}
static void *cast_DNSSD_ServiceBase(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DNSSD_ServiceBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KShared)->ctd_cast((KShared *)(DNSSD::ServiceBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* 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 (sipIsPyOwned(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[] = {{165, 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}
};


pyqt4ClassTypeDef sipTypeDef_dnssd_DNSSD_ServiceBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__ServiceBase,
        {0}
    },
    {
        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
},
    0,
    0,
    0
};

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

#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/src/pykde4-4.14.3/sip/dnssd/domainbrowser.sip"
#include <dnssd/domainbrowser.h>
#line 419 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 428 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 431 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 434 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 437 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 440 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 443 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 446 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 449 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 452 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 455 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 461 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 464 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 467 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 470 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 473 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 485 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 488 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 491 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/sip/dnssd/sipdnssdpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 494 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.i686/build/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:
    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 revert();
    bool submit();
    QSize span(const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    QModelIndex buddy(const QModelIndex&) const;
    void sort(int,Qt::SortOrder);
    Qt::ItemFlags flags(const QModelIndex&) const;
    bool canFetchMore(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    bool removeColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    Qt::DropActions supportedDropActions() const;
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    QStringList mimeTypes() const;
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    bool hasChildren(const QModelIndex&) const;
    bool hasIndex(int,int,const QModelIndex&) const;
    QVariant data(const QModelIndex&,int) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;

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()
{
    sipCommonDtor(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);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_dnssd_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_dnssd_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_dnssd_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_dnssd_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_dnssd_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_dnssd_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_dnssd_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_dnssd_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

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

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

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

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

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

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_47)(sipModuleAPI_dnssd_QtCore->em_virthandlers[47]))(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[10]),sipPySelf,NULL,sipName_match);

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

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_dnssd_QtCore->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

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

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

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

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_dnssd_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_dnssd_QtCore->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_50)(sipModuleAPI_dnssd_QtCore->em_virthandlers[50]))(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[14]),sipPySelf,NULL,sipName_canFetchMore);

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

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_dnssd_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef void (*sipVH_QtCore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    ((sipVH_QtCore_51)(sipModuleAPI_dnssd_QtCore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_dnssd_QtCore->em_virthandlers[52]))(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[17],sipPySelf,NULL,sipName_removeRows);

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_dnssd_QtCore->em_virthandlers[52]))(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[18],sipPySelf,NULL,sipName_insertColumns);

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_dnssd_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_dnssd_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_dnssd_QtCore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth);
}

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);

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

    return ((sipVH_QtCore_45)(sipModuleAPI_dnssd_QtCore->em_virthandlers[45]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

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

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

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

    typedef QMimeData* (*sipVH_QtCore_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtCore_54)(sipModuleAPI_dnssd_QtCore->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_dnssd_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QMap<int,QVariant>&);

    return ((sipVH_QtCore_55)(sipModuleAPI_dnssd_QtCore->em_virthandlers[55]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_56)(sipModuleAPI_dnssd_QtCore->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    return ((sipVH_QtCore_57)(sipModuleAPI_dnssd_QtCore->em_virthandlers[57]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

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[27]),sipPySelf,NULL,sipName_headerData);

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

    typedef QVariant (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,int);

    return ((sipVH_QtCore_58)(sipModuleAPI_dnssd_QtCore->em_virthandlers[58]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_dnssd_QtCore->em_virthandlers[59]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_dnssd_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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[30]),sipPySelf,NULL,sipName_hasIndex);

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_dnssd_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_dnssd_QtCore->em_virthandlers[60]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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[32]),sipPySelf,NULL,sipName_index);

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

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_46)(sipModuleAPI_dnssd_QtCore->em_virthandlers[46]))(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[33]),sipPySelf,NULL,sipName_parent);

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

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_dnssd_QtCore->em_virthandlers[44]))(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[34]),sipPySelf,NULL,sipName_rowCount);

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

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_dnssd_QtCore->em_virthandlers[43]))(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[35]),sipPySelf,NULL,sipName_columnCount);

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

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_dnssd_QtCore->em_virthandlers[43]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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 || sipIsDerived((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 || sipIsDerived((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 || sipIsDerived((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 || sipIsDerived((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 || sipIsDerived((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 || sipIsDerived((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 superclass hierarchy. */
extern "C" {static void *cast_DNSSD_DomainModel(void *, const sipTypeDef *);}
static void *cast_DNSSD_DomainModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DNSSD_DomainModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast((QAbstractItemModel *)(DNSSD::DomainModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* 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 (sipIsDerived(sipSelf))
        reinterpret_cast<sipDNSSD_DomainModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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[] = {{13, 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}
};


pyqt4ClassTypeDef sipTypeDef_dnssd_DNSSD_DomainModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__DomainModel,
        {0}
    },
    {
        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
},
    &DNSSD::DomainModel::staticMetaObject,
    0,
    0
};
