/*
 * 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 "sipAPIQtMultimedia.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qcamera.sip"
#include <qcamera.h>
#line 167 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtMultimedia/qcamera.sip"
#include <qcamera.h>
#line 31 "/build/pyqt5/src/PyQt5-5.15.7/build/QtMultimedia/sipQtMultimediaQCameraFrameRateRange.cpp"



extern "C" {static PyObject *slot_QCamera_FrameRateRange___eq__(PyObject *,PyObject *);}
static PyObject *slot_QCamera_FrameRateRange___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QCamera_FrameRateRange));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QCamera::FrameRateRange* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QCamera_FrameRateRange, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtMultimedia, eq_slot, sipType_QCamera_FrameRateRange, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QCamera_FrameRateRange___ne__(PyObject *,PyObject *);}
static PyObject *slot_QCamera_FrameRateRange___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QCamera_FrameRateRange));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QCamera::FrameRateRange* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QCamera_FrameRateRange, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtMultimedia, ne_slot, sipType_QCamera_FrameRateRange, sipSelf, sipArg);
}


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


extern "C" {static void *array_QCamera_FrameRateRange(Py_ssize_t);}
static void *array_QCamera_FrameRateRange(Py_ssize_t sipNrElem)
{
    return new  ::QCamera::FrameRateRange[sipNrElem];
}


extern "C" {static void array_delete_QCamera_FrameRateRange(void *);}
static void array_delete_QCamera_FrameRateRange(void *sipCpp)
{
    delete[] reinterpret_cast< ::QCamera::FrameRateRange *>(sipCpp);
}


extern "C" {static void assign_QCamera_FrameRateRange(void *, Py_ssize_t, void *);}
static void assign_QCamera_FrameRateRange(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QCamera::FrameRateRange *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QCamera::FrameRateRange *>(sipSrc);
}


extern "C" {static void *copy_QCamera_FrameRateRange(const void *, Py_ssize_t);}
static void *copy_QCamera_FrameRateRange(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QCamera::FrameRateRange(reinterpret_cast<const  ::QCamera::FrameRateRange *>(sipSrc)[sipSrcIdx]);
}


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


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

    {
         ::qreal a0;
         ::qreal a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "dd", &a0, &a1))
        {
            sipCpp = new  ::QCamera::FrameRateRange(a0,a1);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new  ::QCamera::FrameRateRange();

            return sipCpp;
        }
    }

    {
        const  ::QCamera::FrameRateRange* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QCamera_FrameRateRange, &a0))
        {
            sipCpp = new  ::QCamera::FrameRateRange(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QCamera_FrameRateRange[] = {
    {(void *)slot_QCamera_FrameRateRange___eq__, eq_slot},
    {(void *)slot_QCamera_FrameRateRange___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


extern "C" {static PyObject *varget_QCamera_FrameRateRange_maximumFrameRate(void *, PyObject *, PyObject *);}
static PyObject *varget_QCamera_FrameRateRange_maximumFrameRate(void *sipSelf, PyObject *, PyObject *)
{
     ::qreal sipVal;
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipSelf);

    sipVal = sipCpp->maximumFrameRate;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QCamera_FrameRateRange_maximumFrameRate(void *, PyObject *, PyObject *);}
static int varset_QCamera_FrameRateRange_maximumFrameRate(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::qreal sipVal;
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->maximumFrameRate = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QCamera_FrameRateRange_minimumFrameRate(void *, PyObject *, PyObject *);}
static PyObject *varget_QCamera_FrameRateRange_minimumFrameRate(void *sipSelf, PyObject *, PyObject *)
{
     ::qreal sipVal;
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipSelf);

    sipVal = sipCpp->minimumFrameRate;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QCamera_FrameRateRange_minimumFrameRate(void *, PyObject *, PyObject *);}
static int varset_QCamera_FrameRateRange_minimumFrameRate(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::qreal sipVal;
     ::QCamera::FrameRateRange *sipCpp = reinterpret_cast< ::QCamera::FrameRateRange *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->minimumFrameRate = sipVal;

    return 0;
}

sipVariableDef variables_QCamera_FrameRateRange[] = {
    {InstanceVariable, sipName_maximumFrameRate, (PyMethodDef *)varget_QCamera_FrameRateRange_maximumFrameRate, (PyMethodDef *)varset_QCamera_FrameRateRange_maximumFrameRate, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_minimumFrameRate, (PyMethodDef *)varget_QCamera_FrameRateRange_minimumFrameRate, (PyMethodDef *)varset_QCamera_FrameRateRange_minimumFrameRate, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QCamera_FrameRateRange, "\1QCamera.FrameRateRange(float, float)\n"
"QCamera.FrameRateRange()\n"
"QCamera.FrameRateRange(QCamera.FrameRateRange)");


static pyqt5ClassPluginDef plugin_QCamera_FrameRateRange = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtMultimedia_QCamera_FrameRateRange = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QCamera__FrameRateRange,
        SIP_NULLPTR,
        &plugin_QCamera_FrameRateRange
    },
    {
        sipNameNr_FrameRateRange,
        {30, 255, 0},
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        2, variables_QCamera_FrameRateRange,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QCamera_FrameRateRange,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QCamera_FrameRateRange,
    init_type_QCamera_FrameRateRange,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QCamera_FrameRateRange,
    assign_QCamera_FrameRateRange,
    array_QCamera_FrameRateRange,
    copy_QCamera_FrameRateRange,
    release_QCamera_FrameRateRange,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QCamera_FrameRateRange,
    sizeof ( ::QCamera::FrameRateRange),
};
