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

class x_QTextCodecFactory : public QTextCodecFactory {
public:
    static void x_0(Smoke::Stack x) {
	// QTextCodecFactory()
	x_QTextCodecFactory* xret = new x_QTextCodecFactory();
	x[0].s_class = (void*)xret;
    }
    x_QTextCodecFactory() : QTextCodecFactory() {
    }
    static void x_1(Smoke::Stack x) {
	// QTextCodecFactory(const QTextCodecFactory&)
	x_QTextCodecFactory* xret = new x_QTextCodecFactory(*(const QTextCodecFactory *)x[1].s_class);
	x[0].s_class = (void*)xret;
    }
    x_QTextCodecFactory(const QTextCodecFactory& x1) : QTextCodecFactory(x1) {
    }
    static void x_2(Smoke::Stack x) {
	// createForName(const QString&)
	QTextCodec* xret = QTextCodecFactory::createForName(*(const QString *)x[1].s_voidp);
	x[0].s_class = (void*)xret;
    }
    static void x_3(Smoke::Stack x) {
	// createForMib(int)
	QTextCodec* xret = QTextCodecFactory::createForMib((int)x[1].s_int);
	x[0].s_class = (void*)xret;
    }
    ~x_QTextCodecFactory() { qt_Smoke->binding->deleted(320, (void*)this); }
};
void xcall_QTextCodecFactory(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QTextCodecFactory *xself = (x_QTextCodecFactory*)obj;
    switch(xi) {
	case 0: x_QTextCodecFactory::x_0(args);	break;
	case 1: x_QTextCodecFactory::x_1(args);	break;
	case 2: x_QTextCodecFactory::x_2(args);	break;
	case 3: x_QTextCodecFactory::x_3(args);	break;
	case 4: delete (QTextCodecFactory*)xself;	break;
    }
}
