//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__OpenUrlEvent : public KParts::OpenUrlEvent, 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::OpenUrlEvent* OpenUrlEvent(KParts::ReadOnlyPart*, const KUrl&, const KParts::OpenUrlArguments&, const KParts::BrowserArguments&)
        x_KParts__OpenUrlEvent* xret = new x_KParts__OpenUrlEvent((KParts::ReadOnlyPart*)x[1].s_class,*(const KUrl*)x[2].s_class,*(const KParts::OpenUrlArguments*)x[3].s_class,*(const KParts::BrowserArguments*)x[4].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KParts__OpenUrlEvent(KParts::ReadOnlyPart* x1, const KUrl& x2, const KParts::OpenUrlArguments& x3, const KParts::BrowserArguments& x4) : OpenUrlEvent(x1, x2, x3, x4) {}
    void x_2(Smoke::Stack x) {
        // KParts::ReadOnlyPart* part() const
        KParts::ReadOnlyPart* xret = ((const x_KParts__OpenUrlEvent*)this)->KParts::OpenUrlEvent::part();
        x[0].s_class = (void*)xret;
    }
    void x_3(Smoke::Stack x) {
        // KUrl url() const
        KUrl xret = ((const x_KParts__OpenUrlEvent*)this)->KParts::OpenUrlEvent::url();
        x[0].s_class = (void*)new KUrl(xret);
    }
    void x_4(Smoke::Stack x) {
        // KParts::OpenUrlArguments arguments() const
        KParts::OpenUrlArguments xret = ((const x_KParts__OpenUrlEvent*)this)->KParts::OpenUrlEvent::arguments();
        x[0].s_class = (void*)new KParts::OpenUrlArguments(xret);
    }
    void x_5(Smoke::Stack x) {
        // KParts::BrowserArguments browserArguments() const
        KParts::BrowserArguments xret = ((const x_KParts__OpenUrlEvent*)this)->KParts::OpenUrlEvent::browserArguments();
        x[0].s_class = (void*)new KParts::BrowserArguments(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static bool test(const QEvent*)
        bool xret = KParts::OpenUrlEvent::test((const QEvent*)x[1].s_class);
        x[0].s_bool = xret;
    }
    static void x_7(Smoke::Stack x) {
        // KParts::OpenUrlEvent* OpenUrlEvent(const KParts::OpenUrlEvent&)
        x_KParts__OpenUrlEvent* xret = new x_KParts__OpenUrlEvent(*(const KParts::OpenUrlEvent*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KParts__OpenUrlEvent(const KParts::OpenUrlEvent& x1) : OpenUrlEvent(x1) {}
    static void x_8(Smoke::Stack x) {
        // KParts::OpenUrlEvent* OpenUrlEvent(KParts::ReadOnlyPart*, const KUrl&)
        x_KParts__OpenUrlEvent* xret = new x_KParts__OpenUrlEvent((KParts::ReadOnlyPart*)x[1].s_class,*(const KUrl*)x[2].s_class,(const KParts::OpenUrlArguments&)KParts::OpenUrlArguments(),(const KParts::BrowserArguments&)KParts::BrowserArguments());
        x[0].s_class = (void*)xret;
    }
    static void x_9(Smoke::Stack x) {
        // KParts::OpenUrlEvent* OpenUrlEvent(KParts::ReadOnlyPart*, const KUrl&, const KParts::OpenUrlArguments&)
        x_KParts__OpenUrlEvent* xret = new x_KParts__OpenUrlEvent((KParts::ReadOnlyPart*)x[1].s_class,*(const KUrl*)x[2].s_class,*(const KParts::OpenUrlArguments*)x[3].s_class,(const KParts::BrowserArguments&)KParts::BrowserArguments());
        x[0].s_class = (void*)xret;
    }
    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__OpenUrlEvent() { this->_binding->deleted(24, (void*)this); }
};
void xcall_KParts__OpenUrlEvent(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KParts__OpenUrlEvent *xself = (x_KParts__OpenUrlEvent*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KParts__OpenUrlEvent::x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: x_KParts__OpenUrlEvent::x_6(args);	break;
        case 7: x_KParts__OpenUrlEvent::x_7(args);	break;
        case 8: x_KParts__OpenUrlEvent::x_8(args);	break;
        case 9: x_KParts__OpenUrlEvent::x_9(args);	break;
        case 10: delete (KParts::OpenUrlEvent*)xself;	break;
    }
}

}
