/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.2
 *
 * Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of QScintilla.
 * 
 * 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 "sipAPIQsci.h"

#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qscicommandset.sip"
#include <Qsci/qscicommandset.h>
#line 29 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommandSet.cpp"

#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qsciscintilla.sip"
#include <Qsci/qsciscintilla.h>
#line 33 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommandSet.cpp"
#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qscicommand.sip"
#include <Qsci/qscicommand.h>
#line 36 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommandSet.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommandSet.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qsettings.sip"
#include <qsettings.h>
#line 42 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommandSet.cpp"


PyDoc_STRVAR(doc_QsciCommandSet_readSettings, "readSettings(self, qs: QSettings, prefix: str = \"/Scintilla\") -> bool");

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

    {
        ::QSettings* a0;
        const char* a1 = "/Scintilla";
        PyObject *a1Keep = 0;
        ::QsciCommandSet *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_prefix,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|AA", &sipSelf, sipType_QsciCommandSet, &sipCpp, sipType_QSettings, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->readSettings(*a0, a1);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_readSettings, doc_QsciCommandSet_readSettings);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_writeSettings, "writeSettings(self, qs: QSettings, prefix: str = \"/Scintilla\") -> bool");

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

    {
        ::QSettings* a0;
        const char* a1 = "/Scintilla";
        PyObject *a1Keep = 0;
        ::QsciCommandSet *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_prefix,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|AA", &sipSelf, sipType_QsciCommandSet, &sipCpp, sipType_QSettings, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->writeSettings(*a0, a1);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_writeSettings, doc_QsciCommandSet_writeSettings);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_commands, "commands(self) -> list[QsciCommand]");

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

    {
        ::QsciCommandSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QsciCommandSet, &sipCpp))
        {
            QList< ::QsciCommand*>*sipRes;

            sipRes = &sipCpp->commands();

            return sipConvertFromType(sipRes, sipType_QList_0101QsciCommand, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_commands, doc_QsciCommandSet_commands);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_clearKeys, "clearKeys(self)");

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

    {
        ::QsciCommandSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QsciCommandSet, &sipCpp))
        {
            sipCpp->clearKeys();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_clearKeys, doc_QsciCommandSet_clearKeys);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_clearAlternateKeys, "clearAlternateKeys(self)");

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

    {
        ::QsciCommandSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QsciCommandSet, &sipCpp))
        {
            sipCpp->clearAlternateKeys();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_clearAlternateKeys, doc_QsciCommandSet_clearAlternateKeys);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_boundTo, "boundTo(self, key: int) -> QsciCommand|None");

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

    {
        int a0;
        const ::QsciCommandSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QsciCommandSet, &sipCpp, &a0))
        {
            ::QsciCommand*sipRes;

            sipRes = sipCpp->boundTo(a0);

            return sipConvertFromType(sipRes, sipType_QsciCommand, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_boundTo, doc_QsciCommandSet_boundTo);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommandSet_find, "find(self, command: QsciCommand.Command) -> QsciCommand|None");

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

    {
        ::QsciCommand::Command a0;
        const ::QsciCommandSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QsciCommandSet, &sipCpp, sipType_QsciCommand_Command, &a0))
        {
            ::QsciCommand*sipRes;

            sipRes = sipCpp->find(a0);

            return sipConvertFromType(sipRes, sipType_QsciCommand, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommandSet, sipName_find, doc_QsciCommandSet_find);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QsciCommandSet(void *, int);}
static void release_QsciCommandSet(void *, int)
{
}


static PyMethodDef methods_QsciCommandSet[] = {
    {sipName_boundTo, meth_QsciCommandSet_boundTo, METH_VARARGS, doc_QsciCommandSet_boundTo},
    {sipName_clearAlternateKeys, meth_QsciCommandSet_clearAlternateKeys, METH_VARARGS, doc_QsciCommandSet_clearAlternateKeys},
    {sipName_clearKeys, meth_QsciCommandSet_clearKeys, METH_VARARGS, doc_QsciCommandSet_clearKeys},
    {sipName_commands, meth_QsciCommandSet_commands, METH_VARARGS, doc_QsciCommandSet_commands},
    {sipName_find, meth_QsciCommandSet_find, METH_VARARGS, doc_QsciCommandSet_find},
    {sipName_readSettings, SIP_MLMETH_CAST(meth_QsciCommandSet_readSettings), METH_VARARGS|METH_KEYWORDS, doc_QsciCommandSet_readSettings},
    {sipName_writeSettings, SIP_MLMETH_CAST(meth_QsciCommandSet_writeSettings), METH_VARARGS|METH_KEYWORDS, doc_QsciCommandSet_writeSettings}
};


sipClassTypeDef sipTypeDef_Qsci_QsciCommandSet = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QsciCommandSet,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QsciCommandSet,
        {0, 0, 1},
        7, methods_QsciCommandSet,
        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,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QsciCommandSet,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
