summaryrefslogtreecommitdiffstats
path: root/kdejava
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-06 19:45:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-06 19:45:01 -0600
commitfb7e279ef21733ca91caad571e63263b1f947f85 (patch)
treecd03e2405d1f6eddd9fd50d4a29faa6d4b990796 /kdejava
parent18896070bf8c173783628a31da969042bddd2867 (diff)
downloadtdebindings-fb7e279ef21733ca91caad571e63263b1f947f85.tar.gz
tdebindings-fb7e279ef21733ca91caad571e63263b1f947f85.zip
Rename KCmd to avoid conflicts with KDE4
Diffstat (limited to 'kdejava')
-rw-r--r--kdejava/koala/kdejava/KDESupport.cpp8
-rw-r--r--kdejava/koala/kdejava/KDESupport.h4
-rw-r--r--kdejava/koala/kdejava/TDECmdLineArgs.cpp12
-rw-r--r--kdejava/koala/org/kde/koala/TDECmdLineArgs.java2
4 files changed, 13 insertions, 13 deletions
diff --git a/kdejava/koala/kdejava/KDESupport.cpp b/kdejava/koala/kdejava/KDESupport.cpp
index 9c3059d1..ea0f9649 100644
--- a/kdejava/koala/kdejava/KDESupport.cpp
+++ b/kdejava/koala/kdejava/KDESupport.cpp
@@ -123,19 +123,19 @@ KDESupport::toKFileItemList(JNIEnv * env, jobjectArray itemList, KFileItemList *
return *kitemList;
}
-KCmdLineOptions *
-KDESupport::toKCmdLineOptions(JNIEnv * env, jobjectArray optionsArray)
+TDECmdLineOptions *
+KDESupport::toTDECmdLineOptions(JNIEnv * env, jobjectArray optionsArray)
{
jstring jstr;
const char * str;
int length;
int index;
jobjectArray optionEntry;
- KCmdLineOptions * cmdLineOptions;
+ TDECmdLineOptions * cmdLineOptions;
length = env->GetArrayLength(optionsArray);
// Allocate 'length + 1' entries, to include an all NULLs last entry
- cmdLineOptions = (KCmdLineOptions *) calloc(length + 1, sizeof(struct KCmdLineOptions));
+ cmdLineOptions = (TDECmdLineOptions *) calloc(length + 1, sizeof(struct TDECmdLineOptions));
for (index = 0; index < length; index++) {
optionEntry = (jobjectArray) env->GetObjectArrayElement(optionsArray, index);
diff --git a/kdejava/koala/kdejava/KDESupport.h b/kdejava/koala/kdejava/KDESupport.h
index 8ecb47f0..6df03995 100644
--- a/kdejava/koala/kdejava/KDESupport.h
+++ b/kdejava/koala/kdejava/KDESupport.h
@@ -50,8 +50,8 @@ public:
/** Convert from a Java ArrayList to a KFileItemList */
static KFileItemList * toKFileItemList(JNIEnv * env, jobjectArray itemList, KFileItemList ** kitemList);
- /** Converts java options entries to the C++ KCmdLineOption equivalent */
- static KCmdLineOptions * toKCmdLineOptions(JNIEnv * env, jobjectArray optionsArray);
+ /** Converts java options entries to the C++ TDECmdLineOption equivalent */
+ static TDECmdLineOptions * toTDECmdLineOptions(JNIEnv * env, jobjectArray optionsArray);
/** Converts a java.io.ByteArrayOutputStream to a TQByteArray */
static TQByteArray * toTQByteArrayFromStream(JNIEnv * env, TQByteArray * byteArray, jobject byteStream);
diff --git a/kdejava/koala/kdejava/TDECmdLineArgs.cpp b/kdejava/koala/kdejava/TDECmdLineArgs.cpp
index 0cb06177..108c1595 100644
--- a/kdejava/koala/kdejava/TDECmdLineArgs.cpp
+++ b/kdejava/koala/kdejava/TDECmdLineArgs.cpp
@@ -13,14 +13,14 @@
class TDECmdLineArgsJBridge : public TDECmdLineArgs
{
public:
- TDECmdLineArgsJBridge(const KCmdLineOptions* arg1,const char* arg2,const char* arg3) : TDECmdLineArgs(arg1,arg2,arg3) {};
+ TDECmdLineArgsJBridge(const TDECmdLineOptions* 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));
+ TDECmdLineArgsJBridge::addCmdLineOptions((TDECmdLineOptions*) KDESupport::toTDECmdLineOptions(env, options));
return;
}
@@ -29,7 +29,7 @@ Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljav
{
(void) cls;
static TQCString* _qstring_name = 0;
- TDECmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
+ TDECmdLineArgsJBridge::addCmdLineOptions((TDECmdLineOptions*) KDESupport::toTDECmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
return;
}
@@ -39,7 +39,7 @@ Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljav
(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));
+ TDECmdLineArgsJBridge::addCmdLineOptions((TDECmdLineOptions*) KDESupport::toTDECmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id));
return;
}
@@ -50,7 +50,7 @@ Java_org_kde_koala_TDECmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljav
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));
+ TDECmdLineArgsJBridge::addCmdLineOptions((TDECmdLineOptions*) KDESupport::toTDECmdLineOptions(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;
}
@@ -178,7 +178,7 @@ Java_org_kde_koala_TDECmdLineArgs_newTDECmdLineArgs(JNIEnv* env, jobject obj, jo
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::setQt(env, obj, new TDECmdLineArgsJBridge((TDECmdLineOptions*) KDESupport::toTDECmdLineOptions(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;
diff --git a/kdejava/koala/org/kde/koala/TDECmdLineArgs.java b/kdejava/koala/org/kde/koala/TDECmdLineArgs.java
index 423df7a3..ab44dba6 100644
--- a/kdejava/koala/org/kde/koala/TDECmdLineArgs.java
+++ b/kdejava/koala/org/kde/koala/TDECmdLineArgs.java
@@ -186,7 +186,7 @@ public class TDECmdLineArgs implements QtSupport {
not specifically turned off in the command line. Equivalently,
it will be false if the option was specifically turned off in
the command line, or if the option is turned off by default (in
- the KCmdLineOptions list) and was not specifically turned on in
+ the TDECmdLineOptions list) and was not specifically turned on in
the command line.
@short Read out a boolean option or check for the presence of string option.