You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/kdejava/KShell.cpp

82 lines
2.9 KiB

//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::toTQString(env, user, &_qstring_user));
return QtSupport::fromTQString(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::toTQStringList(env, args, &_qlist_args));
return QtSupport::fromTQString(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::toTQStringList(env, args, &_qlist_args));
return QtSupport::fromTQString(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::toTQString(env, cmd, &_qstring_cmd));
return (jobject) QtSupport::arrayWithTQStringList(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::toTQString(env, cmd, &_qstring_cmd), (int) flags);
return (jobject) QtSupport::arrayWithTQStringList(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::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_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::toTQString(env, path, &_qstring_path));
return QtSupport::fromTQString(env, &_qstring);
}