Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 1dbcf2f985
commit 8a69eba2f0

@ -24,8 +24,8 @@ int main(int argc, char **argv)
KAboutData about("kdedcoptest", I18N_NOOP("TDEDcopTest"), version, description, KAboutData about("kdedcoptest", I18N_NOOP("TDEDcopTest"), version, description,
KAboutData::License_GPL, "(C) 2003 Julian Rockey", 0, 0, "kde@jrockey.com"); KAboutData::License_GPL, "(C) 2003 Julian Rockey", 0, 0, "kde@jrockey.com");
about.addAuthor( "Julian Rockey", 0, "kde@jrockey.com" ); about.addAuthor( "Julian Rockey", 0, "kde@jrockey.com" );
KCmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;
KDEDcopTest *mainWin = 0; KDEDcopTest *mainWin = 0;
@ -36,7 +36,7 @@ int main(int argc, char **argv)
else else
{ {
// no session.. just start up normally // no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// TODO: do something with the command line args here // TODO: do something with the command line args here

@ -8,244 +8,244 @@
#include <qtjava/QtSupport.h> #include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h> #include <kdejava/KDESupport.h>
#include <kdejava/KCmdLineArgs.h> #include <kdejava/TDECmdLineArgs.h>
class KCmdLineArgsJBridge : public KCmdLineArgs class TDECmdLineArgsJBridge : public TDECmdLineArgs
{ {
public: 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 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; (void) cls;
KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options)); TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options));
return; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring_name = 0; 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring_name = 0; static TQCString* _qstring_name = 0;
static TQCString* _qstring_id = 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring_name = 0; static TQCString* _qstring_name = 0;
static TQCString* _qstring_id = 0; static TQCString* _qstring_id = 0;
static TQCString* _qstring_afterId = 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; return;
} }
JNIEXPORT void JNICALL 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) cls;
(void) env; (void) env;
KCmdLineArgsJBridge::addTempFileOption(); TDECmdLineArgsJBridge::addTempFileOption();
return; return;
} }
JNIEXPORT jstring JNICALL 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; const char* _qstring;
(void) cls; (void) cls;
_qstring = KCmdLineArgsJBridge::appName(); _qstring = TDECmdLineArgsJBridge::appName();
return QtSupport::fromCharString(env, (char *) _qstring); return QtSupport::fromCharString(env, (char *) _qstring);
} }
JNIEXPORT jstring JNICALL 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; 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); return QtSupport::fromCharString(env, (char *) _qstring);
} }
JNIEXPORT void JNICALL 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; return;
} }
JNIEXPORT jint JNICALL 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; return xret;
} }
JNIEXPORT jstring JNICALL 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; TQString _qstring;
(void) cls; (void) cls;
_qstring = KCmdLineArgsJBridge::cwd(); _qstring = TDECmdLineArgsJBridge::cwd();
return QtSupport::fromTQString(env, &_qstring); return QtSupport::fromTQString(env, &_qstring);
} }
JNIEXPORT void JNICALL 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) cls;
(void) env; (void) env;
KCmdLineArgsJBridge::enable_i18n(); TDECmdLineArgsJBridge::enable_i18n();
return; return;
} }
JNIEXPORT jobject JNICALL 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; QCStringList _qlist;
static TQCString* _qstring_option = 0; 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); return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
} }
JNIEXPORT jstring JNICALL 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; TQCString _qstring;
static TQCString* _qstring_option = 0; 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); return QtSupport::fromTQCString(env, &_qstring);
} }
JNIEXPORT void JNICALL 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; (void) cls;
KCmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about)); TDECmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about));
return; return;
} }
JNIEXPORT jboolean JNICALL 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; 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; return xret;
} }
JNIEXPORT jboolean JNICALL 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) cls;
(void) env; (void) env;
jboolean xret = (jboolean) KCmdLineArgsJBridge::isTempFileSet(); jboolean xret = (jboolean) TDECmdLineArgsJBridge::isTempFileSet();
return xret; return xret;
} }
JNIEXPORT void JNICALL 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; (void) cls;
KCmdLineArgsJBridge::loadAppArgs((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1)); TDECmdLineArgsJBridge::loadAppArgs((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
return; return;
} }
JNIEXPORT jobject JNICALL 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; (void) cls;
static TQCString* _qstring_urlArg = 0; 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; return xret;
} }
JNIEXPORT void JNICALL 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__name = 0;
static TQCString* _qstring__id = 0; static TQCString* _qstring__id = 0;
if (QtSupport::getQt(env, obj) == 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)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
} }
return; return;
} }
JNIEXPORT jobject JNICALL 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; (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; return xret;
} }
JNIEXPORT jobject JNICALL 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; (void) cls;
static TQCString* _qstring_id = 0; 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; return xret;
} }
JNIEXPORT void JNICALL 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) cls;
(void) env; (void) env;
KCmdLineArgsJBridge::reset(); TDECmdLineArgsJBridge::reset();
return; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring_cwd = 0; static TQCString* _qstring_cwd = 0;
KCmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd)); TDECmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd));
return; return;
} }
JNIEXPORT jobject JNICALL 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; return xret;
} }
JNIEXPORT void JNICALL 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) cls;
(void) env; (void) env;
KCmdLineArgsJBridge::usage(); TDECmdLineArgsJBridge::usage();
return; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring_id = 0; 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring__appname = 0; static TQCString* _qstring__appname = 0;
@ -253,12 +253,12 @@ static TQCString* _qstring_programName = 0;
static TQCString* _qstring__description = 0; static TQCString* _qstring__description = 0;
static TQCString* _qstring__version = 0; static TQCString* _qstring__version = 0;
int argc = (int) env->GetArrayLength(args); 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
static TQCString* _qstring__appname = 0; static TQCString* _qstring__appname = 0;
@ -266,25 +266,25 @@ static TQCString* _qstring_programName = 0;
static TQCString* _qstring__description = 0; static TQCString* _qstring__description = 0;
static TQCString* _qstring__version = 0; static TQCString* _qstring__version = 0;
int argc = (int) env->GetArrayLength(args); 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
int argc = (int) env->GetArrayLength(args); 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; return;
} }
JNIEXPORT void JNICALL 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; (void) cls;
int argc = (int) env->GetArrayLength(args); 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; return;
} }

