diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /dcopjava/binding | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
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 e60fe2ac..1af3579f 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) { - TQString name(env->GetStringUTFChars(appName, 0)); + TTQString name(env->GetStringUTFChars(appName, 0)); kdDebug() << "javadcop::registerAs(\"" << name << "\") called" << endl; - TQString rname = client::instance()->registerAs(name.local8Bit(), false); + TTQString 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) { - TQString _remApp(env->GetStringUTFChars(remApp, 0)); - TQString _remObj(env->GetStringUTFChars(remObj, 0)); - TQString _remFun(env->GetStringUTFChars(remFun, 0)); - TQString _data(env->GetStringUTFChars(data, 0)); + TTQString _remApp(env->GetStringUTFChars(remApp, 0)); + TTQString _remObj(env->GetStringUTFChars(remObj, 0)); + TTQString _remFun(env->GetStringUTFChars(remFun, 0)); + TTQString _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 } -TQByteArray byteArray(JNIEnv *env, jbyteArray a) +TTQByteArray byteArray(JNIEnv *env, jbyteArray a) { jsize len = env->GetArrayLength(a); - TQByteArray _data(len); + TTQByteArray _data(len); jboolean isCopy; _data.duplicate((const char *)env->GetByteArrayElements(a, &isCopy), len); @@ -96,10 +96,10 @@ TQByteArray 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) { - TQString _remApp(env->GetStringUTFChars(remApp, 0)); - TQString _remObj(env->GetStringUTFChars(remObj, 0)); - TQString _remFun(env->GetStringUTFChars(remFun, 0)); - TQByteArray _data = byteArray(env, data); + TTQString _remApp(env->GetStringUTFChars(remApp, 0)); + TTQString _remObj(env->GetStringUTFChars(remObj, 0)); + TTQString _remFun(env->GetStringUTFChars(remFun, 0)); + TTQByteArray _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) { - TQString _remApp(env->GetStringUTFChars(remApp, 0)); - TQString _remObj(env->GetStringUTFChars(remObj, 0)); - TQString _remFun(env->GetStringUTFChars(remFun, 0)); - TQByteArray _data = byteArray(env, data); + TTQString _remApp(env->GetStringUTFChars(remApp, 0)); + TTQString _remObj(env->GetStringUTFChars(remObj, 0)); + TTQString _remFun(env->GetStringUTFChars(remFun, 0)); + TTQByteArray _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; - TQCString _retType; - TQByteArray _retData; + TTQCString _retType; + TTQByteArray _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 TQCString _remApp(env->GetStringUTFChars(remApp, 0)); + const TTQCString _remApp(env->GetStringUTFChars(remApp, 0)); kdDebug() << "javadcop::isApplicationRegistered() called" << endl; |