/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:27:58 2009
 */

#include "sipAPIpolkitqt.h"

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

#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 16 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sippolkitqtpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 25 "sippolkitqtpart4.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 86 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 89 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 92 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 95 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 98 "sippolkitqtpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 101 "sippolkitqtpart4.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106 "sippolkitqtpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 109 "sippolkitqtpart4.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 112 "sippolkitqtpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 115 "sippolkitqtpart4.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 118 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 121 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 124 "sippolkitqtpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 127 "sippolkitqtpart4.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 130 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 135 "sippolkitqtpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 138 "sippolkitqtpart4.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 141 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 144 "sippolkitqtpart4.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 147 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 152 "sippolkitqtpart4.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 157 "sippolkitqtpart4.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 162 "sippolkitqtpart4.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 167 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 170 "sippolkitqtpart4.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 173 "sippolkitqtpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 176 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 179 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 182 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 188 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 191 "sippolkitqtpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 194 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 197 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 200 "sippolkitqtpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 203 "sippolkitqtpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 206 "sippolkitqtpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 237 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 240 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 243 "sippolkitqtpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 246 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 249 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 252 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 255 "sippolkitqtpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 258 "sippolkitqtpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 261 "sippolkitqtpart4.cpp"


class sipPolkitQt_ActionButton : public PolkitQt::ActionButton
{
public:
    sipPolkitQt_ActionButton(QAbstractButton *,const QString&,QObject *);
    virtual ~sipPolkitQt_ActionButton();

    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_ActionButton(const sipPolkitQt_ActionButton &);
    sipPolkitQt_ActionButton &operator = (const sipPolkitQt_ActionButton &);

    char sipPyMethods[7];
};

sipPolkitQt_ActionButton::sipPolkitQt_ActionButton(QAbstractButton *a0,const QString& a1,QObject *a2): PolkitQt::ActionButton(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPolkitQt_ActionButton::metaObject() const
{
    return sip_polkitqt_qt_metaobject(sipPySelf,sipType_PolkitQt_ActionButton);
}

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

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

    return _id;
}

void *sipPolkitQt_ActionButton::qt_metacast(const char *_clname)
{
    return (sip_polkitqt_qt_metacast && sip_polkitqt_qt_metacast(sipPySelf,sipType_PolkitQt_ActionButton,_clname)) ? this : PolkitQt::ActionButton::qt_metacast(_clname);
}

bool sipPolkitQt_ActionButton::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipPolkitQt_ActionButton::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipPolkitQt_ActionButton::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButton::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButton::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_polkitqt_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipPolkitQt_ActionButton::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipPolkitQt_ActionButton::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

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


extern "C" {static PyObject *meth_PolkitQt_ActionButton_receivers(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_PolkitQt_ActionButton,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/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)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 520 "sippolkitqtpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_childEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_customEvent(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_event(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_event(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipPolkitQt_ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_PolkitQt_ActionButton,&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(sipArgsParsed,sipName_ActionButton,sipName_event);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_setButton(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_setButton(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_PolkitQt_ActionButton,&sipCpp,sipType_QAbstractButton,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setButton(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_ActionButton,sipName_setButton);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_button(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_button(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        PolkitQt::ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_PolkitQt_ActionButton,&sipCpp))
        {
            QAbstractButton *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->button();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QAbstractButton,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_ActionButton,sipName_button);

    return NULL;
}


extern "C" {static PyObject *meth_PolkitQt_ActionButton_activate(PyObject *, PyObject *);}
static PyObject *meth_PolkitQt_ActionButton_activate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        PolkitQt::ActionButton *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_PolkitQt_ActionButton,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_ActionButton,sipName_activate);

    return NULL;
}


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

    if (targetType == sipType_PolkitQt_ActionButton)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPolkitQt_ActionButton *>(sipCppV);
    else
        delete reinterpret_cast<PolkitQt::ActionButton *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_PolkitQt_ActionButton(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_PolkitQt_ActionButton(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipPolkitQt_ActionButton *sipCpp = 0;

    if (!sipCpp)
    {
        QAbstractButton * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8|J1JH",sipType_QAbstractButton,&a0,sipType_QString,&a1,&a1State,sipType_QObject,&a2,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPolkitQt_ActionButton(a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_PolkitQt_ActionButton[] = {
    {SIP_MLNAME_CAST(sipName_activate), meth_PolkitQt_ActionButton_activate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_button), meth_PolkitQt_ActionButton_button, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_PolkitQt_ActionButton_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_PolkitQt_ActionButton_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_PolkitQt_ActionButton_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_PolkitQt_ActionButton_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_PolkitQt_ActionButton_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_PolkitQt_ActionButton_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setButton), meth_PolkitQt_ActionButton_setButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_PolkitQt_ActionButton_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_PolkitQt_ActionButton[] = {
    {"clicked(QAbstractButton *,bool)", 0},
    {"clicked(QAbstractButton *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_polkitqt_PolkitQt_ActionButton = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_PolkitQt__ActionButton,
        {0}
    },
    sipNameNr_ActionButton,
    -1,
    -1,
    {0, 255, 0},
    supers_PolkitQt_ActionButton,
    0,
    10, methods_PolkitQt_ActionButton,
    0, 0,
    0, 0,
    init_PolkitQt_ActionButton,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_PolkitQt_ActionButton,
    release_PolkitQt_ActionButton,
    cast_PolkitQt_ActionButton,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &PolkitQt::ActionButton::staticMetaObject,
    0,
    pyqt4_signals_PolkitQt_ActionButton
};
