1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqpixmap.h>
#include <tqstring.h>
#include <kfiledetailview.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KFileListViewItem.h>
class KFileListViewItemJBridge : public KFileListViewItem
{
public:
KFileListViewItemJBridge(TQListView* arg1,const TQString& arg2,const TQPixmap& arg3,KFileItem* arg4) : KFileListViewItem(arg1,arg2,arg3,arg4) {};
KFileListViewItemJBridge(TQListView* arg1,KFileItem* arg2) : KFileListViewItem(arg1,arg2) {};
KFileListViewItemJBridge(TQListView* arg1,const TQString& arg2,const TQPixmap& arg3,KFileItem* arg4,TQListViewItem* arg5) : KFileListViewItem(arg1,arg2,arg3,arg4,arg5) {};
~KFileListViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_koala_KFileListViewItem_finalize(env, obj);
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileListViewItem_fileInfo(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileListViewItem*) QtSupport::getQt(env, obj))->fileInfo(), "org.kde.koala.KFileItem");
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQListViewItem*)(KFileListViewItem*)QtSupport::getQt(env, obj))->parent() == 0 && ((TQListViewItem*)(KFileListViewItem*)QtSupport::getQt(env, obj))->listView() == 0) {
delete (KFileListViewItem*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_init(JNIEnv* env, jobject obj)
{
((KFileListViewItem*) QtSupport::getQt(env, obj))->init();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileListViewItem_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileListViewItem_key(JNIEnv* env, jobject obj, jint arg1, jboolean arg2)
{
TQString _qstring;
_qstring = ((KFileListViewItem*) QtSupport::getQt(env, obj))->key((int) arg1, (bool) arg2);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_newKFileListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi)
{
static TQString* _qstring_text = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KFileListViewItemJBridge((TQListView*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_newKFileListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KFileItem_2Lorg_kde_qt_QListViewItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi, jobject after)
{
static TQString* _qstring_text = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KFileListViewItemJBridge((TQListView*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi), (TQListViewItem*) QtSupport::getQt(env, after)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_newKFileListViewItem__Lorg_kde_qt_QListView_2Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jobject fi)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KFileListViewItemJBridge((TQListView*) QtSupport::getQt(env, parent), (KFileItem*) QtSupport::getQt(env, fi)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileListViewItem_rect(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((KFileListViewItem*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TQRect", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_setKey(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
((KFileListViewItem*) QtSupport::getQt(env, obj))->setKey((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
return;
}
|