/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * 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 "sipAPIQtSensors.h"

#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtSensors/qmagnetometer.sip"
#include <qmagnetometer.h>
#line 29 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"

#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 33 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 38 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 41 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 245 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 232 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 53 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 24 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 56 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 59 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 30 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 62 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 135 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 70 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 73 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 25 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 76 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 79 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 82 "/build/pyqt6/src/PyQt6-6.3.1/build/QtSensors/sipQtSensorsQMagnetometerReading.cpp"


PyDoc_STRVAR(doc_QMagnetometerReading_x, "x(self) -> float");

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

    {
        const  ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMagnetometerReading, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_x, doc_QMagnetometerReading_x);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_setX, "setX(self, float)");

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

    {
         ::qreal a0;
         ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMagnetometerReading, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_setX, doc_QMagnetometerReading_setX);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_y, "y(self) -> float");

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

    {
        const  ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMagnetometerReading, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_y, doc_QMagnetometerReading_y);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_setY, "setY(self, float)");

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

    {
         ::qreal a0;
         ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMagnetometerReading, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_setY, doc_QMagnetometerReading_setY);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_z, "z(self) -> float");

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

    {
        const  ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMagnetometerReading, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->z();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_z, doc_QMagnetometerReading_z);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_setZ, "setZ(self, float)");

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

    {
         ::qreal a0;
         ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMagnetometerReading, &sipCpp, &a0))
        {
            sipCpp->setZ(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_setZ, doc_QMagnetometerReading_setZ);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_calibrationLevel, "calibrationLevel(self) -> float");

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

    {
        const  ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMagnetometerReading, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->calibrationLevel();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_calibrationLevel, doc_QMagnetometerReading_calibrationLevel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMagnetometerReading_setCalibrationLevel, "setCalibrationLevel(self, float)");

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

    {
         ::qreal a0;
         ::QMagnetometerReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMagnetometerReading, &sipCpp, &a0))
        {
            sipCpp->setCalibrationLevel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMagnetometerReading, sipName_setCalibrationLevel, doc_QMagnetometerReading_setCalibrationLevel);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QMagnetometerReading)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QSensorReading)->ctd_cast(static_cast< ::QSensorReading *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QMagnetometerReading[] = {
    {sipName_calibrationLevel, meth_QMagnetometerReading_calibrationLevel, METH_VARARGS, doc_QMagnetometerReading_calibrationLevel},
    {sipName_setCalibrationLevel, meth_QMagnetometerReading_setCalibrationLevel, METH_VARARGS, doc_QMagnetometerReading_setCalibrationLevel},
    {sipName_setX, meth_QMagnetometerReading_setX, METH_VARARGS, doc_QMagnetometerReading_setX},
    {sipName_setY, meth_QMagnetometerReading_setY, METH_VARARGS, doc_QMagnetometerReading_setY},
    {sipName_setZ, meth_QMagnetometerReading_setZ, METH_VARARGS, doc_QMagnetometerReading_setZ},
    {sipName_x, meth_QMagnetometerReading_x, METH_VARARGS, doc_QMagnetometerReading_x},
    {sipName_y, meth_QMagnetometerReading_y, METH_VARARGS, doc_QMagnetometerReading_y},
    {sipName_z, meth_QMagnetometerReading_z, METH_VARARGS, doc_QMagnetometerReading_z}
};


static pyqt6ClassPluginDef plugin_QMagnetometerReading = {
    & ::QMagnetometerReading::staticMetaObject,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtSensors_QMagnetometerReading = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMagnetometerReading,
        SIP_NULLPTR,
        &plugin_QMagnetometerReading
    },
    {
        sipNameNr_QMagnetometerReading,
        {0, 0, 1},
        8, methods_QMagnetometerReading,
        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_QMagnetometerReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QMagnetometerReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QMagnetometerReading,
    cast_QMagnetometerReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
