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

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

class __internal_SmokeClass {};

namespace __smokesolid {

class x_Solid__AcAdapter : public Solid::AcAdapter, public __internal_SmokeClass {
public:
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        const QMetaObject* xret = ((const x_Solid__AcAdapter*)this)->Solid::AcAdapter::metaObject();
        x[0].s_class = (void*)xret;
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        void* xret = this->Solid::AcAdapter::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::AcAdapter::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::AcAdapter::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::AcAdapter::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::AcAdapter::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::AcAdapter::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::AcAdapter::deviceInterfaceType();
        x[0].s_enum = xret;
    }
    void x_9(Smoke::Stack x) {
        // bool isPlugged() const
        bool xret = ((const x_Solid__AcAdapter*)this)->Solid::AcAdapter::isPlugged();
        x[0].s_bool = xret;
    }
    void x_10(Smoke::Stack x) {
        // void plugStateChanged(bool, const QString&)
        this->Solid::AcAdapter::plugStateChanged((bool)x[1].s_bool,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    static void x_11(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Solid::AcAdapter::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_12(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Solid::AcAdapter::trUtf8((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 const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Solid::AcAdapter::staticMetaObject;
    }
};
void xcall_Solid__AcAdapter(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__AcAdapter *xself = (x_Solid__AcAdapter*)obj;
    switch(xi) {
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_Solid__AcAdapter::x_3(args);	break;
        case 4: x_Solid__AcAdapter::x_4(args);	break;
        case 5: x_Solid__AcAdapter::x_5(args);	break;
        case 6: x_Solid__AcAdapter::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Solid__AcAdapter::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: x_Solid__AcAdapter::x_11(args);	break;
        case 12: x_Solid__AcAdapter::x_12(args);	break;
        case 13: x_Solid__AcAdapter::x_13(args);	break;
        case 14: delete (Solid::AcAdapter*)xself;	break;
    }
}
class x_Solid__AudioInterface : public Solid::AudioInterface, public __internal_SmokeClass {
public:
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        const QMetaObject* xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::metaObject();
        x[0].s_class = (void*)xret;
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        void* xret = this->Solid::AudioInterface::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::AudioInterface::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::AudioInterface::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::AudioInterface::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::AudioInterface::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::AudioInterface::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::AudioInterface::deviceInterfaceType();
        x[0].s_enum = xret;
    }
    void x_9(Smoke::Stack x) {
        // Solid::AudioInterface::AudioDriver driver() const
        Solid::AudioInterface::AudioDriver xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::driver();
        x[0].s_enum = xret;
    }
    void x_10(Smoke::Stack x) {
        // QVariant driverHandle() const
        QVariant xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::driverHandle();
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_11(Smoke::Stack x) {
        // QString name() const
        QString xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::name();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_12(Smoke::Stack x) {
        // QFlags<Solid::AudioInterface::AudioInterfaceType> deviceType() const
        QFlags<Solid::AudioInterface::AudioInterfaceType> xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::deviceType();
        x[0].s_uint = (uint)xret;
    }
    void x_13(Smoke::Stack x) {
        // Solid::AudioInterface::SoundcardType soundcardType() const
        Solid::AudioInterface::SoundcardType xret = ((const x_Solid__AudioInterface*)this)->Solid::AudioInterface::soundcardType();
        x[0].s_enum = xret;
    }
    static void x_14(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Solid::AudioInterface::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Solid::AudioInterface::trUtf8((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 const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Solid::AudioInterface::staticMetaObject;
    }
    static void x_17(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::Alsa;
    }
    static void x_18(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::OpenSoundSystem;
    }
    static void x_19(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::UnknownAudioDriver;
    }
    static void x_20(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::UnknownAudioInterfaceType;
    }
    static void x_21(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::AudioControl;
    }
    static void x_22(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::AudioInput;
    }
    static void x_23(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::AudioOutput;
    }
    static void x_24(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::InternalSoundcard;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::UsbSoundcard;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::FirewireSoundcard;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::Headset;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::AudioInterface::Modem;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 94: //Solid::AudioInterface::AudioDriver
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::AudioInterface::AudioDriver;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::AudioInterface::AudioDriver*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::AudioInterface::AudioDriver*)xdata = (Solid::AudioInterface::AudioDriver)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::AudioInterface::AudioDriver*)xdata;
                    break;
            }
            break;
        case 95: //Solid::AudioInterface::AudioInterfaceType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::AudioInterface::AudioInterfaceType;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::AudioInterface::AudioInterfaceType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::AudioInterface::AudioInterfaceType*)xdata = (Solid::AudioInterface::AudioInterfaceType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::AudioInterface::AudioInterfaceType*)xdata;
                    break;
            }
            break;
        case 96: //Solid::AudioInterface::SoundcardType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::AudioInterface::SoundcardType;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::AudioInterface::SoundcardType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::AudioInterface::SoundcardType*)xdata = (Solid::AudioInterface::SoundcardType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::AudioInterface::SoundcardType*)xdata;
                    break;
            }
            break;
        }
    }
};
void xenum_Solid__AudioInterface(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Solid__AudioInterface::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Solid__AudioInterface(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__AudioInterface *xself = (x_Solid__AudioInterface*)obj;
    switch(xi) {
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_Solid__AudioInterface::x_3(args);	break;
        case 4: x_Solid__AudioInterface::x_4(args);	break;
        case 5: x_Solid__AudioInterface::x_5(args);	break;
        case 6: x_Solid__AudioInterface::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Solid__AudioInterface::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: x_Solid__AudioInterface::x_14(args);	break;
        case 15: x_Solid__AudioInterface::x_15(args);	break;
        case 16: x_Solid__AudioInterface::x_16(args);	break;
        case 17: x_Solid__AudioInterface::x_17(args);	break;
        case 18: x_Solid__AudioInterface::x_18(args);	break;
        case 19: x_Solid__AudioInterface::x_19(args);	break;
        case 20: x_Solid__AudioInterface::x_20(args);	break;
        case 21: x_Solid__AudioInterface::x_21(args);	break;
        case 22: x_Solid__AudioInterface::x_22(args);	break;
        case 23: x_Solid__AudioInterface::x_23(args);	break;
        case 24: x_Solid__AudioInterface::x_24(args);	break;
        case 25: x_Solid__AudioInterface::x_25(args);	break;
        case 26: x_Solid__AudioInterface::x_26(args);	break;
        case 27: x_Solid__AudioInterface::x_27(args);	break;
        case 28: x_Solid__AudioInterface::x_28(args);	break;
        case 29: delete (Solid::AudioInterface*)xself;	break;
    }
}

}
