/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtRemoteObjects.h"

#line 161 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectnode.sip"
#include <qremoteobjectnode.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 109 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 135 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectnode.sip"
#include <qremoteobjectnode.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 111 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 442 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 67 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 44 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectnode.sip"
#include <qremoteobjectnode.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qtremoteobjectglobal.sip"
#include <qtremoteobjectglobal.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectnode.sip"
#include <qremoteobjectnode.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectregistry.sip"
#include <qremoteobjectregistry.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectabstractitemmodelreplica.sip"
#include <qremoteobjectabstractitemmodelreplica.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qtremoteobjectglobal.sip"
#include <qtremoteobjectglobal.h>
#line 78 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectdynamicreplica.sip"
#include <qremoteobjectdynamicreplica.h>
#line 81 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 84 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 89 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 98 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 101 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 104 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 107 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 110 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 113 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 116 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 119 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 122 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 125 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 128 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectHost.cpp"


class sipQRemoteObjectHost : public  ::QRemoteObjectHost
{
public:
    sipQRemoteObjectHost( ::QObject*);
    sipQRemoteObjectHost(const  ::QUrl&,const  ::QUrl&, ::QRemoteObjectHostBase::AllowedSchemas, ::QObject*);
    sipQRemoteObjectHost(const  ::QUrl&, ::QObject*);
    virtual ~sipQRemoteObjectHost();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool setHostUrl(const  ::QUrl&, ::QRemoteObjectHostBase::AllowedSchemas) SIP_OVERRIDE;
     ::QUrl hostUrl() const SIP_OVERRIDE;
    bool setRegistryUrl(const  ::QUrl&) SIP_OVERRIDE;
    void setName(const  ::QString&) SIP_OVERRIDE;
    bool event( ::QEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[11];
};

sipQRemoteObjectHost::sipQRemoteObjectHost( ::QObject*a0):  ::QRemoteObjectHost(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRemoteObjectHost::sipQRemoteObjectHost(const  ::QUrl& a0,const  ::QUrl& a1, ::QRemoteObjectHostBase::AllowedSchemas a2, ::QObject*a3):  ::QRemoteObjectHost(a0,a1,a2,a3), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRemoteObjectHost::sipQRemoteObjectHost(const  ::QUrl& a0, ::QObject*a1):  ::QRemoteObjectHost(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRemoteObjectHost::~sipQRemoteObjectHost()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQRemoteObjectHost::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtRemoteObjects_qt_metaobject(sipPySelf,sipType_QRemoteObjectHost);

    return  ::QRemoteObjectHost::metaObject();
}

int sipQRemoteObjectHost::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::QRemoteObjectHost::qt_metacall(_c,_id,_a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtRemoteObjects_qt_metacall(sipPySelf,sipType_QRemoteObjectHost,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQRemoteObjectHost::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtRemoteObjects_qt_metacast(sipPySelf, sipType_QRemoteObjectHost, _clname, &sipCpp) ? sipCpp :  ::QRemoteObjectHost::qt_metacast(_clname));
}

bool sipQRemoteObjectHost::setHostUrl(const  ::QUrl& a0, ::QRemoteObjectHostBase::AllowedSchemas a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_setHostUrl);

    if (!sipMeth)
        return  ::QRemoteObjectHost::setHostUrl(a0,a1);

    extern bool sipVH_QtRemoteObjects_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&, ::QRemoteObjectHostBase::AllowedSchemas);

    return sipVH_QtRemoteObjects_36(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QUrl sipQRemoteObjectHost::hostUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[1]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_hostUrl);

    if (!sipMeth)
        return  ::QRemoteObjectHost::hostUrl();

