//Auto-generated by kalyptus. DO NOT EDIT.
#include <smoke.h>
#include <qt_smoke.h>
#include <qimage.h>
#include <qstring.h>
#include <qstrlist.h>

class x_QImageIO : public QImageIO {
public:
    static void x_0(Smoke::Stack x) {
	// QImageIO()
	x_QImageIO* xret = new x_QImageIO();
	x[0].s_class = (void*)xret;
    }
    x_QImageIO() : QImageIO() {
    }
    static void x_1(Smoke::Stack x) {
	// QImageIO(QIODevice*, const char*)
	x_QImageIO* xret = new x_QImageIO((QIODevice*)x[1].s_class,(const char*)x[2].s_voidp);
	x[0].s_class = (void*)xret;
    }
    x_QImageIO(QIODevice* x1, const char* x2) : QImageIO(x1, x2) {
    }
    static void x_2(Smoke::Stack x) {
	// QImageIO(const QString&, const char*)
	x_QImageIO* xret = new x_QImageIO(*(const QString *)x[1].s_voidp,(const char*)x[2].s_voidp);
	x[0].s_class = (void*)xret;
    }
    x_QImageIO(const QString& x1, const char* x2) : QImageIO(x1, x2) {
    }
    void x_3(Smoke::Stack x) const {
	// image()
	const QImage& xret = this->QImageIO::image();
	x[0].s_class = (void*)&xret;
    }
    void x_4(Smoke::Stack x) const {
	// status()
	int xret = this->QImageIO::status();
	x[0].s_int = xret;
    }
    void x_5(Smoke::Stack x) const {
	// format()
	const char* xret = this->QImageIO::format();
	x[0].s_voidp = (void*)xret;
    }
    void x_6(Smoke::Stack x) const {
	// ioDevice()
	QIODevice* xret = this->QImageIO::ioDevice();
	x[0].s_class = (void*)xret;
    }
    void x_7(Smoke::Stack x) const {
	// fileName()
	QString xret = this->QImageIO::fileName();
	x[0].s_voidp = (void*)new QString(xret);
    }
    void x_8(Smoke::Stack x) const {
	// quality()
	int xret = this->QImageIO::quality();
	x[0].s_int = xret;
    }
    void x_9(Smoke::Stack x) const {
	// description()
	QString xret = this->QImageIO::description();
	x[0].s_voidp = (void*)new QString(xret);
    }
    void x_10(Smoke::Stack x) const {
	// parameters()
	const char* xret = this->QImageIO::parameters();
	x[0].s_voidp = (void*)xret;
    }
    void x_11(Smoke::Stack x) const {
	// gamma()
	float xret = this->QImageIO::gamma();
	x[0].s_float = xret;
    }
    void x_12(Smoke::Stack x) {
	// setImage(const QImage&)
	this->QImageIO::setImage(*(const QImage *)x[1].s_class);
	(void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
	// setStatus(int)
	this->QImageIO::setStatus((int)x[1].s_int);
	(void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
	// setFormat(const char*)
	this->QImageIO::setFormat((const char*)x[1].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
	// setIODevice(QIODevice*)
	this->QImageIO::setIODevice((QIODevice*)x[1].s_class);
	(void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
	// setFileName(const QString&)
	this->QImageIO::setFileName(*(const QString *)x[1].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
	// setQuality(int)
	this->QImageIO::setQuality((int)x[1].s_int);
	(void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
	// setDescription(const QString&)
	this->QImageIO::setDescription(*(const QString *)x[1].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
	// setParameters(const char*)
	this->QImageIO::setParameters((const char*)x[1].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
	// setGamma(float)
	this->QImageIO::setGamma((float)x[1].s_float);
	(void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
	// read()
	bool xret = this->QImageIO::read();
	x[0].s_bool = xret;
    }
    void x_22(Smoke::Stack x) {
	// write()
	bool xret = this->QImageIO::write();
	x[0].s_bool = xret;
    }
    static void x_23(Smoke::Stack x) {
	// imageFormat(const QString&)
	const char* xret = QImageIO::imageFormat(*(const QString *)x[1].s_voidp);
	x[0].s_voidp = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
	// imageFormat(QIODevice*)
	const char* xret = QImageIO::imageFormat((QIODevice*)x[1].s_class);
	x[0].s_voidp = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
	// inputFormats()
	QStrList xret = QImageIO::inputFormats();
	x[0].s_voidp = (void*)new QStrList(xret);
    }
    static void x_26(Smoke::Stack x) {
	// outputFormats()
	QStrList xret = QImageIO::outputFormats();
	x[0].s_voidp = (void*)new QStrList(xret);
    }
    ~x_QImageIO() { qt_Smoke->binding->deleted(168, (void*)this); }
};
void xcall_QImageIO(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QImageIO *xself = (x_QImageIO*)obj;
    switch(xi) {
	case 0: x_QImageIO::x_0(args);	break;
	case 1: x_QImageIO::x_1(args);	break;
	case 2: x_QImageIO::x_2(args);	break;
	case 3: xself->x_3(args);	break;
	case 4: xself->x_4(args);	break;
	case 5: xself->x_5(args);	break;
	case 6: xself->x_6(args);	break;
	case 7: xself->x_7(args);	break;
	case 8: xself->x_8(args);	break;
	case 9: xself->x_9(args);	break;
	case 10: xself->x_10(args);	break;
	case 11: xself->x_11(args);	break;
	case 12: xself->x_12(args);	break;
	case 13: xself->x_13(args);	break;
	case 14: xself->x_14(args);	break;
	case 15: xself->x_15(args);	break;
	case 16: xself->x_16(args);	break;
	case 17: xself->x_17(args);	break;
	case 18: xself->x_18(args);	break;
	case 19: xself->x_19(args);	break;
	case 20: xself->x_20(args);	break;
	case 21: xself->x_21(args);	break;
	case 22: xself->x_22(args);	break;
	case 23: x_QImageIO::x_23(args);	break;
	case 24: x_QImageIO::x_24(args);	break;
	case 25: x_QImageIO::x_25(args);	break;
	case 26: x_QImageIO::x_26(args);	break;
	case 27: delete (QImageIO*)xself;	break;
    }
}
