diff options
Diffstat (limited to 'dcopjava/binding')
-rw-r--r-- | dcopjava/binding/client.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/dcopjava/binding/client.cpp b/dcopjava/binding/client.cpp index 1af3579f..e60fe2ac 100644 --- a/dcopjava/binding/client.cpp +++ b/dcopjava/binding/client.cpp @@ -44,11 +44,11 @@ JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_attach(JNIEnv *, jobject) JNIEXPORT jstring JNICALL Java_org_kde_DCOP_Client_registerAs(JNIEnv *env, jobject, jstring appName) { - TTQString name(env->GetStringUTFChars(appName, 0)); + TQString name(env->GetStringUTFChars(appName, 0)); kdDebug() << "javadcop::registerAs(\"" << name << "\") called" << endl; - TTQString rname = client::instance()->registerAs(name.local8Bit(), false); + TQString rname = client::instance()->registerAs(name.local8Bit(), false); return env->NewStringUTF(rname.local8Bit().data()); } @@ -72,10 +72,10 @@ JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_detach(JNIEnv *, jobject) JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_send__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject, jstring remApp, jstring remObj, jstring remFun, jstring data) { - TTQString _remApp(env->GetStringUTFChars(remApp, 0)); - TTQString _remObj(env->GetStringUTFChars(remObj, 0)); - TTQString _remFun(env->GetStringUTFChars(remFun, 0)); - TTQString _data(env->GetStringUTFChars(data, 0)); + TQString _remApp(env->GetStringUTFChars(remApp, 0)); + TQString _remObj(env->GetStringUTFChars(remObj, 0)); + TQString _remFun(env->GetStringUTFChars(remFun, 0)); + TQString _data(env->GetStringUTFChars(data, 0)); kdDebug() << "javadcop::send(" << _remApp << "," << _remObj << "," << _remFun << "," << _data << "," <<") called" << endl; @@ -83,10 +83,10 @@ JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_send__Ljava_lang_String_2Lja } -TTQByteArray byteArray(JNIEnv *env, jbyteArray a) +TQByteArray byteArray(JNIEnv *env, jbyteArray a) { jsize len = env->GetArrayLength(a); - TTQByteArray _data(len); + TQByteArray _data(len); jboolean isCopy; _data.duplicate((const char *)env->GetByteArrayElements(a, &isCopy), len); @@ -96,10 +96,10 @@ TTQByteArray byteArray(JNIEnv *env, jbyteArray a) JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_send__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2_3B(JNIEnv *env, jobject, jstring remApp, jstring remObj, jstring remFun, jbyteArray data) { - TTQString _remApp(env->GetStringUTFChars(remApp, 0)); - TTQString _remObj(env->GetStringUTFChars(remObj, 0)); - TTQString _remFun(env->GetStringUTFChars(remFun, 0)); - TTQByteArray _data = byteArray(env, data); + TQString _remApp(env->GetStringUTFChars(remApp, 0)); + TQString _remObj(env->GetStringUTFChars(remObj, 0)); + TQString _remFun(env->GetStringUTFChars(remFun, 0)); + TQByteArray _data = byteArray(env, data); kdDebug() << "javadcop::send(" << _remApp << "," << _remObj << "," << _remFun << ", data[" << _data.size() << "], " <<") called" << endl; for (uint i=0; i<_data.size(); ++i) @@ -143,17 +143,17 @@ JNIEXPORT void JNICALL Java_org_kde_DCOP_Client_resume(JNIEnv *, jobject) JNIEXPORT jobject JNICALL Java_org_kde_DCOP_Client_call(JNIEnv *env, jobject, jstring remApp, jstring remObj, jstring remFun, jbyteArray data, jboolean eventLoop) { - TTQString _remApp(env->GetStringUTFChars(remApp, 0)); - TTQString _remObj(env->GetStringUTFChars(remObj, 0)); - TTQString _remFun(env->GetStringUTFChars(remFun, 0)); - TTQByteArray _data = byteArray(env, data); + TQString _remApp(env->GetStringUTFChars(remApp, 0)); + TQString _remObj(env->GetStringUTFChars(remObj, 0)); + TQString _remFun(env->GetStringUTFChars(remFun, 0)); + TQByteArray _data = byteArray(env, data); kdDebug() << "javadcop::call(" << _remApp << "," << _remObj << "," << _remFun << ", data[" << _data.size() << "], " << eventLoop <<") called" << endl; for (uint i=0; i<_data.size(); ++i) kdDebug() << " data[" << i << "] = " << _data[i] << endl; - TTQCString _retType; - TTQByteArray _retData; + TQCString _retType; + TQByteArray _retData; bool retval = client::instance()->call(_remApp.local8Bit(), _remObj.local8Bit(), _remFun.local8Bit(), _data, _retType, _retData, eventLoop); kdDebug() << "Return type " << _retType << endl; @@ -203,7 +203,7 @@ JNIEXPORT jobject JNICALL Java_org_kde_DCOP_Client_call(JNIEnv *env, jobject, js JNIEXPORT jboolean JNICALL Java_org_kde_DCOP_Client_isApplicationRegistered(JNIEnv *env, jobject, jstring remApp) { - const TTQCString _remApp(env->GetStringUTFChars(remApp, 0)); + const TQCString _remApp(env->GetStringUTFChars(remApp, 0)); kdDebug() << "javadcop::isApplicationRegistered() called" << endl; |