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

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

JNIEXPORT jstring JNICALL
Java_org_kde_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::toQString(env, user, &_qstring_user));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_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::toQStringList(env, args, &_qlist_args));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_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::toQStringList(env, args, &_qlist_args));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_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::toQString(env, cmd, &_qstring_cmd));
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_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::toQString(env, cmd, &_qstring_cmd), (int) flags);
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_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::toQString(env, cmd, &_qstring_cmd), (int) flags,  (int*) _int_err);
	env->SetIntArrayRegion(err, 0, 1, (jint *) _int_err);
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_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::toQString(env, path, &_qstring_path));
	return QtSupport::fromQString(env, &_qstring);
}

