summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QUrlInfo.java
blob: bc33f52287bf5644ed38d1df1c0d1b5ce638098d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.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();
}