You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
664 lines
24 KiB
664 lines
24 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
#include <qobject.h>
|
|
#include <qstring.h>
|
|
#include <qvariant.h>
|
|
#include <qcstring.h>
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
#include <qtjava/QObject.h>
|
|
|
|
class QObjectJBridge : public QObject
|
|
{
|
|
public:
|
|
QObjectJBridge(QObject* arg1,const char* arg2) : QObject(arg1,arg2) {};
|
|
QObjectJBridge(QObject* arg1) : QObject(arg1) {};
|
|
QObjectJBridge() : QObject() {};
|
|
bool protected_activate_filters(QEvent* arg1) {
|
|
return (bool) QObject::activate_filters(arg1);
|
|
}
|
|
void protected_activate_signal(int arg1) {
|
|
QObject::activate_signal(arg1);
|
|
return;
|
|
}
|
|
void protected_activate_signal(int arg1,int arg2) {
|
|
QObject::activate_signal(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_activate_signal(int arg1,double arg2) {
|
|
QObject::activate_signal(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_activate_signal(int arg1,QString arg2) {
|
|
QObject::activate_signal(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_activate_signal_bool(int arg1,bool arg2) {
|
|
QObject::activate_signal_bool(arg1,arg2);
|
|
return;
|
|
}
|
|
const QObject* protected_sender() {
|
|
return (const QObject*) QObject::sender();
|
|
}
|
|
void protected_timerEvent(QTimerEvent* arg1) {
|
|
QObject::timerEvent(arg1);
|
|
return;
|
|
}
|
|
void protected_childEvent(QChildEvent* arg1) {
|
|
QObject::childEvent(arg1);
|
|
return;
|
|
}
|
|
void protected_customEvent(QCustomEvent* arg1) {
|
|
QObject::customEvent(arg1);
|
|
return;
|
|
}
|
|
void protected_connectNotify(const char* arg1) {
|
|
QObject::connectNotify(arg1);
|
|
return;
|
|
}
|
|
void protected_disconnectNotify(const char* arg1) {
|
|
QObject::disconnectNotify(arg1);
|
|
return;
|
|
}
|
|
bool protected_checkConnectArgs(const char* arg1,const QObject* arg2,const char* arg3) {
|
|
return (bool) QObject::checkConnectArgs(arg1,arg2,arg3);
|
|
}
|
|
static QCString protected_normalizeSignalSlot(const char* arg1) {
|
|
return (QCString) QObject::normalizeSignalSlot(arg1);
|
|
}
|
|
~QObjectJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
void removeChild(QObject* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
|
|
QObject::removeChild(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void customEvent(QCustomEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
|
|
QObject::customEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void timerEvent(QTimerEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
|
|
QObject::timerEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void childEvent(QChildEvent* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
|
|
QObject::childEvent(arg1);
|
|
}
|
|
return;
|
|
}
|
|
void insertChild(QObject* arg1) {
|
|
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
|
|
QObject::insertChild(arg1);
|
|
}
|
|
return;
|
|
}
|
|
bool eventFilter(QObject* object,QEvent* event) {
|
|
if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QObject",object,event)) {
|
|
return QObject::eventFilter(object,event);
|
|
} else {
|
|
return TRUE;
|
|
}
|
|
}
|
|
};
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_activate_1filters(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
jboolean xret = (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_filters((QEvent*) QtSupport::getQt(env, arg1));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_activate_1signal_1bool(JNIEnv* env, jobject obj, jint signal, jboolean arg2)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal_bool((int) signal, (bool) arg2);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_activate_1signal__I(JNIEnv* env, jobject obj, jint signal)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_activate_1signal__ID(JNIEnv* env, jobject obj, jint signal, jdouble arg2)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (double) arg2);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_activate_1signal__II(JNIEnv* env, jobject obj, jint signal, jint arg2)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (int) arg2);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_activate_1signal__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint signal, jstring arg2)
|
|
{
|
|
static QString* _qstring_arg2 = 0;
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (QString)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_blockSignals(JNIEnv* env, jobject obj, jboolean b)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->blockSignals((bool) b);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_checkConnectArgs(JNIEnv* env, jobject obj, jstring signal, jobject receiver, jstring member)
|
|
{
|
|
static QCString* _qstring_signal = 0;
|
|
jboolean xret = (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_checkConnectArgs((const char*) QtSupport::toCharString(env, signal, &_qstring_signal), (const QObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_childEvent(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_childEvent((QChildEvent*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_child__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring objName)
|
|
{
|
|
static QCString* _qstring_objName = 0;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObject*) QtSupport::getQt(env, obj))->child((const char*) QtSupport::toCharString(env, objName, &_qstring_objName)), "org.kde.qt.QObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_child__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring objName, jstring inheritsClass)
|
|
{
|
|
static QCString* _qstring_objName = 0;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObject*) QtSupport::getQt(env, obj))->child((const char*) QtSupport::toCharString(env, objName, &_qstring_objName), (const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass)), "org.kde.qt.QObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_child__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring objName, jstring inheritsClass, jboolean recursiveSearch)
|
|
{
|
|
static QCString* _qstring_objName = 0;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObject*) QtSupport::getQt(env, obj))->child((const char*) QtSupport::toCharString(env, objName, &_qstring_objName), (const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (bool) recursiveSearch), "org.kde.qt.QObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_children(JNIEnv* env, jobject obj)
|
|
{
|
|
const QObjectList* _qlist;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->children();
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_className(JNIEnv* env, jobject obj)
|
|
{
|
|
const char* _qstring;
|
|
_qstring = ((QObject*) QtSupport::getQt(env, obj))->className();
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_connectInternal(JNIEnv* env, jclass cls, jobject sender, jint signal_index, jobject receiver, jint membcode, jint member_index)
|
|
{
|
|
(void) cls;
|
|
QObjectJBridge::connectInternal((const QObject*) QtSupport::getQt(env, sender), (int) signal_index, (const QObject*) QtSupport::getQt(env, receiver), (int) membcode, (int) member_index);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_connectNotify(JNIEnv* env, jobject obj, jstring signal)
|
|
{
|
|
static QCString* _qstring_signal = 0;
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_connectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_customEvent(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((QCustomEvent*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_deleteLater(JNIEnv* env, jobject obj)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->deleteLater();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnectInternal(JNIEnv* env, jclass cls, jobject sender, jint signal_index, jobject receiver, jint membcode, jint member_index)
|
|
{
|
|
(void) cls;
|
|
jboolean xret = (jboolean) QObjectJBridge::disconnectInternal((const QObject*) QtSupport::getQt(env, sender), (int) signal_index, (const QObject*) QtSupport::getQt(env, receiver), (int) membcode, (int) member_index);
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_disconnectNotify(JNIEnv* env, jobject obj, jstring signal)
|
|
{
|
|
static QCString* _qstring_signal = 0;
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_disconnectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->disconnect();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring signal)
|
|
{
|
|
static QCString* _qstring_signal = 0;
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->disconnect((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring signal, jobject receiver)
|
|
{
|
|
static QCString* _qstring_signal = 0;
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->disconnect((const char*) QtSupport::toCharString(env, signal, &_qstring_signal), (const QObject*) QtSupport::getQt(env, receiver));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject receiver)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->disconnect((const QObject*) QtSupport::getQt(env, receiver));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject receiver, jstring member)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->disconnect((const QObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_dispose(JNIEnv* env, jobject obj)
|
|
{
|
|
Java_org_kde_qt_QObject_finalize(env, obj);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_dumpObjectInfo(JNIEnv* env, jobject obj)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->dumpObjectInfo();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_dumpObjectTree(JNIEnv* env, jobject obj)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->dumpObjectTree();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_event(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->event((QEvent*) QtSupport::getQt(env, arg1));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_finalize(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::allocatedInJavaWorld(env, obj) && ((QObject*)QtSupport::getQt(env, obj))->parent() == 0) {
|
|
delete (QObject*)QtSupport::getQt(env, obj);
|
|
QtSupport::setQt(env, obj, 0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_highPriority(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->highPriority();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_inherits(JNIEnv* env, jobject obj, jstring arg1)
|
|
{
|
|
static QCString* _qstring_arg1 = 0;
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->inherits((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_insertChild(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->insertChild((QObject*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_installEventFilter(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->installEventFilter((const QObject*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_isA(JNIEnv* env, jobject obj, jstring arg1)
|
|
{
|
|
static QCString* _qstring_arg1 = 0;
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->isA((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_isDisposed(JNIEnv* env, jobject obj)
|
|
{
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_isWidgetType(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->isWidgetType();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_killTimer(JNIEnv* env, jobject obj, jint id)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->killTimer((int) id);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_killTimers(JNIEnv* env, jobject obj)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->killTimers();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_metaObject(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObject*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_name__(JNIEnv* env, jobject obj)
|
|
{
|
|
const char* _qstring;
|
|
_qstring = ((QObject*) QtSupport::getQt(env, obj))->name();
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_name__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring defaultName)
|
|
{
|
|
const char* _qstring;
|
|
static QCString* _qstring_defaultName = 0;
|
|
_qstring = ((QObject*) QtSupport::getQt(env, obj))->name((const char*) QtSupport::toCharString(env, defaultName, &_qstring_defaultName));
|
|
return QtSupport::fromCharString(env, (char *) _qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_newQObject__(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new QObjectJBridge());
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_newQObject__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new QObjectJBridge((QObject*) QtSupport::getQt(env, parent)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_newQObject__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
|
|
{
|
|
static QCString* _qstring_name = 0;
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new QObjectJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_normalizeSignalSlot(JNIEnv* env, jclass cls, jstring signalSlot)
|
|
{
|
|
QCString _qstring;
|
|
(void) cls;
|
|
static QCString* _qstring_signalSlot = 0;
|
|
_qstring = QObjectJBridge::protected_normalizeSignalSlot((const char*) QtSupport::toCharString(env, signalSlot, &_qstring_signalSlot));
|
|
return QtSupport::fromQCString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_objectTrees(JNIEnv* env, jclass cls)
|
|
{
|
|
const QObjectList* _qlist;
|
|
(void) cls;
|
|
_qlist = QObjectJBridge::objectTrees();
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_parent(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObject*) QtSupport::getQt(env, obj))->parent(), "org.kde.qt.QObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_property(JNIEnv* env, jobject obj, jstring name)
|
|
{
|
|
static QCString* _qstring_name = 0;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((QObject*) QtSupport::getQt(env, obj))->property((const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QVariant", TRUE);
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_queryList__(JNIEnv* env, jobject obj)
|
|
{
|
|
QObjectList* _qlist;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->queryList();
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_queryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring inheritsClass)
|
|
{
|
|
QObjectList* _qlist;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->queryList((const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass));
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_queryList__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring inheritsClass, jstring objName)
|
|
{
|
|
QObjectList* _qlist;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
static QCString* _qstring_objName = 0;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->queryList((const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (const char*) QtSupport::toCharString(env, objName, &_qstring_objName));
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_queryList__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring inheritsClass, jstring objName, jboolean regexpMatch)
|
|
{
|
|
QObjectList* _qlist;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
static QCString* _qstring_objName = 0;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->queryList((const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (const char*) QtSupport::toCharString(env, objName, &_qstring_objName), (bool) regexpMatch);
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_queryList__Ljava_lang_String_2Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring inheritsClass, jstring objName, jboolean regexpMatch, jboolean recursiveSearch)
|
|
{
|
|
QObjectList* _qlist;
|
|
static QCString* _qstring_inheritsClass = 0;
|
|
static QCString* _qstring_objName = 0;
|
|
_qlist = ((QObject*) QtSupport::getQt(env, obj))->queryList((const char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (const char*) QtSupport::toCharString(env, objName, &_qstring_objName), (bool) regexpMatch, (bool) recursiveSearch);
|
|
return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList*) _qlist);
|
|
}
|
|
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_kde_qt_QObject_registerUserData(JNIEnv* env, jclass cls)
|
|
{
|
|
(void) cls;
|
|
(void) env;
|
|
jint xret = (jint) QObjectJBridge::registerUserData();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_removeChild(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->removeChild((QObject*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_removeEventFilter(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObject*) QtSupport::getQt(env, obj))->removeEventFilter((const QObject*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_qt_QObject_sender(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_sender(), "org.kde.qt.QObject");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_setName(JNIEnv* env, jobject obj, jstring name)
|
|
{
|
|
static QCString* _qstring_name = 0;
|
|
((QObject*) QtSupport::getQt(env, obj))->setName((const char*) QtSupport::toCharString(env, name, &_qstring_name));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_setProperty(JNIEnv* env, jobject obj, jstring name, jobject value)
|
|
{
|
|
static QCString* _qstring_name = 0;
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->setProperty((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const QVariant&)*(const QVariant*) QtSupport::getQt(env, value));
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_signalsBlocked(JNIEnv* env, jobject obj)
|
|
{
|
|
jboolean xret = (jboolean) ((QObject*) QtSupport::getQt(env, obj))->signalsBlocked();
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_kde_qt_QObject_startTimer(JNIEnv* env, jobject obj, jint interval)
|
|
{
|
|
jint xret = (jint) ((QObject*) QtSupport::getQt(env, obj))->startTimer((int) interval);
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_timerEvent(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_timerEvent((QTimerEvent*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
|
|
{
|
|
QString _qstring;
|
|
(void) cls;
|
|
static QCString* _qstring_arg1 = 0;
|
|
_qstring = QObjectJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
|
|
return QtSupport::fromQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_qt_QObject_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
|
|
{
|
|
QString _qstring;
|
|
(void) cls;
|
|
static QCString* _qstring_arg1 = 0;
|
|
static QCString* _qstring_arg2 = 0;
|
|
_qstring = QObjectJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
|
|
return QtSupport::fromQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_connect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject sender, jstring signal, jobject receiver, jstring member)
|
|
{
|
|
(void) cls;
|
|
return (jboolean) QtSupport::connect(env, sender, signal, receiver, member);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_connect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject sender, jstring signal, jstring member)
|
|
{
|
|
return (jboolean) QtSupport::connect(env, sender, signal, obj, member);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jclass cls, jobject sender, jstring signal, jobject receiver, jstring member)
|
|
{
|
|
(void) cls;
|
|
return (jboolean) QtSupport::disconnect(env, sender, signal, receiver, member);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_qt_QObject_disconnect__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring signal, jobject receiver, jstring member)
|
|
{
|
|
return (jboolean) QtSupport::disconnect(env, obj, signal, receiver, member);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_qt_QObject_emit(JNIEnv* env, jobject obj, jstring signal, jobjectArray args)
|
|
{
|
|
QtSupport::emitJavaSignal(env, obj, signal, args);
|
|
return;
|
|
}
|
|
|