//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatetimeedit.h>
#include <tqstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQDateTimeEditBase.h>

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_addNumber(JNIEnv* env, jobject obj, jint sec, jint num)
{
	((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->addNumber((int) sec, (int) num);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_removeLastNumber(JNIEnv* env, jobject obj, jint sec)
{
	((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->removeLastNumber((int) sec);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_sectionFormattedText(JNIEnv* env, jobject obj, jint sec)
{
	TQString  _qstring;
	_qstring = ((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->sectionFormattedText((int) sec);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_setFocusSection(JNIEnv* env, jobject obj, jint sec)
{
	jboolean xret = (jboolean) ((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->setFocusSection((int) sec);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_stepDown(JNIEnv* env, jobject obj)
{
	((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->stepDown();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_stepUp(JNIEnv* env, jobject obj)
{
	((TQDateTimeEditBase*) QtSupport::getQt(env, obj))->stepUp();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQDateTimeEditBase::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDateTimeEditBase_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQDateTimeEditBase::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

