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

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

class __internal_SmokeClass {};

namespace __smokekparts {

class x_KParts__LiveConnectExtension : public KParts::LiveConnectExtension, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            const QMetaObject* xret = ((const x_KParts__LiveConnectExtension*)this)->KParts::LiveConnectExtension::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KParts__LiveConnectExtension*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            void* xret = this->KParts::LiveConnectExtension::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KParts::LiveConnectExtension::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KParts::LiveConnectExtension::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KParts::LiveConnectExtension::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KParts::LiveConnectExtension::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            int xret = this->KParts::LiveConnectExtension::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KParts::LiveConnectExtension* LiveConnectExtension(KParts::ReadOnlyPart*)
        x_KParts__LiveConnectExtension* xret = new x_KParts__LiveConnectExtension((KParts::ReadOnlyPart*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KParts__LiveConnectExtension(KParts::ReadOnlyPart* x1) : LiveConnectExtension(x1) {}
    void x_9(Smoke::Stack x) {
        // virtual bool get(const unsigned long, const QString&, KParts::LiveConnectExtension::Type&, unsigned long&, QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            bool xret = this->KParts::LiveConnectExtension::get((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(KParts::LiveConnectExtension::Type*)x[3].s_class,*(unsigned long*)x[4].s_class,*(QString*)x[5].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->get((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(KParts::LiveConnectExtension::Type*)x[3].s_class,*(unsigned long*)x[4].s_class,*(QString*)x[5].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_10(Smoke::Stack x) {
        // virtual bool put(const unsigned long, const QString&, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            bool xret = this->KParts::LiveConnectExtension::put((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->put((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_11(Smoke::Stack x) {
        // virtual bool call(const unsigned long, const QString&, const QStringList&, KParts::LiveConnectExtension::Type&, unsigned long&, QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            bool xret = this->KParts::LiveConnectExtension::call((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(const QStringList*)x[3].s_class,*(KParts::LiveConnectExtension::Type*)x[4].s_class,*(unsigned long*)x[5].s_class,*(QString*)x[6].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->call((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(const QStringList*)x[3].s_class,*(KParts::LiveConnectExtension::Type*)x[4].s_class,*(unsigned long*)x[5].s_class,*(QString*)x[6].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_12(Smoke::Stack x) {
        // virtual void unregister(const unsigned long)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KParts::LiveConnectExtension*>(this))) {
            this->KParts::LiveConnectExtension::unregister((const unsigned long)x[1].s_ulong);
            (void)x; // noop (for compiler warning)
        } else {
            this->unregister((const unsigned long)x[1].s_ulong);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_13(Smoke::Stack x) {
        // static KParts::LiveConnectExtension* childObject(QObject*)
        KParts::LiveConnectExtension* xret = KParts::LiveConnectExtension::childObject((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_14(Smoke::Stack x) {
        // void partEvent(const unsigned long, const QString&, const QList<QPair<KParts::LiveConnectExtension::Type,QString> >&)
        this->KParts::LiveConnectExtension::partEvent((const unsigned long)x[1].s_ulong,*(const QString*)x[2].s_class,*(const QList<QPair<KParts::LiveConnectExtension::Type,QString> >*)x[3].s_class);
        (void)x; // noop (for compiler warning)
    }
    static void x_15(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KParts::LiveConnectExtension::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_16(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KParts::LiveConnectExtension::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_17(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KParts::LiveConnectExtension::staticMetaObject;
    }
    static void x_18(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeVoid;
    }
    static void x_19(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeBool;
    }
    static void x_20(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeFunction;
    }
    static void x_21(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeNumber;
    }
    static void x_22(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeObject;
    }
    static void x_23(Smoke::Stack x) {
        x[0].s_enum = (long)KParts::LiveConnectExtension::TypeString;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(257, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KParts::LiveConnectExtension::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(258, (void*)this, x)) return (void*)x[0].s_class;
        return this->KParts::LiveConnectExtension::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(263, (void*)this, x)) return (int)x[0].s_int;
        return this->KParts::LiveConnectExtension::qt_metacall(x1, x2, x3);
    }
    virtual bool get(const unsigned long x1, const QString& x2, KParts::LiveConnectExtension::Type& x3, unsigned long& x4, QString& x5) {
        Smoke::StackItem x[6];
        x[1].s_ulong = x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_class = (void*)&x4;
        x[5].s_class = (void*)&x5;
        if (this->_binding->callMethod(265, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KParts::LiveConnectExtension::get(x1, x2, x3, x4, x5);
    }
    virtual bool put(const unsigned long x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_ulong = x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(266, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KParts::LiveConnectExtension::put(x1, x2, x3);
    }
    virtual bool call(const unsigned long x1, const QString& x2, const QStringList& x3, KParts::LiveConnectExtension::Type& x4, unsigned long& x5, QString& x6) {
        Smoke::StackItem x[7];
        x[1].s_ulong = x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_class = (void*)&x4;
        x[5].s_class = (void*)&x5;
        x[6].s_class = (void*)&x6;
        if (this->_binding->callMethod(267, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KParts::LiveConnectExtension::call(x1, x2, x3, x4, x5, x6);
    }
    virtual void unregister(const unsigned long x1) {
        Smoke::StackItem x[2];
        x[1].s_ulong = x1;
        if (this->_binding->callMethod(268, (void*)this, x)) return;
        this->KParts::LiveConnectExtension::unregister(x1);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1036, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(1037, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1038, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1039, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1040, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1041, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1042, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 37: //KParts::LiveConnectExtension::Type
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KParts::LiveConnectExtension::Type;
                    break;
                case Smoke::EnumDelete:
                    delete (KParts::LiveConnectExtension::Type*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KParts::LiveConnectExtension::Type*)xdata = (KParts::LiveConnectExtension::Type)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KParts::LiveConnectExtension::Type*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KParts__LiveConnectExtension() { this->_binding->deleted(21, (void*)this); }
};
void xenum_KParts__LiveConnectExtension(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KParts__LiveConnectExtension::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KParts__LiveConnectExtension(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KParts__LiveConnectExtension *xself = (x_KParts__LiveConnectExtension*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KParts__LiveConnectExtension::x_3(args);	break;
        case 4: x_KParts__LiveConnectExtension::x_4(args);	break;
        case 5: x_KParts__LiveConnectExtension::x_5(args);	break;
        case 6: x_KParts__LiveConnectExtension::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KParts__LiveConnectExtension::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: x_KParts__LiveConnectExtension::x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: x_KParts__LiveConnectExtension::x_15(args);	break;
        case 16: x_KParts__LiveConnectExtension::x_16(args);	break;
        case 17: x_KParts__LiveConnectExtension::x_17(args);	break;
        case 18: x_KParts__LiveConnectExtension::x_18(args);	break;
        case 19: x_KParts__LiveConnectExtension::x_19(args);	break;
        case 20: x_KParts__LiveConnectExtension::x_20(args);	break;
        case 21: x_KParts__LiveConnectExtension::x_21(args);	break;
        case 22: x_KParts__LiveConnectExtension::x_22(args);	break;
        case 23: x_KParts__LiveConnectExtension::x_23(args);	break;
        case 24: delete (KParts::LiveConnectExtension*)xself;	break;
    }
}

}
