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.cpp222
1 files changed, 222 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/DCOPObject.cpp b/kdejava/koala/kdejava/DCOPObject.cpp
new file mode 100644
index 00000000..6b1b0900
--- /dev/null
+++ b/kdejava/koala/kdejava/DCOPObject.cpp
@@ -0,0 +1,222 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <dcopclient.h>
+#include <dcopobject.h>
+#include <qcstring.h>
+
+#include <qtjava/QtSupport.h>
+#include <kdejava/KDESupport.h>
+#include <kdejava/DCOPObject.h>
+
+class DCOPObjectJBridge : public DCOPObject
+{
+public:
+ DCOPObjectJBridge() : DCOPObject() {};
+ DCOPObjectJBridge(QObject* arg1) : DCOPObject(arg1) {};
+ DCOPObjectJBridge(const QCString& arg1) : DCOPObject(arg1) {};
+ ~DCOPObjectJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_DCOPObject_callingDcopClient(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((DCOPObject*) QtSupport::getQt(env, obj))->callingDcopClient(), "org.kde.koala.DCOPClient");
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_DCOPObject_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot, jboolean Volatile)
+{
+static QCString* _qcstring_sender = 0;
+static QCString* _qcstring_senderObj = 0;
+static QCString* _qcstring_signal = 0;
+static QCString* _qcstring_slot = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->connectDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const QCString&)*(QCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QCString&)*(QCString*) QtSupport::toQCString(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 QCString* _qcstring_sender = 0;
+static QCString* _qcstring_senderObj = 0;
+static QCString* _qcstring_signal = 0;
+static QCString* _qcstring_slot = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const QCString&)*(QCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QCString&)*(QCString*) QtSupport::toQCString(env, slot, &_qcstring_slot));
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_koala_DCOPObject_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
+{
+static QCString* _qcstring_signal = 0;
+static QByteArray* _qbyteArray_data = 0;
+ ((DCOPObject*) QtSupport::getQt(env, obj))->emitDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (DCOPObject*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_DCOPObject_find(JNIEnv* env, jclass cls, jstring objId)
+{
+ (void) cls;
+static QCString* _qcstring_objId = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPObjectJBridge::find((const QCString&)*(QCString*) QtSupport::toQCString(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;
+ _qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->functionsDynamic();
+ return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_DCOPObject_functions(JNIEnv* env, jobject obj)
+{
+ QCStringList _qlist;
+ _qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->functions();
+ return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_DCOPObject_hasObject(JNIEnv* env, jclass cls, jstring objId)
+{
+ (void) cls;
+static QCString* _qcstring_objId = 0;
+ jboolean xret = (jboolean) DCOPObjectJBridge::hasObject((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_DCOPObject_interfacesDynamic(JNIEnv* env, jobject obj)
+{
+ QCStringList _qlist;
+ _qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->interfacesDynamic();
+ return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_koala_DCOPObject_interfaces(JNIEnv* env, jobject obj)
+{
+ QCStringList _qlist;
+ _qlist = ((DCOPObject*) QtSupport::getQt(env, obj))->interfaces();
+ return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_DCOPObject_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_newDCOPObject__(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new DCOPObjectJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_newDCOPObject__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring objId)
+{
+static QCString* _qcstring_objId = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new DCOPObjectJBridge((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+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((QObject*) QtSupport::getQt(env, arg1)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_koala_DCOPObject_objId(JNIEnv* env, jobject obj)
+{
+ QCString _qstring;
+ _qstring = ((DCOPObject*) QtSupport::getQt(env, obj))->objId();
+ return QtSupport::fromQCString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_koala_DCOPObject_objectName(JNIEnv* env, jclass cls, jobject arg1)
+{
+ QCString _qstring;
+ (void) cls;
+ _qstring = DCOPObjectJBridge::objectName((QObject*) QtSupport::getQt(env, arg1));
+ return QtSupport::fromQCString(env, &_qstring);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_DCOPObject_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
+{
+static QCString* _qcstring_fun = 0;
+static QByteArray* _qbyteArray_data = 0;
+static QCString* _qcstring_replyType = 0;
+ if (_qcstring_replyType == 0) {
+ _qcstring_replyType = new QCString();
+ }
+static QByteArray* _qbyteArray_replyData = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->processDynamic((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
+ QtSupport::fromQCStringToStringBuffer(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 QCString* _qcstring_fun = 0;
+static QByteArray* _qbyteArray_data = 0;
+static QCString* _qcstring_replyType = 0;
+ if (_qcstring_replyType == 0) {
+ _qcstring_replyType = new QCString();
+ }
+static QByteArray* _qbyteArray_replyData = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->process((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
+ QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_koala_DCOPObject_setCallingDcopClient(JNIEnv* env, jobject obj, jobject arg1)
+{
+ ((DCOPObject*) QtSupport::getQt(env, obj))->setCallingDcopClient((DCOPClient*) QtSupport::getQt(env, arg1));
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_koala_DCOPObject_setObjId(JNIEnv* env, jobject obj, jstring objId)
+{
+static QCString* _qcstring_objId = 0;
+ jboolean xret = (jboolean) ((DCOPObject*) QtSupport::getQt(env, obj))->setObjId((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
+ return xret;
+}
+