//Auto-generated by kalyptus. DO NOT EDIT.
#include <kpixmap.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KPixmap.h>

class KPixmapJBridge : public KPixmap
{
public:
	KPixmapJBridge() : KPixmap() {};
	KPixmapJBridge(const QPixmap& arg1) : KPixmap(arg1) {};
	~KPixmapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_checkColorTable(JNIEnv* env, jobject obj, jobject image)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->checkColorTable((const QImage&)*(const QImage*) QtSupport::getQt(env, image));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_convertFromImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject img)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const QImage&)*(const QImage*) QtSupport::getQt(env, img));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_convertFromImage__Lorg_kde_qt_QImage_2I(JNIEnv* env, jobject obj, jobject img, jint conversion_flags)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const QImage&)*(const QImage*) QtSupport::getQt(env, img), (int) conversion_flags);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPixmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KPixmap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPixmap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KPixmap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPixmap_load__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint conversion_flags)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) conversion_flags);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPixmap_newKPixmap__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPixmapJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPixmap_newKPixmap__Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject pix)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPixmapJBridge((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

