//Auto-generated by kalyptus. DO NOT EDIT.
#include <smoke.h>
#include <qt_smoke.h>
#include <qcstring.h>
#include <qiconview.h>

class x_QIconDragItem : public QIconDragItem {
public:
    static void x_0(Smoke::Stack x) {
	// QIconDragItem()
	x_QIconDragItem* xret = new x_QIconDragItem();
	x[0].s_class = (void*)xret;
    }
    x_QIconDragItem() : QIconDragItem() {
    }
    void x_1(Smoke::Stack x) const {
	// data()
	QByteArray xret = this->QIconDragItem::data();
	x[0].s_voidp = (void*)new QByteArray(xret);
    }
    void x_2(Smoke::Stack x) {
	// setData(const QByteArray&)
	this->QIconDragItem::setData(*(const QByteArray *)x[1].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    void x_3(Smoke::Stack x) const {
	// operator==(const QIconDragItem&)
	bool xret = this->QIconDragItem::operator==(*(const QIconDragItem *)x[1].s_class);
	x[0].s_bool = xret;
    }
    static void x_4(Smoke::Stack x) {
	// QIconDragItem(const QIconDragItem&)
	x_QIconDragItem* xret = new x_QIconDragItem(*(const QIconDragItem *)x[1].s_class);
	x[0].s_class = (void*)xret;
    }
    x_QIconDragItem(const QIconDragItem& x1) : QIconDragItem(x1) {
    }
    virtual QByteArray data() const {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(4404, (void*)this, x)) {
	    QByteArray *xptr = (QByteArray *)x[0].s_class;
	    QByteArray xret(*xptr);
	    delete xptr;
	    return xret;
	}
	return this->QIconDragItem::data();
    }
    virtual void setData(const QByteArray& x1) {
	Smoke::StackItem x[2];
	x[1].s_voidp = (void*)&x1;
	if(qt_Smoke->binding->callMethod(4405, (void*)this, x)) return;
	this->QIconDragItem::setData(x1);
    }
    ~x_QIconDragItem() { qt_Smoke->binding->deleted(156, (void*)this); }
};
void xcall_QIconDragItem(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QIconDragItem *xself = (x_QIconDragItem*)obj;
    switch(xi) {
	case 0: x_QIconDragItem::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_QIconDragItem::x_4(args);	break;
	case 5: delete (QIconDragItem*)xself;	break;
    }
}
