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

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

public class TQUrlInfo implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TQUrlInfo(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 TQUrlInfo() {
		newTQUrlInfo();
	}
	private native void newTQUrlInfo();
	public TQUrlInfo(TQUrlOperator path, String file) {
		newTQUrlInfo(path,file);
	}
	private native void newTQUrlInfo(TQUrlOperator path, String file);
	public TQUrlInfo(TQUrlInfo ui) {
		newTQUrlInfo(ui);
	}
	private native void newTQUrlInfo(TQUrlInfo ui);
	public TQUrlInfo(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) {
		newTQUrlInfo(name,permissions,owner,group,size,lastModified,lastRead,isDir,isFile,isSymLink,isWritable,isReadable,isExecutable);
	}
	private native void newTQUrlInfo(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 TQUrlInfo(TQUrlInterface 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) {
		newTQUrlInfo(url,permissions,owner,group,size,lastModified,lastRead,isDir,isFile,isSymLink,isWritable,isReadable,isExecutable);
	}
	private native void newTQUrlInfo(TQUrlInterface 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(TQUrlInfo i);
	public static native boolean greaterThan(TQUrlInfo i1, TQUrlInfo i2, int sortBy);
	public static native boolean lessThan(TQUrlInfo i1, TQUrlInfo i2, int sortBy);
	public static native boolean equal(TQUrlInfo i1, TQUrlInfo 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();
}
