diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KShared.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KShared.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KShared.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KShared.java b/kdejava/koala/org/kde/koala/KShared.java new file mode 100644 index 00000000..33363152 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KShared.java @@ -0,0 +1,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 + KSharedPtr to control the lifetime of your object. + Specifically, all classes that derive from KShared have an internal + counter keeping track of how many other objects have a reference to + their object. If used with KSharedPtr, 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 KSharedPtr take care of that. Just derive + your class from KShared and forget about it. + @author Waldo Bastian <bastian@kde.org> + + @short Reference counting for shared objects. + +*/ +public class KShared implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KShared(Class dummy){} + + /** + Standard constructor. This will initialize the reference count + on this object to 0. + @short Standard constructor. + */ + public KShared() { + newKShared(); + } + private native void newKShared(); + /** + 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 KShared(KShared arg1) { + newKShared(arg1); + } + private native void newKShared(KShared arg1); +} |