diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /dcopjava/binding | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 5bdb9469..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) { - QString name(env->GetStringUTFChars(appName, 0)); + TQString name(env->GetStringUTFChars(appName, 0)); kdDebug() << "javadcop::registerAs(\"" << name << "\") called" << endl; - QString 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) { - QString _remApp(env->GetStringUTFChars(remApp, 0)); - QString _remObj(env->GetStringUTFChars(remObj, 0)); - QString _remFun(env->GetStringUTFChars(remFun, 0)); - QString _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 } -QByteArray byteArray(JNIEnv *env, jbyteArray a) +TQByteArray byteArray(JNIEnv *env, jbyteArray a) { jsize len = env->GetArrayLength(a); - QByteArray _data(len); + TQByteArray _data(len); jboolean isCopy; _data.duplicate((const char *)env->GetByteArrayElements(a, &isCopy), len); @@ -96,10 +96,10 @@ QByteArray 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) { - QString _remApp(env->GetStringUTFChars(remApp, 0)); - QString _remObj(env->GetStringUTFChars(remObj, 0)); - QString _remFun(env->GetStringUTFChars(remFun, 0)); - QByteArray _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) { - QString _remApp(env->GetStringUTFChars(remApp, 0)); - QString _remObj(env->GetStringUTFChars(remObj, 0)); - QString _remFun(env->GetStringUTFChars(remFun, 0)); - QByteArray _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; - QCString _retType; - QByteArray _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 QCString _remApp(env->GetStringUTFChars(remApp, 0)); + const TQCString _remApp(env->GetStringUTFChars(remApp, 0)); kdDebug() << "javadcop::isApplicationRegistered() called" << endl; |