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

#include <smoke.h>
#include <solid_smoke.h>

class __internal_SmokeClass {};

namespace __smokesolid {

class x_Solid__Networking__Notifier : public Solid::Networking::Notifier, 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<Solid::Networking::Notifier*>(this))) {
            const QMetaObject* xret = ((const x_Solid__Networking__Notifier*)this)->Solid::Networking::Notifier::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Solid__Networking__Notifier*)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<Solid::Networking::Notifier*>(this))) {
            void* xret = this->Solid::Networking::Notifier::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 = Solid::Networking::Notifier::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 = Solid::Networking::Notifier::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 = Solid::Networking::Notifier::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 = Solid::Networking::Notifier::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<Solid::Networking::Notifier*>(this))) {
            int xret = this->Solid::Networking::Notifier::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;
        }
    }
    void x_8(Smoke::Stack x) {
        // void statusChanged(Solid::Networking::Status)
        this->Solid::Networking::Notifier::statusChanged((Solid::Networking::Status)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_9(Smoke::Stack x) {
        // void shouldConnect()
        this->Solid::Networking::Notifier::shouldConnect();
        (void)x; // noop (for compiler warning)
    }
    void x_10(Smoke::Stack x) {
        // void shouldDisconnect()
        this->Solid::Networking::Notifier::shouldDisconnect();
        (void)x; // noop (for compiler warning)
    }
    static void x_11(Smoke::Stack x) {
        // Solid::Networking::Notifier* Notifier()
        x_Solid__Networking__Notifier* xret = new x_Solid__Networking__Notifier();
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Networking__Notifier() : Notifier() {}
    static void x_12(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Solid::Networking::Notifier::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_13(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Solid::Networking::Notifier::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_14(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Solid::Networking::Notifier::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(297, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Solid::Networking::Notifier::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(298, (void*)this, x)) return (void*)x[0].s_class;
        return this->Solid::Networking::Notifier::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(303, (void*)this, x)) return (int)x[0].s_int;
        return this->Solid::Networking::Notifier::qt_metacall(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1, (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(2, (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(3, (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(4, (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(5, (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(6, (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(7, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Solid__Networking__Notifier() { this->_binding->deleted(25, (void*)this); }
};
void xcall_Solid__Networking__Notifier(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__Networking__Notifier *xself = (x_Solid__Networking__Notifier*)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_Solid__Networking__Notifier::x_3(args);	break;
        case 4: x_Solid__Networking__Notifier::x_4(args);	break;
        case 5: x_Solid__Networking__Notifier::x_5(args);	break;
        case 6: x_Solid__Networking__Notifier::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: x_Solid__Networking__Notifier::x_11(args);	break;
        case 12: x_Solid__Networking__Notifier::x_12(args);	break;
        case 13: x_Solid__Networking__Notifier::x_13(args);	break;
        case 14: x_Solid__Networking__Notifier::x_14(args);	break;
        case 15: delete (Solid::Networking::Notifier*)xself;	break;
    }
}
class x_Solid__OpticalDisc : public Solid::OpticalDisc, public __internal_SmokeClass {
public:
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        const QMetaObject* xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::metaObject();
        x[0].s_class = (void*)xret;
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        void* xret = this->Solid::OpticalDisc::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 = Solid::OpticalDisc::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 = Solid::OpticalDisc::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 = Solid::OpticalDisc::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 = Solid::OpticalDisc::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**)
        int xret = this->Solid::OpticalDisc::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) {
        // static Solid::DeviceInterface::Type deviceInterfaceType()
        Solid::DeviceInterface::Type xret = Solid::OpticalDisc::deviceInterfaceType();
        x[0].s_enum = xret;
    }
    void x_9(Smoke::Stack x) {
        // QFlags<Solid::OpticalDisc::ContentType> availableContent() const
        QFlags<Solid::OpticalDisc::ContentType> xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::availableContent();
        x[0].s_uint = (uint)xret;
    }
    void x_10(Smoke::Stack x) {
        // Solid::OpticalDisc::DiscType discType() const
        Solid::OpticalDisc::DiscType xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::discType();
        x[0].s_enum = xret;
    }
    void x_11(Smoke::Stack x) {
        // bool isAppendable() const
        bool xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::isAppendable();
        x[0].s_bool = xret;
    }
    void x_12(Smoke::Stack x) {
        // bool isBlank() const
        bool xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::isBlank();
        x[0].s_bool = xret;
    }
    void x_13(Smoke::Stack x) {
        // bool isRewritable() const
        bool xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::isRewritable();
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // unsigned long long capacity() const
        unsigned long long xret = ((const x_Solid__OpticalDisc*)this)->Solid::OpticalDisc::capacity();
        x[0].s_class = (void*)new unsigned long long(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Solid::OpticalDisc::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 = Solid::OpticalDisc::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*)&Solid::OpticalDisc::staticMetaObject;
    }
    static void x_18(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::NoContent;
    }
    static void x_19(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::Audio;
    }
    static void x_20(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::Data;
    }
    static void x_21(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::VideoCd;
    }
    static void x_22(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::SuperVideoCd;
    }
    static void x_23(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::VideoDvd;
    }
    static void x_24(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::VideoBluRay;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::UnknownDiscType;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::CdRom;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::CdRecordable;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::CdRewritable;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdRom;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdRam;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdRecordable;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdRewritable;
    }
    static void x_33(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdPlusRecordable;
    }
    static void x_34(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdPlusRewritable;
    }
    static void x_35(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdPlusRecordableDuallayer;
    }
    static void x_36(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::DvdPlusRewritableDuallayer;
    }
    static void x_37(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::BluRayRom;
    }
    static void x_38(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::BluRayRecordable;
    }
    static void x_39(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::BluRayRewritable;
    }
    static void x_40(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::HdDvdRom;
    }
    static void x_41(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::HdDvdRecordable;
    }
    static void x_42(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::OpticalDisc::HdDvdRewritable;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 113: //Solid::OpticalDisc::ContentType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::OpticalDisc::ContentType;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::OpticalDisc::ContentType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::OpticalDisc::ContentType*)xdata = (Solid::OpticalDisc::ContentType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::OpticalDisc::ContentType*)xdata;
                    break;
            }
            break;
        case 114: //Solid::OpticalDisc::DiscType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::OpticalDisc::DiscType;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::OpticalDisc::DiscType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::OpticalDisc::DiscType*)xdata = (Solid::OpticalDisc::DiscType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::OpticalDisc::DiscType*)xdata;
                    break;
            }
            break;
        }
    }
};
void xenum_Solid__OpticalDisc(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Solid__OpticalDisc::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Solid__OpticalDisc(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__OpticalDisc *xself = (x_Solid__OpticalDisc*)obj;
    switch(xi) {
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_Solid__OpticalDisc::x_3(args);	break;
        case 4: x_Solid__OpticalDisc::x_4(args);	break;
        case 5: x_Solid__OpticalDisc::x_5(args);	break;
        case 6: x_Solid__OpticalDisc::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Solid__OpticalDisc::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: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: x_Solid__OpticalDisc::x_15(args);	break;
        case 16: x_Solid__OpticalDisc::x_16(args);	break;
        case 17: x_Solid__OpticalDisc::x_17(args);	break;
        case 18: x_Solid__OpticalDisc::x_18(args);	break;
        case 19: x_Solid__OpticalDisc::x_19(args);	break;
        case 20: x_Solid__OpticalDisc::x_20(args);	break;
        case 21: x_Solid__OpticalDisc::x_21(args);	break;
        case 22: x_Solid__OpticalDisc::x_22(args);	break;
        case 23: x_Solid__OpticalDisc::x_23(args);	break;
        case 24: x_Solid__OpticalDisc::x_24(args);	break;
        case 25: x_Solid__OpticalDisc::x_25(args);	break;
        case 26: x_Solid__OpticalDisc::x_26(args);	break;
        case 27: x_Solid__OpticalDisc::x_27(args);	break;
        case 28: x_Solid__OpticalDisc::x_28(args);	break;
        case 29: x_Solid__OpticalDisc::x_29(args);	break;
        case 30: x_Solid__OpticalDisc::x_30(args);	break;
        case 31: x_Solid__OpticalDisc::x_31(args);	break;
        case 32: x_Solid__OpticalDisc::x_32(args);	break;
        case 33: x_Solid__OpticalDisc::x_33(args);	break;
        case 34: x_Solid__OpticalDisc::x_34(args);	break;
        case 35: x_Solid__OpticalDisc::x_35(args);	break;
        case 36: x_Solid__OpticalDisc::x_36(args);	break;
        case 37: x_Solid__OpticalDisc::x_37(args);	break;
        case 38: x_Solid__OpticalDisc::x_38(args);	break;
        case 39: x_Solid__OpticalDisc::x_39(args);	break;
        case 40: x_Solid__OpticalDisc::x_40(args);	break;
        case 41: x_Solid__OpticalDisc::x_41(args);	break;
        case 42: x_Solid__OpticalDisc::x_42(args);	break;
        case 43: delete (Solid::OpticalDisc*)xself;	break;
    }
}

}
