/***************************************************************************
                            KStaticDeleterBase.java -  description
                             -------------------
    begin                : Fri Nov 15 11:45:52 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Nov 15 11:45:52 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as published by*
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 Static deleters are used to manage static resources. They can register 
 themselves with @KGlobal. KGlobal will call {@link #destructObject} when 
 {@link KGlobal#deleteStaticDeleters} is called or when it the process 
 finishes.

 @short *
 Static deleters are used to manage static resources.
*/
public class  KStaticDeleterBase implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KStaticDeleterBase(Class dummy){}

	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Should destruct the resources managed by this KStaticDeleterBase.
 Usually you also want to call it in your destructor.

*/
	public native void destructObject();
}
