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.
487 lines
17 KiB
487 lines
17 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
#include <tqdir.h>
|
|
#include <tqstring.h>
|
|
#include <tqstringlist.h>
|
|
#include <tqprocess.h>
|
|
#include <tqcstring.h>
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
#include <qtjava/TQProcess.h>
|
|
|
|
class TQProcessJBridge : public TQProcess
|
|
{
|
|
public:
|
|
TQProcessJBridge(TQObject* arg1,const char* arg2) : TQProcess(arg1,arg2) {};
|
|
TQProcessJBridge(TQObject* arg1) : TQProcess(arg1) {};
|
|
TQProcessJBridge() : TQProcess() {};
|
|
TQProcessJBridge(const TQString& arg1,TQObject* arg2,const char* arg3) : TQProcess(arg1,arg2,arg3) {};
|
|
TQProcessJBridge(const TQString& arg1,TQObject* arg2) : TQProcess(arg1,arg2) {};
|
|
TQProcessJBridge(const TQString& arg1) : TQProcess(arg1) {};
|
|
TQProcessJBridge(const TQStringList& arg1,TQObject* arg2,const char* arg3) : TQProcess(arg1,arg2,arg3) {};
|
|
TQProcessJBridge(const TQStringList& arg1,TQObject* arg2) : TQProcess(arg1,arg2) {};
|
|
TQProcessJBridge(const TQStringList& arg1) : TQProcess(arg1) {};
|
|
void public_closeStdin() {
|
|
TQProcess::closeStdin();
|
|
return;
|
|
}
|
|
void protected_connectNotify(const char* arg1) {
|
|
TQProcess::connectNotify(arg1);
|
|
return;
|
|
}
|
|
void protected_disconnectNotify(const char* arg1) {
|
|
TQProcess::disconnectNotify(arg1);
|
|
return;
|
|
}
|
|
~TQProcessJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
void removeChild(TQObject* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
|
|
TQObject::removeChild(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void setWorkingDirectory(const TQDir& arg1) {
|
|
if (!QtSupport::eventDelegate(this,"setWorkingDirectory",(void*)&arg1,"org.trinitydesktop.qt.TQDir")) {
|
|
TQProcess::setWorkingDirectory(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void customEvent(TQCustomEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
|
|
TQObject::customEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void closeStdin() {
|
|
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQProcess","closeStdin")) {
|
|
TQProcess::closeStdin();
|
|
}
|
|
return;
|
|
}
|
|
void timerEvent(TQTimerEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
|
|
TQObject::timerEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void childEvent(TQChildEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
|
|
TQObject::childEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void insertChild(TQObject* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
|
|
TQObject::insertChild(arg1);
|
|
}
|
|
return;
|
|
}
|
|
bool eventFilter(TQObject* object,TQEvent* event) {
|
|
if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQProcess",object,event)) {
|
|
return TQObject::eventFilter(object,event);
|
|
} else {
|
|
return TRUE;
|
|
}
|
|
}
|
|
};
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_addArgument(JNIEnv* env, jobject obj, jstring arg)
|
|
{
|
|
static TQString* _qstring_arg = 0;
|
|
((TQProcess*) QtSupport::getQt(env, obj))->addArgument((const TQString&)*(TQString*) QtSupport::toTQString(env, arg, &_qstring_arg));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_arguments(JNIEnv* env, jobject obj)
|
|
{
|
|
TQStringList _qlist;
|
|
_qlist = ((TQProcess*) QtSupport::getQt(env, obj))->arguments();
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_canReadLineStderr(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->canReadLineStderr();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_canReadLineStdout(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->canReadLineStdout();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_className(JNIEnv* env, jobject obj)
|
|
{
|
|
const char* _qstring;
|
|
_qstring = ((TQProcess*) QtSupport::getQt(env, obj))->className();
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_clearArguments(JNIEnv* env, jobject obj)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->clearArguments();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_closeStdin(JNIEnv* env, jobject obj)
|
|
{
|
|
((TQProcessJBridge*) QtSupport::getQt(env, obj))->public_closeStdin();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_communication(JNIEnv* env, jobject obj)
|
|
{
|
|
jint xret = (jint) ((TQProcess*) QtSupport::getQt(env, obj))->communication();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_connectNotify(JNIEnv* env, jobject obj, jstring signal)
|
|
{
|
|
static TQCString* _qstring_signal = 0;
|
|
((TQProcessJBridge*) QtSupport::getQt(env, obj))->protected_connectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_disconnectNotify(JNIEnv* env, jobject obj, jstring signal)
|
|
{
|
|
static TQCString* _qstring_signal = 0;
|
|
((TQProcessJBridge*) QtSupport::getQt(env, obj))->protected_disconnectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_dispose(JNIEnv* env, jobject obj)
|
|
{
|
|
Java_org_trinitydesktop_qt_QProcess_finalize(env, obj);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_exitStatus(JNIEnv* env, jobject obj)
|
|
{
|
|
jint xret = (jint) ((TQProcess*) QtSupport::getQt(env, obj))->exitStatus();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_finalize(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQProcess*)QtSupport::getQt(env, obj))->parent() == 0) {
|
|
delete (TQProcess*)QtSupport::getQt(env, obj);
|
|
QtSupport::setQt(env, obj, 0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_flushStdin(JNIEnv* env, jobject obj)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->flushStdin();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_isDisposed(JNIEnv* env, jobject obj)
|
|
{
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_isRunning(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->isRunning();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_kill(JNIEnv* env, jobject obj)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->kill();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_launch__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf)
|
|
{
|
|
static TQString* _qstring_buf = 0;
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->launch((const TQString&)*(TQString*) QtSupport::toTQString(env, buf, &_qstring_buf));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_launch__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf, jobjectArray arg2)
|
|
{
|
|
static TQString* _qstring_buf = 0;
|
|
static TQStringList* _qlist_arg2 = 0;
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->launch((const TQString&)*(TQString*) QtSupport::toTQString(env, buf, &_qstring_buf), (TQStringList*) QtSupport::toTQStringList(env, arg2, &_qlist_arg2));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_launch___3B(JNIEnv* env, jobject obj, jbyteArray buf)
|
|
{
|
|
static TQByteArray* _qbyteArray_buf = 0;
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->launch((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, buf, &_qbyteArray_buf));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_launch___3B_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray buf, jobjectArray arg2)
|
|
{
|
|
static TQByteArray* _qbyteArray_buf = 0;
|
|
static TQStringList* _qlist_arg2 = 0;
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->launch((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, buf, &_qbyteArray_buf), (TQStringList*) QtSupport::toTQStringList(env, arg2, &_qlist_arg2));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_metaObject(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQProcess*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge());
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg0)
|
|
{
|
|
static TQString* _qstring_arg0 = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg0, &_qstring_arg0)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jstring arg0, jobject parent)
|
|
{
|
|
static TQString* _qstring_arg0 = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg0, &_qstring_arg0), (TQObject*) QtSupport::getQt(env, parent)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg0, jobject parent, jstring name)
|
|
{
|
|
static TQString* _qstring_arg0 = 0;
|
|
static TQCString* _qstring_name = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg0, &_qstring_arg0), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((TQObject*) QtSupport::getQt(env, parent)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
|
|
{
|
|
static TQCString* _qstring_name = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args)
|
|
{
|
|
static TQStringList* _qlist_args = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess___3Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobjectArray args, jobject parent)
|
|
{
|
|
static TQStringList* _qlist_args = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args), (TQObject*) QtSupport::getQt(env, parent)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_newTQProcess___3Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args, jobject parent, jstring name)
|
|
{
|
|
static TQStringList* _qlist_args = 0;
|
|
static TQCString* _qstring_name = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new TQProcessJBridge((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_normalExit(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->normalExit();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jlong JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_processIdentifier(JNIEnv* env, jobject obj)
|
|
{
|
|
jlong xret = (jlong) ((TQProcess*) QtSupport::getQt(env, obj))->processIdentifier();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_readLineStderr(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((TQProcess*) QtSupport::getQt(env, obj))->readLineStderr();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_readLineStdout(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((TQProcess*) QtSupport::getQt(env, obj))->readLineStdout();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jbyteArray JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_readStderr(JNIEnv* env, jobject obj)
|
|
{
|
|
TQByteArray _qbyteArray;
|
|
_qbyteArray = ((TQProcess*) QtSupport::getQt(env, obj))->readStderr();
|
|
return QtSupport::fromTQByteArray(env, &_qbyteArray);
|
|
}
|
|
|
|
JNIEXPORT jbyteArray JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_readStdout(JNIEnv* env, jobject obj)
|
|
{
|
|
TQByteArray _qbyteArray;
|
|
_qbyteArray = ((TQProcess*) QtSupport::getQt(env, obj))->readStdout();
|
|
return QtSupport::fromTQByteArray(env, &_qbyteArray);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_setArguments(JNIEnv* env, jobject obj, jobjectArray args)
|
|
{
|
|
static TQStringList* _qlist_args = 0;
|
|
((TQProcess*) QtSupport::getQt(env, obj))->setArguments((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_setCommunication(JNIEnv* env, jobject obj, jint c)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->setCommunication((int) c);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_setWorkingDirectory(JNIEnv* env, jobject obj, jobject dir)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->setWorkingDirectory((const TQDir&)*(const TQDir*) QtSupport::getQt(env, dir));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_start__(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->start();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_start___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray arg1)
|
|
{
|
|
static TQStringList* _qlist_arg1 = 0;
|
|
jboolean xret = (jboolean) ((TQProcess*) QtSupport::getQt(env, obj))->start((TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
|
|
{
|
|
TQString _qstring;
|
|
(void) cls;
|
|
static TQCString* _qstring_arg1 = 0;
|
|
_qstring = TQProcessJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_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 = TQProcessJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_tryTerminate(JNIEnv* env, jobject obj)
|
|
{
|
|
((TQProcess*) QtSupport::getQt(env, obj))->tryTerminate();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_workingDirectory(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(((TQProcess*) QtSupport::getQt(env, obj))->workingDirectory()), "org.trinitydesktop.qt.TQDir", TRUE);
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_writeToStdin__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf)
|
|
{
|
|
static TQString* _qstring_buf = 0;
|
|
((TQProcess*) QtSupport::getQt(env, obj))->writeToStdin((const TQString&)*(TQString*) QtSupport::toTQString(env, buf, &_qstring_buf));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_trinitydesktop_qt_QProcess_writeToStdin___3B(JNIEnv* env, jobject obj, jbyteArray buf)
|
|
{
|
|
static TQByteArray* _qbyteArray_buf = 0;
|
|
((TQProcess*) QtSupport::getQt(env, obj))->writeToStdin((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, buf, &_qbyteArray_buf));
|
|
return;
|
|
}
|
|
|