//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;
import java.util.Calendar;

public class QUrlInfo implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QUrlInfo(Class dummy){}

	public static final int ReadOwner = 00400;
	public static final int WriteOwner = 00200;
	public static final int ExeOwner = 00100;
	public static final int ReadGroup = 00040;
	public static final int WriteGroup = 00020;
	public static final int ExeGroup = 00010;
	public static final int ReadOther = 00004;
	public static final int WriteOther = 00002;
	public static final int ExeOther = 00001;

	public QUrlInfo() {
		newQUrlInfo();
	}
	private native void newQUrlInfo();
	public QUrlInfo(QUrlOperator path, String file) {
		newQUrlInfo(path,file);
	}
	private native void newQUrlInfo(QUrlOperator path, String file);
	public QUrlInfo(QUrlInfo ui) {
		newQUrlInfo(ui);
	}
	private native void newQUrlInfo(QUrlInfo ui);
	public QUrlInfo(String name, int permissions, String owner, String group, long size, Calendar lastModified, Calendar lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable) {
		newQUrlInfo(name,permissions,owner,group,size,lastModified,lastRead,isDir,isFile,isSymLink,isWritable,isReadable,isExecutable);
	}
	private native void newQUrlInfo(String name, int permissions, String owner, String group, long size, Calendar lastModified, Calendar lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable);
	public QUrlInfo(QUrlInterface url, int permissions, String owner, String group, long size, Calendar lastModified, Calendar lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable) {
		newQUrlInfo(url,permissions,owner,group,size,lastModified,lastRead,isDir,isFile,isSymLink,isWritable,isReadable,isExecutable);
	}
	private native void newQUrlInfo(QUrlInterface url, int permissions, String owner, String group, long size, Calendar lastModified, Calendar lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable);
	public native void setName(String name);
	public native void setDir(boolean b);
	public native void setFile(boolean b);
	public native void setSymLink(boolean b);
	public native void setOwner(String s);
	public native void setGroup(String s);
	public native void setSize(long size);
	public native void setWritable(boolean b);
	public native void setReadable(boolean b);
	public native void setPermissions(int p);
	public native void setLastModified(Calendar dt);
	public native boolean isValid();
	public native String name();
	public native int permissions();
	public native String owner();
	public native String group();
	public native long size();
	public native Calendar lastModified();
	public native Calendar lastRead();
	public native boolean isDir();
	public native boolean isFile();
	public native boolean isSymLink();
	public native boolean isWritable();
	public native boolean isReadable();
	public native boolean isExecutable();
	public native boolean op_equals(QUrlInfo i);
	public static native boolean greaterThan(QUrlInfo i1, QUrlInfo i2, int sortBy);
	public static native boolean lessThan(QUrlInfo i1, QUrlInfo i2, int sortBy);
	public static native boolean equal(QUrlInfo i1, QUrlInfo i2, int sortBy);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
