summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QDropSite.cpp
blob: 2bd8be34a9858554beead69a7dcf7ff8434321f6 (plain)
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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdropsite.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QDropSite.h>

class QDropSiteJBridge : public QDropSite
{
public:
	QDropSiteJBridge(QWidget* arg1) : QDropSite(arg1) {};
	~QDropSiteJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropSite_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDropSite_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropSite_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QDropSite*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDropSite_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropSite_newQDropSite(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDropSiteJBridge((QWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}