// emitting Virtual overrides (virtualFunctions) void QtJambiShell_QDeclarativeListProperty::append(QObject* object0) { QTJAMBI_DEBUG_TRACE("(shell) entering: QDeclarativeListProperty::append(jobject object)"); jmethodID method_id = m_vtable->method(0); if (method_id) { JNIEnv *__jni_env = qtjambi_current_environment(); if (!__jni_env) { QtjambiDeclarativeListProperty::append(object0); return; } __jni_env->PushLocalFrame(100); jobject __java_return_value_object = m_link->javaObject(__jni_env); if(__jni_env->IsSameObject(__java_return_value_object, 0) == JNI_FALSE) { QTJAMBI_EXCEPTION_CHECK(__jni_env); jobject jobject0 = qtjambi_from_QObject(__jni_env, object0); QTJAMBI_EXCEPTION_CHECK(__jni_env); __jni_env->CallVoidMethod(__java_return_value_object, method_id, jobject0); qtjambi_exception_check(__jni_env); } else { qtjambishell_throw_nullpointerexception(__jni_env, "QDeclarativeListProperty::append(jobject object)"); } qtjambi_exception_check(__jni_env); __jni_env->PopLocalFrame(0); QTJAMBI_DEBUG_TRACE("(shell) -> leaving: QDeclarativeListProperty::append(jobject object)"); } else { QTJAMBI_DEBUG_TRACE("(shell) -> super() and leaving: QDeclarativeListProperty::append(jobject object)"); QtjambiDeclarativeListProperty::append(object0); } }
QObject* QtJambiShell_QDeclarativeListProperty::object() { QTJAMBI_DEBUG_TRACE("(shell) entering: QDeclarativeListProperty::object()"); jmethodID method_id = m_vtable->method(8); if (method_id) { JNIEnv *__jni_env = qtjambi_current_environment(); if (!__jni_env) { return QtjambiDeclarativeListProperty::object(); } __jni_env->PushLocalFrame(100); QObject* __qt_return_value; jobject __java_return_value_object = m_link->javaObject(__jni_env); if(__jni_env->IsSameObject(__java_return_value_object, 0) == JNI_FALSE) { jobject __java_return_value = __jni_env->CallObjectMethod(__java_return_value_object, method_id); qtjambi_exception_check(__jni_env); QObject* __qt_return_value_tmp = (QObject* ) qtjambi_to_qobject(__jni_env, __java_return_value); QTJAMBI_EXCEPTION_CHECK(__jni_env); __qt_return_value = __qt_return_value_tmp; } else { qtjambishell_throw_nullpointerexception(__jni_env, "QDeclarativeListProperty::object()"); __qt_return_value = 0; } qtjambi_exception_check(__jni_env); __jni_env->PopLocalFrame(0); QTJAMBI_DEBUG_TRACE("(shell) -> leaving: QDeclarativeListProperty::object()"); return __qt_return_value; } else { QTJAMBI_DEBUG_TRACE("(shell) -> super() and leaving: QDeclarativeListProperty::object()"); return QtjambiDeclarativeListProperty::object(); } }
// QDeclarativeListProperty::append(jobject object) extern "C" Q_DECL_EXPORT void JNICALL QTJAMBI_FUNCTION_PREFIX(Java_org_qtjambi_qt_Declarative_QDeclarativeListProperty__1_1qt_1append_1QObject__JLorg_qtjambi_qt_core_QObject_2) (JNIEnv *__jni_env, jobject, jlong __this_nativeId, jobject object0) { QTJAMBI_DEBUG_TRACE("(native) entering: QDeclarativeListProperty::append(jobject object)"); Q_UNUSED(__jni_env) Q_UNUSED(__this_nativeId) QTJAMBI_EXCEPTION_CHECK(__jni_env); QtJambiShell_QDeclarativeListProperty *__qt_this = (QtJambiShell_QDeclarativeListProperty *) qtjambi_from_jlong(__this_nativeId); QTJAMBI_EXCEPTION_CHECK(__jni_env); Q_ASSERT(__qt_this); bool __do_static_call = __this_nativeId ? ((QtJambiLink *) __this_nativeId)->createdByJava() : false; __qt_this->__override_append(qtjambi_to_qobject(__jni_env, object0), __do_static_call); QTJAMBI_DEBUG_TRACE("(native) -> leaving: QDeclarativeListProperty::append(jobject object)"); }
extern "C" Q_DECL_EXPORT jobject JNICALL QTJAMBI_FUNCTION_PREFIX(Java_org_qtjambi_qt_Declarative_QDeclarativeListProperty__1_1qt_1clone) (JNIEnv *__jni_env, jobject, jlong __this_nativeId) { QtjambiDeclarativeListProperty *__qt_this = (QtjambiDeclarativeListProperty *) qtjambi_from_jlong(__this_nativeId); QTJAMBI_EXCEPTION_CHECK(__jni_env); Q_ASSERT(__qt_this); QtjambiDeclarativeListProperty *res = __qt_this; return qtjambi_from_object(__jni_env, res, "QDeclarativeListProperty", "org/qtjambi/qt/declarative/", true); }
// QDeclarativeListProperty::QtjambiDeclarativeListProperty(QObject * o, QList<QObject > & list) extern "C" Q_DECL_EXPORT void JNICALL QTJAMBI_FUNCTION_PREFIX(Java_org_qtjambi_qt_Declarative_QDeclarativeListProperty__1_1qt_1QDeclarativeListProperty_1QObject_1List__JLjava_util_List_2) (JNIEnv *__jni_env, jobject __jni_object, jlong o0, jobject list1) { QTJAMBI_DEBUG_TRACE("(native) entering: QDeclarativeListProperty::QtjambiDeclarativeListProperty(QObject * o, QList<QObject > & list)"); Q_UNUSED(__jni_env) Q_UNUSED(__jni_object) QObject* __qt_o0 = (QObject* ) qtjambi_from_jlong(o0); QTJAMBI_EXCEPTION_CHECK(__jni_env); QList<QObject*> __qt_list1; StaticCache *sc = StaticCache::instance(); sc->resolveQtJambiObject(); if (list1 != 0) { jobjectArray __qt__array = qtjambi_collection_toArray(__jni_env, list1); jsize __qt__size = __jni_env->GetArrayLength(__qt__array); for (int i=0; i<__qt__size; ++i) { jobject __java_element = __jni_env->GetObjectArrayElement(__qt__array, i); __qt_list1 << qtjambi_to_qobject(__jni_env, __java_element); QTJAMBI_EXCEPTION_CHECK(__jni_env); } } QTJAMBI_EXCEPTION_CHECK(__jni_env); QTJAMBI_EXCEPTION_CHECK(__jni_env); QtJambiShell_QDeclarativeListProperty *__qt_this = new QtJambiShell_QDeclarativeListProperty((QObject* )__qt_o0, __qt_list1); QtJambiLink *__qt_java_link = qtjambi_construct_object(__jni_env, __jni_object, __qt_this, "QtjambiDeclarativeListProperty"); if (!__qt_java_link) { qWarning("object construction failed for type: QtjambiDeclarativeListProperty"); return; } __qt_java_link->setJavaOwnership(__jni_env, __jni_object); __qt_this->m_link = __qt_java_link; __qt_this->m_link->setCreatedByJava(true); __qt_this->m_vtable = qtjambi_setup_vtable(__jni_env, __jni_object, 0, 0, 0, // no inconsistent functions qtjambi_method_count, qtjambi_method_names, qtjambi_method_signatures ); QTJAMBI_DEBUG_TRACE("(native) -> leaving: QDeclarativeListProperty::QtjambiDeclarativeListProperty(QObject * o, QList<jobject > & list)"); }
// QDeclarativeListProperty::object() extern "C" Q_DECL_EXPORT jobject JNICALL QTJAMBI_FUNCTION_PREFIX(Java_org_qtjambi_qt_Declarative_QDeclarativeListProperty__1_1qt_1object__J) (JNIEnv *__jni_env, jobject, jlong __this_nativeId) { QTJAMBI_DEBUG_TRACE("(native) entering: QDeclarativeListProperty::object()"); Q_UNUSED(__jni_env) Q_UNUSED(__this_nativeId) QtJambiShell_QDeclarativeListProperty *__qt_this = (QtJambiShell_QDeclarativeListProperty *) qtjambi_from_jlong(__this_nativeId); QTJAMBI_EXCEPTION_CHECK(__jni_env); Q_ASSERT(__qt_this); bool __do_static_call = __this_nativeId ? ((QtJambiLink *) __this_nativeId)->createdByJava() : false; QObject* __qt_return_value = __qt_this->__override_object(__do_static_call); jobject __java_return_value = qtjambi_from_qobject(__jni_env, (QObject *) __qt_return_value, "QObject", "org/qtjambi/qt/core/"); QTJAMBI_EXCEPTION_CHECK(__jni_env); QTJAMBI_DEBUG_TRACE("(native) -> leaving: QDeclarativeListProperty::object()"); return __java_return_value; }
static QList<JObjectWrapper> convertJavaSequenceToCpp(JNIEnv *env, jobject javaSequence) { jobjectArray array = qtjambi_collection_toArray(env, javaSequence); jsize arraySize = env->GetArrayLength(array); QList<JObjectWrapper> returned; for (int i=0; i<arraySize; ++i) { jobject javaElement = env->GetObjectArrayElement(array, i); JObjectWrapper wrapper = qtjambi_to_jobjectwrapper(env, javaElement); QTJAMBI_EXCEPTION_CHECK(env); returned << wrapper; } return returned; }