summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/TDECmdLineArgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/kdejava/TDECmdLineArgs.cpp')
-rw-r--r--kdejava/koala/kdejava/TDECmdLineArgs.cpp290
1 files changed, 290 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/TDECmdLineArgs.cpp b/kdejava/koala/kdejava/TDECmdLineArgs.cpp
new file mode 100644
index 00000000..95b3f0ad
--- /dev/null
+++ b/kdejava/koala/kdejava/TDECmdLineArgs.cpp
@@ -0,0 +1,290 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <kcmdlineargs.h>
+#include <dcopclient.h>
+#include <tqstring.h>
+#include <kurl.h>
+#include <tqdatastream.h>
+#include <tqcstring.h>
+
+#include <qtjava/QtSupport.h>
+#include <kdejava/KDESupport.h>
+#include <kdejava/TDECmdLineArgs.h>
+
+class TDECmdLineArgsJBridge : public TDECmdLineArgs
+{
+public:
+ TDECmdLineArgsJBridge(const KCmdLineOptions* arg1,const char* arg2,const char* arg3) : TDECmdLineArgs(arg1,arg2,arg3) {};
+};
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options)
+{
+ (void) cls;
+ TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options));
+ return;
+}
+
+JNIEXPORT void JNICALL
+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;
+ TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
+ return;
+}
+
+JNIEXPORT void JNICALL
+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;
+ 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_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;
+ 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_TDECmdLineArgs_addTempFileOption(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ TDECmdLineArgsJBridge::addTempFileOption();
+ return;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_koala_TDECmdLineArgs_appName(JNIEnv* env, jclass cls)
+{
+ const char* _qstring;
+ (void) cls;
+ _qstring = TDECmdLineArgsJBridge::appName();
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_koala_TDECmdLineArgs_arg(JNIEnv* env, jobject obj, jint n)
+{
+ const char* _qstring;
+ _qstring = ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->arg((int) n);
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_clear(JNIEnv* env, jobject obj)
+{
+ ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->clear();
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_koala_TDECmdLineArgs_count(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TDECmdLineArgs*) QtSupport::getQt(env, obj))->count();
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_koala_TDECmdLineArgs_cwd(JNIEnv* env, jclass cls)
+{
+ TQString _qstring;
+ (void) cls;
+ _qstring = TDECmdLineArgsJBridge::cwd();
+ return QtSupport::fromTQString(env, &_qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_enable_1i18n(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ TDECmdLineArgsJBridge::enable_i18n();
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_TDECmdLineArgs_getOptionList(JNIEnv* env, jobject obj, jstring option)
+{
+ QCStringList _qlist;
+static TQCString* _qstring_option = 0;
+ _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_TDECmdLineArgs_getOption(JNIEnv* env, jobject obj, jstring option)
+{
+ TQCString _qstring;
+static TQCString* _qstring_option = 0;
+ _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_TDECmdLineArgs_init__Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobject about)
+{
+ (void) cls;
+ TDECmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about));
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_TDECmdLineArgs_isSet(JNIEnv* env, jobject obj, jstring option)
+{
+static TQCString* _qstring_option = 0;
+ 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_TDECmdLineArgs_isTempFileSet(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ jboolean xret = (jboolean) TDECmdLineArgsJBridge::isTempFileSet();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_loadAppArgs(JNIEnv* env, jclass cls, jobject arg1)
+{
+ (void) cls;
+ TDECmdLineArgsJBridge::loadAppArgs((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+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(TDECmdLineArgsJBridge::makeURL((const char*) QtSupport::toCharString(env, urlArg, &_qstring_urlArg))), "org.kde.koala.KURL", TRUE);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+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 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_TDECmdLineArgs_parsedArgs__(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)TDECmdLineArgsJBridge::parsedArgs(), "org.kde.koala.TDECmdLineArgs");
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+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*)TDECmdLineArgsJBridge::parsedArgs((const char*) QtSupport::toCharString(env, id, &_qstring_id)), "org.kde.koala.TDECmdLineArgs");
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_reset(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ TDECmdLineArgsJBridge::reset();
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_setCwd(JNIEnv* env, jclass cls, jstring cwd)
+{
+ (void) cls;
+static TQCString* _qstring_cwd = 0;
+ TDECmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd));
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_TDECmdLineArgs_url(JNIEnv* env, jobject obj, jint n)
+{
+ 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_TDECmdLineArgs_usage__(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ TDECmdLineArgsJBridge::usage();
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_TDECmdLineArgs_usage__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
+{
+ (void) cls;
+static TQCString* _qstring_id = 0;
+ TDECmdLineArgsJBridge::usage((const char*) QtSupport::toCharString(env, id, &_qstring_id));
+ return;
+}
+
+JNIEXPORT void JNICALL
+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;
+static TQCString* _qstring_programName = 0;
+static TQCString* _qstring__description = 0;
+static TQCString* _qstring__version = 0;
+ int argc = (int) env->GetArrayLength(args);
+ 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_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;
+static TQCString* _qstring_programName = 0;
+static TQCString* _qstring__description = 0;
+static TQCString* _qstring__version = 0;
+ int argc = (int) env->GetArrayLength(args);
+ 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_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);
+ TDECmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about));
+ return;
+}
+
+JNIEXPORT void JNICALL
+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);
+ TDECmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about), (bool) noKApp);
+ return;
+}
+