    extern  ::QUrl sipVH_QtRemoteObjects_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtRemoteObjects_35(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQRemoteObjectHost::setRegistryUrl(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_setRegistryUrl);

    if (!sipMeth)
        return  ::QRemoteObjectHost::setRegistryUrl(a0);

    extern bool sipVH_QtRemoteObjects_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

    return sipVH_QtRemoteObjects_34(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRemoteObjectHost::setName(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_setName);

    if (!sipMeth)
    {
         ::QRemoteObjectHost::setName(a0);
        return;
    }

    extern void sipVH_QtRemoteObjects_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_QtRemoteObjects_33(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return  ::QRemoteObjectHost::event(a0);

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

    return sipVH_QtRemoteObjects_24(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    return sipVH_QtRemoteObjects_25(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

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

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

    sipVH_QtRemoteObjects_26(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

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

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

    sipVH_QtRemoteObjects_27(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[8], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

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

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

    sipVH_QtRemoteObjects_28(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRemoteObjectHost::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[9], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

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

    extern void sipVH_QtRemoteObjects_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtRemoteObjects_29(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRemoteObjectHost::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[10], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

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

    extern void sipVH_QtRemoteObjects_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtRemoteObjects_29(sipGILState, sipImportedVirtErrorHandlers_QtRemoteObjects_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QRemoteObjectHost_hostUrl, "hostUrl(self) -> QUrl");

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

    {
        const  ::QRemoteObjectHost *sipCpp;

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

            sipRes = new  ::QUrl((sipSelfWasArg ? sipCpp-> ::QRemoteObjectHost::hostUrl() : sipCpp->hostUrl()));

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

    sipNoMethod(sipParseErr, sipName_QRemoteObjectHost, sipName_hostUrl, doc_QRemoteObjectHost_hostUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectHost_setHostUrl, "setHostUrl(self, QUrl, allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = QRemoteObjectHostBase.BuiltInSchemasOnly) -> bool");

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

    {
        const  ::QUrl* a0;
         ::QRemoteObjectHostBase::AllowedSchemas a1 = QRemoteObjectHostBase::BuiltInSchemasOnly;
         ::QRemoteObjectHost *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_allowedSchemas,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|E", &sipSelf, sipType_QRemoteObjectHost, &sipCpp, sipType_QUrl, &a0, sipType_QRemoteObjectHostBase_AllowedSchemas, &a1))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QRemoteObjectHost::setHostUrl(*a0,a1) : sipCpp->setHostUrl(*a0,a1));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectHost, sipName_setHostUrl, doc_QRemoteObjectHost_setHostUrl);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QRemoteObjectHost)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QRemoteObjectHostBase)->ctd_cast(static_cast< ::QRemoteObjectHostBase *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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

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


extern "C" {static void *array_QRemoteObjectHost(Py_ssize_t);}
static void *array_QRemoteObjectHost(Py_ssize_t sipNrElem)
{
    return new  ::QRemoteObjectHost[sipNrElem];
}


extern "C" {static void array_delete_QRemoteObjectHost(void *);}
static void array_delete_QRemoteObjectHost(void *sipCpp)
{
    delete[] reinterpret_cast< ::QRemoteObjectHost *>(sipCpp);
}


extern "C" {static void dealloc_QRemoteObjectHost(sipSimpleWrapper *);}
static void dealloc_QRemoteObjectHost(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQRemoteObjectHost *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

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


extern "C" {static void *init_type_QRemoteObjectHost(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRemoteObjectHost(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQRemoteObjectHost *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQRemoteObjectHost(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QUrl* a0;
        const  ::QUrl& a1def = QUrl();
        const  ::QUrl* a1 = &a1def;
         ::QRemoteObjectHostBase::AllowedSchemas a2 = QRemoteObjectHostBase::BuiltInSchemasOnly;
         ::QObject* a3 = 0;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_registryAddress,
            sipName_allowedSchemas,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|J9EJH", sipType_QUrl, &a0, sipType_QUrl, &a1, sipType_QRemoteObjectHostBase_AllowedSchemas, &a2, sipType_QObject, &a3, sipOwner))
        {
            sipCpp = new sipQRemoteObjectHost(*a0,*a1,a2,a3);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QUrl* a0;
         ::QObject* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9JH", sipType_QUrl, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQRemoteObjectHost(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QRemoteObjectHost[] = {
    {sipName_hostUrl, meth_QRemoteObjectHost_hostUrl, METH_VARARGS, doc_QRemoteObjectHost_hostUrl},
    {sipName_setHostUrl, SIP_MLMETH_CAST(meth_QRemoteObjectHost_setHostUrl), METH_VARARGS|METH_KEYWORDS, doc_QRemoteObjectHost_setHostUrl}
};

PyDoc_STRVAR(doc_QRemoteObjectHost, "\1QRemoteObjectHost(parent: QObject = None)\n"
"QRemoteObjectHost(QUrl, registryAddress: QUrl = QUrl(), allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = QRemoteObjectHostBase.BuiltInSchemasOnly, parent: QObject = None)\n"
"QRemoteObjectHost(QUrl, QObject)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QRemoteObjectHost[] = {
    {"hostUrlChanged()", "\1hostUrlChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QRemoteObjectHost = {
    & ::QRemoteObjectHost::staticMetaObject,
    0,
    signals_QRemoteObjectHost,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtRemoteObjects_QRemoteObjectHost = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRemoteObjectHost,
        SIP_NULLPTR,
        &plugin_QRemoteObjectHost
    },
    {
        sipNameNr_QRemoteObjectHost,
        {0, 0, 1},
        2, methods_QRemoteObjectHost,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QRemoteObjectHost,
    -1,
    -1,
    supers_QRemoteObjectHost,
    SIP_NULLPTR,
    init_type_QRemoteObjectHost,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QRemoteObjectHost,
    SIP_NULLPTR,
    array_QRemoteObjectHost,
    SIP_NULLPTR,
    release_QRemoteObjectHost,
    cast_QRemoteObjectHost,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QRemoteObjectHost,
    sizeof ( ::QRemoteObjectHost),
};