@ -1,7 +1,7 @@
/* DO NOT EDIT THIS FILE - it is machine generated */ /* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __org_kde_koala_KCmdLineArgs__ #ifndef __org_kde_koala_TDECmdLineArgs__
#define __org_kde_koala_KCmdLineArgs__ #define __org_kde_koala_TDECmdLineArgs__
#include <jni.h> #include <jni.h>
@ -10,39 +10,39 @@ extern "C"
{ {
#endif #endif
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KCmdLineArgs_getOption (JNIEnv *env, jobject, jstring); extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDECmdLineArgs_getOption (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCmdLineArgs_getOptionList (JNIEnv *env, jobject, jstring); extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDECmdLineArgs_getOptionList (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCmdLineArgs_isSet (JNIEnv *env, jobject, jstring); extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDECmdLineArgs_isSet (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KCmdLineArgs_count (JNIEnv *env, jobject); extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDECmdLineArgs_count (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KCmdLineArgs_arg (JNIEnv *env, jobject, jint); extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDECmdLineArgs_arg (JNIEnv *env, jobject, jint);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCmdLineArgs_url (JNIEnv *env, jobject, jint); extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDECmdLineArgs_url (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_clear (JNIEnv *env, jobject); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_clear (JNIEnv *env, jobject);
extern 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, jobjectArray, jstring, jstring, jstring, jstring, jboolean); extern 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, jobjectArray, jstring, jstring, jstring, jstring, jboolean);
extern 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, jobjectArray, jstring, jstring, jstring, jstring); extern 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, jobjectArray, jstring, jstring, jstring, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2Z (JNIEnv *env, jclass, jobjectArray, jobject, jboolean); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2Z (JNIEnv *env, jclass, jobjectArray, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2 (JNIEnv *env, jclass, jobjectArray, jobject); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2 (JNIEnv *env, jclass, jobjectArray, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_init__Lorg_kde_koala_KAboutData_2 (JNIEnv *env, jclass, jobject); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_init__Lorg_kde_koala_KAboutData_2 (JNIEnv *env, jclass, jobject);
extern 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, jobjectArray, jstring, jstring, jstring); extern 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, jobjectArray, jstring, jstring, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray, jstring, jstring); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray, jstring, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray, jstring); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2 (JNIEnv *env, jclass, jobjectArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCmdLineArgs_parsedArgs__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring); extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDECmdLineArgs_parsedArgs__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCmdLineArgs_parsedArgs__ (JNIEnv *env, jclass); extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDECmdLineArgs_parsedArgs__ (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KCmdLineArgs_cwd (JNIEnv *env, jclass); extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDECmdLineArgs_cwd (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KCmdLineArgs_appName (JNIEnv *env, jclass); extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDECmdLineArgs_appName (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_usage__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_usage__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_usage__ (JNIEnv *env, jclass); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_usage__ (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_enable_1i18n (JNIEnv *env, jclass); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_enable_1i18n (JNIEnv *env, jclass);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCmdLineArgs_makeURL (JNIEnv *env, jclass, jstring); extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDECmdLineArgs_makeURL (JNIEnv *env, jclass, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_setCwd (JNIEnv *env, jclass, jstring); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_setCwd (JNIEnv *env, jclass, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_reset (JNIEnv *env, jclass); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_reset (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_loadAppArgs (JNIEnv *env, jclass, jobject); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_loadAppArgs (JNIEnv *env, jclass, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_addTempFileOption (JNIEnv *env, jclass); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_addTempFileOption (JNIEnv *env, jclass);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCmdLineArgs_isTempFileSet (JNIEnv *env, jclass); extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDECmdLineArgs_isTempFileSet (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCmdLineArgs_newKCmdLineArgs (JNIEnv *env, jobject, jobjectArray, jstring, jstring); extern JNIEXPORT void JNICALL Java_org_kde_koala_TDECmdLineArgs_newTDECmdLineArgs (JNIEnv *env, jobject, jobjectArray, jstring, jstring);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* __org_kde_koala_KCmdLineArgs__ */ #endif /* __org_kde_koala_TDECmdLineArgs__ */

