You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.0 KiB
108 lines
3.0 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
11 years ago
|
package org.trinitydesktop.koala;
|
||
15 years ago
|
|
||
11 years ago
|
import org.trinitydesktop.qt.Qt;
|
||
|
import org.trinitydesktop.qt.QtSupport;
|
||
15 years ago
|
import java.util.Calendar;
|
||
|
|
||
|
/**
|
||
|
|
||
|
A base class for entries in an KArchive.
|
||
11 years ago
|
@short Base class for the archive-file's directory structure.
|
||
15 years ago
|
@see KArchiveFile
|
||
|
@see KArchiveDirectory
|
||
|
|
||
|
*/
|
||
|
public class KArchiveEntry implements QtSupport {
|
||
|
private long _qt;
|
||
|
private boolean _allocatedInJavaWorld = true;
|
||
|
protected KArchiveEntry(Class dummy){}
|
||
|
|
||
11 years ago
|
/**
|
||
15 years ago
|
Creates a new entry.
|
||
|
@param archive the entries archive
|
||
|
@param name the name of the entry
|
||
|
@param access the permissions in unix format
|
||
|
@param date the date (in seconds since 1970)
|
||
|
@param user the user that owns the entry
|
||
|
@param group the group that owns the entry
|
||
|
@param symlink the symlink, or null
|
||
|
@short Creates a new entry.
|
||
|
*/
|
||
|
public KArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink) {
|
||
|
newKArchiveEntry(archive,name,access,date,user,group,symlink);
|
||
|
}
|
||
|
private native void newKArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink);
|
||
11 years ago
|
/**
|
||
15 years ago
|
Creation date of the file.
|
||
|
@return the creation date
|
||
11 years ago
|
|
||
15 years ago
|
@short Creation date of the file.
|
||
|
*/
|
||
|
public native Calendar datetime();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Creation date of the file.
|
||
|
@return the creation date in seconds since 1970
|
||
11 years ago
|
|
||
15 years ago
|
@short Creation date of the file.
|
||
|
*/
|
||
|
public native int date();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Name of the file without path.
|
||
|
@return the file name without path
|
||
11 years ago
|
|
||
15 years ago
|
@short Name of the file without path.
|
||
|
*/
|
||
|
public native String name();
|
||
11 years ago
|
/**
|
||
15 years ago
|
The permissions and mode flags as returned by the stat() function
|
||
|
in st_mode.
|
||
|
@return the permissions
|
||
11 years ago
|
|
||
15 years ago
|
@short The permissions and mode flags as returned by the stat() function in st_mode.
|
||
|
*/
|
||
|
public native long permissions();
|
||
11 years ago
|
/**
|
||
15 years ago
|
User who created the file.
|
||
|
@return the owner of the file
|
||
11 years ago
|
|
||
15 years ago
|
@short User who created the file.
|
||
|
*/
|
||
|
public native String user();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Group of the user who created the file.
|
||
|
@return the group of the file
|
||
11 years ago
|
|
||
15 years ago
|
@short Group of the user who created the file.
|
||
|
*/
|
||
|
public native String group();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Symlink if there is one.
|
||
|
@return the symlink, or null
|
||
11 years ago
|
|
||
15 years ago
|
@short Symlink if there is one.
|
||
|
*/
|
||
|
public native String symlink();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Checks whether the entry is a file.
|
||
|
@return true if this entry is a file
|
||
11 years ago
|
|
||
15 years ago
|
@short Checks whether the entry is a file.
|
||
|
*/
|
||
|
public native boolean isFile();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Checks whether the entry is a directory.
|
||
|
@return true if this entry is a directory
|
||
11 years ago
|
|
||
15 years ago
|
@short Checks whether the entry is a directory.
|
||
|
*/
|
||
|
public native boolean isDirectory();
|
||
|
protected native KArchive archive();
|
||
|
/** 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();
|
||
|
}
|