/*
 * 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 266 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 29 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQDynamicPropertyChangeEvent.cpp"

#line 30 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 33 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQDynamicPropertyChangeEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36 "/build/pyqt6/src/PyQt6-6.4.0/build/QtCore/sipQtCoreQDynamicPropertyChangeEvent.cpp"


class sipQDynamicPropertyChangeEvent : public  ::QDynamicPropertyChangeEvent
{
public:
    sipQDynamicPropertyChangeEvent(const  ::QByteArray&);
    virtual ~sipQDynamicPropertyChangeEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setAccepted(bool) SIP_OVERRIDE;
     ::QDynamicPropertyChangeEvent* clone() const SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipQDynamicPropertyChangeEvent::sipQDynamicPropertyChangeEvent(const  ::QByteArray& a0):  ::QDynamicPropertyChangeEvent(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipQDynamicPropertyChangeEvent::setAccepted(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QDynamicPropertyChangeEvent::setAccepted(a0);
        return;
    }

    extern void sipVH_QtCore_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtCore_50(sipGILState, sipVEH_QtCore_PyQt6, sipPySelf, sipMeth, a0);
}

 ::QDynamicPropertyChangeEvent* sipQDynamicPropertyChangeEvent::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QDynamicPropertyChangeEvent::clone();

    extern  ::QDynamicPropertyChangeEvent* sipVH_QtCore_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtCore_54(sipGILState, sipVEH_QtCore_PyQt6, sipPySelf, sipMeth);
}


PyDoc_STRVAR(doc_QDynamicPropertyChangeEvent_propertyName, "propertyName(self) -> QByteArray");

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

    {
        const  ::QDynamicPropertyChangeEvent *sipCpp;

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

            sipRes = new  ::QByteArray(sipCpp->propertyName());

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

    sipNoMethod(sipParseErr, sipName_QDynamicPropertyChangeEvent, sipName_propertyName, doc_QDynamicPropertyChangeEvent_propertyName);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QDynamicPropertyChangeEvent_clone, "clone(self) -> QDynamicPropertyChangeEvent");

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

    {
        const  ::QDynamicPropertyChangeEvent *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::QDynamicPropertyChangeEvent::clone() : sipCpp->clone());

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

    sipNoMethod(sipParseErr, sipName_QDynamicPropertyChangeEvent, sipName_clone, doc_QDynamicPropertyChangeEvent_clone);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QDynamicPropertyChangeEvent)
        return sipCppV;

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDynamicPropertyChangeEvent(void *, int);}
static void release_QDynamicPropertyChangeEvent(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQDynamicPropertyChangeEvent *>(sipCppV);
    else
        delete reinterpret_cast< ::QDynamicPropertyChangeEvent *>(sipCppV);
}


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

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


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

    {
        const  ::QByteArray* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J1", sipType_QByteArray, &a0, &a0State))
        {
            sipCpp = new sipQDynamicPropertyChangeEvent(*a0);
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QDynamicPropertyChangeEvent[] = {
    {sipName_clone, meth_QDynamicPropertyChangeEvent_clone, METH_VARARGS, doc_QDynamicPropertyChangeEvent_clone},
    {sipName_propertyName, meth_QDynamicPropertyChangeEvent_propertyName, METH_VARARGS, doc_QDynamicPropertyChangeEvent_propertyName}
};

PyDoc_STRVAR(doc_QDynamicPropertyChangeEvent, "\1QDynamicPropertyChangeEvent(QByteArray)");


sipClassTypeDef sipTypeDef_QtCore_QDynamicPropertyChangeEvent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDynamicPropertyChangeEvent,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QDynamicPropertyChangeEvent,
        {0, 0, 1},
        2, methods_QDynamicPropertyChangeEvent,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QDynamicPropertyChangeEvent,
    -1,
    -1,
    supers_QDynamicPropertyChangeEvent,
    SIP_NULLPTR,
    init_type_QDynamicPropertyChangeEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QDynamicPropertyChangeEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QDynamicPropertyChangeEvent,
    cast_QDynamicPropertyChangeEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof ( ::QDynamicPropertyChangeEvent),
};
