com.trolltech.qt
Class QNativePointer.AutoDeleteMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.QNativePointer.AutoDeleteMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Enclosing class:
QNativePointer

public static final class QNativePointer.AutoDeleteMode
extends java.lang.Enum

The AutoDeleteMode enum describes how garbage collection of the QNativePointer handles the deletion of the native pointer. By default, the mode is set to Delete or DeleteArray.

See Also:
Serialized Form

Field Summary
static QNativePointer.AutoDeleteMode Delete
          The pointer is allocated with c++ new.
static QNativePointer.AutoDeleteMode DeleteArray
          This must be the mode of deletion if the pointer is an array.
static QNativePointer.AutoDeleteMode Free
          Free must be used if the pointer was allocated using c++ free().
static QNativePointer.AutoDeleteMode None
          Use this deletion mode if you do not want to delete the c++ pointer when the QNativePointer object is garbage collected.
 
Method Summary
static QNativePointer.AutoDeleteMode valueOf(java.lang.String name)
           
static QNativePointer.AutoDeleteMode[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Free

public static final QNativePointer.AutoDeleteMode Free
Free must be used if the pointer was allocated using c++ free(). Currently, no pointers in Qt Jambi is allocated in this manner.


Delete

public static final QNativePointer.AutoDeleteMode Delete
The pointer is allocated with c++ new. This should be used for all pointers in Qt Jambi


DeleteArray

public static final QNativePointer.AutoDeleteMode DeleteArray
This must be the mode of deletion if the pointer is an array.


None

public static final QNativePointer.AutoDeleteMode None
Use this deletion mode if you do not want to delete the c++ pointer when the QNativePointer object is garbage collected.

Method Detail

values

public static QNativePointer.AutoDeleteMode[] values()

valueOf

public static QNativePointer.AutoDeleteMode valueOf(java.lang.String name)