summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KFilePlugin.cpp
blob: 00a2eb13379bf481f77af21d54d457ef20b9f335 (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kfilemetainfo.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFilePlugin_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KFilePlugin*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFilePlugin_createValidator(JNIEnv* env, jobject obj, jstring mimeType, jstring group, jstring key, jobject parent, jstring name)
{
static TQString* _qstring_mimeType = 0;
static TQString* _qstring_group = 0;
static TQString* _qstring_key = 0;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilePlugin*) QtSupport::getQt(env, obj))->createValidator((const TQString&)*(TQString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType), (const TQString&)*(TQString*) QtSupport::toQString(env, group, &_qstring_group), (const TQString&)*(TQString*) QtSupport::toQString(env, key, &_qstring_key), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.qt.TQValidator");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFilePlugin_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilePlugin*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_readInfo__Lorg_kde_koala_KFileMetaInfo_2(JNIEnv* env, jobject obj, jobject info)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->readInfo((KFileMetaInfo&)*(KFileMetaInfo*) QtSupport::getQt(env, info));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_readInfo__Lorg_kde_koala_KFileMetaInfo_2I(JNIEnv* env, jobject obj, jobject info, jint what)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->readInfo((KFileMetaInfo&)*(KFileMetaInfo*) QtSupport::getQt(env, info), (uint) what);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_writeInfo(JNIEnv* env, jobject obj, jobject info)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->writeInfo((const KFileMetaInfo&)*(const KFileMetaInfo*) QtSupport::getQt(env, info));
	return xret;
}