/*
 * 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 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectreplica.sip"
#include <qremoteobjectreplica.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"

#line 44 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectnode.sip"
#include <qremoteobjectnode.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.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 38 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 41 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 65 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 77 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 86 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQRemoteObjectReplica.cpp"


PyDoc_STRVAR(doc_QRemoteObjectReplica_isReplicaValid, "isReplicaValid(self) -> bool");

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

    {
        const  ::QRemoteObjectReplica *sipCpp;

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

            sipRes = sipCpp->isReplicaValid();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_isReplicaValid, doc_QRemoteObjectReplica_isReplicaValid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectReplica_waitForSource, "waitForSource(self, timeout: int = 30000) -> bool");

extern "C" {static PyObject *meth_QRemoteObjectReplica_waitForSource(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRemoteObjectReplica_waitForSource(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0 = 30000;
         ::QRemoteObjectReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_QRemoteObjectReplica, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_waitForSource, doc_QRemoteObjectReplica_waitForSource);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectReplica_isInitialized, "isInitialized(self) -> bool");

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

    {
        const  ::QRemoteObjectReplica *sipCpp;

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

            sipRes = sipCpp->isInitialized();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_isInitialized, doc_QRemoteObjectReplica_isInitialized);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectReplica_state, "state(self) -> QRemoteObjectReplica.State");

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

    {
        const  ::QRemoteObjectReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRemoteObjectReplica, &sipCpp))
        {
             ::QRemoteObjectReplica::State sipRes;

            sipRes = sipCpp->state();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QRemoteObjectReplica_State);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_state, doc_QRemoteObjectReplica_state);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectReplica_node, "node(self) -> QRemoteObjectNode");

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

    {
        const  ::QRemoteObjectReplica *sipCpp;

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

            sipRes = sipCpp->node();

            return sipConvertFromType(sipRes,sipType_QRemoteObjectNode,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_node, doc_QRemoteObjectReplica_node);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QRemoteObjectReplica_setNode, "setNode(self, QRemoteObjectNode)");

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

    {
         ::QRemoteObjectNode* a0;
         ::QRemoteObjectReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QRemoteObjectReplica, &sipCpp, sipType_QRemoteObjectNode, &a0))
        {
            (sipSelfWasArg ? sipCpp-> ::QRemoteObjectReplica::setNode(a0) : sipCpp->setNode(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QRemoteObjectReplica, sipName_setNode, doc_QRemoteObjectReplica_setNode);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QRemoteObjectReplica)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QRemoteObjectReplica[] = {
    {sipName_isInitialized, meth_QRemoteObjectReplica_isInitialized, METH_VARARGS, doc_QRemoteObjectReplica_isInitialized},
    {sipName_isReplicaValid, meth_QRemoteObjectReplica_isReplicaValid, METH_VARARGS, doc_QRemoteObjectReplica_isReplicaValid},
    {sipName_node, meth_QRemoteObjectReplica_node, METH_VARARGS, doc_QRemoteObjectReplica_node},
    {sipName_setNode, meth_QRemoteObjectReplica_setNode, METH_VARARGS, doc_QRemoteObjectReplica_setNode},
    {sipName_state, meth_QRemoteObjectReplica_state, METH_VARARGS, doc_QRemoteObjectReplica_state},
    {sipName_waitForSource, SIP_MLMETH_CAST(meth_QRemoteObjectReplica_waitForSource), METH_VARARGS|METH_KEYWORDS, doc_QRemoteObjectReplica_waitForSource}
};

static sipEnumMemberDef enummembers_QRemoteObjectReplica[] = {
    {sipName_Default, static_cast<int>( ::QRemoteObjectReplica::Default), 13},
    {sipName_SignatureMismatch, static_cast<int>( ::QRemoteObjectReplica::SignatureMismatch), 13},
    {sipName_Suspect, static_cast<int>( ::QRemoteObjectReplica::Suspect), 13},
    {sipName_Uninitialized, static_cast<int>( ::QRemoteObjectReplica::Uninitialized), 13},
    {sipName_Valid, static_cast<int>( ::QRemoteObjectReplica::Valid), 13},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QRemoteObjectReplica[] = {
    {"notified()", "\1notified(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"stateChanged(QRemoteObjectReplica::State,QRemoteObjectReplica::State)", "\1stateChanged(self, QRemoteObjectReplica.State, QRemoteObjectReplica.State)", SIP_NULLPTR, SIP_NULLPTR},
    {"initialized()", "\1initialized(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QRemoteObjectReplica = {
    & ::QRemoteObjectReplica::staticMetaObject,
    0,
    signals_QRemoteObjectReplica,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtRemoteObjects_QRemoteObjectReplica = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRemoteObjectReplica,
        SIP_NULLPTR,
        &plugin_QRemoteObjectReplica
    },
    {
        sipNameNr_QRemoteObjectReplica,
        {0, 0, 1},
        6, methods_QRemoteObjectReplica,
        5, enummembers_QRemoteObjectReplica,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QRemoteObjectReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QRemoteObjectReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QRemoteObjectReplica,
    cast_QRemoteObjectReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
