/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.frostwire.jlibtorrent.swig;
public class file_entry {
private long swigCPtr;
protected boolean swigCMemOwn;
protected file_entry(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(file_entry obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libtorrent_jni.delete_file_entry(swigCPtr);
}
swigCPtr = 0;
}
}
public file_entry() {
this(libtorrent_jni.new_file_entry(), true);
}
public void setPath(String value) {
libtorrent_jni.file_entry_path_set(swigCPtr, this, value);
}
public String getPath() {
return libtorrent_jni.file_entry_path_get(swigCPtr, this);
}
public void setSymlink_path(String value) {
libtorrent_jni.file_entry_symlink_path_set(swigCPtr, this, value);
}
public String getSymlink_path() {
return libtorrent_jni.file_entry_symlink_path_get(swigCPtr, this);
}
public void setOffset(long value) {
libtorrent_jni.file_entry_offset_set(swigCPtr, this, value);
}
public long getOffset() {
return libtorrent_jni.file_entry_offset_get(swigCPtr, this);
}
public void setSize(long value) {
libtorrent_jni.file_entry_size_set(swigCPtr, this, value);
}
public long getSize() {
return libtorrent_jni.file_entry_size_get(swigCPtr, this);
}
public void setFile_base(long value) {
libtorrent_jni.file_entry_file_base_set(swigCPtr, this, value);
}
public long getFile_base() {
return libtorrent_jni.file_entry_file_base_get(swigCPtr, this);
}
public void setMtime(int value) {
libtorrent_jni.file_entry_mtime_set(swigCPtr, this, value);
}
public int getMtime() {
return libtorrent_jni.file_entry_mtime_get(swigCPtr, this);
}
public void setFilehash(sha1_hash value) {
libtorrent_jni.file_entry_filehash_set(swigCPtr, this, sha1_hash.getCPtr(value), value);
}
public sha1_hash getFilehash() {
long cPtr = libtorrent_jni.file_entry_filehash_get(swigCPtr, this);
return (cPtr == 0) ? null : new sha1_hash(cPtr, false);
}
public void setPad_file(boolean value) {
libtorrent_jni.file_entry_pad_file_set(swigCPtr, this, value);
}
public boolean getPad_file() {
return libtorrent_jni.file_entry_pad_file_get(swigCPtr, this);
}
public void setHidden_attribute(boolean value) {
libtorrent_jni.file_entry_hidden_attribute_set(swigCPtr, this, value);
}
public boolean getHidden_attribute() {
return libtorrent_jni.file_entry_hidden_attribute_get(swigCPtr, this);
}
public void setExecutable_attribute(boolean value) {
libtorrent_jni.file_entry_executable_attribute_set(swigCPtr, this, value);
}
public boolean getExecutable_attribute() {
return libtorrent_jni.file_entry_executable_attribute_get(swigCPtr, this);
}
public void setSymlink_attribute(boolean value) {
libtorrent_jni.file_entry_symlink_attribute_set(swigCPtr, this, value);
}
public boolean getSymlink_attribute() {
return libtorrent_jni.file_entry_symlink_attribute_get(swigCPtr, this);
}
}