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

class x_QDataSink : public QDataSink {
public:
    void x_0(Smoke::Stack x) {
	// maybeReady()
	this->QDataSink::maybeReady();
	(void)x; // noop (for compiler warning)
    }
    static void x_1(Smoke::Stack x) {
	// QDataSink()
	x_QDataSink* xret = new x_QDataSink();
	x[0].s_class = (void*)xret;
    }
    x_QDataSink() : QDataSink() {
    }
    virtual void eof() {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(1626, (void*)this, x, true /*pure virtual*/);
	return;
	// ABSTRACT
    }
    virtual int readyToReceive() {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(1624, (void*)this, x, true /*pure virtual*/);
	return (int)x[0].s_int;
	// ABSTRACT
    }
    virtual void receive(const uchar* x1, int x2) {
	Smoke::StackItem x[3];
	x[1].s_voidp = (void*)x1;
	x[2].s_int = x2;
	qt_Smoke->binding->callMethod(1625, (void*)this, x, true /*pure virtual*/);
	return;
	// ABSTRACT
    }
    ~x_QDataSink() { qt_Smoke->binding->deleted(58, (void*)this); }
};
void xcall_QDataSink(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QDataSink *xself = (x_QDataSink*)obj;
    switch(xi) {
	case 0: xself->x_0(args);	break;
	case 1: x_QDataSink::x_1(args);	break;
	case 2: delete (QDataSink*)xself;	break;
    }
}
