org.kde.koala
Class KShared

java.lang.Object
  extended by org.kde.koala.KShared
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
KMountPoint, KSycocaEntry

public class KShared
extends java.lang.Object
implements 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

Constructor Summary
  KShared()
          Standard constructor.
protected KShared(java.lang.Class dummy)
           
  KShared(KShared arg1)
          Copy constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KShared

protected KShared(java.lang.Class dummy)

KShared

public KShared()
Standard constructor. This will initialize the reference count on this object to 0.


KShared

public KShared(KShared arg1)
Copy constructor. This will not actually copy the objects but it will initialize the reference count on this object to 0.