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

#line 52 "/build/pyqt5/src/PyQt5-5.15.7/sip/pyrcc/pyrccmod.sip"
#include "rcc.h"
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/pyrcc/sippyrccRCCResourceLibrary.cpp"

#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/pyrcc/sippyrccRCCResourceLibrary.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/pyrcc/sippyrccRCCResourceLibrary.cpp"


PyDoc_STRVAR(doc_RCCResourceLibrary_output, "output(self, str) -> bool");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_RCCResourceLibrary, &sipCpp, sipType_QString, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->output(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_output, doc_RCCResourceLibrary_output);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_readFiles, "readFiles(self) -> bool");

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

    {
         ::RCCResourceLibrary *sipCpp;

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

            sipRes = sipCpp->readFiles();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_readFiles, doc_RCCResourceLibrary_readFiles);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_setInputFiles, "setInputFiles(self, Iterable[str])");

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

    {
         ::QStringList* a0;
        int a0State = 0;
         ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_RCCResourceLibrary, &sipCpp, sipType_QStringList, &a0, &a0State))
        {
            sipCpp->setInputFiles(*a0);
            sipReleaseType(a0, sipType_QStringList, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_setInputFiles, doc_RCCResourceLibrary_setInputFiles);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_dataFiles, "dataFiles(self) -> List[str]");

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

    {
        const  ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_RCCResourceLibrary, &sipCpp))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList(sipCpp->dataFiles());

            return sipConvertFromNewType(sipRes,sipType_QStringList,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_dataFiles, doc_RCCResourceLibrary_dataFiles);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_setVerbose, "setVerbose(self, bool)");

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

    {
        bool a0;
         ::RCCResourceLibrary *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_setVerbose, doc_RCCResourceLibrary_setVerbose);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_setCompressLevel, "setCompressLevel(self, int)");

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

    {
        int a0;
         ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_RCCResourceLibrary, &sipCpp, &a0))
        {
            sipCpp->setCompressLevel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_setCompressLevel, doc_RCCResourceLibrary_setCompressLevel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_setCompressThreshold, "setCompressThreshold(self, int)");

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

    {
        int a0;
         ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_RCCResourceLibrary, &sipCpp, &a0))
        {
            sipCpp->setCompressThreshold(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_setCompressThreshold, doc_RCCResourceLibrary_setCompressThreshold);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_RCCResourceLibrary_setResourceRoot, "setResourceRoot(self, str)");

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

    {
         ::QString* a0;
        int a0State = 0;
         ::RCCResourceLibrary *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_RCCResourceLibrary, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setResourceRoot(*a0);
            sipReleaseType(a0, sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RCCResourceLibrary, sipName_setResourceRoot, doc_RCCResourceLibrary_setResourceRoot);

    return SIP_NULLPTR;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::RCCResourceLibrary* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_RCCResourceLibrary[] = {
    {sipName_dataFiles, meth_RCCResourceLibrary_dataFiles, METH_VARARGS, doc_RCCResourceLibrary_dataFiles},
    {sipName_output, meth_RCCResourceLibrary_output, METH_VARARGS, doc_RCCResourceLibrary_output},
    {sipName_readFiles, meth_RCCResourceLibrary_readFiles, METH_VARARGS, doc_RCCResourceLibrary_readFiles},
    {sipName_setCompressLevel, meth_RCCResourceLibrary_setCompressLevel, METH_VARARGS, doc_RCCResourceLibrary_setCompressLevel},
    {sipName_setCompressThreshold, meth_RCCResourceLibrary_setCompressThreshold, METH_VARARGS, doc_RCCResourceLibrary_setCompressThreshold},
    {sipName_setInputFiles, meth_RCCResourceLibrary_setInputFiles, METH_VARARGS, doc_RCCResourceLibrary_setInputFiles},
    {sipName_setResourceRoot, meth_RCCResourceLibrary_setResourceRoot, METH_VARARGS, doc_RCCResourceLibrary_setResourceRoot},
    {sipName_setVerbose, meth_RCCResourceLibrary_setVerbose, METH_VARARGS, doc_RCCResourceLibrary_setVerbose}
};

PyDoc_STRVAR(doc_RCCResourceLibrary, "\1RCCResourceLibrary()\n"
"RCCResourceLibrary(RCCResourceLibrary)");


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


sipClassTypeDef sipTypeDef_pyrcc_RCCResourceLibrary = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_RCCResourceLibrary,
        SIP_NULLPTR,
        &plugin_RCCResourceLibrary
    },
    {
        sipNameNr_RCCResourceLibrary,
        {0, 0, 1},
        8, methods_RCCResourceLibrary,
        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_RCCResourceLibrary,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_RCCResourceLibrary,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_RCCResourceLibrary,
    assign_RCCResourceLibrary,
    array_RCCResourceLibrary,
    copy_RCCResourceLibrary,
    release_RCCResourceLibrary,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_RCCResourceLibrary,
    sizeof ( ::RCCResourceLibrary),
};
