summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KImageIO.cpp
blob: 7c58e5d13325b5527cea6729ffc47dc21d4f0a14 (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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kimageio.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class KImageIOJBridge : public KImageIO
{
public:
	KImageIOJBridge() : KImageIO() {};
	~KImageIOJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KImageIO_canRead(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQString* _qstring_type = 0;
	jboolean xret = (jboolean) KImageIOJBridge::canRead((const TQString&)*(TQString*) QtSupport::toQString(env, type, &_qstring_type));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KImageIO_canWrite(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQString* _qstring_type = 0;
	jboolean xret = (jboolean) KImageIOJBridge::canWrite((const TQString&)*(TQString*) QtSupport::toQString(env, type, &_qstring_type));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KImageIO_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KImageIO_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KImageIO_isSupported__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring _mimeType)
{
	(void) cls;
static TQString* _qstring__mimeType = 0;
	jboolean xret = (jboolean) KImageIOJBridge::isSupported((const TQString&)*(TQString*) QtSupport::toQString(env, _mimeType, &_qstring__mimeType));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KImageIO_isSupported__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring _mimeType, jint _mode)
{
	(void) cls;
static TQString* _qstring__mimeType = 0;
	jboolean xret = (jboolean) KImageIOJBridge::isSupported((const TQString&)*(TQString*) QtSupport::toQString(env, _mimeType, &_qstring__mimeType), (KImageIO::Mode) _mode);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_mimeType(JNIEnv* env, jclass cls, jstring _filename)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring__filename = 0;
	_qstring = KImageIOJBridge::mimeType((const TQString&)*(TQString*) QtSupport::toQString(env, _filename, &_qstring__filename));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KImageIO_mimeTypes__(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::mimeTypes();
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KImageIO_mimeTypes__I(JNIEnv* env, jclass cls, jint mode)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::mimeTypes((KImageIO::Mode) mode);
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_pattern__(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KImageIOJBridge::pattern();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_pattern__I(JNIEnv* env, jclass cls, jint mode)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KImageIOJBridge::pattern((KImageIO::Mode) mode);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KImageIO_registerFormats(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KImageIOJBridge::registerFormats();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_suffix(JNIEnv* env, jclass cls, jstring type)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_type = 0;
	_qstring = KImageIOJBridge::suffix((const TQString&)*(TQString*) QtSupport::toQString(env, type, &_qstring_type));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_typeForMime(JNIEnv* env, jclass cls, jstring mimeType)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_mimeType = 0;
	_qstring = KImageIOJBridge::typeForMime((const TQString&)*(TQString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KImageIO_type(JNIEnv* env, jclass cls, jstring filename)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KImageIOJBridge::type((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KImageIO_types__(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::types();
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KImageIO_types__I(JNIEnv* env, jclass cls, jint mode)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::types((KImageIO::Mode) mode);
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}