|
|
|
@ -8,244 +8,244 @@
|
|
|
|
|
|
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
|
|
|
#include <kdejava/KDESupport.h>
|
|
|
|
|
#include <kdejava/KCmdLineArgs.h>
|
|
|
|
|
#include <kdejava/TDECmdLineArgs.h>
|
|
|
|
|
|
|
|
|
|
class KCmdLineArgsJBridge : public KCmdLineArgs
|
|
|
|
|
class TDECmdLineArgsJBridge : public TDECmdLineArgs
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
KCmdLineArgsJBridge(const KCmdLineOptions* arg1,const char* arg2,const char* arg3) : KCmdLineArgs(arg1,arg2,arg3) {};
|
|
|
|
|
TDECmdLineArgsJBridge(const KCmdLineOptions* arg1,const char* arg2,const char* arg3) : TDECmdLineArgs(arg1,arg2,arg3) {};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options));
|
|
|
|
|
TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_name = 0;
|
|
|
|
|
KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
|
|
|
|
|
TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_name = 0;
|
|
|
|
|
static TQCString* _qstring_id = 0;
|
|
|
|
|
KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id));
|
|
|
|
|
TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id, jstring afterId)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id, jstring afterId)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_name = 0;
|
|
|
|
|
static TQCString* _qstring_id = 0;
|
|
|
|
|
static TQCString* _qstring_afterId = 0;
|
|
|
|
|
KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id), (const char*) QtSupport::toCharString(env, afterId, &_qstring_afterId));
|
|
|
|
|
TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id), (const char*) QtSupport::toCharString(env, afterId, &_qstring_afterId));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_addTempFileOption(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_addTempFileOption(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
(void) env;
|
|
|
|
|
KCmdLineArgsJBridge::addTempFileOption();
|
|
|
|
|
TDECmdLineArgsJBridge::addTempFileOption();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_appName(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_appName(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
const char* _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
_qstring = KCmdLineArgsJBridge::appName();
|
|
|
|
|
_qstring = TDECmdLineArgsJBridge::appName();
|
|
|
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_arg(JNIEnv* env, jobject obj, jint n)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_arg(JNIEnv* env, jobject obj, jint n)
|
|
|
|
|
{
|
|
|
|
|
const char* _qstring;
|
|
|
|
|
_qstring = ((KCmdLineArgs*) QtSupport::getQt(env, obj))->arg((int) n);
|
|
|
|
|
_qstring = ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->arg((int) n);
|
|
|
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_clear(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_clear(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
((KCmdLineArgs*) QtSupport::getQt(env, obj))->clear();
|
|
|
|
|
((TDECmdLineArgs*) QtSupport::getQt(env, obj))->clear();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_count(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_count(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
jint xret = (jint) ((KCmdLineArgs*) QtSupport::getQt(env, obj))->count();
|
|
|
|
|
jint xret = (jint) ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->count();
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_cwd(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_cwd(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
_qstring = KCmdLineArgsJBridge::cwd();
|
|
|
|
|
_qstring = TDECmdLineArgsJBridge::cwd();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_enable_1i18n(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_enable_1i18n(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
(void) env;
|
|
|
|
|
KCmdLineArgsJBridge::enable_i18n();
|
|
|
|
|
TDECmdLineArgsJBridge::enable_i18n();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_getOptionList(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_getOptionList(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
{
|
|
|
|
|
QCStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_option = 0;
|
|
|
|
|
_qlist = ((KCmdLineArgs*) QtSupport::getQt(env, obj))->getOptionList((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
_qlist = ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->getOptionList((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_getOption(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_getOption(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
{
|
|
|
|
|
TQCString _qstring;
|
|
|
|
|
static TQCString* _qstring_option = 0;
|
|
|
|
|
_qstring = ((KCmdLineArgs*) QtSupport::getQt(env, obj))->getOption((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
_qstring = ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->getOption((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
return QtSupport::fromTQCString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_init__Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobject about)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_init__Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobject about)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
KCmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about));
|
|
|
|
|
TDECmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_isSet(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_isSet(JNIEnv* env, jobject obj, jstring option)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_option = 0;
|
|
|
|
|
jboolean xret = (jboolean) ((KCmdLineArgs*) QtSupport::getQt(env, obj))->isSet((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
jboolean xret = (jboolean) ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->isSet((const char*) QtSupport::toCharString(env, option, &_qstring_option));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_isTempFileSet(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_isTempFileSet(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
(void) env;
|
|
|
|
|
jboolean xret = (jboolean) KCmdLineArgsJBridge::isTempFileSet();
|
|
|
|
|
jboolean xret = (jboolean) TDECmdLineArgsJBridge::isTempFileSet();
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_loadAppArgs(JNIEnv* env, jclass cls, jobject arg1)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_loadAppArgs(JNIEnv* env, jclass cls, jobject arg1)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
KCmdLineArgsJBridge::loadAppArgs((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
|
|
|
|
|
TDECmdLineArgsJBridge::loadAppArgs((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_makeURL(JNIEnv* env, jclass cls, jstring urlArg)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_makeURL(JNIEnv* env, jclass cls, jstring urlArg)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_urlArg = 0;
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(KCmdLineArgsJBridge::makeURL((const char*) QtSupport::toCharString(env, urlArg, &_qstring_urlArg))), "org.kde.koala.KURL", TRUE);
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(TDECmdLineArgsJBridge::makeURL((const char*) QtSupport::toCharString(env, urlArg, &_qstring_urlArg))), "org.kde.koala.KURL", TRUE);
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_newKCmdLineArgs(JNIEnv* env, jobject obj, jobjectArray _options, jstring _name, jstring _id)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_newTDECmdLineArgs(JNIEnv* env, jobject obj, jobjectArray _options, jstring _name, jstring _id)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring__name = 0;
|
|
|
|
|
static TQCString* _qstring__id = 0;
|
|
|
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
|
|
|
QtSupport::setQt(env, obj, new KCmdLineArgsJBridge((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, _options), (const char*) QtSupport::toCharString(env, _name, &_qstring__name), (const char*) QtSupport::toCharString(env, _id, &_qstring__id)));
|
|
|
|
|
QtSupport::setQt(env, obj, new TDECmdLineArgsJBridge((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, _options), (const char*) QtSupport::toCharString(env, _name, &_qstring__name), (const char*) QtSupport::toCharString(env, _id, &_qstring__id)));
|
|
|
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_parsedArgs__(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_parsedArgs__(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)KCmdLineArgsJBridge::parsedArgs(), "org.kde.koala.KCmdLineArgs");
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)TDECmdLineArgsJBridge::parsedArgs(), "org.kde.koala.TDECmdLineArgs");
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_parsedArgs__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_parsedArgs__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_id = 0;
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)KCmdLineArgsJBridge::parsedArgs((const char*) QtSupport::toCharString(env, id, &_qstring_id)), "org.kde.koala.KCmdLineArgs");
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)TDECmdLineArgsJBridge::parsedArgs((const char*) QtSupport::toCharString(env, id, &_qstring_id)), "org.kde.koala.TDECmdLineArgs");
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_reset(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_reset(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
(void) env;
|
|
|
|
|
KCmdLineArgsJBridge::reset();
|
|
|
|
|
TDECmdLineArgsJBridge::reset();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_setCwd(JNIEnv* env, jclass cls, jstring cwd)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_setCwd(JNIEnv* env, jclass cls, jstring cwd)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_cwd = 0;
|
|
|
|
|
KCmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd));
|
|
|
|
|
TDECmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_url(JNIEnv* env, jobject obj, jint n)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_url(JNIEnv* env, jobject obj, jint n)
|
|
|
|
|
{
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KCmdLineArgs*) QtSupport::getQt(env, obj))->url((int) n)), "org.kde.koala.KURL", TRUE);
|
|
|
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((TDECmdLineArgs*) QtSupport::getQt(env, obj))->url((int) n)), "org.kde.koala.KURL", TRUE);
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_usage__(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_usage__(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
(void) env;
|
|
|
|
|
KCmdLineArgsJBridge::usage();
|
|
|
|
|
TDECmdLineArgsJBridge::usage();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_usage__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_usage__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_id = 0;
|
|
|
|
|
KCmdLineArgsJBridge::usage((const char*) QtSupport::toCharString(env, id, &_qstring_id));
|
|
|
|
|
TDECmdLineArgsJBridge::usage((const char*) QtSupport::toCharString(env, id, &_qstring_id));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring__appname = 0;
|
|
|
|
@ -253,12 +253,12 @@ static TQCString* _qstring_programName = 0;
|
|
|
|
|
static TQCString* _qstring__description = 0;
|
|
|
|
|
static TQCString* _qstring__version = 0;
|
|
|
|
|
int argc = (int) env->GetArrayLength(args);
|
|
|
|
|
KCmdLineArgsJBridge::init((int) argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version));
|
|
|
|
|
TDECmdLineArgsJBridge::init((int) argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version, jboolean noKApp)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version, jboolean noKApp)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring__appname = 0;
|
|
|
|
@ -266,25 +266,25 @@ static TQCString* _qstring_programName = 0;
|
|
|
|
|
static TQCString* _qstring__description = 0;
|
|
|
|
|
static TQCString* _qstring__version = 0;
|
|
|
|
|
int argc = (int) env->GetArrayLength(args);
|
|
|
|
|
KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version), (bool) noKApp);
|
|
|
|
|
TDECmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version), (bool) noKApp);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobjectArray args, jobject about)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobjectArray args, jobject about)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
int argc = (int) env->GetArrayLength(args);
|
|
|
|
|
KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about));
|
|
|
|
|
TDECmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2Z(JNIEnv* env, jclass cls, jobjectArray args, jobject about, jboolean noKApp)
|
|
|
|
|
Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2Z(JNIEnv* env, jclass cls, jobjectArray args, jobject about, jboolean noKApp)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
int argc = (int) env->GetArrayLength(args);
|
|
|
|
|
KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about), (bool) noKApp);
|
|
|
|
|
TDECmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about), (bool) noKApp);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|