//Auto-generated by /usr/bin/smokegen. DO NOT EDIT.
#include <kparts_includes.h>

#include <smoke.h>
#include <kparts_smoke.h>

class __internal_SmokeClass {};

namespace __smokekparts {

class x_KParts__GUIActivateEvent : public KParts::GUIActivateEvent, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // KParts::GUIActivateEvent* GUIActivateEvent(bool)
        x_KParts__GUIActivateEvent* xret = new x_KParts__GUIActivateEvent((bool)x[1].s_bool);
        x[0].s_class = (void*)xret;
    }
    explicit x_KParts__GUIActivateEvent(bool x1) : GUIActivateEvent(x1) {}
    void x_2(Smoke::Stack x) {
        // bool activated() const
        bool xret = ((const x_KParts__GUIActivateEvent*)this)->KParts::GUIActivateEvent::activated();
        x[0].s_bool = xret;
    }
    static void x_3(Smoke::Stack x) {
        // static bool test(const QEvent*)
        bool xret = KParts::GUIActivateEvent::test((const QEvent*)x[1].s_class);
        x[0].s_bool = xret;
    }
    static void x_4(Smoke::Stack x) {
        // KParts::GUIActivateEvent* GUIActivateEvent(const KParts::GUIActivateEvent&)
        x_KParts__GUIActivateEvent* xret = new x_KParts__GUIActivateEvent(*(const KParts::GUIActivateEvent*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KParts__GUIActivateEvent(const KParts::GUIActivateEvent& x1) : GUIActivateEvent(x1) {}
    virtual const char* eventName() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(196, (void*)this, x)) return (const char*)x[0].s_class;
        return this->KParts::Event::eventName();
    }
    ~x_KParts__GUIActivateEvent() { this->_binding->deleted(19, (void*)this); }
};
void xcall_KParts__GUIActivateEvent(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KParts__GUIActivateEvent *xself = (x_KParts__GUIActivateEvent*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KParts__GUIActivateEvent::x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KParts__GUIActivateEvent::x_3(args);	break;
        case 4: x_KParts__GUIActivateEvent::x_4(args);	break;
        case 5: delete (KParts::GUIActivateEvent*)xself;	break;
    }
}

}
