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

#include <smoke.h>
#include <phonon_smoke.h>

class __internal_SmokeClass {};

namespace __smokephonon {

class x_Phonon__AbstractAudioOutput : public Phonon::AbstractAudioOutput, 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<Phonon::AbstractAudioOutput*>(this))) {
            const QMetaObject* xret = ((const x_Phonon__AbstractAudioOutput*)this)->Phonon::AbstractAudioOutput::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Phonon__AbstractAudioOutput*)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<Phonon::AbstractAudioOutput*>(this))) {
            void* xret = this->Phonon::AbstractAudioOutput::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 = Phonon::AbstractAudioOutput::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 = Phonon::AbstractAudioOutput::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 = Phonon::AbstractAudioOutput::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 = Phonon::AbstractAudioOutput::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<Phonon::AbstractAudioOutput*>(this))) {
            int xret = this->Phonon::AbstractAudioOutput::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) {
        // Phonon::AbstractAudioOutput* AbstractAudioOutput(Phonon::AbstractAudioOutputPrivate&, QObject*)
        x_Phonon__AbstractAudioOutput* xret = new x_Phonon__AbstractAudioOutput(*(Phonon::AbstractAudioOutputPrivate*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Phonon__AbstractAudioOutput(Phonon::AbstractAudioOutputPrivate& x1, QObject* x2) : AbstractAudioOutput(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Phonon::AbstractAudioOutput::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_10(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Phonon::AbstractAudioOutput::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_11(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Phonon::AbstractAudioOutput::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(57, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Phonon::AbstractAudioOutput::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(58, (void*)this, x)) return (void*)x[0].s_class;
        return this->Phonon::AbstractAudioOutput::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(63, (void*)this, x)) return (int)x[0].s_int;
        return this->Phonon::AbstractAudioOutput::qt_metacall(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(599, (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(600, (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(601, (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(602, (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(603, (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(604, (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(605, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Phonon__AbstractAudioOutput() { this->_binding->deleted(2, (void*)this); }
};
void xcall_Phonon__AbstractAudioOutput(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Phonon__AbstractAudioOutput *xself = (x_Phonon__AbstractAudioOutput*)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_Phonon__AbstractAudioOutput::x_3(args);	break;
        case 4: x_Phonon__AbstractAudioOutput::x_4(args);	break;
        case 5: x_Phonon__AbstractAudioOutput::x_5(args);	break;
        case 6: x_Phonon__AbstractAudioOutput::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Phonon__AbstractAudioOutput::x_8(args);	break;
        case 9: x_Phonon__AbstractAudioOutput::x_9(args);	break;
        case 10: x_Phonon__AbstractAudioOutput::x_10(args);	break;
        case 11: x_Phonon__AbstractAudioOutput::x_11(args);	break;
        case 12: delete (Phonon::AbstractAudioOutput*)xself;	break;
    }
}
class x_Phonon__AbstractMediaStream : public Phonon::AbstractMediaStream, 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<Phonon::AbstractMediaStream*>(this))) {
            const QMetaObject* xret = ((const x_Phonon__AbstractMediaStream*)this)->Phonon::AbstractMediaStream::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Phonon__AbstractMediaStream*)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<Phonon::AbstractMediaStream*>(this))) {
            void* xret = this->Phonon::AbstractMediaStream::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 = Phonon::AbstractMediaStream::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 = Phonon::AbstractMediaStream::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 = Phonon::AbstractMediaStream::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 = Phonon::AbstractMediaStream::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<Phonon::AbstractMediaStream*>(this))) {
            int xret = this->Phonon::AbstractMediaStream::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) {
        // Phonon::AbstractMediaStream* AbstractMediaStream(QObject*)
        x_Phonon__AbstractMediaStream* xret = new x_Phonon__AbstractMediaStream((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Phonon__AbstractMediaStream(QObject* x1) : AbstractMediaStream(x1) {}
    void x_9(Smoke::Stack x) {
        // long long streamSize() const
        long long xret = ((const x_Phonon__AbstractMediaStream*)this)->Phonon::AbstractMediaStream::streamSize();
        x[0].s_class = (void*)new long long(xret);
    }
    void x_10(Smoke::Stack x) {
        // void setStreamSize(long long)
        this->Phonon::AbstractMediaStream::setStreamSize(*(long long*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // bool streamSeekable() const
        bool xret = ((const x_Phonon__AbstractMediaStream*)this)->Phonon::AbstractMediaStream::streamSeekable();
        x[0].s_bool = xret;
    }
    void x_12(Smoke::Stack x) {
        // void setStreamSeekable(bool)
        this->Phonon::AbstractMediaStream::setStreamSeekable((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // void writeData(const QByteArray&)
        this->Phonon::AbstractMediaStream::writeData(*(const QByteArray*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // void endOfData()
        this->Phonon::AbstractMediaStream::endOfData();
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // void error(Phonon::ErrorType, const QString&)
        this->Phonon::AbstractMediaStream::error((Phonon::ErrorType)x[1].s_enum,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
        // virtual void reset() = 0
        this->reset();
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // virtual void needData() = 0
        this->needData();
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // virtual void enoughData()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Phonon::AbstractMediaStream*>(this))) {
            this->Phonon::AbstractMediaStream::enoughData();
            (void)x; // noop (for compiler warning)
        } else {
            this->enoughData();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_19(Smoke::Stack x) {
        // virtual void seekStream(long long)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Phonon::AbstractMediaStream*>(this))) {
            this->Phonon::AbstractMediaStream::seekStream(*(long long*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->seekStream(*(long long*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_20(Smoke::Stack x) {
        // Phonon::AbstractMediaStream* AbstractMediaStream(Phonon::AbstractMediaStreamPrivate&, QObject*)
        x_Phonon__AbstractMediaStream* xret = new x_Phonon__AbstractMediaStream(*(Phonon::AbstractMediaStreamPrivate*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Phonon__AbstractMediaStream(Phonon::AbstractMediaStreamPrivate& x1, QObject* x2) : AbstractMediaStream(x1, x2) {}
    static void x_21(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Phonon::AbstractMediaStream::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_22(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Phonon::AbstractMediaStream::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_23(Smoke::Stack x) {
        // Phonon::AbstractMediaStream* AbstractMediaStream()
        x_Phonon__AbstractMediaStream* xret = new x_Phonon__AbstractMediaStream((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Phonon::AbstractMediaStream::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(69, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Phonon::AbstractMediaStream::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(70, (void*)this, x)) return (void*)x[0].s_class;
        return this->Phonon::AbstractMediaStream::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(75, (void*)this, x)) return (int)x[0].s_int;
        return this->Phonon::AbstractMediaStream::qt_metacall(x1, x2, x3);
    }
    virtual void reset() {
        Smoke::StackItem x[1];
        this->_binding->callMethod(84, (void*)this, x, true /*pure virtual*/);
    }
    virtual void needData() {
        Smoke::StackItem x[1];
        this->_binding->callMethod(85, (void*)this, x, true /*pure virtual*/);
    }
    virtual void enoughData() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(86, (void*)this, x)) return;
        this->Phonon::AbstractMediaStream::enoughData();
    }
    virtual void seekStream(long long x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)new long long(x1);
        if (this->_binding->callMethod(87, (void*)this, x)) return;
        this->Phonon::AbstractMediaStream::seekStream(x1);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(599, (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(600, (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(601, (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(602, (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(603, (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(604, (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(605, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Phonon__AbstractMediaStream() { this->_binding->deleted(4, (void*)this); }
};
void xcall_Phonon__AbstractMediaStream(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Phonon__AbstractMediaStream *xself = (x_Phonon__AbstractMediaStream*)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_Phonon__AbstractMediaStream::x_3(args);	break;
        case 4: x_Phonon__AbstractMediaStream::x_4(args);	break;
        case 5: x_Phonon__AbstractMediaStream::x_5(args);	break;
        case 6: x_Phonon__AbstractMediaStream::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Phonon__AbstractMediaStream::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: xself->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: x_Phonon__AbstractMediaStream::x_20(args);	break;
        case 21: x_Phonon__AbstractMediaStream::x_21(args);	break;
        case 22: x_Phonon__AbstractMediaStream::x_22(args);	break;
        case 23: x_Phonon__AbstractMediaStream::x_23(args);	break;
        case 24: x_Phonon__AbstractMediaStream::x_24(args);	break;
        case 25: delete (Phonon::AbstractMediaStream*)xself;	break;
    }
}

}
