summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KURLPixmapProvider.cpp
blob: c5683b41bed2f94bb9f85341d6bbc93d8c5cebbd (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kurlpixmapprovider.h>
#include <tqpixmap.h>
#include <tqstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KURLPixmapProvider.h>

class KURLPixmapProviderJBridge : public KURLPixmapProvider
{
public:
	KURLPixmapProviderJBridge() : KURLPixmapProvider() {};
	~KURLPixmapProviderJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLPixmapProvider_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KURLPixmapProvider_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static TQString* _qstring_url = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url))), "org.kde.qt.TQPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring url, jint size)
{
static TQString* _qstring_url = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url), (int) size)), "org.kde.qt.TQPixmap", TRUE);
	return xret;
}