@ -38,7 +38,7 @@ int main( int argc, char **argv )
KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test For C++ access of variables and functions."), "0.1", KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test For C++ access of variables and functions."), "0.1",
I18N_NOOP("Test"), I18N_NOOP("Test"),
KAboutData::License_LGPL, I18N_NOOP("(c) 2004 Ian Reinhart Geiser") ); KAboutData::License_LGPL, I18N_NOOP("(c) 2004 Ian Reinhart Geiser") );
KCmdLineArgs::init( argc, argv, &about ); TDECmdLineArgs::init( argc, argv, &about );
KApplication app; KApplication app;
// Setup Interpreter // Setup Interpreter

@ -34,7 +34,7 @@ int main(int argc, char **argv)
KAboutData about("embedjs", I18N_NOOP("EmbedJS"), version, description, KAboutData about("embedjs", I18N_NOOP("EmbedJS"), version, description,
KAboutData::License_LGPL, "(C) 2004 Ian Reinhart Geiser", 0, 0, "geiseri@kde.org"); KAboutData::License_LGPL, "(C) 2004 Ian Reinhart Geiser", 0, 0, "geiseri@kde.org");
about.addAuthor( "Ian Reinhart Geiser", 0, "geiseri@kde.org" ); about.addAuthor( "Ian Reinhart Geiser", 0, "geiseri@kde.org" );
KCmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
KApplication app; KApplication app;
EmbedViewImp *view = new EmbedViewImp; EmbedViewImp *view = new EmbedViewImp;

@ -88,9 +88,9 @@ int main( int argc, char **argv )
about.addAuthor( "Richard Moore", 0, "rich@kde.org" ); about.addAuthor( "Richard Moore", 0, "rich@kde.org" );
about.addAuthor( "Ian Reinhart Geiser", 0, "geiser@kde.org" ); about.addAuthor( "Ian Reinhart Geiser", 0, "geiser@kde.org" );
KCmdLineArgs::init( argc, argv, &about ); TDECmdLineArgs::init( argc, argv, &about );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// Setup KApplication // Setup KApplication
KApplication *app; KApplication *app;

@ -33,7 +33,7 @@ int main( int argc, char **argv )
KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test"), "0.1", KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test"), "0.1",
I18N_NOOP("Test"), I18N_NOOP("Test"),
KAboutData::License_LGPL, I18N_NOOP("(c) 2001-2003 Richard Moore") ); KAboutData::License_LGPL, I18N_NOOP("(c) 2001-2003 Richard Moore") );
KCmdLineArgs::init( argc, argv, &about ); TDECmdLineArgs::init( argc, argv, &about );
KApplication app; KApplication app;
// Setup Interpreter // Setup Interpreter

@ -36,7 +36,7 @@ int main( int argc, char **argv )
KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test"), "0.1", KAboutData about( "test-kjsembed", I18N_NOOP("KJS Embed Test"), "0.1",
I18N_NOOP("Test"), I18N_NOOP("Test"),
KAboutData::License_LGPL, I18N_NOOP("(c) 2001-2002 Richard Moore") ); KAboutData::License_LGPL, I18N_NOOP("(c) 2001-2002 Richard Moore") );
KCmdLineArgs::init( argc, argv, &about ); TDECmdLineArgs::init( argc, argv, &about );
KApplication app; KApplication app;
// Setup Interpreter // Setup Interpreter

@ -811,12 +811,12 @@ int main( int argc, char **argv )
aboutData.addCredit( "Richard Dale", "Ruby port", aboutData.addCredit( "Richard Dale", "Ruby port",
"Richard_Dale@tipitina.demon.co.uk", "" ); "Richard_Dale@tipitina.demon.co.uk", "" );
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KInstance app( &aboutData ); KInstance app( &aboutData );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() < 2 ) { if ( args->count() < 2 ) {
kdError() << "Too few arguments." << endl; kdError() << "Too few arguments." << endl;

@ -201,7 +201,7 @@ smokeruby_free(void * p)
|| tqstrcmp(className, "KNamedCommand") == 0 || tqstrcmp(className, "KNamedCommand") == 0
|| tqstrcmp(className, "KMacroCommand") == 0 || tqstrcmp(className, "KMacroCommand") == 0
|| tqstrcmp(className, "KAboutData") == 0 || tqstrcmp(className, "KAboutData") == 0
|| tqstrcmp(className, "KCmdLineArgs") == 0 || tqstrcmp(className, "TDECmdLineArgs") == 0
|| tqstrcmp(className, "TQSqlCursor") == 0 ) || tqstrcmp(className, "TQSqlCursor") == 0 )
{ {
// Don't delete instances of these classes for now // Don't delete instances of these classes for now

Loading…
Cancel
Save