/***************************************************************************
                            KArchiveEntry.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU 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;

/**


 @short Base class for the archive-file's directory structure.

*/
public class  KArchiveEntry implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KArchiveEntry(Class dummy){}

	private native void newKArchiveEntry( KArchive archive, String name, int access, int date, String user, String group, String symlink);
	public KArchiveEntry( KArchive archive, String name, int access, int date, String user, String group, String symlink) {
		newKArchiveEntry( archive, name, access, date, user, group, symlink);
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Creation date of the file.
     
*/
	public native Calendar datetime();
	public native int date();

/** 
 Name of the file without path.
     
*/
	public native String name();

/** 
 The permissions and mode flags as returned by the stat() function
 in st_mode.
     
*/
	public native long permissions();

/** 
 User who created the file.
     
*/
	public native String user();

/** 
 Group of the user who created the file.
     
*/
	public native String group();

/** 
 Symlink if there is one
     
*/
	public native String symlink();

/** 

*/
	public native boolean isFile();

/** 

*/
	public native boolean isDirectory();
	protected native KArchive archive();
}
