summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KShared.java
blob: 853df7e0349dcde77825f4382ee33d9d709e31ac (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 Reference counting for shared objects.  If you derive your object
 from this class, then you may use it in conjunction with
 TDESharedPtr to control the lifetime of your object.
 Specifically, all classes that derive from TDEShared have an internal
 counter keeping track of how many other objects have a reference to
 their object.  If used with TDESharedPtr, then your object will
 not be deleted until all references to the object have been
 released.
 You should probably not ever use any of the methods in this class
 directly -- let the TDESharedPtr take care of that.  Just derive
 your class from TDEShared and forget about it.
		@author Waldo Bastian <bastian@kde.org>
 
		@short    Reference counting for shared objects.

*/
public class TDEShared implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TDEShared(Class dummy){}

	/**	
		 Standard constructor.  This will initialize the reference count
		 on this object to 0.
		    		@short    Standard constructor.
	*/
	public TDEShared() {
		newTDEShared();
	}
	private native void newTDEShared();
	/**	
		 Copy constructor.  This will <b>not</b> actually copy the objects
		 but it will initialize the reference count on this object to 0.
		    		@short    Copy constructor.
	*/
	public TDEShared(TDEShared arg1) {
		newTDEShared(arg1);
	}
	private native void newTDEShared(TDEShared arg1);
}