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

#include "sipAPIKWidgetsAddons.h"

#include <kacceleratormanager.h>

#include <qstringlist.h>
#include <qwidget.h>
#include <qstring.h>


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

    {
         ::QWidget* a0;
        bool a1 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8|b", sipType_QWidget, &a0, &a1))
        {
             ::KAcceleratorManager::manage(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QString* a0;
        int a0State = 0;
         ::QString* a1;
        int a1State = 0;
         ::QString* a2;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
             ::KAcceleratorManager::last_manage(*a0,*a1,*a2);
            sipReleaseType(a0,sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QWidget, &a0))
        {
             ::KAcceleratorManager::setNoAccel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QStringList* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QStringList,&a0, &a0State))
        {
             ::KAcceleratorManager::addStandardActionNames(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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


extern "C" {static void assign_KAcceleratorManager(void *, SIP_SSIZE_T, void *);}
static void assign_KAcceleratorManager(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::KAcceleratorManager *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::KAcceleratorManager *>(sipSrc);
}


extern "C" {static void *array_KAcceleratorManager(SIP_SSIZE_T);}
static void *array_KAcceleratorManager(SIP_SSIZE_T sipNrElem)
{
    return new  ::KAcceleratorManager[sipNrElem];
}


extern "C" {static void *copy_KAcceleratorManager(const void *, SIP_SSIZE_T);}
static void *copy_KAcceleratorManager(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KAcceleratorManager(reinterpret_cast<const  ::KAcceleratorManager *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_KAcceleratorManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAcceleratorManager(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KAcceleratorManager *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const  ::KAcceleratorManager* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAcceleratorManager, &a0))
        {
            sipCpp = new  ::KAcceleratorManager(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAcceleratorManager[] = {
    {SIP_MLNAME_CAST(sipName_addStandardActionNames), meth_KAcceleratorManager_addStandardActionNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_last_manage), meth_KAcceleratorManager_last_manage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_manage), meth_KAcceleratorManager_manage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNoAccel), meth_KAcceleratorManager_setNoAccel, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_KWidgetsAddons_KAcceleratorManager = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KAcceleratorManager,
        {0},
        &plugin_KAcceleratorManager
    },
    {
        sipNameNr_KAcceleratorManager,
        {0, 0, 1},
        4, methods_KAcceleratorManager,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    init_type_KAcceleratorManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAcceleratorManager,
    assign_KAcceleratorManager,
    array_KAcceleratorManager,
    copy_KAcceleratorManager,
    release_KAcceleratorManager,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
