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

#include <smoke.h>
#include <akonadi_smoke.h>

class __internal_SmokeClass {};

namespace __smokeakonadi {

class x_Akonadi__ItemModel : public Akonadi::ItemModel, 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<Akonadi::ItemModel*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemModel*)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<Akonadi::ItemModel*>(this))) {
            void* xret = this->Akonadi::ItemModel::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 = Akonadi::ItemModel::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 = Akonadi::ItemModel::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 = Akonadi::ItemModel::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 = Akonadi::ItemModel::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<Akonadi::ItemModel*>(this))) {
            int xret = this->Akonadi::ItemModel::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) {
        // Akonadi::ItemModel* ItemModel(QObject*)
        x_Akonadi__ItemModel* xret = new x_Akonadi__ItemModel((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemModel(QObject* x1) : ItemModel(x1) {}
    void x_9(Smoke::Stack x) {
        // virtual int columnCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            int xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_Akonadi__ItemModel*)this)->columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_10(Smoke::Stack x) {
        // virtual QVariant data(const QModelIndex&, int) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QVariant xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        } else {
            QVariant xret = ((const x_Akonadi__ItemModel*)this)->data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        }
    }
    void x_11(Smoke::Stack x) {
        // virtual int rowCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            int xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_Akonadi__ItemModel*)this)->rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_12(Smoke::Stack x) {
        // virtual QVariant headerData(int, Qt::Orientation, int) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QVariant xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)x[3].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        } else {
            QVariant xret = ((const x_Akonadi__ItemModel*)this)->headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)x[3].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        }
    }
    void x_13(Smoke::Stack x) {
        // virtual QFlags<Qt::ItemFlag> flags(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QFlags<Qt::ItemFlag> xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        } else {
            QFlags<Qt::ItemFlag> xret = ((const x_Akonadi__ItemModel*)this)->flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        }
    }
    void x_14(Smoke::Stack x) {
        // virtual QMimeData* mimeData(const QList<QModelIndex>&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QMimeData* xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::mimeData(*(const QList<QModelIndex>*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QMimeData* xret = ((const x_Akonadi__ItemModel*)this)->mimeData(*(const QList<QModelIndex>*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_15(Smoke::Stack x) {
        // virtual QStringList mimeTypes() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QStringList xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::mimeTypes();
            x[0].s_class = (void*)new QStringList(xret);
        } else {
            QStringList xret = ((const x_Akonadi__ItemModel*)this)->mimeTypes();
            x[0].s_class = (void*)new QStringList(xret);
        }
    }
    void x_16(Smoke::Stack x) {
        // virtual QFlags<Qt::DropAction> supportedDropActions() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            QFlags<Qt::DropAction> xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::supportedDropActions();
            x[0].s_uint = (uint)xret;
        } else {
            QFlags<Qt::DropAction> xret = ((const x_Akonadi__ItemModel*)this)->supportedDropActions();
            x[0].s_uint = (uint)xret;
        }
    }
    void x_17(Smoke::Stack x) {
        // void setFetchScope(const Akonadi::ItemFetchScope&)
        this->Akonadi::ItemModel::setFetchScope(*(const Akonadi::ItemFetchScope*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // Akonadi::ItemFetchScope& fetchScope()
        Akonadi::ItemFetchScope& xret = this->Akonadi::ItemModel::fetchScope();
        x[0].s_class = (void*)&xret;
    }
    void x_19(Smoke::Stack x) {
        // Akonadi::Item itemForIndex(const QModelIndex&) const
        Akonadi::Item xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::itemForIndex(*(const QModelIndex*)x[1].s_class);
        x[0].s_class = (void*)new Akonadi::Item(xret);
    }
    void x_20(Smoke::Stack x) {
        // QModelIndex indexForItem(const Akonadi::Item&, const int) const
        QModelIndex xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::indexForItem(*(const Akonadi::Item*)x[1].s_class,(const int)x[2].s_int);
        x[0].s_class = (void*)new QModelIndex(xret);
    }
    void x_21(Smoke::Stack x) {
        // bool dropMimeData(const QMimeData*, Qt::DropAction, int, int, const QModelIndex&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModel*>(this))) {
            bool xret = this->Akonadi::ItemModel::dropMimeData((const QMimeData*)x[1].s_class,(Qt::DropAction)x[2].s_enum,(int)x[3].s_int,(int)x[4].s_int,*(const QModelIndex*)x[5].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->dropMimeData((const QMimeData*)x[1].s_class,(Qt::DropAction)x[2].s_enum,(int)x[3].s_int,(int)x[4].s_int,*(const QModelIndex*)x[5].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_22(Smoke::Stack x) {
        // Akonadi::Collection collection() const
        Akonadi::Collection xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::collection();
        x[0].s_class = (void*)new Akonadi::Collection(xret);
    }
    void x_23(Smoke::Stack x) {
        // void setCollection(const Akonadi::Collection&)
        this->Akonadi::ItemModel::setCollection(*(const Akonadi::Collection*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_24(Smoke::Stack x) {
        // void collectionChanged(const Akonadi::Collection&)
        this->Akonadi::ItemModel::collectionChanged(*(const Akonadi::Collection*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_25(Smoke::Stack x) {
        // Akonadi::Session* session() const
        Akonadi::Session* xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::session();
        x[0].s_class = (void*)xret;
    }
    static void x_26(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemModel::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_27(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Akonadi::ItemModel::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_28(Smoke::Stack x) {
        // Akonadi::ItemModel* ItemModel()
        x_Akonadi__ItemModel* xret = new x_Akonadi__ItemModel((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    void x_29(Smoke::Stack x) {
        // int columnCount() const
        int xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::columnCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    void x_30(Smoke::Stack x) {
        // QVariant data(const QModelIndex&) const
        QVariant xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::data(*(const QModelIndex*)x[1].s_class,(int)Qt::DisplayRole);
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_31(Smoke::Stack x) {
        // int rowCount() const
        int xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::rowCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    void x_32(Smoke::Stack x) {
        // QVariant headerData(int, Qt::Orientation) const
        QVariant xret = ((const x_Akonadi__ItemModel*)this)->Akonadi::ItemModel::headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)Qt::DisplayRole);
        x[0].s_class = (void*)new QVariant(xret);
    }
    static void x_33(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemModel::staticMetaObject;
    }
    static void x_34(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::Id;
    }
    static void x_35(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::RemoteId;
    }
    static void x_36(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::MimeType;
    }
    static void x_37(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::IdRole;
    }
    static void x_38(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::ItemRole;
    }
    static void x_39(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::MimeTypeRole;
    }
    static void x_40(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemModel::UserRole;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1641, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemModel::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1642, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemModel::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(1647, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemModel::qt_metacall(x1, x2, x3);
    }
    virtual int columnCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1649, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemModel::columnCount(x1);
    }
    virtual QVariant data(const QModelIndex& x1, int x2) const {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(1650, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemModel::data(x1, x2);
    }
    virtual int rowCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1651, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemModel::rowCount(x1);
    }
    virtual QVariant headerData(int x1, Qt::Orientation x2, int x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(1652, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemModel::headerData(x1, x2, x3);
    }
    virtual QFlags<Qt::ItemFlag> flags(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1653, (void*)this, x)) return (QFlags<Qt::ItemFlag>)x[0].s_uint;
        return this->Akonadi::ItemModel::flags(x1);
    }
    virtual QMimeData* mimeData(const QList<QModelIndex>& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1654, (void*)this, x)) return (QMimeData*)x[0].s_class;
        return this->Akonadi::ItemModel::mimeData(x1);
    }
    virtual QStringList mimeTypes() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1655, (void*)this, x)) {
            QStringList* xptr = (QStringList*)x[0].s_class;
            QStringList xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemModel::mimeTypes();
    }
    virtual QFlags<Qt::DropAction> supportedDropActions() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1656, (void*)this, x)) return (QFlags<Qt::DropAction>)x[0].s_uint;
        return this->Akonadi::ItemModel::supportedDropActions();
    }
    virtual QModelIndex index(int x1, int x2, const QModelIndex& x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2629, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractTableModel::index(x1, x2, x3);
    }
    virtual bool setData(const QModelIndex& x1, const QVariant& x2, int x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(2530, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::setData(x1, x2, x3);
    }
    virtual bool setHeaderData(int x1, Qt::Orientation x2, const QVariant& x3, int x4) {
        Smoke::StackItem x[5];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        if (this->_binding->callMethod(2532, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::setHeaderData(x1, x2, x3, x4);
    }
    virtual QMap<int,QVariant> itemData(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2533, (void*)this, x)) {
            QMap<int,QVariant>* xptr = (QMap<int,QVariant>*)x[0].s_class;
            QMap<int,QVariant> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::itemData(x1);
    }
    virtual bool setItemData(const QModelIndex& x1, const QMap<int,QVariant>& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(2534, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::setItemData(x1, x2);
    }
    virtual bool dropMimeData(const QMimeData* x1, Qt::DropAction x2, int x3, int x4, const QModelIndex& x5) {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        x[4].s_int = x4;
        x[5].s_class = (void*)&x5;
        if (this->_binding->callMethod(1661, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::ItemModel::dropMimeData(x1, x2, x3, x4, x5);
    }
    virtual bool insertRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2539, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertRows(x1, x2, x3);
    }
    virtual bool insertColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2540, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertColumns(x1, x2, x3);
    }
    virtual bool removeRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2541, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeRows(x1, x2, x3);
    }
    virtual bool removeColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2542, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeColumns(x1, x2, x3);
    }
    virtual void fetchMore(const QModelIndex& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2543, (void*)this, x)) return;
        this->QAbstractItemModel::fetchMore(x1);
    }
    virtual bool canFetchMore(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2544, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::canFetchMore(x1);
    }
    virtual void sort(int x1, Qt::SortOrder x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        if (this->_binding->callMethod(2545, (void*)this, x)) return;
        this->QAbstractItemModel::sort(x1, x2);
    }
    virtual QModelIndex buddy(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2546, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::buddy(x1);
    }
    virtual QList<QModelIndex> match(const QModelIndex& x1, int x2, const QVariant& x3, int x4, QFlags<Qt::MatchFlag> x5) const {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        x[5].s_uint = (uint)x5;
        if (this->_binding->callMethod(2547, (void*)this, x)) {
            QList<QModelIndex>* xptr = (QList<QModelIndex>*)x[0].s_class;
            QList<QModelIndex> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::match(x1, x2, x3, x4, x5);
    }
    virtual QSize span(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2548, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::span(x1);
    }
    virtual bool submit() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2549, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::submit();
    }
    virtual void revert() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2550, (void*)this, x)) return;
        this->QAbstractItemModel::revert();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 135: //Akonadi::ItemModel::Column
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Akonadi::ItemModel::Column;
                    break;
                case Smoke::EnumDelete:
                    delete (Akonadi::ItemModel::Column*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Akonadi::ItemModel::Column*)xdata = (Akonadi::ItemModel::Column)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Akonadi::ItemModel::Column*)xdata;
                    break;
            }
            break;
        case 136: //Akonadi::ItemModel::Roles
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Akonadi::ItemModel::Roles;
                    break;
                case Smoke::EnumDelete:
                    delete (Akonadi::ItemModel::Roles*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Akonadi::ItemModel::Roles*)xdata = (Akonadi::ItemModel::Roles)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Akonadi::ItemModel::Roles*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_Akonadi__ItemModel() { this->_binding->deleted(79, (void*)this); }
};
void xenum_Akonadi__ItemModel(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Akonadi__ItemModel::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Akonadi__ItemModel(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemModel *xself = (x_Akonadi__ItemModel*)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_Akonadi__ItemModel::x_3(args);	break;
        case 4: x_Akonadi__ItemModel::x_4(args);	break;
        case 5: x_Akonadi__ItemModel::x_5(args);	break;
        case 6: x_Akonadi__ItemModel::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemModel::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: x_Akonadi__ItemModel::x_26(args);	break;
        case 27: x_Akonadi__ItemModel::x_27(args);	break;
        case 28: x_Akonadi__ItemModel::x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: xself->x_31(args);	break;
        case 32: xself->x_32(args);	break;
        case 33: x_Akonadi__ItemModel::x_33(args);	break;
        case 34: x_Akonadi__ItemModel::x_34(args);	break;
        case 35: x_Akonadi__ItemModel::x_35(args);	break;
        case 36: x_Akonadi__ItemModel::x_36(args);	break;
        case 37: x_Akonadi__ItemModel::x_37(args);	break;
        case 38: x_Akonadi__ItemModel::x_38(args);	break;
        case 39: x_Akonadi__ItemModel::x_39(args);	break;
        case 40: x_Akonadi__ItemModel::x_40(args);	break;
        case 41: delete (Akonadi::ItemModel*)xself;	break;
    }
}
class x_Akonadi__ItemModifyJob : public Akonadi::ItemModifyJob, 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<Akonadi::ItemModifyJob*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemModifyJob*)this)->Akonadi::ItemModifyJob::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemModifyJob*)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<Akonadi::ItemModifyJob*>(this))) {
            void* xret = this->Akonadi::ItemModifyJob::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 = Akonadi::ItemModifyJob::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 = Akonadi::ItemModifyJob::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 = Akonadi::ItemModifyJob::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 = Akonadi::ItemModifyJob::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<Akonadi::ItemModifyJob*>(this))) {
            int xret = this->Akonadi::ItemModifyJob::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) {
        // Akonadi::ItemModifyJob* ItemModifyJob(const Akonadi::Item&, QObject*)
        x_Akonadi__ItemModifyJob* xret = new x_Akonadi__ItemModifyJob(*(const Akonadi::Item*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemModifyJob(const Akonadi::Item& x1, QObject* x2) : ItemModifyJob(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // Akonadi::ItemModifyJob* ItemModifyJob(const QList<Akonadi::Item>&, QObject*)
        x_Akonadi__ItemModifyJob* xret = new x_Akonadi__ItemModifyJob(*(const QList<Akonadi::Item>*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemModifyJob(const QList<Akonadi::Item>& x1, QObject* x2) : ItemModifyJob(x1, x2) {}
    void x_10(Smoke::Stack x) {
        // void setIgnorePayload(bool)
        this->Akonadi::ItemModifyJob::setIgnorePayload((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // bool ignorePayload() const
        bool xret = ((const x_Akonadi__ItemModifyJob*)this)->Akonadi::ItemModifyJob::ignorePayload();
        x[0].s_bool = xret;
    }
    void x_12(Smoke::Stack x) {
        // void setUpdateGid(bool)
        this->Akonadi::ItemModifyJob::setUpdateGid((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // bool updateGid() const
        bool xret = ((const x_Akonadi__ItemModifyJob*)this)->Akonadi::ItemModifyJob::updateGid();
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // void disableRevisionCheck()
        this->Akonadi::ItemModifyJob::disableRevisionCheck();
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // Akonadi::Item item() const
        Akonadi::Item xret = ((const x_Akonadi__ItemModifyJob*)this)->Akonadi::ItemModifyJob::item();
        x[0].s_class = (void*)new Akonadi::Item(xret);
    }
    void x_16(Smoke::Stack x) {
        // QList<Akonadi::Item> items() const
        QList<Akonadi::Item> xret = ((const x_Akonadi__ItemModifyJob*)this)->Akonadi::ItemModifyJob::items();
        x[0].s_class = (void*)new QList<Akonadi::Item>(xret);
    }
    void x_17(Smoke::Stack x) {
        // void disableAutomaticConflictHandling()
        this->Akonadi::ItemModifyJob::disableAutomaticConflictHandling();
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // virtual void doStart()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModifyJob*>(this))) {
            this->Akonadi::ItemModifyJob::doStart();
            (void)x; // noop (for compiler warning)
        } else {
            this->doStart();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_19(Smoke::Stack x) {
        // virtual void doHandleResponse(const QByteArray&, const QByteArray&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemModifyJob*>(this))) {
            this->Akonadi::ItemModifyJob::doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_20(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemModifyJob::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_21(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Akonadi::ItemModifyJob::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_22(Smoke::Stack x) {
        // Akonadi::ItemModifyJob* ItemModifyJob(const Akonadi::Item&)
        x_Akonadi__ItemModifyJob* xret = new x_Akonadi__ItemModifyJob(*(const Akonadi::Item*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_23(Smoke::Stack x) {
        // Akonadi::ItemModifyJob* ItemModifyJob(const QList<Akonadi::Item>&)
        x_Akonadi__ItemModifyJob* xret = new x_Akonadi__ItemModifyJob(*(const QList<Akonadi::Item>*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemModifyJob::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1682, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemModifyJob::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1683, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemModifyJob::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(1688, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemModifyJob::qt_metacall(x1, x2, x3);
    }
    virtual void doStart() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1699, (void*)this, x)) return;
        this->Akonadi::ItemModifyJob::doStart();
    }
    virtual void doHandleResponse(const QByteArray& x1, const QByteArray& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1700, (void*)this, x)) return;
        this->Akonadi::ItemModifyJob::doHandleResponse(x1, x2);
    }
    virtual QString errorString() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1847, (void*)this, x)) {
            QString* xptr = (QString*)x[0].s_class;
            QString xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::Job::errorString();
    }
    virtual bool addSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::addSubjob(x1);
    }
    virtual bool removeSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1853, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::removeSubjob(x1);
    }
    virtual bool doKill() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1854, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::doKill();
    }
    virtual void slotResult(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1856, (void*)this, x)) return;
        this->Akonadi::Job::slotResult(x1);
    }
    virtual void slotInfoMessage(KJob* x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2494, (void*)this, x)) return;
        this->KCompositeJob::slotInfoMessage(x1, x2, x3);
    }
    virtual void start() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1846, (void*)this, x)) return;
        this->Akonadi::Job::start();
    }
    virtual bool doSuspend() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2508, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doSuspend();
    }
    virtual bool doResume() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2509, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doResume();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Akonadi__ItemModifyJob() { this->_binding->deleted(80, (void*)this); }
};
void xcall_Akonadi__ItemModifyJob(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemModifyJob *xself = (x_Akonadi__ItemModifyJob*)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_Akonadi__ItemModifyJob::x_3(args);	break;
        case 4: x_Akonadi__ItemModifyJob::x_4(args);	break;
        case 5: x_Akonadi__ItemModifyJob::x_5(args);	break;
        case 6: x_Akonadi__ItemModifyJob::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemModifyJob::x_8(args);	break;
        case 9: x_Akonadi__ItemModifyJob::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_Akonadi__ItemModifyJob::x_20(args);	break;
        case 21: x_Akonadi__ItemModifyJob::x_21(args);	break;
        case 22: x_Akonadi__ItemModifyJob::x_22(args);	break;
        case 23: x_Akonadi__ItemModifyJob::x_23(args);	break;
        case 24: x_Akonadi__ItemModifyJob::x_24(args);	break;
        case 25: delete (Akonadi::ItemModifyJob*)xself;	break;
    }
}
class x_Akonadi__ItemMonitor : public Akonadi::ItemMonitor, 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) {
        // Akonadi::ItemMonitor* ItemMonitor()
        x_Akonadi__ItemMonitor* xret = new x_Akonadi__ItemMonitor();
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemMonitor() : ItemMonitor() {}
    void x_2(Smoke::Stack x) {
        // void setItem(const Akonadi::Item&)
        this->Akonadi::ItemMonitor::setItem(*(const Akonadi::Item*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) {
        // Akonadi::Item item() const
        Akonadi::Item xret = ((const x_Akonadi__ItemMonitor*)this)->Akonadi::ItemMonitor::item();
        x[0].s_class = (void*)new Akonadi::Item(xret);
    }
    void x_4(Smoke::Stack x) {
        // virtual void itemChanged(const Akonadi::Item&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemMonitor*>(this))) {
            this->Akonadi::ItemMonitor::itemChanged(*(const Akonadi::Item*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->itemChanged(*(const Akonadi::Item*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_5(Smoke::Stack x) {
        // virtual void itemRemoved()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemMonitor*>(this))) {
            this->Akonadi::ItemMonitor::itemRemoved();
            (void)x; // noop (for compiler warning)
        } else {
            this->itemRemoved();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_6(Smoke::Stack x) {
        // void setFetchScope(const Akonadi::ItemFetchScope&)
        this->Akonadi::ItemMonitor::setFetchScope(*(const Akonadi::ItemFetchScope*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_7(Smoke::Stack x) {
        // Akonadi::ItemFetchScope& fetchScope()
        Akonadi::ItemFetchScope& xret = this->Akonadi::ItemMonitor::fetchScope();
        x[0].s_class = (void*)&xret;
    }
    virtual void itemChanged(const Akonadi::Item& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1710, (void*)this, x)) return;
        this->Akonadi::ItemMonitor::itemChanged(x1);
    }
    virtual void itemRemoved() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1711, (void*)this, x)) return;
        this->Akonadi::ItemMonitor::itemRemoved();
    }
    ~x_Akonadi__ItemMonitor() { this->_binding->deleted(81, (void*)this); }
};
void xcall_Akonadi__ItemMonitor(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemMonitor *xself = (x_Akonadi__ItemMonitor*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_Akonadi__ItemMonitor::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: delete (Akonadi::ItemMonitor*)xself;	break;
    }
}
class x_Akonadi__ItemMoveJob : public Akonadi::ItemMoveJob, 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<Akonadi::ItemMoveJob*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemMoveJob*)this)->Akonadi::ItemMoveJob::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemMoveJob*)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<Akonadi::ItemMoveJob*>(this))) {
            void* xret = this->Akonadi::ItemMoveJob::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 = Akonadi::ItemMoveJob::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 = Akonadi::ItemMoveJob::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 = Akonadi::ItemMoveJob::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 = Akonadi::ItemMoveJob::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<Akonadi::ItemMoveJob*>(this))) {
            int xret = this->Akonadi::ItemMoveJob::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) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const Akonadi::Item&, const Akonadi::Collection&, QObject*)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const Akonadi::Item*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemMoveJob(const Akonadi::Item& x1, const Akonadi::Collection& x2, QObject* x3) : ItemMoveJob(x1, x2, x3) {}
    static void x_9(Smoke::Stack x) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const QList<Akonadi::Item>&, const Akonadi::Collection&, QObject*)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const QList<Akonadi::Item>*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemMoveJob(const QList<Akonadi::Item>& x1, const Akonadi::Collection& x2, QObject* x3) : ItemMoveJob(x1, x2, x3) {}
    static void x_10(Smoke::Stack x) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const QList<Akonadi::Item>&, const Akonadi::Collection&, const Akonadi::Collection&, QObject*)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const QList<Akonadi::Item>*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,*(const Akonadi::Collection*)x[3].s_class,(QObject*)x[4].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemMoveJob(const QList<Akonadi::Item>& x1, const Akonadi::Collection& x2, const Akonadi::Collection& x3, QObject* x4) : ItemMoveJob(x1, x2, x3, x4) {}
    void x_11(Smoke::Stack x) {
        // Akonadi::Collection destinationCollection() const
        Akonadi::Collection xret = ((const x_Akonadi__ItemMoveJob*)this)->Akonadi::ItemMoveJob::destinationCollection();
        x[0].s_class = (void*)new Akonadi::Collection(xret);
    }
    void x_12(Smoke::Stack x) {
        // QList<Akonadi::Item> items() const
        QList<Akonadi::Item> xret = ((const x_Akonadi__ItemMoveJob*)this)->Akonadi::ItemMoveJob::items();
        x[0].s_class = (void*)new QList<Akonadi::Item>(xret);
    }
    void x_13(Smoke::Stack x) {
        // void doStart()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemMoveJob*>(this))) {
            this->Akonadi::ItemMoveJob::doStart();
            (void)x; // noop (for compiler warning)
        } else {
            this->doStart();
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_14(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemMoveJob::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 = Akonadi::ItemMoveJob::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) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const Akonadi::Item&, const Akonadi::Collection&)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const Akonadi::Item*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_17(Smoke::Stack x) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const QList<Akonadi::Item>&, const Akonadi::Collection&)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const QList<Akonadi::Item>*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_18(Smoke::Stack x) {
        // Akonadi::ItemMoveJob* ItemMoveJob(const QList<Akonadi::Item>&, const Akonadi::Collection&, const Akonadi::Collection&)
        x_Akonadi__ItemMoveJob* xret = new x_Akonadi__ItemMoveJob(*(const QList<Akonadi::Item>*)x[1].s_class,*(const Akonadi::Collection*)x[2].s_class,*(const Akonadi::Collection*)x[3].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_19(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemMoveJob::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1715, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemMoveJob::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1716, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemMoveJob::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(1721, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemMoveJob::qt_metacall(x1, x2, x3);
    }
    virtual QString errorString() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1847, (void*)this, x)) {
            QString* xptr = (QString*)x[0].s_class;
            QString xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::Job::errorString();
    }
    virtual void doStart() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1727, (void*)this, x)) return;
        this->Akonadi::ItemMoveJob::doStart();
    }
    virtual void doHandleResponse(const QByteArray& x1, const QByteArray& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1851, (void*)this, x)) return;
        this->Akonadi::Job::doHandleResponse(x1, x2);
    }
    virtual bool addSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::addSubjob(x1);
    }
    virtual bool removeSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1853, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::removeSubjob(x1);
    }
    virtual bool doKill() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1854, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::doKill();
    }
    virtual void slotResult(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1856, (void*)this, x)) return;
        this->Akonadi::Job::slotResult(x1);
    }
    virtual void slotInfoMessage(KJob* x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2494, (void*)this, x)) return;
        this->KCompositeJob::slotInfoMessage(x1, x2, x3);
    }
    virtual void start() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1846, (void*)this, x)) return;
        this->Akonadi::Job::start();
    }
    virtual bool doSuspend() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2508, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doSuspend();
    }
    virtual bool doResume() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2509, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doResume();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Akonadi__ItemMoveJob() { this->_binding->deleted(82, (void*)this); }
};
void xcall_Akonadi__ItemMoveJob(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemMoveJob *xself = (x_Akonadi__ItemMoveJob*)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_Akonadi__ItemMoveJob::x_3(args);	break;
        case 4: x_Akonadi__ItemMoveJob::x_4(args);	break;
        case 5: x_Akonadi__ItemMoveJob::x_5(args);	break;
        case 6: x_Akonadi__ItemMoveJob::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemMoveJob::x_8(args);	break;
        case 9: x_Akonadi__ItemMoveJob::x_9(args);	break;
        case 10: x_Akonadi__ItemMoveJob::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_Akonadi__ItemMoveJob::x_14(args);	break;
        case 15: x_Akonadi__ItemMoveJob::x_15(args);	break;
        case 16: x_Akonadi__ItemMoveJob::x_16(args);	break;
        case 17: x_Akonadi__ItemMoveJob::x_17(args);	break;
        case 18: x_Akonadi__ItemMoveJob::x_18(args);	break;
        case 19: x_Akonadi__ItemMoveJob::x_19(args);	break;
        case 20: delete (Akonadi::ItemMoveJob*)xself;	break;
    }
}
class x_Akonadi__ItemSearchJob : public Akonadi::ItemSearchJob, 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<Akonadi::ItemSearchJob*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemSearchJob*)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<Akonadi::ItemSearchJob*>(this))) {
            void* xret = this->Akonadi::ItemSearchJob::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 = Akonadi::ItemSearchJob::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 = Akonadi::ItemSearchJob::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 = Akonadi::ItemSearchJob::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 = Akonadi::ItemSearchJob::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<Akonadi::ItemSearchJob*>(this))) {
            int xret = this->Akonadi::ItemSearchJob::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) {
        // Akonadi::ItemSearchJob* ItemSearchJob(const QString&, QObject*)
        x_Akonadi__ItemSearchJob* xret = new x_Akonadi__ItemSearchJob(*(const QString*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSearchJob(const QString& x1, QObject* x2) : ItemSearchJob(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // Akonadi::ItemSearchJob* ItemSearchJob(const Akonadi::SearchQuery&, QObject*)
        x_Akonadi__ItemSearchJob* xret = new x_Akonadi__ItemSearchJob(*(const Akonadi::SearchQuery*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSearchJob(const Akonadi::SearchQuery& x1, QObject* x2) : ItemSearchJob(x1, x2) {}
    void x_10(Smoke::Stack x) {
        // void setQuery(const QString&)
        this->Akonadi::ItemSearchJob::setQuery(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // void setQuery(const Akonadi::SearchQuery&)
        this->Akonadi::ItemSearchJob::setQuery(*(const Akonadi::SearchQuery*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void setFetchScope(const Akonadi::ItemFetchScope&)
        this->Akonadi::ItemSearchJob::setFetchScope(*(const Akonadi::ItemFetchScope*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // Akonadi::ItemFetchScope& fetchScope()
        Akonadi::ItemFetchScope& xret = this->Akonadi::ItemSearchJob::fetchScope();
        x[0].s_class = (void*)&xret;
    }
    void x_14(Smoke::Stack x) {
        // QList<Akonadi::Item> items() const
        QList<Akonadi::Item> xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::items();
        x[0].s_class = (void*)new QList<Akonadi::Item>(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static QUrl akonadiItemIdUri()
        QUrl xret = Akonadi::ItemSearchJob::akonadiItemIdUri();
        x[0].s_class = (void*)new QUrl(xret);
    }
    void x_16(Smoke::Stack x) {
        // void setMimeTypes(const QStringList&)
        this->Akonadi::ItemSearchJob::setMimeTypes(*(const QStringList*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // QStringList mimeTypes() const
        QStringList xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::mimeTypes();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_18(Smoke::Stack x) {
        // void setSearchCollections(const QList<Akonadi::Collection>&)
        this->Akonadi::ItemSearchJob::setSearchCollections(*(const QList<Akonadi::Collection>*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // QList<Akonadi::Collection> searchCollections() const
        QList<Akonadi::Collection> xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::searchCollections();
        x[0].s_class = (void*)new QList<Akonadi::Collection>(xret);
    }
    void x_20(Smoke::Stack x) {
        // void setRecursive(bool)
        this->Akonadi::ItemSearchJob::setRecursive((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // bool isRecursive() const
        bool xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::isRecursive();
        x[0].s_bool = xret;
    }
    void x_22(Smoke::Stack x) {
        // void setRemoteSearchEnabled(bool)
        this->Akonadi::ItemSearchJob::setRemoteSearchEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_23(Smoke::Stack x) {
        // bool isRemoteSearchEnabled() const
        bool xret = ((const x_Akonadi__ItemSearchJob*)this)->Akonadi::ItemSearchJob::isRemoteSearchEnabled();
        x[0].s_bool = xret;
    }
    void x_24(Smoke::Stack x) {
        // void itemsReceived(const Akonadi::Item::List&)
        this->Akonadi::ItemSearchJob::itemsReceived(*(const Akonadi::Item::List*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_25(Smoke::Stack x) {
        // void doStart()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSearchJob*>(this))) {
            this->Akonadi::ItemSearchJob::doStart();
            (void)x; // noop (for compiler warning)
        } else {
            this->doStart();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_26(Smoke::Stack x) {
        // virtual void doHandleResponse(const QByteArray&, const QByteArray&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSearchJob*>(this))) {
            this->Akonadi::ItemSearchJob::doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_27(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemSearchJob::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_28(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Akonadi::ItemSearchJob::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_29(Smoke::Stack x) {
        // Akonadi::ItemSearchJob* ItemSearchJob(const QString&)
        x_Akonadi__ItemSearchJob* xret = new x_Akonadi__ItemSearchJob(*(const QString*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_30(Smoke::Stack x) {
        // Akonadi::ItemSearchJob* ItemSearchJob(const Akonadi::SearchQuery&)
        x_Akonadi__ItemSearchJob* xret = new x_Akonadi__ItemSearchJob(*(const Akonadi::SearchQuery*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_31(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemSearchJob::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1735, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemSearchJob::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1736, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemSearchJob::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(1741, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemSearchJob::qt_metacall(x1, x2, x3);
    }
    virtual void doHandleResponse(const QByteArray& x1, const QByteArray& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1760, (void*)this, x)) return;
        this->Akonadi::ItemSearchJob::doHandleResponse(x1, x2);
    }
    virtual QString errorString() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1847, (void*)this, x)) {
            QString* xptr = (QString*)x[0].s_class;
            QString xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::Job::errorString();
    }
    virtual void doStart() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1759, (void*)this, x)) return;
        this->Akonadi::ItemSearchJob::doStart();
    }
    virtual bool addSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::addSubjob(x1);
    }
    virtual bool removeSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1853, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::removeSubjob(x1);
    }
    virtual bool doKill() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1854, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::doKill();
    }
    virtual void slotResult(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1856, (void*)this, x)) return;
        this->Akonadi::Job::slotResult(x1);
    }
    virtual void slotInfoMessage(KJob* x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2494, (void*)this, x)) return;
        this->KCompositeJob::slotInfoMessage(x1, x2, x3);
    }
    virtual void start() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1846, (void*)this, x)) return;
        this->Akonadi::Job::start();
    }
    virtual bool doSuspend() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2508, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doSuspend();
    }
    virtual bool doResume() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2509, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doResume();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_Akonadi__ItemSearchJob() { this->_binding->deleted(83, (void*)this); }
};
void xcall_Akonadi__ItemSearchJob(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemSearchJob *xself = (x_Akonadi__ItemSearchJob*)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_Akonadi__ItemSearchJob::x_3(args);	break;
        case 4: x_Akonadi__ItemSearchJob::x_4(args);	break;
        case 5: x_Akonadi__ItemSearchJob::x_5(args);	break;
        case 6: x_Akonadi__ItemSearchJob::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemSearchJob::x_8(args);	break;
        case 9: x_Akonadi__ItemSearchJob::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_Akonadi__ItemSearchJob::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: x_Akonadi__ItemSearchJob::x_27(args);	break;
        case 28: x_Akonadi__ItemSearchJob::x_28(args);	break;
        case 29: x_Akonadi__ItemSearchJob::x_29(args);	break;
        case 30: x_Akonadi__ItemSearchJob::x_30(args);	break;
        case 31: x_Akonadi__ItemSearchJob::x_31(args);	break;
        case 32: delete (Akonadi::ItemSearchJob*)xself;	break;
    }
}
class x_Akonadi__ItemSerializerPlugin : public Akonadi::ItemSerializerPlugin, 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 bool deserialize(Akonadi::Item&, const QByteArray&, QIODevice&, int) = 0
        bool xret = this->deserialize(*(Akonadi::Item*)x[1].s_class,*(const QByteArray*)x[2].s_class,*(QIODevice*)x[3].s_class,(int)x[4].s_int);
        x[0].s_bool = xret;
    }
    void x_2(Smoke::Stack x) {
        // virtual void serialize(const Akonadi::Item&, const QByteArray&, QIODevice&, int&) = 0
        this->serialize(*(const Akonadi::Item*)x[1].s_class,*(const QByteArray*)x[2].s_class,*(QIODevice*)x[3].s_class,*(int*)x[4].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) {
        // virtual QSet<QByteArray> parts(const Akonadi::Item&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSerializerPlugin*>(this))) {
            QSet<QByteArray> xret = ((const x_Akonadi__ItemSerializerPlugin*)this)->Akonadi::ItemSerializerPlugin::parts(*(const Akonadi::Item*)x[1].s_class);
            x[0].s_class = (void*)new QSet<QByteArray>(xret);
        } else {
            QSet<QByteArray> xret = ((const x_Akonadi__ItemSerializerPlugin*)this)->parts(*(const Akonadi::Item*)x[1].s_class);
            x[0].s_class = (void*)new QSet<QByteArray>(xret);
        }
    }
    static void x_4(Smoke::Stack x) {
        // static void overridePluginLookup(QObject*)
        Akonadi::ItemSerializerPlugin::overridePluginLookup((QObject*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    static void x_5(Smoke::Stack x) {
        // Akonadi::ItemSerializerPlugin* ItemSerializerPlugin()
        x_Akonadi__ItemSerializerPlugin* xret = new x_Akonadi__ItemSerializerPlugin();
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSerializerPlugin() : ItemSerializerPlugin() {}
    static void x_6(Smoke::Stack x) {
        // Akonadi::ItemSerializerPlugin* ItemSerializerPlugin(const Akonadi::ItemSerializerPlugin&)
        x_Akonadi__ItemSerializerPlugin* xret = new x_Akonadi__ItemSerializerPlugin(*(const Akonadi::ItemSerializerPlugin*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSerializerPlugin(const Akonadi::ItemSerializerPlugin& x1) : ItemSerializerPlugin(x1) {}
    virtual bool deserialize(Akonadi::Item& x1, const QByteArray& x2, QIODevice& x3, int x4) {
        Smoke::StackItem x[5];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        this->_binding->callMethod(1767, (void*)this, x, true /*pure virtual*/);
        return (bool)x[0].s_bool;
    }
    virtual void serialize(const Akonadi::Item& x1, const QByteArray& x2, QIODevice& x3, int& x4) {
        Smoke::StackItem x[5];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_class = (void*)&x4;
        this->_binding->callMethod(1768, (void*)this, x, true /*pure virtual*/);
    }
    virtual QSet<QByteArray> parts(const Akonadi::Item& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1769, (void*)this, x)) {
            QSet<QByteArray>* xptr = (QSet<QByteArray>*)x[0].s_class;
            QSet<QByteArray> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemSerializerPlugin::parts(x1);
    }
    ~x_Akonadi__ItemSerializerPlugin() { this->_binding->deleted(84, (void*)this); }
};
void xcall_Akonadi__ItemSerializerPlugin(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemSerializerPlugin *xself = (x_Akonadi__ItemSerializerPlugin*)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: xself->x_3(args);	break;
        case 4: x_Akonadi__ItemSerializerPlugin::x_4(args);	break;
        case 5: x_Akonadi__ItemSerializerPlugin::x_5(args);	break;
        case 6: x_Akonadi__ItemSerializerPlugin::x_6(args);	break;
        case 7: delete (Akonadi::ItemSerializerPlugin*)xself;	break;
    }
}
class x_Akonadi__ItemSerializerPluginV2 : public Akonadi::ItemSerializerPluginV2, 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 void apply(Akonadi::Item&, const Akonadi::Item&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSerializerPluginV2*>(this))) {
            this->Akonadi::ItemSerializerPluginV2::apply(*(Akonadi::Item*)x[1].s_class,*(const Akonadi::Item*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->apply(*(Akonadi::Item*)x[1].s_class,*(const Akonadi::Item*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual QSet<QByteArray> availableParts(const Akonadi::Item&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSerializerPluginV2*>(this))) {
            QSet<QByteArray> xret = ((const x_Akonadi__ItemSerializerPluginV2*)this)->Akonadi::ItemSerializerPluginV2::availableParts(*(const Akonadi::Item*)x[1].s_class);
            x[0].s_class = (void*)new QSet<QByteArray>(xret);
        } else {
            QSet<QByteArray> xret = ((const x_Akonadi__ItemSerializerPluginV2*)this)->availableParts(*(const Akonadi::Item*)x[1].s_class);
            x[0].s_class = (void*)new QSet<QByteArray>(xret);
        }
    }
    static void x_3(Smoke::Stack x) {
        // Akonadi::ItemSerializerPluginV2* ItemSerializerPluginV2()
        x_Akonadi__ItemSerializerPluginV2* xret = new x_Akonadi__ItemSerializerPluginV2();
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSerializerPluginV2() : ItemSerializerPluginV2() {}
    static void x_4(Smoke::Stack x) {
        // Akonadi::ItemSerializerPluginV2* ItemSerializerPluginV2(const Akonadi::ItemSerializerPluginV2&)
        x_Akonadi__ItemSerializerPluginV2* xret = new x_Akonadi__ItemSerializerPluginV2(*(const Akonadi::ItemSerializerPluginV2*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSerializerPluginV2(const Akonadi::ItemSerializerPluginV2& x1) : ItemSerializerPluginV2(x1) {}
    virtual void apply(Akonadi::Item& x1, const Akonadi::Item& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1774, (void*)this, x)) return;
        this->Akonadi::ItemSerializerPluginV2::apply(x1, x2);
    }
    virtual QSet<QByteArray> availableParts(const Akonadi::Item& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1775, (void*)this, x)) {
            QSet<QByteArray>* xptr = (QSet<QByteArray>*)x[0].s_class;
            QSet<QByteArray> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemSerializerPluginV2::availableParts(x1);
    }
    virtual bool deserialize(Akonadi::Item& x1, const QByteArray& x2, QIODevice& x3, int x4) {
        Smoke::StackItem x[5];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        this->_binding->callMethod(1767, (void*)this, x, true /*pure virtual*/);
        return (bool)x[0].s_bool;
    }
    virtual void serialize(const Akonadi::Item& x1, const QByteArray& x2, QIODevice& x3, int& x4) {
        Smoke::StackItem x[5];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        x[4].s_class = (void*)&x4;
        this->_binding->callMethod(1768, (void*)this, x, true /*pure virtual*/);
    }
    virtual QSet<QByteArray> parts(const Akonadi::Item& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1769, (void*)this, x)) {
            QSet<QByteArray>* xptr = (QSet<QByteArray>*)x[0].s_class;
            QSet<QByteArray> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::ItemSerializerPlugin::parts(x1);
    }
    ~x_Akonadi__ItemSerializerPluginV2() { this->_binding->deleted(85, (void*)this); }
};
void xcall_Akonadi__ItemSerializerPluginV2(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemSerializerPluginV2 *xself = (x_Akonadi__ItemSerializerPluginV2*)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_Akonadi__ItemSerializerPluginV2::x_3(args);	break;
        case 4: x_Akonadi__ItemSerializerPluginV2::x_4(args);	break;
        case 5: delete (Akonadi::ItemSerializerPluginV2*)xself;	break;
    }
}
class x_Akonadi__ItemSync : public Akonadi::ItemSync, 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<Akonadi::ItemSync*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemSync*)this)->Akonadi::ItemSync::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemSync*)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<Akonadi::ItemSync*>(this))) {
            void* xret = this->Akonadi::ItemSync::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 = Akonadi::ItemSync::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 = Akonadi::ItemSync::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 = Akonadi::ItemSync::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 = Akonadi::ItemSync::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<Akonadi::ItemSync*>(this))) {
            int xret = this->Akonadi::ItemSync::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) {
        // Akonadi::ItemSync* ItemSync(const Akonadi::Collection&, QObject*)
        x_Akonadi__ItemSync* xret = new x_Akonadi__ItemSync(*(const Akonadi::Collection*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemSync(const Akonadi::Collection& x1, QObject* x2) : ItemSync(x1, x2) {}
    void x_9(Smoke::Stack x) {
        // void setFullSyncItems(const QList<Akonadi::Item>&)
        this->Akonadi::ItemSync::setFullSyncItems(*(const QList<Akonadi::Item>*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_10(Smoke::Stack x) {
        // void setTotalItems(int)
        this->Akonadi::ItemSync::setTotalItems((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // void setStreamingEnabled(bool)
        this->Akonadi::ItemSync::setStreamingEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void deliveryDone()
        this->Akonadi::ItemSync::deliveryDone();
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // void setIncrementalSyncItems(const QList<Akonadi::Item>&, const QList<Akonadi::Item>&)
        this->Akonadi::ItemSync::setIncrementalSyncItems(*(const QList<Akonadi::Item>*)x[1].s_class,*(const QList<Akonadi::Item>*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // void setFetchScope(Akonadi::ItemFetchScope&)
        this->Akonadi::ItemSync::setFetchScope(*(Akonadi::ItemFetchScope*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // Akonadi::ItemFetchScope& fetchScope()
        Akonadi::ItemFetchScope& xret = this->Akonadi::ItemSync::fetchScope();
        x[0].s_class = (void*)&xret;
    }
    void x_16(Smoke::Stack x) {
        // void rollback()
        this->Akonadi::ItemSync::rollback();
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // void setTransactionMode(Akonadi::ItemSync::TransactionMode)
        this->Akonadi::ItemSync::setTransactionMode((Akonadi::ItemSync::TransactionMode)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // int batchSize() const
        int xret = ((const x_Akonadi__ItemSync*)this)->Akonadi::ItemSync::batchSize();
        x[0].s_int = xret;
    }
    void x_19(Smoke::Stack x) {
        // void setBatchSize(int)
        this->Akonadi::ItemSync::setBatchSize((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // void setDisableAutomaticDeliveryDone(bool)
        this->Akonadi::ItemSync::setDisableAutomaticDeliveryDone((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // void readyForNextBatch(int)
        this->Akonadi::ItemSync::readyForNextBatch((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_22(Smoke::Stack x) {
        // void transactionCommitted()
        this->Akonadi::ItemSync::transactionCommitted();
        (void)x; // noop (for compiler warning)
    }
    void x_23(Smoke::Stack x) {
        // void doStart()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSync*>(this))) {
            this->Akonadi::ItemSync::doStart();
            (void)x; // noop (for compiler warning)
        } else {
            this->doStart();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_24(Smoke::Stack x) {
        // void slotResult(KJob*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSync*>(this))) {
            this->Akonadi::ItemSync::slotResult((KJob*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->slotResult((KJob*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_25(Smoke::Stack x) {
        // virtual bool updateItem(const Akonadi::Item&, Akonadi::Item&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemSync*>(this))) {
            bool xret = this->Akonadi::ItemSync::updateItem(*(const Akonadi::Item*)x[1].s_class,*(Akonadi::Item*)x[2].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->updateItem(*(const Akonadi::Item*)x[1].s_class,*(Akonadi::Item*)x[2].s_class);
            x[0].s_bool = xret;
        }
    }
    static void x_26(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemSync::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_27(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Akonadi::ItemSync::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_28(Smoke::Stack x) {
        // Akonadi::ItemSync* ItemSync(const Akonadi::Collection&)
        x_Akonadi__ItemSync* xret = new x_Akonadi__ItemSync(*(const Akonadi::Collection*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_29(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemSync::staticMetaObject;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemSync::SingleTransaction;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemSync::MultipleTransactions;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::ItemSync::NoTransaction;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1779, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemSync::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1780, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemSync::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(1785, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemSync::qt_metacall(x1, x2, x3);
    }
    virtual bool updateItem(const Akonadi::Item& x1, Akonadi::Item& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1803, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::ItemSync::updateItem(x1, x2);
    }
    virtual QString errorString() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1847, (void*)this, x)) {
            QString* xptr = (QString*)x[0].s_class;
            QString xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::Job::errorString();
    }
    virtual void doStart() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1801, (void*)this, x)) return;
        this->Akonadi::ItemSync::doStart();
    }
    virtual void doHandleResponse(const QByteArray& x1, const QByteArray& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1851, (void*)this, x)) return;
        this->Akonadi::Job::doHandleResponse(x1, x2);
    }
    virtual bool addSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::addSubjob(x1);
    }
    virtual bool removeSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1853, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::removeSubjob(x1);
    }
    virtual bool doKill() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1854, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::doKill();
    }
    virtual void slotResult(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1802, (void*)this, x)) return;
        this->Akonadi::ItemSync::slotResult(x1);
    }
    virtual void slotInfoMessage(KJob* x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2494, (void*)this, x)) return;
        this->KCompositeJob::slotInfoMessage(x1, x2, x3);
    }
    virtual void start() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1846, (void*)this, x)) return;
        this->Akonadi::Job::start();
    }
    virtual bool doSuspend() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2508, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doSuspend();
    }
    virtual bool doResume() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2509, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doResume();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 144: //Akonadi::ItemSync::TransactionMode
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Akonadi::ItemSync::TransactionMode;
                    break;
                case Smoke::EnumDelete:
                    delete (Akonadi::ItemSync::TransactionMode*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Akonadi::ItemSync::TransactionMode*)xdata = (Akonadi::ItemSync::TransactionMode)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Akonadi::ItemSync::TransactionMode*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_Akonadi__ItemSync() { this->_binding->deleted(86, (void*)this); }
};
void xenum_Akonadi__ItemSync(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Akonadi__ItemSync::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Akonadi__ItemSync(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemSync *xself = (x_Akonadi__ItemSync*)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_Akonadi__ItemSync::x_3(args);	break;
        case 4: x_Akonadi__ItemSync::x_4(args);	break;
        case 5: x_Akonadi__ItemSync::x_5(args);	break;
        case 6: x_Akonadi__ItemSync::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemSync::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: x_Akonadi__ItemSync::x_26(args);	break;
        case 27: x_Akonadi__ItemSync::x_27(args);	break;
        case 28: x_Akonadi__ItemSync::x_28(args);	break;
        case 29: x_Akonadi__ItemSync::x_29(args);	break;
        case 30: x_Akonadi__ItemSync::x_30(args);	break;
        case 31: x_Akonadi__ItemSync::x_31(args);	break;
        case 32: x_Akonadi__ItemSync::x_32(args);	break;
        case 33: delete (Akonadi::ItemSync*)xself;	break;
    }
}
class x_Akonadi__ItemView : public Akonadi::ItemView, 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<Akonadi::ItemView*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__ItemView*)this)->Akonadi::ItemView::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__ItemView*)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<Akonadi::ItemView*>(this))) {
            void* xret = this->Akonadi::ItemView::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 = Akonadi::ItemView::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 = Akonadi::ItemView::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 = Akonadi::ItemView::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 = Akonadi::ItemView::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<Akonadi::ItemView*>(this))) {
            int xret = this->Akonadi::ItemView::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) {
        // Akonadi::ItemView* ItemView(QWidget*)
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemView(QWidget* x1) : ItemView(x1) {}
    static void x_9(Smoke::Stack x) {
        // Akonadi::ItemView* ItemView(KXmlGuiWindow*, QWidget*)
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((KXmlGuiWindow*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemView(KXmlGuiWindow* x1, QWidget* x2) : ItemView(x1, x2) {}
    static void x_10(Smoke::Stack x) {
        // Akonadi::ItemView* ItemView(KXMLGUIClient*, QWidget*)
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((KXMLGUIClient*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__ItemView(KXMLGUIClient* x1, QWidget* x2) : ItemView(x1, x2) {}
    void x_11(Smoke::Stack x) {
        // void setXmlGuiWindow(KXmlGuiWindow*)
        this->Akonadi::ItemView::setXmlGuiWindow((KXmlGuiWindow*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void setXmlGuiClient(KXMLGUIClient*)
        this->Akonadi::ItemView::setXmlGuiClient((KXMLGUIClient*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // virtual void setModel(QAbstractItemModel*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemView*>(this))) {
            this->Akonadi::ItemView::setModel((QAbstractItemModel*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->setModel((QAbstractItemModel*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_14(Smoke::Stack x) {
        // void activated(const Akonadi::Item&)
        this->Akonadi::ItemView::activated(*(const Akonadi::Item*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // void currentChanged(const Akonadi::Item&)
        this->Akonadi::ItemView::currentChanged(*(const Akonadi::Item*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
        // void clicked(const Akonadi::Item&)
        this->Akonadi::ItemView::clicked(*(const Akonadi::Item*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // void doubleClicked(const Akonadi::Item&)
        this->Akonadi::ItemView::doubleClicked(*(const Akonadi::Item*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // void currentChanged(const QModelIndex&, const QModelIndex&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemView*>(this))) {
            this->Akonadi::ItemView::currentChanged(*(const QModelIndex*)x[1].s_class,*(const QModelIndex*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->currentChanged(*(const QModelIndex*)x[1].s_class,*(const QModelIndex*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_19(Smoke::Stack x) {
        // void contextMenuEvent(QContextMenuEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::ItemView*>(this))) {
            this->Akonadi::ItemView::contextMenuEvent((QContextMenuEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->contextMenuEvent((QContextMenuEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_20(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::ItemView::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_21(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = Akonadi::ItemView::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_22(Smoke::Stack x) {
        // Akonadi::ItemView* ItemView()
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_23(Smoke::Stack x) {
        // Akonadi::ItemView* ItemView(KXmlGuiWindow*)
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((KXmlGuiWindow*)x[1].s_class,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // Akonadi::ItemView* ItemView(KXMLGUIClient*)
        x_Akonadi__ItemView* xret = new x_Akonadi__ItemView((KXMLGUIClient*)x[1].s_class,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::ItemView::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1812, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::ItemView::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1813, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::ItemView::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(1818, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::ItemView::qt_metacall(x1, x2, x3);
    }
    virtual void setModel(QAbstractItemModel* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1824, (void*)this, x)) return;
        this->Akonadi::ItemView::setModel(x1);
    }
    virtual void drawRow(QPainter* x1, const QStyleOptionViewItem& x2, const QModelIndex& x3) const {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2754, (void*)this, x)) return;
        this->QTreeView::drawRow(x1, x2, x3);
    }
    virtual void drawBranches(QPainter* x1, const QRect& x2, const QModelIndex& x3) const {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2755, (void*)this, x)) return;
        this->QTreeView::drawBranches(x1, x2, x3);
    }
    virtual void setSelectionModel(QItemSelectionModel* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2734, (void*)this, x)) return;
        this->QTreeView::setSelectionModel(x1);
    }
    virtual void keyboardSearch(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2735, (void*)this, x)) return;
        this->QTreeView::keyboardSearch(x1);
    }
    virtual QRect visualRect(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2736, (void*)this, x)) {
            QRect* xptr = (QRect*)x[0].s_class;
            QRect xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTreeView::visualRect(x1);
    }
    virtual void scrollTo(const QModelIndex& x1, QAbstractItemView::ScrollHint x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_enum = x2;
        if (this->_binding->callMethod(2737, (void*)this, x)) return;
        this->QTreeView::scrollTo(x1, x2);
    }
    virtual QModelIndex indexAt(const QPoint& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2738, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTreeView::indexAt(x1);
    }
    virtual int sizeHintForRow(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2553, (void*)this, x)) return (int)x[0].s_int;
        return this->QAbstractItemView::sizeHintForRow(x1);
    }
    virtual int sizeHintForColumn(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2764, (void*)this, x)) return (int)x[0].s_int;
        return this->QTreeView::sizeHintForColumn(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(2555, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemView::inputMethodQuery(x1);
    }
    virtual void reset() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2740, (void*)this, x)) return;
        this->QTreeView::reset();
    }
    virtual void setRootIndex(const QModelIndex& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2733, (void*)this, x)) return;
        this->QTreeView::setRootIndex(x1);
    }
    virtual void doItemsLayout() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2739, (void*)this, x)) return;
        this->QTreeView::doItemsLayout();
    }
    virtual void selectAll() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2742, (void*)this, x)) return;
        this->QTreeView::selectAll();
    }
    virtual void dataChanged(const QModelIndex& x1, const QModelIndex& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(2741, (void*)this, x)) return;
        this->QTreeView::dataChanged(x1, x2);
    }
    virtual void rowsInserted(const QModelIndex& x1, int x2, int x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(2744, (void*)this, x)) return;
        this->QTreeView::rowsInserted(x1, x2, x3);
    }
    virtual void rowsAboutToBeRemoved(const QModelIndex& x1, int x2, int x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(2745, (void*)this, x)) return;
        this->QTreeView::rowsAboutToBeRemoved(x1, x2, x3);
    }
    virtual void selectionChanged(const QItemSelection& x1, const QItemSelection& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(2767, (void*)this, x)) return;
        this->QTreeView::selectionChanged(x1, x2);
    }
    virtual void currentChanged(const QModelIndex& x1, const QModelIndex& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1829, (void*)this, x)) return;
        this->Akonadi::ItemView::currentChanged(x1, x2);
    }
    virtual void updateEditorData() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2557, (void*)this, x)) return;
        this->QAbstractItemView::updateEditorData();
    }
    virtual void updateEditorGeometries() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2558, (void*)this, x)) return;
        this->QAbstractItemView::updateEditorGeometries();
    }
    virtual void updateGeometries() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2763, (void*)this, x)) return;
        this->QTreeView::updateGeometries();
    }
    virtual void verticalScrollbarAction(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2559, (void*)this, x)) return;
        this->QAbstractItemView::verticalScrollbarAction(x1);
    }
    virtual void horizontalScrollbarAction(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2765, (void*)this, x)) return;
        this->QTreeView::horizontalScrollbarAction(x1);
    }
    virtual void verticalScrollbarValueChanged(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2561, (void*)this, x)) return;
        this->QAbstractItemView::verticalScrollbarValueChanged(x1);
    }
    virtual void horizontalScrollbarValueChanged(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2562, (void*)this, x)) return;
        this->QAbstractItemView::horizontalScrollbarValueChanged(x1);
    }
    virtual void closeEditor(QWidget* x1, QAbstractItemDelegate::EndEditHint x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_enum = x2;
        if (this->_binding->callMethod(2563, (void*)this, x)) return;
        this->QAbstractItemView::closeEditor(x1, x2);
    }
    virtual void commitData(QWidget* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2564, (void*)this, x)) return;
        this->QAbstractItemView::commitData(x1);
    }
    virtual void editorDestroyed(QObject* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2565, (void*)this, x)) return;
        this->QAbstractItemView::editorDestroyed(x1);
    }
    virtual QModelIndex moveCursor(QAbstractItemView::CursorAction x1, QFlags<Qt::KeyboardModifier> x2) {
        Smoke::StackItem x[3];
        x[1].s_enum = x1;
        x[2].s_uint = (uint)x2;
        if (this->_binding->callMethod(2746, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTreeView::moveCursor(x1, x2);
    }
    virtual int horizontalOffset() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2747, (void*)this, x)) return (int)x[0].s_int;
        return this->QTreeView::horizontalOffset();
    }
    virtual int verticalOffset() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2748, (void*)this, x)) return (int)x[0].s_int;
        return this->QTreeView::verticalOffset();
    }
    virtual bool isIndexHidden(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2766, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTreeView::isIndexHidden(x1);
    }
    virtual void setSelection(const QRect& x1, QFlags<QItemSelectionModel::SelectionFlag> x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_uint = (uint)x2;
        if (this->_binding->callMethod(2749, (void*)this, x)) return;
        this->QTreeView::setSelection(x1, x2);
    }
    virtual QRegion visualRegionForSelection(const QItemSelection& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2750, (void*)this, x)) {
            QRegion* xptr = (QRegion*)x[0].s_class;
            QRegion xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTreeView::visualRegionForSelection(x1);
    }
    virtual QList<QModelIndex> selectedIndexes() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2751, (void*)this, x)) {
            QList<QModelIndex>* xptr = (QList<QModelIndex>*)x[0].s_class;
            QList<QModelIndex> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTreeView::selectedIndexes();
    }
    virtual bool edit(const QModelIndex& x1, QAbstractItemView::EditTrigger x2, QEvent* x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_enum = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(2566, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemView::edit(x1, x2, x3);
    }
    virtual QFlags<QItemSelectionModel::SelectionFlag> selectionCommand(const QModelIndex& x1, const QEvent* x2) const {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(2567, (void*)this, x)) return (QFlags<QItemSelectionModel::SelectionFlag>)x[0].s_uint;
        return this->QAbstractItemView::selectionCommand(x1, x2);
    }
    virtual void startDrag(QFlags<Qt::DropAction> x1) {
        Smoke::StackItem x[2];
        x[1].s_uint = (uint)x1;
        if (this->_binding->callMethod(2568, (void*)this, x)) return;
        this->QAbstractItemView::startDrag(x1);
    }
    virtual QStyleOptionViewItem viewOptions() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2569, (void*)this, x)) {
            QStyleOptionViewItem* xptr = (QStyleOptionViewItem*)x[0].s_class;
            QStyleOptionViewItem xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemView::viewOptions();
    }
    virtual bool viewportEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2762, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTreeView::viewportEvent(x1);
    }
    virtual void scrollContentsBy(int x1, int x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(2743, (void*)this, x)) return;
        this->QTreeView::scrollContentsBy(x1, x2);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2772, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2627, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2626, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(2775, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2756, (void*)this, x)) return;
        this->QTreeView::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2757, (void*)this, x)) return;
        this->QTreeView::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2758, (void*)this, x)) return;
        this->QTreeView::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2759, (void*)this, x)) return;
        this->QTreeView::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2628, (void*)this, x)) return;
        this->QAbstractScrollArea::wheelEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2760, (void*)this, x)) return;
        this->QTreeView::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2784, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2578, (void*)this, x)) return;
        this->QAbstractItemView::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2579, (void*)this, x)) return;
        this->QAbstractItemView::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2787, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2788, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2753, (void*)this, x)) return;
        this->QTreeView::paintEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2790, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2581, (void*)this, x)) return;
        this->QAbstractItemView::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2792, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1830, (void*)this, x)) return;
        this->Akonadi::ItemView::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2794, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2795, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2575, (void*)this, x)) return;
        this->QAbstractItemView::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2761, (void*)this, x)) return;
        this->QTreeView::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2576, (void*)this, x)) return;
        this->QAbstractItemView::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2577, (void*)this, x)) return;
        this->QAbstractItemView::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2800, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2801, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2802, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2658, (void*)this, x)) return;
        this->QFrame::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2582, (void*)this, x)) return;
        this->QAbstractItemView::inputMethodEvent(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2570, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemView::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2808, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2809, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2810, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2811, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2812, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2813, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2571, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemView::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(2687, (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(2752, (void*)this, x)) return;
        this->QTreeView::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2771, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2776, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(2804, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    ~x_Akonadi__ItemView() { this->_binding->deleted(87, (void*)this); }
};
void xcall_Akonadi__ItemView(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__ItemView *xself = (x_Akonadi__ItemView*)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_Akonadi__ItemView::x_3(args);	break;
        case 4: x_Akonadi__ItemView::x_4(args);	break;
        case 5: x_Akonadi__ItemView::x_5(args);	break;
        case 6: x_Akonadi__ItemView::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__ItemView::x_8(args);	break;
        case 9: x_Akonadi__ItemView::x_9(args);	break;
        case 10: x_Akonadi__ItemView::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_Akonadi__ItemView::x_20(args);	break;
        case 21: x_Akonadi__ItemView::x_21(args);	break;
        case 22: x_Akonadi__ItemView::x_22(args);	break;
        case 23: x_Akonadi__ItemView::x_23(args);	break;
        case 24: x_Akonadi__ItemView::x_24(args);	break;
        case 25: x_Akonadi__ItemView::x_25(args);	break;
        case 26: delete (Akonadi::ItemView*)xself;	break;
    }
}
class x_Akonadi__Job : public Akonadi::Job, 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<Akonadi::Job*>(this))) {
            const QMetaObject* xret = ((const x_Akonadi__Job*)this)->Akonadi::Job::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_Akonadi__Job*)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<Akonadi::Job*>(this))) {
            void* xret = this->Akonadi::Job::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 = Akonadi::Job::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 = Akonadi::Job::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 = Akonadi::Job::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 = Akonadi::Job::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<Akonadi::Job*>(this))) {
            int xret = this->Akonadi::Job::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) {
        // Akonadi::Job* Job(QObject*)
        x_Akonadi__Job* xret = new x_Akonadi__Job((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__Job(QObject* x1) : Job(x1) {}
    void x_9(Smoke::Stack x) {
        // void start()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            this->Akonadi::Job::start();
            (void)x; // noop (for compiler warning)
        } else {
            this->start();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_10(Smoke::Stack x) {
        // virtual QString errorString() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            QString xret = ((const x_Akonadi__Job*)this)->Akonadi::Job::errorString();
            x[0].s_class = (void*)new QString(xret);
        } else {
            QString xret = ((const x_Akonadi__Job*)this)->errorString();
            x[0].s_class = (void*)new QString(xret);
        }
    }
    void x_11(Smoke::Stack x) {
        // void aboutToStart(Akonadi::Job*)
        this->Akonadi::Job::aboutToStart((Akonadi::Job*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void writeFinished(Akonadi::Job*)
        this->Akonadi::Job::writeFinished((Akonadi::Job*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // virtual void doStart() = 0
        this->doStart();
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // virtual void doHandleResponse(const QByteArray&, const QByteArray&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            this->Akonadi::Job::doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->doHandleResponse(*(const QByteArray*)x[1].s_class,*(const QByteArray*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_15(Smoke::Stack x) {
        // virtual bool addSubjob(KJob*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            bool xret = this->Akonadi::Job::addSubjob((KJob*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->addSubjob((KJob*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_16(Smoke::Stack x) {
        // virtual bool removeSubjob(KJob*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            bool xret = this->Akonadi::Job::removeSubjob((KJob*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->removeSubjob((KJob*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual bool doKill()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            bool xret = this->Akonadi::Job::doKill();
            x[0].s_bool = xret;
        } else {
            bool xret = this->doKill();
            x[0].s_bool = xret;
        }
    }
    void x_18(Smoke::Stack x) {
        // void emitWriteFinished()
        this->Akonadi::Job::emitWriteFinished();
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // virtual void slotResult(KJob*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<Akonadi::Job*>(this))) {
            this->Akonadi::Job::slotResult((KJob*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->slotResult((KJob*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_20(Smoke::Stack x) {
        // Akonadi::Job* Job(Akonadi::JobPrivate*, QObject*)
        x_Akonadi__Job* xret = new x_Akonadi__Job((Akonadi::JobPrivate*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_Akonadi__Job(Akonadi::JobPrivate* x1, QObject* x2) : Job(x1, x2) {}
    static void x_21(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = Akonadi::Job::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 = Akonadi::Job::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) {
        // Akonadi::Job* Job()
        x_Akonadi__Job* xret = new x_Akonadi__Job((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&Akonadi::Job::staticMetaObject;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::Job::ConnectionFailed;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::Job::ProtocolVersionMismatch;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::Job::UserCanceled;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::Job::Unknown;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)Akonadi::Job::UserError;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1838, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->Akonadi::Job::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1839, (void*)this, x)) return (void*)x[0].s_class;
        return this->Akonadi::Job::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(1844, (void*)this, x)) return (int)x[0].s_int;
        return this->Akonadi::Job::qt_metacall(x1, x2, x3);
    }
    virtual QString errorString() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1847, (void*)this, x)) {
            QString* xptr = (QString*)x[0].s_class;
            QString xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->Akonadi::Job::errorString();
    }
    virtual void doStart() {
        Smoke::StackItem x[1];
        this->_binding->callMethod(1850, (void*)this, x, true /*pure virtual*/);
    }
    virtual void doHandleResponse(const QByteArray& x1, const QByteArray& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(1851, (void*)this, x)) return;
        this->Akonadi::Job::doHandleResponse(x1, x2);
    }
    virtual bool addSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::addSubjob(x1);
    }
    virtual bool removeSubjob(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1853, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::removeSubjob(x1);
    }
    virtual bool doKill() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1854, (void*)this, x)) return (bool)x[0].s_bool;
        return this->Akonadi::Job::doKill();
    }
    virtual void slotResult(KJob* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1856, (void*)this, x)) return;
        this->Akonadi::Job::slotResult(x1);
    }
    virtual void slotInfoMessage(KJob* x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(2494, (void*)this, x)) return;
        this->KCompositeJob::slotInfoMessage(x1, x2, x3);
    }
    virtual void start() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1846, (void*)this, x)) return;
        this->Akonadi::Job::start();
    }
    virtual bool doSuspend() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2508, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doSuspend();
    }
    virtual bool doResume() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2509, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KJob::doResume();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2686, (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(2687, (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(2688, (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(2689, (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(2690, (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(2691, (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(2692, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 147: //Akonadi::Job::Error
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new Akonadi::Job::Error;
                    break;
                case Smoke::EnumDelete:
                    delete (Akonadi::Job::Error*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(Akonadi::Job::Error*)xdata = (Akonadi::Job::Error)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(Akonadi::Job::Error*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_Akonadi__Job() { this->_binding->deleted(88, (void*)this); }
};
void xenum_Akonadi__Job(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_Akonadi__Job::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_Akonadi__Job(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_Akonadi__Job *xself = (x_Akonadi__Job*)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_Akonadi__Job::x_3(args);	break;
        case 4: x_Akonadi__Job::x_4(args);	break;
        case 5: x_Akonadi__Job::x_5(args);	break;
        case 6: x_Akonadi__Job::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_Akonadi__Job::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_Akonadi__Job::x_20(args);	break;
        case 21: x_Akonadi__Job::x_21(args);	break;
        case 22: x_Akonadi__Job::x_22(args);	break;
        case 23: x_Akonadi__Job::x_23(args);	break;
        case 24: x_Akonadi__Job::x_24(args);	break;
        case 25: x_Akonadi__Job::x_25(args);	break;
        case 26: x_Akonadi__Job::x_26(args);	break;
        case 27: x_Akonadi__Job::x_27(args);	break;
        case 28: x_Akonadi__Job::x_28(args);	break;
        case 29: x_Akonadi__Job::x_29(args);	break;
        case 30: delete (Akonadi::Job*)xself;	break;
    }
}

}
