/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.7.0
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * 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 "sipAPIQtCore.h"

#line 590 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQSignalBlocker.cpp"

#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQSignalBlocker.cpp"


PyDoc_STRVAR(doc_QSignalBlocker_reblock, "reblock(self)");

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

    {
         ::QSignalBlocker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSignalBlocker, &sipCpp))
        {
            sipCpp->reblock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QSignalBlocker, sipName_reblock, doc_QSignalBlocker_reblock);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QSignalBlocker_unblock, "unblock(self)");

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

    {
         ::QSignalBlocker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSignalBlocker, &sipCpp))
        {
            sipCpp->unblock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QSignalBlocker, sipName_unblock, doc_QSignalBlocker_unblock);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QSignalBlocker___enter__, "__enter__(self) -> object");

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

    {
         ::QSignalBlocker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSignalBlocker, &sipCpp))
        {
            PyObject * sipRes = SIP_NULLPTR;

#line 600 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobject.sip"
        // Just return a reference to self.
        sipRes = sipSelf;
        Py_INCREF(sipRes);
#line 107 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQSignalBlocker.cpp"

            return sipRes;
        }
    }

    sipNoMethod(sipParseErr, sipName_QSignalBlocker, sipName___enter__, doc_QSignalBlocker___enter__);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QSignalBlocker___exit__, "__exit__(self, object, object, object)");

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

    {
        PyObject * a0;
        PyObject * a1;
        PyObject * a2;
         ::QSignalBlocker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0P0P0", &sipSelf, sipType_QSignalBlocker, &sipCpp, &a0, &a1, &a2))
        {
#line 607 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobject.sip"
        sipCpp->unblock();
#line 137 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQSignalBlocker.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QSignalBlocker, sipName___exit__, doc_QSignalBlocker___exit__);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSignalBlocker(void *, int);}
static void release_QSignalBlocker(void *sipCppV, int)
{
    delete reinterpret_cast< ::QSignalBlocker *>(sipCppV);
}


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


extern "C" {static void *init_type_QSignalBlocker(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSignalBlocker(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QSignalBlocker *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J8", sipType_QObject, &a0))
        {
            sipCpp = new  ::QSignalBlocker(a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QSignalBlocker[] = {
    {sipName___enter__, meth_QSignalBlocker___enter__, METH_VARARGS, doc_QSignalBlocker___enter__},
    {sipName___exit__, meth_QSignalBlocker___exit__, METH_VARARGS, doc_QSignalBlocker___exit__},
    {sipName_reblock, meth_QSignalBlocker_reblock, METH_VARARGS, doc_QSignalBlocker_reblock},
    {sipName_unblock, meth_QSignalBlocker_unblock, METH_VARARGS, doc_QSignalBlocker_unblock}
};

PyDoc_STRVAR(doc_QSignalBlocker, "\1QSignalBlocker(QObject)");


sipClassTypeDef sipTypeDef_QtCore_QSignalBlocker = {
    {
        SIP_NULLPTR,
        SIP_TYPE_NONLAZY|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSignalBlocker,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QSignalBlocker,
        {0, 0, 1},
        4, methods_QSignalBlocker,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QSignalBlocker,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QSignalBlocker,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QSignalBlocker,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QSignalBlocker,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof ( ::QSignalBlocker),
};
