summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QUrlInfo.java
blob: 6d577eb9285498fff0173f89f22a38a8f86c6a37 (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 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();
}