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

#include <smoke.h>
#include <kdecore_smoke.h>

class __internal_SmokeClass {};

namespace __smokekdecore {

class x_KDebugTag : public KDebugTag {
    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) {
        // KDebugTag* KDebugTag()
        x_KDebugTag* xret = new x_KDebugTag();
        x[0].s_class = (void*)xret;
    }
    explicit x_KDebugTag() : KDebugTag() {}
    static void x_2(Smoke::Stack x) {
        // KDebugTag* KDebugTag(const KDebugTag&)
        x_KDebugTag* xret = new x_KDebugTag(*(const KDebugTag*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KDebugTag(const KDebugTag& x1) : KDebugTag(x1) {}
    ~x_KDebugTag() { this->_binding->deleted(56, (void*)this); }
};
void xcall_KDebugTag(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KDebugTag *xself = (x_KDebugTag*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KDebugTag::x_1(args);	break;
        case 2: x_KDebugTag::x_2(args);	break;
        case 3: delete (KDebugTag*)xself;	break;
    }
}
class x_KDesktopFile : public KDesktopFile, public __internal_SmokeClass {
    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) {
        // KDesktopFile* KDesktopFile(const char*, const QString&)
        x_KDesktopFile* xret = new x_KDesktopFile((const char*)x[1].s_class,*(const QString*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KDesktopFile(const char* x1, const QString& x2) : KDesktopFile(x1, x2) {}
    static void x_2(Smoke::Stack x) {
        // KDesktopFile* KDesktopFile(const QString&)
        x_KDesktopFile* xret = new x_KDesktopFile(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KDesktopFile(const QString& x1) : KDesktopFile(x1) {}
    static void x_3(Smoke::Stack x) {
        // static bool isDesktopFile(const QString&)
        bool xret = KDesktopFile::isDesktopFile(*(const QString*)x[1].s_class);
        x[0].s_bool = xret;
    }
    static void x_4(Smoke::Stack x) {
        // static bool isAuthorizedDesktopFile(const QString&)
        bool xret = KDesktopFile::isAuthorizedDesktopFile(*(const QString*)x[1].s_class);
        x[0].s_bool = xret;
    }
    static void x_5(Smoke::Stack x) {
        // static QString locateLocal(const QString&)
        QString xret = KDesktopFile::locateLocal(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_6(Smoke::Stack x) {
        // KConfigGroup desktopGroup() const
        KConfigGroup xret = ((const x_KDesktopFile*)this)->KDesktopFile::desktopGroup();
        x[0].s_class = (void*)new KConfigGroup(xret);
    }
    void x_7(Smoke::Stack x) {
        // QString readType() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readType();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_8(Smoke::Stack x) {
        // QString readIcon() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readIcon();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_9(Smoke::Stack x) {
        // QString readName() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readName();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_10(Smoke::Stack x) {
        // QString readComment() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readComment();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_11(Smoke::Stack x) {
        // QString readGenericName() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readGenericName();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_12(Smoke::Stack x) {
        // QString readPath() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readPath();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_13(Smoke::Stack x) {
        // QString readDevice() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readDevice();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_14(Smoke::Stack x) {
        // QString readUrl() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readUrl();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_15(Smoke::Stack x) {
        // QStringList readActions() const
        QStringList xret = ((const x_KDesktopFile*)this)->KDesktopFile::readActions();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_16(Smoke::Stack x) {
        // KConfigGroup actionGroup(const QString&)
        KConfigGroup xret = this->KDesktopFile::actionGroup(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)new KConfigGroup(xret);
    }
    void x_17(Smoke::Stack x) {
        // const KConfigGroup actionGroup(const QString&) const
        const KConfigGroup xret = ((const x_KDesktopFile*)this)->KDesktopFile::actionGroup(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)new const KConfigGroup(xret);
    }
    void x_18(Smoke::Stack x) {
        // bool hasActionGroup(const QString&) const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::hasActionGroup(*(const QString*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_19(Smoke::Stack x) {
        // bool hasLinkType() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::hasLinkType();
        x[0].s_bool = xret;
    }
    void x_20(Smoke::Stack x) {
        // bool hasApplicationType() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::hasApplicationType();
        x[0].s_bool = xret;
    }
    void x_21(Smoke::Stack x) {
        // bool hasMimeTypeType() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::hasMimeTypeType();
        x[0].s_bool = xret;
    }
    void x_22(Smoke::Stack x) {
        // bool hasDeviceType() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::hasDeviceType();
        x[0].s_bool = xret;
    }
    void x_23(Smoke::Stack x) {
        // bool tryExec() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::tryExec();
        x[0].s_bool = xret;
    }
    void x_24(Smoke::Stack x) {
        // QString readDocPath() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::readDocPath();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_25(Smoke::Stack x) {
        // QStringList sortOrder() const
        QStringList xret = ((const x_KDesktopFile*)this)->KDesktopFile::sortOrder();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_26(Smoke::Stack x) {
        // bool noDisplay() const
        bool xret = ((const x_KDesktopFile*)this)->KDesktopFile::noDisplay();
        x[0].s_bool = xret;
    }
    void x_27(Smoke::Stack x) {
        // KDesktopFile* copyTo(const QString&) const
        KDesktopFile* xret = ((const x_KDesktopFile*)this)->KDesktopFile::copyTo(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_28(Smoke::Stack x) {
        // QString fileName() const
        QString xret = ((const x_KDesktopFile*)this)->KDesktopFile::fileName();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_29(Smoke::Stack x) {
        // const char* resource() const
        const char* xret = ((const x_KDesktopFile*)this)->KDesktopFile::resource();
        x[0].s_class = (void*)xret;
    }
    virtual bool hasGroupImpl(const QByteArray& x1) const {
        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->KConfig::hasGroupImpl(x1);
    }
    virtual KConfigGroup groupImpl(const QByteArray& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(600, (void*)this, x)) {
            KConfigGroup* xptr = (KConfigGroup*)x[0].s_class;
            KConfigGroup xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KConfig::groupImpl(x1);
    }
    virtual const KConfigGroup groupImpl(const QByteArray& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(601, (void*)this, x)) {
            const KConfigGroup* xptr = (const KConfigGroup*)x[0].s_class;
            const KConfigGroup xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KConfig::groupImpl(x1);
    }
    virtual void deleteGroupImpl(const QByteArray& x1, QFlags<KConfigBase::WriteConfigFlag> x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_uint = (uint)x2;
        if (this->_binding->callMethod(602, (void*)this, x)) return;
        this->KConfig::deleteGroupImpl(x1, x2);
    }
    virtual bool isGroupImmutableImpl(const QByteArray& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(603, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KConfig::isGroupImmutableImpl(x1);
    }
    virtual QStringList groupList() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(597, (void*)this, x)) {
            QStringList* xptr = (QStringList*)x[0].s_class;
            QStringList xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KConfig::groupList();
    }
    virtual void sync() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(581, (void*)this, x)) return;
        this->KConfig::sync();
    }
    virtual void markAsClean() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(583, (void*)this, x)) return;
        this->KConfig::markAsClean();
    }
    virtual KConfigBase::AccessMode accessMode() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(584, (void*)this, x)) return (KConfigBase::AccessMode)x[0].s_enum;
        return this->KConfig::accessMode();
    }
    virtual bool isImmutable() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(594, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KConfig::isImmutable();
    }
    ~x_KDesktopFile() { this->_binding->deleted(57, (void*)this); }
};
void xcall_KDesktopFile(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KDesktopFile *xself = (x_KDesktopFile*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KDesktopFile::x_1(args);	break;
        case 2: x_KDesktopFile::x_2(args);	break;
        case 3: x_KDesktopFile::x_3(args);	break;
        case 4: x_KDesktopFile::x_4(args);	break;
        case 5: x_KDesktopFile::x_5(args);	break;
        case 6: xself->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: 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: 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: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: delete (KDesktopFile*)xself;	break;
    }
}
class x_KEncodingDetector : public KEncodingDetector {
    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) {
        // KEncodingDetector* KEncodingDetector()
        x_KEncodingDetector* xret = new x_KEncodingDetector();
        x[0].s_class = (void*)xret;
    }
    explicit x_KEncodingDetector() : KEncodingDetector() {}
    static void x_2(Smoke::Stack x) {
        // KEncodingDetector* KEncodingDetector(QTextCodec*, KEncodingDetector::EncodingChoiceSource, KEncodingDetector::AutoDetectScript)
        x_KEncodingDetector* xret = new x_KEncodingDetector((QTextCodec*)x[1].s_class,(KEncodingDetector::EncodingChoiceSource)x[2].s_enum,(KEncodingDetector::AutoDetectScript)x[3].s_enum);
        x[0].s_class = (void*)xret;
    }
    explicit x_KEncodingDetector(QTextCodec* x1, KEncodingDetector::EncodingChoiceSource x2, KEncodingDetector::AutoDetectScript x3) : KEncodingDetector(x1, x2, x3) {}
    void x_3(Smoke::Stack x) {
        // bool setEncoding(const char*, KEncodingDetector::EncodingChoiceSource)
        bool xret = this->KEncodingDetector::setEncoding((const char*)x[1].s_class,(KEncodingDetector::EncodingChoiceSource)x[2].s_enum);
        x[0].s_bool = xret;
    }
    void x_4(Smoke::Stack x) {
        // const char* encoding() const
        const char* xret = ((const x_KEncodingDetector*)this)->KEncodingDetector::encoding();
        x[0].s_class = (void*)xret;
    }
    void x_5(Smoke::Stack x) {
        // bool visuallyOrdered() const
        bool xret = ((const x_KEncodingDetector*)this)->KEncodingDetector::visuallyOrdered();
        x[0].s_bool = xret;
    }
    void x_6(Smoke::Stack x) {
        // void setAutoDetectLanguage(KEncodingDetector::AutoDetectScript)
        this->KEncodingDetector::setAutoDetectLanguage((KEncodingDetector::AutoDetectScript)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_7(Smoke::Stack x) {
        // KEncodingDetector::AutoDetectScript autoDetectLanguage() const
        KEncodingDetector::AutoDetectScript xret = ((const x_KEncodingDetector*)this)->KEncodingDetector::autoDetectLanguage();
        x[0].s_enum = xret;
    }
    void x_8(Smoke::Stack x) {
        // KEncodingDetector::EncodingChoiceSource encodingChoiceSource() const
        KEncodingDetector::EncodingChoiceSource xret = ((const x_KEncodingDetector*)this)->KEncodingDetector::encodingChoiceSource();
        x[0].s_enum = xret;
    }
    void x_9(Smoke::Stack x) {
        // QString decode(const char*, int)
        QString xret = this->KEncodingDetector::decode((const char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_10(Smoke::Stack x) {
        // QString decode(const QByteArray&)
        QString xret = this->KEncodingDetector::decode(*(const QByteArray*)x[1].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_11(Smoke::Stack x) {
        // QString decodeWithBuffering(const char*, int)
        QString xret = this->KEncodingDetector::decodeWithBuffering((const char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_12(Smoke::Stack x) {
        // bool decodedInvalidCharacters() const
        bool xret = ((const x_KEncodingDetector*)this)->KEncodingDetector::decodedInvalidCharacters();
        x[0].s_bool = xret;
    }
    void x_13(Smoke::Stack x) {
        // void resetDecoder()
        this->KEncodingDetector::resetDecoder();
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // QString flush()
        QString xret = this->KEncodingDetector::flush();
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static KEncodingDetector::AutoDetectScript scriptForName(const QString&)
        KEncodingDetector::AutoDetectScript xret = KEncodingDetector::scriptForName(*(const QString*)x[1].s_class);
        x[0].s_enum = xret;
    }
    static void x_16(Smoke::Stack x) {
        // static QString nameForScript(KEncodingDetector::AutoDetectScript)
        QString xret = KEncodingDetector::nameForScript((KEncodingDetector::AutoDetectScript)x[1].s_enum);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_17(Smoke::Stack x) {
        // static bool hasAutoDetectionForScript(KEncodingDetector::AutoDetectScript)
        bool xret = KEncodingDetector::hasAutoDetectionForScript((KEncodingDetector::AutoDetectScript)x[1].s_enum);
        x[0].s_bool = xret;
    }
    void x_18(Smoke::Stack x) {
        // bool processNull(char*, int)
        bool xret = this->KEncodingDetector::processNull((char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_bool = xret;
    }
    void x_19(Smoke::Stack x) {
        // bool errorsIfUtf8(const char*, int)
        bool xret = this->KEncodingDetector::errorsIfUtf8((const char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_bool = xret;
    }
    void x_20(Smoke::Stack x) {
        // bool analyze(const char*, int)
        bool xret = this->KEncodingDetector::analyze((const char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_bool = xret;
    }
    void x_21(Smoke::Stack x) {
        // QTextDecoder* decoder()
        QTextDecoder* xret = this->KEncodingDetector::decoder();
        x[0].s_class = (void*)xret;
    }
    static void x_22(Smoke::Stack x) {
        // KEncodingDetector* KEncodingDetector(const KEncodingDetector&)
        x_KEncodingDetector* xret = new x_KEncodingDetector(*(const KEncodingDetector*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KEncodingDetector(const KEncodingDetector& x1) : KEncodingDetector(x1) {}
    static void x_23(Smoke::Stack x) {
        // KEncodingDetector* KEncodingDetector(QTextCodec*, KEncodingDetector::EncodingChoiceSource)
        x_KEncodingDetector* xret = new x_KEncodingDetector((QTextCodec*)x[1].s_class,(KEncodingDetector::EncodingChoiceSource)x[2].s_enum,(KEncodingDetector::AutoDetectScript)KEncodingDetector::None);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::DefaultEncoding;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::AutoDetectedEncoding;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::BOM;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::EncodingFromXMLHeader;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::EncodingFromMetaTag;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::EncodingFromHTTPHeader;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::UserChosenEncoding;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::None;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::SemiautomaticDetection;
    }
    static void x_33(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Arabic;
    }
    static void x_34(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Baltic;
    }
    static void x_35(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::CentralEuropean;
    }
    static void x_36(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::ChineseSimplified;
    }
    static void x_37(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::ChineseTraditional;
    }
    static void x_38(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Cyrillic;
    }
    static void x_39(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Greek;
    }
    static void x_40(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Hebrew;
    }
    static void x_41(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Japanese;
    }
    static void x_42(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Korean;
    }
    static void x_43(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::NorthernSaami;
    }
    static void x_44(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::SouthEasternEurope;
    }
    static void x_45(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Thai;
    }
    static void x_46(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Turkish;
    }
    static void x_47(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::Unicode;
    }
    static void x_48(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingDetector::WesternEuropean;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 101: //KEncodingDetector::EncodingChoiceSource
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KEncodingDetector::EncodingChoiceSource;
                    break;
                case Smoke::EnumDelete:
                    delete (KEncodingDetector::EncodingChoiceSource*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KEncodingDetector::EncodingChoiceSource*)xdata = (KEncodingDetector::EncodingChoiceSource)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KEncodingDetector::EncodingChoiceSource*)xdata;
                    break;
            }
            break;
        case 100: //KEncodingDetector::AutoDetectScript
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KEncodingDetector::AutoDetectScript;
                    break;
                case Smoke::EnumDelete:
                    delete (KEncodingDetector::AutoDetectScript*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KEncodingDetector::AutoDetectScript*)xdata = (KEncodingDetector::AutoDetectScript)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KEncodingDetector::AutoDetectScript*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KEncodingDetector() { this->_binding->deleted(58, (void*)this); }
};
void xenum_KEncodingDetector(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KEncodingDetector::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KEncodingDetector(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KEncodingDetector *xself = (x_KEncodingDetector*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KEncodingDetector::x_1(args);	break;
        case 2: x_KEncodingDetector::x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->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: x_KEncodingDetector::x_15(args);	break;
        case 16: x_KEncodingDetector::x_16(args);	break;
        case 17: x_KEncodingDetector::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: x_KEncodingDetector::x_22(args);	break;
        case 23: x_KEncodingDetector::x_23(args);	break;
        case 24: x_KEncodingDetector::x_24(args);	break;
        case 25: x_KEncodingDetector::x_25(args);	break;
        case 26: x_KEncodingDetector::x_26(args);	break;
        case 27: x_KEncodingDetector::x_27(args);	break;
        case 28: x_KEncodingDetector::x_28(args);	break;
        case 29: x_KEncodingDetector::x_29(args);	break;
        case 30: x_KEncodingDetector::x_30(args);	break;
        case 31: x_KEncodingDetector::x_31(args);	break;
        case 32: x_KEncodingDetector::x_32(args);	break;
        case 33: x_KEncodingDetector::x_33(args);	break;
        case 34: x_KEncodingDetector::x_34(args);	break;
        case 35: x_KEncodingDetector::x_35(args);	break;
        case 36: x_KEncodingDetector::x_36(args);	break;
        case 37: x_KEncodingDetector::x_37(args);	break;
        case 38: x_KEncodingDetector::x_38(args);	break;
        case 39: x_KEncodingDetector::x_39(args);	break;
        case 40: x_KEncodingDetector::x_40(args);	break;
        case 41: x_KEncodingDetector::x_41(args);	break;
        case 42: x_KEncodingDetector::x_42(args);	break;
        case 43: x_KEncodingDetector::x_43(args);	break;
        case 44: x_KEncodingDetector::x_44(args);	break;
        case 45: x_KEncodingDetector::x_45(args);	break;
        case 46: x_KEncodingDetector::x_46(args);	break;
        case 47: x_KEncodingDetector::x_47(args);	break;
        case 48: x_KEncodingDetector::x_48(args);	break;
        case 49: delete (KEncodingDetector*)xself;	break;
    }
}
class x_KEncodingProber : public KEncodingProber {
    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) {
        // KEncodingProber* KEncodingProber(KEncodingProber::ProberType)
        x_KEncodingProber* xret = new x_KEncodingProber((KEncodingProber::ProberType)x[1].s_enum);
        x[0].s_class = (void*)xret;
    }
    explicit x_KEncodingProber(KEncodingProber::ProberType x1) : KEncodingProber(x1) {}
    void x_2(Smoke::Stack x) {
        // void reset()
        this->KEncodingProber::reset();
        (void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) {
        // KEncodingProber::ProberState feed(const QByteArray&)
        KEncodingProber::ProberState xret = this->KEncodingProber::feed(*(const QByteArray*)x[1].s_class);
        x[0].s_enum = xret;
    }
    void x_4(Smoke::Stack x) {
        // KEncodingProber::ProberState feed(const char*, int)
        KEncodingProber::ProberState xret = this->KEncodingProber::feed((const char*)x[1].s_class,(int)x[2].s_int);
        x[0].s_enum = xret;
    }
    void x_5(Smoke::Stack x) {
        // KEncodingProber::ProberState state() const
        KEncodingProber::ProberState xret = ((const x_KEncodingProber*)this)->KEncodingProber::state();
        x[0].s_enum = xret;
    }
    void x_6(Smoke::Stack x) {
        // const char* encodingName() const
        const char* xret = ((const x_KEncodingProber*)this)->KEncodingProber::encodingName();
        x[0].s_class = (void*)xret;
    }
    void x_7(Smoke::Stack x) {
        // QByteArray encoding() const
        QByteArray xret = ((const x_KEncodingProber*)this)->KEncodingProber::encoding();
        x[0].s_class = (void*)new QByteArray(xret);
    }
    void x_8(Smoke::Stack x) {
        // float confidence() const
        float xret = ((const x_KEncodingProber*)this)->KEncodingProber::confidence();
        x[0].s_float = xret;
    }
    void x_9(Smoke::Stack x) {
        // KEncodingProber::ProberType proberType() const
        KEncodingProber::ProberType xret = ((const x_KEncodingProber*)this)->KEncodingProber::proberType();
        x[0].s_enum = xret;
    }
    void x_10(Smoke::Stack x) {
        // void setProberType(KEncodingProber::ProberType)
        this->KEncodingProber::setProberType((KEncodingProber::ProberType)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    static void x_11(Smoke::Stack x) {
        // static KEncodingProber::ProberType proberTypeForName(const QString&)
        KEncodingProber::ProberType xret = KEncodingProber::proberTypeForName(*(const QString*)x[1].s_class);
        x[0].s_enum = xret;
    }
    static void x_12(Smoke::Stack x) {
        // static QString nameForProberType(KEncodingProber::ProberType)
        QString xret = KEncodingProber::nameForProberType((KEncodingProber::ProberType)x[1].s_enum);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_13(Smoke::Stack x) {
        // KEncodingProber* KEncodingProber(const KEncodingProber&)
        x_KEncodingProber* xret = new x_KEncodingProber(*(const KEncodingProber*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KEncodingProber(const KEncodingProber& x1) : KEncodingProber(x1) {}
    static void x_14(Smoke::Stack x) {
        // KEncodingProber* KEncodingProber()
        x_KEncodingProber* xret = new x_KEncodingProber((KEncodingProber::ProberType)KEncodingProber::Universal);
        x[0].s_class = (void*)xret;
    }
    static void x_15(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::FoundIt;
    }
    static void x_16(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::NotMe;
    }
    static void x_17(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Probing;
    }
    static void x_18(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::None;
    }
    static void x_19(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Universal;
    }
    static void x_20(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Arabic;
    }
    static void x_21(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Baltic;
    }
    static void x_22(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::CentralEuropean;
    }
    static void x_23(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::ChineseSimplified;
    }
    static void x_24(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::ChineseTraditional;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Cyrillic;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Greek;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Hebrew;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Japanese;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Korean;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::NorthernSaami;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Other;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::SouthEasternEurope;
    }
    static void x_33(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Thai;
    }
    static void x_34(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Turkish;
    }
    static void x_35(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::Unicode;
    }
    static void x_36(Smoke::Stack x) {
        x[0].s_enum = (long)KEncodingProber::WesternEuropean;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 103: //KEncodingProber::ProberState
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KEncodingProber::ProberState;
                    break;
                case Smoke::EnumDelete:
                    delete (KEncodingProber::ProberState*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KEncodingProber::ProberState*)xdata = (KEncodingProber::ProberState)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KEncodingProber::ProberState*)xdata;
                    break;
            }
            break;
        case 104: //KEncodingProber::ProberType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KEncodingProber::ProberType;
                    break;
                case Smoke::EnumDelete:
                    delete (KEncodingProber::ProberType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KEncodingProber::ProberType*)xdata = (KEncodingProber::ProberType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KEncodingProber::ProberType*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KEncodingProber() { this->_binding->deleted(59, (void*)this); }
};
void xenum_KEncodingProber(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KEncodingProber::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KEncodingProber(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KEncodingProber *xself = (x_KEncodingProber*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KEncodingProber::x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->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_KEncodingProber::x_11(args);	break;
        case 12: x_KEncodingProber::x_12(args);	break;
        case 13: x_KEncodingProber::x_13(args);	break;
        case 14: x_KEncodingProber::x_14(args);	break;
        case 15: x_KEncodingProber::x_15(args);	break;
        case 16: x_KEncodingProber::x_16(args);	break;
        case 17: x_KEncodingProber::x_17(args);	break;
        case 18: x_KEncodingProber::x_18(args);	break;
        case 19: x_KEncodingProber::x_19(args);	break;
        case 20: x_KEncodingProber::x_20(args);	break;
        case 21: x_KEncodingProber::x_21(args);	break;
        case 22: x_KEncodingProber::x_22(args);	break;
        case 23: x_KEncodingProber::x_23(args);	break;
        case 24: x_KEncodingProber::x_24(args);	break;
        case 25: x_KEncodingProber::x_25(args);	break;
        case 26: x_KEncodingProber::x_26(args);	break;
        case 27: x_KEncodingProber::x_27(args);	break;
        case 28: x_KEncodingProber::x_28(args);	break;
        case 29: x_KEncodingProber::x_29(args);	break;
        case 30: x_KEncodingProber::x_30(args);	break;
        case 31: x_KEncodingProber::x_31(args);	break;
        case 32: x_KEncodingProber::x_32(args);	break;
        case 33: x_KEncodingProber::x_33(args);	break;
        case 34: x_KEncodingProber::x_34(args);	break;
        case 35: x_KEncodingProber::x_35(args);	break;
        case 36: x_KEncodingProber::x_36(args);	break;
        case 37: delete (KEncodingProber*)xself;	break;
    }
}
class x_KFilterBase : public KFilterBase, public __internal_SmokeClass {
    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) {
        // KFilterBase* KFilterBase()
        x_KFilterBase* xret = new x_KFilterBase();
        x[0].s_class = (void*)xret;
    }
    explicit x_KFilterBase() : KFilterBase() {}
    void x_2(Smoke::Stack x) {
        // void setDevice(QIODevice*, bool)
        this->KFilterBase::setDevice((QIODevice*)x[1].s_class,(bool)x[2].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) {
        // QIODevice* device()
        QIODevice* xret = this->KFilterBase::device();
        x[0].s_class = (void*)xret;
    }
    void x_4(Smoke::Stack x) {
        // virtual void init(int) = 0
        this->init((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_5(Smoke::Stack x) {
        // virtual int mode() const = 0
        int xret = ((const x_KFilterBase*)this)->mode();
        x[0].s_int = xret;
    }
    void x_6(Smoke::Stack x) {
        // virtual void terminate()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KFilterBase*>(this))) {
            this->KFilterBase::terminate();
            (void)x; // noop (for compiler warning)
        } else {
            this->terminate();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_7(Smoke::Stack x) {
        // virtual void reset()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KFilterBase*>(this))) {
            this->KFilterBase::reset();
            (void)x; // noop (for compiler warning)
        } else {
            this->reset();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_8(Smoke::Stack x) {
        // virtual bool readHeader() = 0
        bool xret = this->readHeader();
        x[0].s_bool = xret;
    }
    void x_9(Smoke::Stack x) {
        // virtual bool writeHeader(const QByteArray&) = 0
        bool xret = this->writeHeader(*(const QByteArray*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_10(Smoke::Stack x) {
        // virtual void setOutBuffer(char*, unsigned int) = 0
        this->setOutBuffer((char*)x[1].s_class,(unsigned int)x[2].s_uint);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // virtual void setInBuffer(const char*, unsigned int) = 0
        this->setInBuffer((const char*)x[1].s_class,(unsigned int)x[2].s_uint);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // virtual bool inBufferEmpty() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KFilterBase*>(this))) {
            bool xret = ((const x_KFilterBase*)this)->KFilterBase::inBufferEmpty();
            x[0].s_bool = xret;
        } else {
            bool xret = ((const x_KFilterBase*)this)->inBufferEmpty();
            x[0].s_bool = xret;
        }
    }
    void x_13(Smoke::Stack x) {
        // virtual int inBufferAvailable() const = 0
        int xret = ((const x_KFilterBase*)this)->inBufferAvailable();
        x[0].s_int = xret;
    }
    void x_14(Smoke::Stack x) {
        // virtual bool outBufferFull() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KFilterBase*>(this))) {
            bool xret = ((const x_KFilterBase*)this)->KFilterBase::outBufferFull();
            x[0].s_bool = xret;
        } else {
            bool xret = ((const x_KFilterBase*)this)->outBufferFull();
            x[0].s_bool = xret;
        }
    }
    void x_15(Smoke::Stack x) {
        // virtual int outBufferAvailable() const = 0
        int xret = ((const x_KFilterBase*)this)->outBufferAvailable();
        x[0].s_int = xret;
    }
    void x_16(Smoke::Stack x) {
        // virtual KFilterBase::Result uncompress() = 0
        KFilterBase::Result xret = this->uncompress();
        x[0].s_enum = xret;
    }
    void x_17(Smoke::Stack x) {
        // virtual KFilterBase::Result compress(bool) = 0
        KFilterBase::Result xret = this->compress((bool)x[1].s_bool);
        x[0].s_enum = xret;
    }
    void x_18(Smoke::Stack x) {
        // void setFilterFlags(KFilterBase::FilterFlags)
        this->KFilterBase::setFilterFlags((KFilterBase::FilterFlags)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // KFilterBase::FilterFlags filterFlags() const
        KFilterBase::FilterFlags xret = ((const x_KFilterBase*)this)->KFilterBase::filterFlags();
        x[0].s_enum = xret;
    }
    static void x_20(Smoke::Stack x) {
        // static KFilterBase* findFilterByFileName(const QString&)
        KFilterBase* xret = KFilterBase::findFilterByFileName(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_21(Smoke::Stack x) {
        // static KFilterBase* findFilterByMimeType(const QString&)
        KFilterBase* xret = KFilterBase::findFilterByMimeType(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_22(Smoke::Stack x) {
        // void setDevice(QIODevice*)
        this->KFilterBase::setDevice((QIODevice*)x[1].s_class,(bool)false);
        (void)x; // noop (for compiler warning)
    }
    void x_23(Smoke::Stack x) {
        // QIODevice* m_dev
        x[0].s_class = (void*)this->KFilterBase::m_dev;
    }
    void x_24(Smoke::Stack x) {
        // QIODevice* m_dev=
        this->KFilterBase::m_dev = (QIODevice*)x[1].s_class;
    }
    void x_25(Smoke::Stack x) {
        // bool m_bAutoDel
        x[0].s_bool = this->KFilterBase::m_bAutoDel;
    }
    void x_26(Smoke::Stack x) {
        // bool m_bAutoDel=
        this->KFilterBase::m_bAutoDel = (bool)x[1].s_bool;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)KFilterBase::Ok;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)KFilterBase::End;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)KFilterBase::Error;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KFilterBase::NoHeaders;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)KFilterBase::WithHeaders;
    }
    virtual void init(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        this->_binding->callMethod(1429, (void*)this, x, true /*pure virtual*/);
    }
    virtual int mode() const {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1430, (void*)this, x, true /*pure virtual*/);
        return (int)x[0].s_int;
    }
    virtual void terminate() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1431, (void*)this, x)) return;
        this->KFilterBase::terminate();
    }
    virtual void reset() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1432, (void*)this, x)) return;
        this->KFilterBase::reset();
    }
    virtual bool readHeader() {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1433, (void*)this, x, true /*pure virtual*/);
        return (bool)x[0].s_bool;
    }
    virtual bool writeHeader(const QByteArray& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        this->_binding->callMethod(1434, (void*)this, x, true /*pure virtual*/);
        return (bool)x[0].s_bool;
    }
    virtual void setOutBuffer(char* x1, unsigned int x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_uint = x2;
        this->_binding->callMethod(1435, (void*)this, x, true /*pure virtual*/);
    }
    virtual void setInBuffer(const char* x1, unsigned int x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_uint = x2;
        this->_binding->callMethod(1436, (void*)this, x, true /*pure virtual*/);
    }
    virtual bool inBufferEmpty() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1437, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KFilterBase::inBufferEmpty();
    }
    virtual int inBufferAvailable() const {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1438, (void*)this, x, true /*pure virtual*/);
        return (int)x[0].s_int;
    }
    virtual bool outBufferFull() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1439, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KFilterBase::outBufferFull();
    }
    virtual int outBufferAvailable() const {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1440, (void*)this, x, true /*pure virtual*/);
        return (int)x[0].s_int;
    }
    virtual KFilterBase::Result uncompress() {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1441, (void*)this, x, true /*pure virtual*/);
        return (KFilterBase::Result)x[0].s_enum;
    }
    virtual KFilterBase::Result compress(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        this->_binding->callMethod(1442, (void*)this, x, true /*pure virtual*/);
        return (KFilterBase::Result)x[0].s_enum;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 107: //KFilterBase::Result
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KFilterBase::Result;
                    break;
                case Smoke::EnumDelete:
                    delete (KFilterBase::Result*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KFilterBase::Result*)xdata = (KFilterBase::Result)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KFilterBase::Result*)xdata;
                    break;
            }
            break;
        case 106: //KFilterBase::FilterFlags
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KFilterBase::FilterFlags;
                    break;
                case Smoke::EnumDelete:
                    delete (KFilterBase::FilterFlags*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KFilterBase::FilterFlags*)xdata = (KFilterBase::FilterFlags)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KFilterBase::FilterFlags*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KFilterBase() { this->_binding->deleted(60, (void*)this); }
};
void xenum_KFilterBase(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KFilterBase::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KFilterBase(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KFilterBase *xself = (x_KFilterBase*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KFilterBase::x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->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: 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_KFilterBase::x_20(args);	break;
        case 21: x_KFilterBase::x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: x_KFilterBase::x_27(args);	break;
        case 28: x_KFilterBase::x_28(args);	break;
        case 29: x_KFilterBase::x_29(args);	break;
        case 30: x_KFilterBase::x_30(args);	break;
        case 31: x_KFilterBase::x_31(args);	break;
        case 32: delete (KFilterBase*)xself;	break;
    }
}
class x_KFilterDev : public KFilterDev, public __internal_SmokeClass {
public:
    void x_1(Smoke::Stack x) {
        // virtual bool open(QFlags<QIODevice::OpenModeFlag>)
        bool xret = this->KFilterDev::open((QFlags<QIODevice::OpenModeFlag>)x[1].s_uint);
        x[0].s_bool = xret;
    }
    void x_2(Smoke::Stack x) {
        // virtual void close()
        this->KFilterDev::close();
        (void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) {
        // void setOrigFileName(const QByteArray&)
        this->KFilterDev::setOrigFileName(*(const QByteArray*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_4(Smoke::Stack x) {
        // void setSkipHeaders()
        this->KFilterDev::setSkipHeaders();
        (void)x; // noop (for compiler warning)
    }
    void x_5(Smoke::Stack x) {
        // virtual bool seek(long long)
        bool xret = this->KFilterDev::seek(*(long long*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_6(Smoke::Stack x) {
        // virtual bool atEnd() const
        bool xret = ((const x_KFilterDev*)this)->KFilterDev::atEnd();
        x[0].s_bool = xret;
    }
    static void x_7(Smoke::Stack x) {
        // static QIODevice* deviceForFile(const QString&, const QString&, bool)
        QIODevice* xret = KFilterDev::deviceForFile(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,(bool)x[3].s_bool);
        x[0].s_class = (void*)xret;
    }
    static void x_8(Smoke::Stack x) {
        // static QIODevice* device(QIODevice*, const QString&, bool)
        QIODevice* xret = KFilterDev::device((QIODevice*)x[1].s_class,*(const QString*)x[2].s_class,(bool)x[3].s_bool);
        x[0].s_class = (void*)xret;
    }
    void x_9(Smoke::Stack x) {
        // virtual long long readData(char*, long long)
        long long xret = this->KFilterDev::readData((char*)x[1].s_class,*(long long*)x[2].s_class);
        x[0].s_class = (void*)new long long(xret);
    }
    void x_10(Smoke::Stack x) {
        // virtual long long writeData(const char*, long long)
        long long xret = this->KFilterDev::writeData((const char*)x[1].s_class,*(long long*)x[2].s_class);
        x[0].s_class = (void*)new long long(xret);
    }
    static void x_11(Smoke::Stack x) {
        // static QIODevice* deviceForFile(const QString&)
        QIODevice* xret = KFilterDev::deviceForFile(*(const QString*)x[1].s_class,(const QString&)QString(),(bool)false);
        x[0].s_class = (void*)xret;
    }
    static void x_12(Smoke::Stack x) {
        // static QIODevice* deviceForFile(const QString&, const QString&)
        QIODevice* xret = KFilterDev::deviceForFile(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,(bool)false);
        x[0].s_class = (void*)xret;
    }
    static void x_13(Smoke::Stack x) {
        // static QIODevice* device(QIODevice*, const QString&)
        QIODevice* xret = KFilterDev::device((QIODevice*)x[1].s_class,*(const QString*)x[2].s_class,(bool)true);
        x[0].s_class = (void*)xret;
    }
};
void xcall_KFilterDev(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KFilterDev *xself = (x_KFilterDev*)obj;
    switch(xi) {
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: x_KFilterDev::x_7(args);	break;
        case 8: x_KFilterDev::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: x_KFilterDev::x_11(args);	break;
        case 12: x_KFilterDev::x_12(args);	break;
        case 13: x_KFilterDev::x_13(args);	break;
        case 14: delete (KFilterDev*)xself;	break;
    }
}

}
