/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:12:07 2010
 */

#include "sipAPIpolkitqt.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/polkitqt/actionbuttons.sip"
#include <PolicyKit/polkit-qt/actionbuttons.h>
#line 12 "sippolkitqtpart3.cpp"

#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 19 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sippolkitqtpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 25 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 28 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 31 "sippolkitqtpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "sippolkitqtpart3.cpp"
#line 194 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 37 "sippolkitqtpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 40 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 43 "sippolkitqtpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 49 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 52 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 55 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 58 "sippolkitqtpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 64 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 67 "sippolkitqtpart3.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 70 "sippolkitqtpart3.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 73 "sippolkitqtpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 76 "sippolkitqtpart3.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 79 "sippolkitqtpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 82 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 85 "sippolkitqtpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 88 "sippolkitqtpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "sippolkitqtpart3.cpp"


class sipPolkitQt_ActionButtons : public PolkitQt::ActionButtons
{
public:
    sipPolkitQt_ActionButtons(const QList<QAbstractButton *>&,const QString&,QObject *);
    virtual ~sipPolkitQt_ActionButtons();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_event(bool,QEvent *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPolkitQt_ActionButtons(const sipPolkitQt_ActionButtons &);
    sipPolkitQt_ActionButtons &operator = (const sipPolkitQt_ActionButtons &);

    char sipPyMethods[7];
};

sipPolkitQt_ActionButtons::sipPolkitQt_ActionButtons(const QList<QAbstractButton *>& a0,const QString& a1,QObject *a2): PolkitQt::ActionButtons(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipPolkitQt_ActionButtons::~sipPolkitQt_ActionButtons()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipPolkitQt_ActionButtons::metaObject() const
{
    return sip_polkitqt_qt_metaobject(sipPySelf,sipType_PolkitQt_ActionButtons);
}

int sipPolkitQt_ActionButtons::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = PolkitQt::ActionButtons::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_polkitqt_qt_metacall(sipPySelf,sipType_PolkitQt_ActionButtons,_c,_id,_a);

    return _id;
}

void *sipPolkitQt_ActionButtons::qt_metacast(const char *_clname)
{
    return (sip_polkitqt_qt_metacast && sip_polkitqt_qt_metacast(sipPySelf,sipType_PolkitQt_ActionButtons,_clname)) ? this : PolkitQt::ActionButtons::qt_metacast(_clname);
}

bool sipPolkitQt_ActionButtons::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QAction::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[5]))(sipGILState,meth,a0);
}

bool sipPolkitQt_ActionButtons::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[18]))(sipGILState,meth,a0,a1);
}

void sipPolkitQt_ActionButtons::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[9]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButtons::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButtons::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButtons::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButtons::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

int sipPolkitQt_ActionButtons::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipPolkitQt_ActionButtons::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipPolkitQt_ActionButtons::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipPolkitQt_ActionButtons::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipPolkitQt_ActionButtons::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipPolkitQt_ActionButtons::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipPolkitQt_ActionButtons::sipProtectVirt_event(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QAction::event(a0) : event(a0));
}


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

    {
        char * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 538 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 354 "sippolkitqtpart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_childEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_customEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButtons_event(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButtons_event(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipPolkitQt_ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QList<QAbstractButton *> * a0;
        int a0State = 0;
        PolkitQt::ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QList_0101QAbstractButton,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setButtons(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QAbstractButton *> *>(a0),sipType_QList_0101QAbstractButton,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        PolkitQt::ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp))
        {
            QList<QAbstractButton *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAbstractButton *>(sipCpp->buttons());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QAbstractButton * a0;
        PolkitQt::ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QAbstractButton, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addButton(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QAbstractButton * a0;
        PolkitQt::ActionButtons *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_PolkitQt_ActionButtons, &sipCpp, sipType_QAbstractButton, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeButton(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_PolkitQt_ActionButtons(void *, const sipTypeDef *);}
static void *cast_PolkitQt_ActionButtons(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_PolkitQt_ActionButtons)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_PolkitQt_ActionButton)->ctd_cast((PolkitQt::ActionButton *)(PolkitQt::ActionButtons *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPolkitQt_ActionButtons *>(sipCppV);
    else
        delete reinterpret_cast<PolkitQt::ActionButtons *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_PolkitQt_ActionButtons(sipSimpleWrapper *);}
static void dealloc_PolkitQt_ActionButtons(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipPolkitQt_ActionButtons *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_PolkitQt_ActionButtons(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_PolkitQt_ActionButtons(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_PolkitQt_ActionButtons(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipPolkitQt_ActionButtons *sipCpp = 0;

    {
        const QList<QAbstractButton *> * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J1JH", sipType_QList_0101QAbstractButton,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPolkitQt_ActionButtons(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QAbstractButton *> *>(a0),sipType_QList_0101QAbstractButton,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_PolkitQt_ActionButtons[] = {{2, 255, 1}};


static PyMethodDef methods_PolkitQt_ActionButtons[] = {
    {SIP_MLNAME_CAST(sipName_addButton), meth_PolkitQt_ActionButtons_addButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_buttons), meth_PolkitQt_ActionButtons_buttons, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_PolkitQt_ActionButtons_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_PolkitQt_ActionButtons_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_PolkitQt_ActionButtons_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_PolkitQt_ActionButtons_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_PolkitQt_ActionButtons_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_PolkitQt_ActionButtons_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeButton), meth_PolkitQt_ActionButtons_removeButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setButtons), meth_PolkitQt_ActionButtons_setButtons, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_PolkitQt_ActionButtons_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_polkitqt_PolkitQt_ActionButtons = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_PolkitQt__ActionButtons,
        {0}
    },
    {
        sipNameNr_ActionButtons,
        {0, 255, 0},
        11, methods_PolkitQt_ActionButtons,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_PolkitQt_ActionButtons,
    0,
    init_PolkitQt_ActionButtons,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_PolkitQt_ActionButtons,
    0,
    0,
    0,
    release_PolkitQt_ActionButtons,
    cast_PolkitQt_ActionButtons,
    0,
    0,
    0
},
    &PolkitQt::ActionButtons::staticMetaObject,
    0,
    0
};
