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
|
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpixmap.h>
#include <kfileiconview.h>
#include <tqstring.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KFileIconViewItem.h>
class KFileIconViewItemJBridge : public KFileIconViewItem
{
public:
KFileIconViewItemJBridge(TTQIconView* arg1,const TTQString& arg2,const TTQPixmap& arg3,KFileItem* arg4) : KFileIconViewItem(arg1,arg2,arg3,arg4) {};
KFileIconViewItemJBridge(TTQIconView* arg1,KFileItem* arg2) : KFileIconViewItem(arg1,arg2) {};
~KFileIconViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileIconViewItem_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_koala_KFileIconViewItem_finalize(env, obj);
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileIconViewItem_fileInfo(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileIconViewItem*) QtSupport::getQt(env, obj))->fileInfo(), "org.kde.koala.KFileItem");
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileIconViewItem_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((TTQIconViewItem*)(KFileIconViewItem*)QtSupport::getQt(env, obj))->iconView() == 0) {
delete (KFileIconViewItem*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileIconViewItem_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileIconViewItem_newKFileIconViewItem__Lorg_kde_qt_QIconView_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject pixmap, jobject fi)
{
static TTQString* _qstring_text = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KFileIconViewItemJBridge((TTQIconView*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TTQPixmap&)*(const TTQPixmap*) QtSupport::getQt(env, pixmap), (KFileItem*) QtSupport::getQt(env, fi)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KFileIconViewItem_newKFileIconViewItem__Lorg_kde_qt_QIconView_2Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jobject fi)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KFileIconViewItemJBridge((TTQIconView*) QtSupport::getQt(env, parent), (KFileItem*) QtSupport::getQt(env, fi)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
|