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



extern "C" {static PyObject *slot_QOperatingSystemVersionBase___lt__(PyObject *,PyObject *);}
static PyObject *slot_QOperatingSystemVersionBase___lt__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QOperatingSystemVersionBase *sipCpp = reinterpret_cast< ::QOperatingSystemVersionBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOperatingSystemVersionBase));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOperatingSystemVersionBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtCore, lt_slot, sipType_QOperatingSystemVersionBase, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QOperatingSystemVersionBase___le__(PyObject *,PyObject *);}
static PyObject *slot_QOperatingSystemVersionBase___le__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QOperatingSystemVersionBase *sipCpp = reinterpret_cast< ::QOperatingSystemVersionBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOperatingSystemVersionBase));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOperatingSystemVersionBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtCore, le_slot, sipType_QOperatingSystemVersionBase, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QOperatingSystemVersionBase___gt__(PyObject *,PyObject *);}
static PyObject *slot_QOperatingSystemVersionBase___gt__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QOperatingSystemVersionBase *sipCpp = reinterpret_cast< ::QOperatingSystemVersionBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOperatingSystemVersionBase));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOperatingSystemVersionBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtCore, gt_slot, sipType_QOperatingSystemVersionBase, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QOperatingSystemVersionBase___ge__(PyObject *,PyObject *);}
static PyObject *slot_QOperatingSystemVersionBase___ge__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QOperatingSystemVersionBase *sipCpp = reinterpret_cast< ::QOperatingSystemVersionBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOperatingSystemVersionBase));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QOperatingSystemVersionBase* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtCore, ge_slot, sipType_QOperatingSystemVersionBase, sipSelf, sipArg);
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::QOperatingSystemVersionBase* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOperatingSystemVersionBase[] = {
    {(void *)slot_QOperatingSystemVersionBase___lt__, lt_slot},
    {(void *)slot_QOperatingSystemVersionBase___le__, le_slot},
    {(void *)slot_QOperatingSystemVersionBase___gt__, gt_slot},
    {(void *)slot_QOperatingSystemVersionBase___ge__, ge_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOperatingSystemVersionBase, "\1QOperatingSystemVersionBase()\n"
"QOperatingSystemVersionBase(QOperatingSystemVersionBase)");


sipClassTypeDef sipTypeDef_QtCore_QOperatingSystemVersionBase = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOperatingSystemVersionBase,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QOperatingSystemVersionBase,
        {0, 0, 1},
        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_QOperatingSystemVersionBase,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QOperatingSystemVersionBase,
    init_type_QOperatingSystemVersionBase,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QOperatingSystemVersionBase,
    assign_QOperatingSystemVersionBase,
    array_QOperatingSystemVersionBase,
    copy_QOperatingSystemVersionBase,
    release_QOperatingSystemVersionBase,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QOperatingSystemVersionBase,
    sizeof ( ::QOperatingSystemVersionBase),
};
