/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.3
 */

#include "sipAPIKGuiAddons.h"

#include <kiconutils.h>

#include <qicon.h>
#include <qnamespace.h>
#include <qhash.h>


extern "C" {static PyObject *meth_KIconUtils_addOverlays(PyObject *, PyObject *);}
static PyObject *meth_KIconUtils_addOverlays(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QIcon* a0;
        const QHash< ::Qt::Corner, ::QIcon>* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_QIcon, &a0, sipType_QHash_0100Qt_Corner_0100QIcon,&a1, &a1State))
        {
             ::QIcon*sipRes;

            sipRes = new  ::QIcon( ::KIconUtils::addOverlays(*a0,*a1));
            sipReleaseType(const_cast<QHash< ::Qt::Corner, ::QIcon> *>(a1),sipType_QHash_0100Qt_Corner_0100QIcon,a1State);

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_addOverlays, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIconUtils_addOverlay(PyObject *, PyObject *);}
static PyObject *meth_KIconUtils_addOverlay(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QIcon* a0;
        const  ::QIcon* a1;
         ::Qt::Corner a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9E", sipType_QIcon, &a0, sipType_QIcon, &a1, sipType_Qt_Corner, &a2))
        {
             ::QIcon*sipRes;

            sipRes = new  ::QIcon( ::KIconUtils::addOverlay(*a0,*a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_addOverlay, NULL);

    return NULL;
}


static PyMethodDef methods_KIconUtils[] = {
    {SIP_MLNAME_CAST(sipName_addOverlay), meth_KIconUtils_addOverlay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addOverlays), meth_KIconUtils_addOverlays, METH_VARARGS, NULL}
};


static pyqt5ClassPluginDef plugin_KIconUtils = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KGuiAddons_KIconUtils = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_NAMESPACE,
        sipNameNr_KIconUtils,
        {0},
        &plugin_KIconUtils
    },
    {
        sipNameNr_KIconUtils,
        {0, 0, 1},
        2, methods_KIconUtils,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
