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

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtHelp/qhelpsearchengine.sip"
#include <qhelpsearchengine.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtHelp/sipQtHelpQHelpSearchQuery.cpp"

#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtHelp/sipQtHelpQHelpSearchQuery.cpp"


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
         ::QHelpSearchQuery::FieldName a0;
        const  ::QStringList* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "EJ1", sipType_QHelpSearchQuery_FieldName, &a0, sipType_QStringList, &a1, &a1State))
        {
            sipCpp = new  ::QHelpSearchQuery(a0,*a1);
            sipReleaseType(const_cast< ::QStringList *>(a1), sipType_QStringList, a1State);

            return sipCpp;
        }
    }

    {
        const  ::QHelpSearchQuery* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

static sipEnumMemberDef enummembers_QHelpSearchQuery[] = {
    {sipName_ALL, static_cast<int>( ::QHelpSearchQuery::ALL), 14},
    {sipName_ATLEAST, static_cast<int>( ::QHelpSearchQuery::ATLEAST), 14},
    {sipName_DEFAULT, static_cast<int>( ::QHelpSearchQuery::DEFAULT), 14},
    {sipName_FUZZY, static_cast<int>( ::QHelpSearchQuery::FUZZY), 14},
    {sipName_PHRASE, static_cast<int>( ::QHelpSearchQuery::PHRASE), 14},
    {sipName_WITHOUT, static_cast<int>( ::QHelpSearchQuery::WITHOUT), 14},
};

PyDoc_STRVAR(doc_QHelpSearchQuery, "\1QHelpSearchQuery()\n"
"QHelpSearchQuery(QHelpSearchQuery.FieldName, Iterable[str])\n"
"QHelpSearchQuery(QHelpSearchQuery)");


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


sipClassTypeDef sipTypeDef_QtHelp_QHelpSearchQuery = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHelpSearchQuery,
        SIP_NULLPTR,
        &plugin_QHelpSearchQuery
    },
    {
        sipNameNr_QHelpSearchQuery,
        {0, 0, 1},
        0, SIP_NULLPTR,
        6, enummembers_QHelpSearchQuery,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QHelpSearchQuery,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QHelpSearchQuery,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QHelpSearchQuery,
    assign_QHelpSearchQuery,
    array_QHelpSearchQuery,
    copy_QHelpSearchQuery,
    release_QHelpSearchQuery,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QHelpSearchQuery,
    sizeof ( ::QHelpSearchQuery),
};
