//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/css_value.h>
#include <dom/dom_string.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/CSSPrimitiveValue.h>

class CSSPrimitiveValueJBridge : public DOM::CSSPrimitiveValue
{
public:
	CSSPrimitiveValueJBridge() : DOM::CSSPrimitiveValue() {};
	CSSPrimitiveValueJBridge(const DOM::CSSPrimitiveValue& arg1) : DOM::CSSPrimitiveValue(arg1) {};
	CSSPrimitiveValueJBridge(const DOM::CSSValue& arg1) : DOM::CSSPrimitiveValue(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_getCounterValue(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Counter(((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->getCounterValue()), "org.trinitydesktop.koala.Counter", true);
	return xret;
}

JNIEXPORT jfloat JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_getFloatValue(JNIEnv* env, jobject obj, jshort unitType)
{
	jfloat xret = (jfloat) ((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->getFloatValue((unsigned short) unitType);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_getRGBColorValue(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::RGBColor(((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->getRGBColorValue()), "org.trinitydesktop.koala.RGBColor", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_getRectValue(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Rect(((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->getRectValue()), "org.trinitydesktop.koala.Rect", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_getStringValue(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->getStringValue();
	return KDESupport::fromDOMString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_newCSSPrimitiveValue__Lorg_trinitydesktop_koala_CSSPrimitiveValue_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CSSPrimitiveValueJBridge((const DOM::CSSPrimitiveValue&)*(const DOM::CSSPrimitiveValue*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_newCSSPrimitiveValue__Lorg_trinitydesktop_koala_CSSValue_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CSSPrimitiveValueJBridge((const DOM::CSSValue&)*(const DOM::CSSValue*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_primitiveType(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->primitiveType();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_setFloatValue(JNIEnv* env, jobject obj, jshort unitType, jfloat floatValue)
{
	((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->setFloatValue((unsigned short) unitType, (float) floatValue);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CSSPrimitiveValue_setStringValue(JNIEnv* env, jobject obj, jshort stringType, jstring stringValue)
{
static DOM::DOMString* _domstring_stringValue = 0;
	((DOM::CSSPrimitiveValue*) QtSupport::getQt(env, obj))->setStringValue((unsigned short) stringType, (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, stringValue, &_domstring_stringValue));
	return;
}

