summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KArchiveDirectory.cpp
blob: 951f9d0f3b2abbc1b55bba43ac06f9efe697b0ef (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <karchive.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class KArchiveDirectoryJBridge : public KArchiveDirectory
{
public:
	KArchiveDirectoryJBridge(KArchive* arg1,const TQString& arg2,int arg3,int arg4,const TQString& arg5,const TQString& arg6,const TQString& arg7) : KArchiveDirectory(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	~KArchiveDirectoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveDirectory_addEntry(JNIEnv* env, jobject obj, jobject arg1)
{
	((KArchiveDirectory*) QtSupport::getQt(env, obj))->addEntry((KArchiveEntry*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveDirectory_copyTo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dest)
{
static TQString* _qstring_dest = 0;
	((KArchiveDirectory*) QtSupport::getQt(env, obj))->copyTo((const TQString&)*(TQString*) QtSupport::toTQString(env, dest, &_qstring_dest));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveDirectory_copyTo__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dest, jboolean recursive)
{
static TQString* _qstring_dest = 0;
	((KArchiveDirectory*) QtSupport::getQt(env, obj))->copyTo((const TQString&)*(TQString*) QtSupport::toTQString(env, dest, &_qstring_dest), (bool) recursive);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveDirectory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KArchiveDirectory_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KArchiveDirectory_entries(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KArchiveDirectory*) QtSupport::getQt(env, obj))->entries();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KArchiveDirectory_entry(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KArchiveDirectory*) QtSupport::getQt(env, obj))->entry((TQString)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.kde.koala.KArchiveEntry");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchiveDirectory_isDirectory(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchiveDirectory*) QtSupport::getQt(env, obj))->isDirectory();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveDirectory_newKArchiveDirectory(JNIEnv* env, jobject obj, jobject archive, jstring name, jint access, jint date, jstring user, jstring group, jstring symlink)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
static TQString* _qstring_symlink = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KArchiveDirectoryJBridge((KArchive*) QtSupport::getQt(env, archive), (const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (int) access, (int) date, (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (const TQString&)*(TQString*) QtSupport::toTQString(env, symlink, &_qstring_symlink)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}