summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/DCOPObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/kdejava/DCOPObject.cpp')
-rw-r--r--kdejava/koala/kdejava/DCOPObject.cpp102
1 files changed, 51 insertions, 51 deletions
diff --git a/kdejava/koala/kdejava/DCOPObject.cpp b/kdejava/koala/kdejava/DCOPObject.cpp
index 63013399..afcc17ec 100644
--- a/kdejava/koala/kdejava/DCOPObject.cpp
+++ b/kdejava/koala/kdejava/DCOPObject.cpp
@@ -11,8 +11,8 @@ class DCOPObjectJBridge : public DCOPObject
{
public:
DCOPObjectJBridge() : DCOPObject() {};
- DCOPObjectJBridge(TQObject* arg1) : DCOPObject(arg1) {};
- DCOPObjectJBridge(const TQCString& arg1) : DCOPObject(arg1) {};
+ DCOPObjectJBridge(TTQObject* arg1) : DCOPObject(arg1) {};
+ DCOPObjectJBridge(const TTQCString& arg1) : DCOPObject(arg1) {};
~DCOPObjectJBridge() {QtSupport::qtKeyDeleted(this);}
};
@@ -26,22 +26,22 @@ Java_org_kde_koala_DCOPObject_callingDcopClient(JNIEnv* env, jobject obj)
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot, jboolean Volatile)
{
-static TQCString* _qcstring_sender = 0;
-static TQCString* _qcstring_senderObj = 0;
-static TQCString* _qcstring_signal = 0;
-static TQCString* _qcstring_slot = 0;
- jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->connectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, slot, &_qcstring_slot), (bool) Volatile);
+static TTQCString* _qcstring_sender = 0;
+static TTQCString* _qcstring_senderObj = 0;
+static TTQCString* _qcstring_signal = 0;
+static TTQCString* _qcstring_slot = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->connectDCOPSignal((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot), (bool) Volatile);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_disconnectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot)
{
-static TQCString* _qcstring_sender = 0;
-static TQCString* _qcstring_senderObj = 0;
-static TQCString* _qcstring_signal = 0;
-static TQCString* _qcstring_slot = 0;
- jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, slot, &_qcstring_slot));
+static TTQCString* _qcstring_sender = 0;
+static TTQCString* _qcstring_senderObj = 0;
+static TTQCString* _qcstring_signal = 0;
+static TTQCString* _qcstring_slot = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot));
return xret;
}
@@ -55,9 +55,9 @@ Java_org_kde_koala_DCOPObject_dispose(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPObject_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
-static TQCString* _qcstring_signal = 0;
-static TQByteArray* _qbyteArray_data = 0;
- ((DCOPObject*) QtSupport::getQt(env, obj))->emitDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
+static TTQCString* _qcstring_signal = 0;
+static TTQByteArray* _qbyteArray_data = 0;
+ ((DCOPObject*) QtSupport::getQt(env, obj))->emitDCOPSignal((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return;
}
@@ -75,50 +75,50 @@ JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPObject_find(JNIEnv* env, jclass cls, jstring objId)
{
(void) cls;
-static TQCString* _qcstring_objId = 0;
- jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPObjectJBridge::find((const TQCString&)*(TQCString*) QtSupport::toQCString(env, objId, &_qcstring_objId)), "org.kde.koala.DCOPObjectInterface");
+static TTQCString* _qcstring_objId = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPObjectJBridge::find((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId)), "org.kde.koala.DCOPObjectInterface");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPObject_functionsDynamic(JNIEnv* env, jobject obj)
{
- QCStringList _qlist;
+ TQCStringList _qlist;
_qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->functionsDynamic();
- return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+ return (jobject) KDESupport::arrayWithTQCStringList(env, (TQCStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPObject_functions(JNIEnv* env, jobject obj)
{
- QCStringList _qlist;
+ TQCStringList _qlist;
_qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->functions();
- return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+ return (jobject) KDESupport::arrayWithTQCStringList(env, (TQCStringList*) &_qlist);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_hasObject(JNIEnv* env, jclass cls, jstring objId)
{
(void) cls;
-static TQCString* _qcstring_objId = 0;
- jboolean xret = (jboolean) DCOPObjectJBridge::hasObject((const TQCString&)*(TQCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
+static TTQCString* _qcstring_objId = 0;
+ jboolean xret = (jboolean) DCOPObjectJBridge::hasObject((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPObject_interfacesDynamic(JNIEnv* env, jobject obj)
{
- QCStringList _qlist;
+ TQCStringList _qlist;
_qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->interfacesDynamic();
- return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+ return (jobject) KDESupport::arrayWithTQCStringList(env, (TQCStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPObject_interfaces(JNIEnv* env, jobject obj)
{
- QCStringList _qlist;
+ TQCStringList _qlist;
_qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->interfaces();
- return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+ return (jobject) KDESupport::arrayWithTQCStringList(env, (TQCStringList*) &_qlist);
}
JNIEXPORT jboolean JNICALL
@@ -140,9 +140,9 @@ Java_org_kde_koala_DCOPObject_newDCOPObject__(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPObject_newDCOPObject__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring objId)
{
-static TQCString* _qcstring_objId = 0;
+static TTQCString* _qcstring_objId = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new DCOPObjectJBridge((const TQCString&)*(TQCString*) QtSupport::toQCString(env, objId, &_qcstring_objId)));
+ QtSupport::setQt(env, obj, new DCOPObjectJBridge((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -152,7 +152,7 @@ JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPObject_newDCOPObject__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject arg1)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new DCOPObjectJBridge((TQObject*) QtSupport::getQt(env, arg1)));
+ QtSupport::setQt(env, obj, new DCOPObjectJBridge((TTQObject*) QtSupport::getQt(env, arg1)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -161,47 +161,47 @@ Java_org_kde_koala_DCOPObject_newDCOPObject__Lorg_kde_qt_QObject_2(JNIEnv* env,
JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPObject_objId(JNIEnv* env, jobject obj)
{
- TQCString _qstring;
+ TTQCString _qstring;
_qstring = ((DCOPObject*) QtSupport::getQt(env, obj))->objId();
- return QtSupport::fromQCString(env, &_qstring);
+ return QtSupport::fromTQCString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPObject_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
- TQCString _qstring;
+ TTQCString _qstring;
(void) cls;
- _qstring = DCOPObjectJBridge::objectName((TQObject*) QtSupport::getQt(env, arg1));
- return QtSupport::fromQCString(env, &_qstring);
+ _qstring = DCOPObjectJBridge::objectName((TTQObject*) QtSupport::getQt(env, arg1));
+ return QtSupport::fromTQCString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
-static TQCString* _qcstring_fun = 0;
-static TQByteArray* _qbyteArray_data = 0;
-static TQCString* _qcstring_replyType = 0;
+static TTQCString* _qcstring_fun = 0;
+static TTQByteArray* _qbyteArray_data = 0;
+static TTQCString* _qcstring_replyType = 0;
if (_qcstring_replyType == 0) {
- _qcstring_replyType = new TQCString();
+ _qcstring_replyType = new TTQCString();
}
-static TQByteArray* _qbyteArray_replyData = 0;
- jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->processDynamic((const TQCString&)*(TQCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
- QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
+static TTQByteArray* _qbyteArray_replyData = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->processDynamic((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TTQCString&)*(TTQCString*) _qcstring_replyType, (TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
+ QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
-static TQCString* _qcstring_fun = 0;
-static TQByteArray* _qbyteArray_data = 0;
-static TQCString* _qcstring_replyType = 0;
+static TTQCString* _qcstring_fun = 0;
+static TTQByteArray* _qbyteArray_data = 0;
+static TTQCString* _qcstring_replyType = 0;
if (_qcstring_replyType == 0) {
- _qcstring_replyType = new TQCString();
+ _qcstring_replyType = new TTQCString();
}
-static TQByteArray* _qbyteArray_replyData = 0;
- jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->process((const TQCString&)*(TQCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
- QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
+static TTQByteArray* _qbyteArray_replyData = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->process((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TTQCString&)*(TTQCString*) _qcstring_replyType, (TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
+ QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
return xret;
}
@@ -215,8 +215,8 @@ Java_org_kde_koala_DCOPObject_setCallingDcopClient(JNIEnv* env, jobject obj, job
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPObject_setObjId(JNIEnv* env, jobject obj, jstring objId)
{
-static TQCString* _qcstring_objId = 0;
- jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->setObjId((const TQCString&)*(TQCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
+static TTQCString* _qcstring_objId = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->setObjId((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
return xret;
}