//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__PowerManagement__Notifier : public Solid::PowerManagement::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::PowerManagement::Notifier*>(this))) {
            const QMetaObject* xret = ((const x_Solid__PowerManagement__Notifier*)this)->Solid::PowerManagement::Notifier::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Solid__PowerManagement__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::PowerManagement::Notifier*>(this))) {
            void* xret = this->Solid::PowerManagement::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::PowerManagement::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::PowerManagement::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::PowerManagement::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::PowerManagement::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::PowerManagement::Notifier*>(this))) {
            int xret = this->Solid::PowerManagement::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 appShouldConserveResourcesChanged(bool)
        this->Solid::PowerManagement::Notifier::appShouldConserveResourcesChanged((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_9(Smoke::Stack x) {
        // void resumingFromSuspend()
        this->Solid::PowerManagement::Notifier::resumingFromSuspend();
        (void)x; // noop (for compiler warning)
    }
    static void x_10(Smoke::Stack x) {
        // Solid::PowerManagement::Notifier* Notifier()
        x_Solid__PowerManagement__Notifier* xret = new x_Solid__PowerManagement__Notifier();
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__PowerManagement__Notifier() : Notifier() {}
    static void x_11(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Solid::PowerManagement::Notifier::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::PowerManagement::Notifier::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::PowerManagement::Notifier::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(421, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Solid::PowerManagement::Notifier::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(422, (void*)this, x)) return (void*)x[0].s_class;
        return this->Solid::PowerManagement::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(427, (void*)this, x)) return (int)x[0].s_int;
        return this->Solid::PowerManagement::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__PowerManagement__Notifier() { this->_binding->deleted(30, (void*)this); }
};
void xcall_Solid__PowerManagement__Notifier(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__PowerManagement__Notifier *xself = (x_Solid__PowerManagement__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__PowerManagement__Notifier::x_3(args);	break;
        case 4: x_Solid__PowerManagement__Notifier::x_4(args);	break;
        case 5: x_Solid__PowerManagement__Notifier::x_5(args);	break;
        case 6: x_Solid__PowerManagement__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: x_Solid__PowerManagement__Notifier::x_10(args);	break;
        case 11: x_Solid__PowerManagement__Notifier::x_11(args);	break;
        case 12: x_Solid__PowerManagement__Notifier::x_12(args);	break;
        case 13: x_Solid__PowerManagement__Notifier::x_13(args);	break;
        case 14: delete (Solid::PowerManagement::Notifier*)xself;	break;
    }
}
class x_Solid__Predicate : public Solid::Predicate {
    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) {
        // Solid::Predicate* Predicate()
        x_Solid__Predicate* xret = new x_Solid__Predicate();
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate() : Predicate() {}
    static void x_2(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const Solid::Predicate&)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate(const Solid::Predicate& x1) : Predicate(x1) {}
    static void x_3(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const Solid::DeviceInterface::Type&, const QString&, const QVariant&, Solid::Predicate::ComparisonOperator)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const Solid::DeviceInterface::Type*)x[1].s_class,*(const QString*)x[2].s_class,*(const QVariant*)x[3].s_class,(Solid::Predicate::ComparisonOperator)x[4].s_enum);
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate(const Solid::DeviceInterface::Type& x1, const QString& x2, const QVariant& x3, Solid::Predicate::ComparisonOperator x4) : Predicate(x1, x2, x3, x4) {}
    static void x_4(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const QString&, const QString&, const QVariant&, Solid::Predicate::ComparisonOperator)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QVariant*)x[3].s_class,(Solid::Predicate::ComparisonOperator)x[4].s_enum);
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate(const QString& x1, const QString& x2, const QVariant& x3, Solid::Predicate::ComparisonOperator x4) : Predicate(x1, x2, x3, x4) {}
    static void x_5(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const Solid::DeviceInterface::Type&)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const Solid::DeviceInterface::Type*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate(const Solid::DeviceInterface::Type& x1) : Predicate(x1) {}
    static void x_6(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const QString&)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Solid__Predicate(const QString& x1) : Predicate(x1) {}
    void x_7(Smoke::Stack x) {
        // Solid::Predicate& operator=(const Solid::Predicate&)
        Solid::Predicate& xret = this->Solid::Predicate::operator=(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_8(Smoke::Stack x) {
        // Solid::Predicate operator&(const Solid::Predicate&)
        Solid::Predicate xret = this->Solid::Predicate::operator&(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)new Solid::Predicate(xret);
    }
    void x_9(Smoke::Stack x) {
        // Solid::Predicate& operator&=(const Solid::Predicate&)
        Solid::Predicate& xret = this->Solid::Predicate::operator&=(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_10(Smoke::Stack x) {
        // Solid::Predicate operator|(const Solid::Predicate&)
        Solid::Predicate xret = this->Solid::Predicate::operator|(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)new Solid::Predicate(xret);
    }
    void x_11(Smoke::Stack x) {
        // Solid::Predicate& operator|=(const Solid::Predicate&)
        Solid::Predicate& xret = this->Solid::Predicate::operator|=(*(const Solid::Predicate*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_12(Smoke::Stack x) {
        // bool isValid() const
        bool xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::isValid();
        x[0].s_bool = xret;
    }
    void x_13(Smoke::Stack x) {
        // bool matches(const Solid::Device&) const
        bool xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::matches(*(const Solid::Device*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // QSet<Solid::DeviceInterface::Type> usedTypes() const
        QSet<Solid::DeviceInterface::Type> xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::usedTypes();
        x[0].s_class = (void*)new QSet<Solid::DeviceInterface::Type>(xret);
    }
    void x_15(Smoke::Stack x) {
        // QString toString() const
        QString xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::toString();
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_16(Smoke::Stack x) {
        // static Solid::Predicate fromString(const QString&)
        Solid::Predicate xret = Solid::Predicate::fromString(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)new Solid::Predicate(xret);
    }
    void x_17(Smoke::Stack x) {
        // Solid::Predicate::Type type() const
        Solid::Predicate::Type xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::type();
        x[0].s_enum = xret;
    }
    void x_18(Smoke::Stack x) {
        // Solid::DeviceInterface::Type interfaceType() const
        Solid::DeviceInterface::Type xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::interfaceType();
        x[0].s_enum = xret;
    }
    void x_19(Smoke::Stack x) {
        // QString propertyName() const
        QString xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::propertyName();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_20(Smoke::Stack x) {
        // QVariant matchingValue() const
        QVariant xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::matchingValue();
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_21(Smoke::Stack x) {
        // Solid::Predicate::ComparisonOperator comparisonOperator() const
        Solid::Predicate::ComparisonOperator xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::comparisonOperator();
        x[0].s_enum = xret;
    }
    void x_22(Smoke::Stack x) {
        // Solid::Predicate firstOperand() const
        Solid::Predicate xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::firstOperand();
        x[0].s_class = (void*)new Solid::Predicate(xret);
    }
    void x_23(Smoke::Stack x) {
        // Solid::Predicate secondOperand() const
        Solid::Predicate xret = ((const x_Solid__Predicate*)this)->Solid::Predicate::secondOperand();
        x[0].s_class = (void*)new Solid::Predicate(xret);
    }
    static void x_24(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const Solid::DeviceInterface::Type&, const QString&, const QVariant&)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const Solid::DeviceInterface::Type*)x[1].s_class,*(const QString*)x[2].s_class,*(const QVariant*)x[3].s_class,(Solid::Predicate::ComparisonOperator)Solid::Predicate::Equals);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // Solid::Predicate* Predicate(const QString&, const QString&, const QVariant&)
        x_Solid__Predicate* xret = new x_Solid__Predicate(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QVariant*)x[3].s_class,(Solid::Predicate::ComparisonOperator)Solid::Predicate::Equals);
        x[0].s_class = (void*)xret;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::Equals;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::Mask;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::PropertyCheck;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::Conjunction;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::Disjunction;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)Solid::Predicate::InterfaceCheck;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 121: //Solid::Predicate::ComparisonOperator
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::Predicate::ComparisonOperator;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::Predicate::ComparisonOperator*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::Predicate::ComparisonOperator*)xdata = (Solid::Predicate::ComparisonOperator)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::Predicate::ComparisonOperator*)xdata;
                    break;
            }
            break;
        case 122: //Solid::Predicate::Type
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Solid::Predicate::Type;
                    break;
                case Smoke::EnumDelete:
                    delete (Solid::Predicate::Type*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Solid::Predicate::Type*)xdata = (Solid::Predicate::Type)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Solid::Predicate::Type*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_Solid__Predicate() { this->_binding->deleted(31, (void*)this); }
};
void xenum_Solid__Predicate(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Solid__Predicate::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Solid__Predicate(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Solid__Predicate *xself = (x_Solid__Predicate*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_Solid__Predicate::x_1(args);	break;
        case 2: x_Solid__Predicate::x_2(args);	break;
        case 3: x_Solid__Predicate::x_3(args);	break;
        case 4: x_Solid__Predicate::x_4(args);	break;
        case 5: x_Solid__Predicate::x_5(args);	break;
        case 6: x_Solid__Predicate::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: 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: xself->x_15(args);	break;
        case 16: x_Solid__Predicate::x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: x_Solid__Predicate::x_24(args);	break;
        case 25: x_Solid__Predicate::x_25(args);	break;
        case 26: x_Solid__Predicate::x_26(args);	break;
        case 27: x_Solid__Predicate::x_27(args);	break;
        case 28: x_Solid__Predicate::x_28(args);	break;
        case 29: x_Solid__Predicate::x_29(args);	break;
        case 30: x_Solid__Predicate::x_30(args);	break;
        case 31: x_Solid__Predicate::x_31(args);	break;
        case 32: delete (Solid::Predicate*)xself;	break;
    }
}

}
