File: KShared.cpp

package info (click to toggle)
kdebindings 4%3A3.3.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 89,700 kB
  • ctags: 686,563
  • sloc: cpp: 327,149; java: 66,933; xml: 29,912; perl: 22,893; python: 19,412; ansic: 14,454; ruby: 13,169; cs: 11,812; sh: 9,457; yacc: 2,300; makefile: 864; lex: 468; sql: 195; sed: 3
file content (34 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (3)
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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <ksharedptr.h>

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

class KSharedJBridge : public KShared
{
public:
	KSharedJBridge() : KShared() {};
	KSharedJBridge(const KShared& arg1) : KShared(arg1) {};
};

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShared_newKShared__Lorg_kde_koala_KShared_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSharedJBridge((const KShared&)*(const KShared*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}