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

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtSensors/qtapsensor.sip"
#include <qtapsensor.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 41 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 68 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 77 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtSensors/sipQtSensorsQTapReading.cpp"


PyDoc_STRVAR(doc_QTapReading_tapDirection, "tapDirection(self) -> QTapReading.TapDirection");

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

    {
        const  ::QTapReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTapReading, &sipCpp))
        {
             ::QTapReading::TapDirection sipRes;

            sipRes = sipCpp->tapDirection();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QTapReading_TapDirection);
        }
    }

    sipNoMethod(sipParseErr, sipName_QTapReading, sipName_tapDirection, doc_QTapReading_tapDirection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QTapReading_setTapDirection, "setTapDirection(self, QTapReading.TapDirection)");

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

    {
         ::QTapReading::TapDirection a0;
         ::QTapReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTapReading, &sipCpp, sipType_QTapReading_TapDirection, &a0))
        {
            sipCpp->setTapDirection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QTapReading, sipName_setTapDirection, doc_QTapReading_setTapDirection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QTapReading_isDoubleTap, "isDoubleTap(self) -> bool");

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

    {
        const  ::QTapReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTapReading, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDoubleTap();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QTapReading, sipName_isDoubleTap, doc_QTapReading_isDoubleTap);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QTapReading_setDoubleTap, "setDoubleTap(self, bool)");

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

    {
        bool a0;
         ::QTapReading *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTapReading, &sipCpp, &a0))
        {
            sipCpp->setDoubleTap(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QTapReading, sipName_setDoubleTap, doc_QTapReading_setDoubleTap);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QTapReading)
        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_QTapReading(void *, int);}
static void release_QTapReading(void *sipCppV, int)
{
     ::QTapReading *sipCpp = reinterpret_cast< ::QTapReading *>(sipCppV);

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


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


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


static PyMethodDef methods_QTapReading[] = {
    {sipName_isDoubleTap, meth_QTapReading_isDoubleTap, METH_VARARGS, doc_QTapReading_isDoubleTap},
    {sipName_setDoubleTap, meth_QTapReading_setDoubleTap, METH_VARARGS, doc_QTapReading_setDoubleTap},
    {sipName_setTapDirection, meth_QTapReading_setTapDirection, METH_VARARGS, doc_QTapReading_setTapDirection},
    {sipName_tapDirection, meth_QTapReading_tapDirection, METH_VARARGS, doc_QTapReading_tapDirection}
};

static sipEnumMemberDef enummembers_QTapReading[] = {
    {sipName_Undefined, static_cast<int>( ::QTapReading::Undefined), 63},
    {sipName_X, static_cast<int>( ::QTapReading::X), 63},
    {sipName_X_Both, static_cast<int>( ::QTapReading::X_Both), 63},
    {sipName_X_Neg, static_cast<int>( ::QTapReading::X_Neg), 63},
    {sipName_X_Pos, static_cast<int>( ::QTapReading::X_Pos), 63},
    {sipName_Y, static_cast<int>( ::QTapReading::Y), 63},
    {sipName_Y_Both, static_cast<int>( ::QTapReading::Y_Both), 63},
    {sipName_Y_Neg, static_cast<int>( ::QTapReading::Y_Neg), 63},
    {sipName_Y_Pos, static_cast<int>( ::QTapReading::Y_Pos), 63},
    {sipName_Z, static_cast<int>( ::QTapReading::Z), 63},
    {sipName_Z_Both, static_cast<int>( ::QTapReading::Z_Both), 63},
    {sipName_Z_Neg, static_cast<int>( ::QTapReading::Z_Neg), 63},
    {sipName_Z_Pos, static_cast<int>( ::QTapReading::Z_Pos), 63},
};


static pyqt5ClassPluginDef plugin_QTapReading = {
    & ::QTapReading::staticMetaObject,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtSensors_QTapReading = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTapReading,
        SIP_NULLPTR,
        &plugin_QTapReading
    },
    {
        sipNameNr_QTapReading,
        {0, 0, 1},
        4, methods_QTapReading,
        13, enummembers_QTapReading,
        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_QTapReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QTapReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QTapReading,
    cast_QTapReading,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
