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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KShell_homeDir(JNIEnv* env, jclass cls, jstring user)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_user = 0;
	_qstring = KShell::homeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KShell_joinArgsDQ(JNIEnv* env, jclass cls, jobjectArray args)
{
	TQString  _qstring;
	(void) cls;
static TQStringList* _qlist_args = 0;
	_qstring = KShell::joinArgsDQ((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KShell_joinArgs(JNIEnv* env, jclass cls, jobjectArray args)
{
	TQString  _qstring;
	(void) cls;
static TQStringList* _qlist_args = 0;
	_qstring = KShell::joinArgs((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KShell_splitArgs__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring cmd)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_cmd = 0;
	_qlist = KShell::splitArgs((const TQString&)*(TQString*) QtSupport::toTQString(env, cmd, &_qstring_cmd));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KShell_splitArgs__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring cmd, jint flags)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_cmd = 0;
	_qlist = KShell::splitArgs((const TQString&)*(TQString*) QtSupport::toTQString(env, cmd, &_qstring_cmd), (int) flags);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KShell_splitArgs__Ljava_lang_String_2I_3I(JNIEnv* env, jclass cls, jstring cmd, jint flags, jintArray err)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_cmd = 0;
	int* _int_err = QtSupport::toIntPtr(env, err);
	_qlist = KShell::splitArgs((const TQString&)*(TQString*) QtSupport::toTQString(env, cmd, &_qstring_cmd), (int) flags,  (int*) _int_err);
	env->SetIntArrayRegion(err, 0, 1, (jint *) _int_err);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KShell_tildeExpand(JNIEnv* env, jclass cls, jstring path)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_path = 0;
	_qstring = KShell::tildeExpand((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return QtSupport::fromTQString(env, &_qstring);
}

