/* ---------------------------------------------------------------------------- * 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 torrent_status { private long swigCPtr; protected boolean swigCMemOwn; protected torrent_status(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(torrent_status 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_torrent_status(swigCPtr); } swigCPtr = 0; } } public torrent_status() { this(libtorrent_jni.new_torrent_status(), true); } public boolean op_eq(torrent_status st) { return libtorrent_jni.torrent_status_op_eq(swigCPtr, this, torrent_status.getCPtr(st), st); } public void setHandle(torrent_handle value) { libtorrent_jni.torrent_status_handle_set(swigCPtr, this, torrent_handle.getCPtr(value), value); } public torrent_handle getHandle() { long cPtr = libtorrent_jni.torrent_status_handle_get(swigCPtr, this); return (cPtr == 0) ? null : new torrent_handle(cPtr, false); } public void setError(String value) { libtorrent_jni.torrent_status_error_set(swigCPtr, this, value); } public String getError() { return libtorrent_jni.torrent_status_error_get(swigCPtr, this); } public void setSave_path(String value) { libtorrent_jni.torrent_status_save_path_set(swigCPtr, this, value); } public String getSave_path() { return libtorrent_jni.torrent_status_save_path_get(swigCPtr, this); } public void setName(String value) { libtorrent_jni.torrent_status_name_set(swigCPtr, this, value); } public String getName() { return libtorrent_jni.torrent_status_name_get(swigCPtr, this); } public void setTorrent_file(torrent_info value) { libtorrent_jni.torrent_status_torrent_file_set(swigCPtr, this, torrent_info.getCPtr(value), value); } public torrent_info getTorrent_file() { long cPtr = libtorrent_jni.torrent_status_torrent_file_get(swigCPtr, this); return (cPtr == 0) ? null : new torrent_info(cPtr, true); } public void setNext_announce(time_duration value) { libtorrent_jni.torrent_status_next_announce_set(swigCPtr, this, time_duration.getCPtr(value), value); } public time_duration getNext_announce() { long cPtr = libtorrent_jni.torrent_status_next_announce_get(swigCPtr, this); return (cPtr == 0) ? null : new time_duration(cPtr, false); } public void setAnnounce_interval(time_duration value) { libtorrent_jni.torrent_status_announce_interval_set(swigCPtr, this, time_duration.getCPtr(value), value); } public time_duration getAnnounce_interval() { long cPtr = libtorrent_jni.torrent_status_announce_interval_get(swigCPtr, this); return (cPtr == 0) ? null : new time_duration(cPtr, false); } public void setCurrent_tracker(String value) { libtorrent_jni.torrent_status_current_tracker_set(swigCPtr, this, value); } public String getCurrent_tracker() { return libtorrent_jni.torrent_status_current_tracker_get(swigCPtr, this); } public void setTotal_download(long value) { libtorrent_jni.torrent_status_total_download_set(swigCPtr, this, value); } public long getTotal_download() { return libtorrent_jni.torrent_status_total_download_get(swigCPtr, this); } public void setTotal_upload(long value) { libtorrent_jni.torrent_status_total_upload_set(swigCPtr, this, value); } public long getTotal_upload() { return libtorrent_jni.torrent_status_total_upload_get(swigCPtr, this); } public void setTotal_payload_download(long value) { libtorrent_jni.torrent_status_total_payload_download_set(swigCPtr, this, value); } public long getTotal_payload_download() { return libtorrent_jni.torrent_status_total_payload_download_get(swigCPtr, this); } public void setTotal_payload_upload(long value) { libtorrent_jni.torrent_status_total_payload_upload_set(swigCPtr, this, value); } public long getTotal_payload_upload() { return libtorrent_jni.torrent_status_total_payload_upload_get(swigCPtr, this); } public void setTotal_failed_bytes(long value) { libtorrent_jni.torrent_status_total_failed_bytes_set(swigCPtr, this, value); } public long getTotal_failed_bytes() { return libtorrent_jni.torrent_status_total_failed_bytes_get(swigCPtr, this); } public void setTotal_redundant_bytes(long value) { libtorrent_jni.torrent_status_total_redundant_bytes_set(swigCPtr, this, value); } public long getTotal_redundant_bytes() { return libtorrent_jni.torrent_status_total_redundant_bytes_get(swigCPtr, this); } public void setPieces(bitfield value) { libtorrent_jni.torrent_status_pieces_set(swigCPtr, this, bitfield.getCPtr(value), value); } public bitfield getPieces() { long cPtr = libtorrent_jni.torrent_status_pieces_get(swigCPtr, this); return (cPtr == 0) ? null : new bitfield(cPtr, false); } public void setVerified_pieces(bitfield value) { libtorrent_jni.torrent_status_verified_pieces_set(swigCPtr, this, bitfield.getCPtr(value), value); } public bitfield getVerified_pieces() { long cPtr = libtorrent_jni.torrent_status_verified_pieces_get(swigCPtr, this); return (cPtr == 0) ? null : new bitfield(cPtr, false); } public void setTotal_done(long value) { libtorrent_jni.torrent_status_total_done_set(swigCPtr, this, value); } public long getTotal_done() { return libtorrent_jni.torrent_status_total_done_get(swigCPtr, this); } public void setTotal_wanted_done(long value) { libtorrent_jni.torrent_status_total_wanted_done_set(swigCPtr, this, value); } public long getTotal_wanted_done() { return libtorrent_jni.torrent_status_total_wanted_done_get(swigCPtr, this); } public void setTotal_wanted(long value) { libtorrent_jni.torrent_status_total_wanted_set(swigCPtr, this, value); } public long getTotal_wanted() { return libtorrent_jni.torrent_status_total_wanted_get(swigCPtr, this); } public void setAll_time_upload(long value) { libtorrent_jni.torrent_status_all_time_upload_set(swigCPtr, this, value); } public long getAll_time_upload() { return libtorrent_jni.torrent_status_all_time_upload_get(swigCPtr, this); } public void setAll_time_download(long value) { libtorrent_jni.torrent_status_all_time_download_set(swigCPtr, this, value); } public long getAll_time_download() { return libtorrent_jni.torrent_status_all_time_download_get(swigCPtr, this); } public void setAdded_time(int value) { libtorrent_jni.torrent_status_added_time_set(swigCPtr, this, value); } public int getAdded_time() { return libtorrent_jni.torrent_status_added_time_get(swigCPtr, this); } public void setCompleted_time(int value) { libtorrent_jni.torrent_status_completed_time_set(swigCPtr, this, value); } public int getCompleted_time() { return libtorrent_jni.torrent_status_completed_time_get(swigCPtr, this); } public void setLast_seen_complete(int value) { libtorrent_jni.torrent_status_last_seen_complete_set(swigCPtr, this, value); } public int getLast_seen_complete() { return libtorrent_jni.torrent_status_last_seen_complete_get(swigCPtr, this); } public void setStorage_mode(storage_mode_t value) { libtorrent_jni.torrent_status_storage_mode_set(swigCPtr, this, value.swigValue()); } public storage_mode_t getStorage_mode() { return storage_mode_t.swigToEnum(libtorrent_jni.torrent_status_storage_mode_get(swigCPtr, this)); } public void setProgress(float value) { libtorrent_jni.torrent_status_progress_set(swigCPtr, this, value); } public float getProgress() { return libtorrent_jni.torrent_status_progress_get(swigCPtr, this); } public void setProgress_ppm(int value) { libtorrent_jni.torrent_status_progress_ppm_set(swigCPtr, this, value); } public int getProgress_ppm() { return libtorrent_jni.torrent_status_progress_ppm_get(swigCPtr, this); } public void setQueue_position(int value) { libtorrent_jni.torrent_status_queue_position_set(swigCPtr, this, value); } public int getQueue_position() { return libtorrent_jni.torrent_status_queue_position_get(swigCPtr, this); } public void setDownload_rate(int value) { libtorrent_jni.torrent_status_download_rate_set(swigCPtr, this, value); } public int getDownload_rate() { return libtorrent_jni.torrent_status_download_rate_get(swigCPtr, this); } public void setUpload_rate(int value) { libtorrent_jni.torrent_status_upload_rate_set(swigCPtr, this, value); } public int getUpload_rate() { return libtorrent_jni.torrent_status_upload_rate_get(swigCPtr, this); } public void setDownload_payload_rate(int value) { libtorrent_jni.torrent_status_download_payload_rate_set(swigCPtr, this, value); } public int getDownload_payload_rate() { return libtorrent_jni.torrent_status_download_payload_rate_get(swigCPtr, this); } public void setUpload_payload_rate(int value) { libtorrent_jni.torrent_status_upload_payload_rate_set(swigCPtr, this, value); } public int getUpload_payload_rate() { return libtorrent_jni.torrent_status_upload_payload_rate_get(swigCPtr, this); } public void setNum_seeds(int value) { libtorrent_jni.torrent_status_num_seeds_set(swigCPtr, this, value); } public int getNum_seeds() { return libtorrent_jni.torrent_status_num_seeds_get(swigCPtr, this); } public void setNum_peers(int value) { libtorrent_jni.torrent_status_num_peers_set(swigCPtr, this, value); } public int getNum_peers() { return libtorrent_jni.torrent_status_num_peers_get(swigCPtr, this); } public void setNum_complete(int value) { libtorrent_jni.torrent_status_num_complete_set(swigCPtr, this, value); } public int getNum_complete() { return libtorrent_jni.torrent_status_num_complete_get(swigCPtr, this); } public void setNum_incomplete(int value) { libtorrent_jni.torrent_status_num_incomplete_set(swigCPtr, this, value); } public int getNum_incomplete() { return libtorrent_jni.torrent_status_num_incomplete_get(swigCPtr, this); } public void setList_seeds(int value) { libtorrent_jni.torrent_status_list_seeds_set(swigCPtr, this, value); } public int getList_seeds() { return libtorrent_jni.torrent_status_list_seeds_get(swigCPtr, this); } public void setList_peers(int value) { libtorrent_jni.torrent_status_list_peers_set(swigCPtr, this, value); } public int getList_peers() { return libtorrent_jni.torrent_status_list_peers_get(swigCPtr, this); } public void setConnect_candidates(int value) { libtorrent_jni.torrent_status_connect_candidates_set(swigCPtr, this, value); } public int getConnect_candidates() { return libtorrent_jni.torrent_status_connect_candidates_get(swigCPtr, this); } public void setNum_pieces(int value) { libtorrent_jni.torrent_status_num_pieces_set(swigCPtr, this, value); } public int getNum_pieces() { return libtorrent_jni.torrent_status_num_pieces_get(swigCPtr, this); } public void setDistributed_full_copies(int value) { libtorrent_jni.torrent_status_distributed_full_copies_set(swigCPtr, this, value); } public int getDistributed_full_copies() { return libtorrent_jni.torrent_status_distributed_full_copies_get(swigCPtr, this); } public void setDistributed_fraction(int value) { libtorrent_jni.torrent_status_distributed_fraction_set(swigCPtr, this, value); } public int getDistributed_fraction() { return libtorrent_jni.torrent_status_distributed_fraction_get(swigCPtr, this); } public void setDistributed_copies(float value) { libtorrent_jni.torrent_status_distributed_copies_set(swigCPtr, this, value); } public float getDistributed_copies() { return libtorrent_jni.torrent_status_distributed_copies_get(swigCPtr, this); } public void setBlock_size(int value) { libtorrent_jni.torrent_status_block_size_set(swigCPtr, this, value); } public int getBlock_size() { return libtorrent_jni.torrent_status_block_size_get(swigCPtr, this); } public void setNum_uploads(int value) { libtorrent_jni.torrent_status_num_uploads_set(swigCPtr, this, value); } public int getNum_uploads() { return libtorrent_jni.torrent_status_num_uploads_get(swigCPtr, this); } public void setNum_connections(int value) { libtorrent_jni.torrent_status_num_connections_set(swigCPtr, this, value); } public int getNum_connections() { return libtorrent_jni.torrent_status_num_connections_get(swigCPtr, this); } public void setUploads_limit(int value) { libtorrent_jni.torrent_status_uploads_limit_set(swigCPtr, this, value); } public int getUploads_limit() { return libtorrent_jni.torrent_status_uploads_limit_get(swigCPtr, this); } public void setConnections_limit(int value) { libtorrent_jni.torrent_status_connections_limit_set(swigCPtr, this, value); } public int getConnections_limit() { return libtorrent_jni.torrent_status_connections_limit_get(swigCPtr, this); } public void setUp_bandwidth_queue(int value) { libtorrent_jni.torrent_status_up_bandwidth_queue_set(swigCPtr, this, value); } public int getUp_bandwidth_queue() { return libtorrent_jni.torrent_status_up_bandwidth_queue_get(swigCPtr, this); } public void setDown_bandwidth_queue(int value) { libtorrent_jni.torrent_status_down_bandwidth_queue_set(swigCPtr, this, value); } public int getDown_bandwidth_queue() { return libtorrent_jni.torrent_status_down_bandwidth_queue_get(swigCPtr, this); } public void setTime_since_upload(int value) { libtorrent_jni.torrent_status_time_since_upload_set(swigCPtr, this, value); } public int getTime_since_upload() { return libtorrent_jni.torrent_status_time_since_upload_get(swigCPtr, this); } public void setTime_since_download(int value) { libtorrent_jni.torrent_status_time_since_download_set(swigCPtr, this, value); } public int getTime_since_download() { return libtorrent_jni.torrent_status_time_since_download_get(swigCPtr, this); } public void setActive_time(int value) { libtorrent_jni.torrent_status_active_time_set(swigCPtr, this, value); } public int getActive_time() { return libtorrent_jni.torrent_status_active_time_get(swigCPtr, this); } public void setFinished_time(int value) { libtorrent_jni.torrent_status_finished_time_set(swigCPtr, this, value); } public int getFinished_time() { return libtorrent_jni.torrent_status_finished_time_get(swigCPtr, this); } public void setSeeding_time(int value) { libtorrent_jni.torrent_status_seeding_time_set(swigCPtr, this, value); } public int getSeeding_time() { return libtorrent_jni.torrent_status_seeding_time_get(swigCPtr, this); } public void setSeed_rank(int value) { libtorrent_jni.torrent_status_seed_rank_set(swigCPtr, this, value); } public int getSeed_rank() { return libtorrent_jni.torrent_status_seed_rank_get(swigCPtr, this); } public void setLast_scrape(int value) { libtorrent_jni.torrent_status_last_scrape_set(swigCPtr, this, value); } public int getLast_scrape() { return libtorrent_jni.torrent_status_last_scrape_get(swigCPtr, this); } public void setSparse_regions(int value) { libtorrent_jni.torrent_status_sparse_regions_set(swigCPtr, this, value); } public int getSparse_regions() { return libtorrent_jni.torrent_status_sparse_regions_get(swigCPtr, this); } public void setPriority(int value) { libtorrent_jni.torrent_status_priority_set(swigCPtr, this, value); } public int getPriority() { return libtorrent_jni.torrent_status_priority_get(swigCPtr, this); } public void setState(torrent_status.state_t value) { libtorrent_jni.torrent_status_state_set(swigCPtr, this, value.swigValue()); } public torrent_status.state_t getState() { return torrent_status.state_t.swigToEnum(libtorrent_jni.torrent_status_state_get(swigCPtr, this)); } public void setNeed_save_resume(boolean value) { libtorrent_jni.torrent_status_need_save_resume_set(swigCPtr, this, value); } public boolean getNeed_save_resume() { return libtorrent_jni.torrent_status_need_save_resume_get(swigCPtr, this); } public void setIp_filter_applies(boolean value) { libtorrent_jni.torrent_status_ip_filter_applies_set(swigCPtr, this, value); } public boolean getIp_filter_applies() { return libtorrent_jni.torrent_status_ip_filter_applies_get(swigCPtr, this); } public void setUpload_mode(boolean value) { libtorrent_jni.torrent_status_upload_mode_set(swigCPtr, this, value); } public boolean getUpload_mode() { return libtorrent_jni.torrent_status_upload_mode_get(swigCPtr, this); } public void setShare_mode(boolean value) { libtorrent_jni.torrent_status_share_mode_set(swigCPtr, this, value); } public boolean getShare_mode() { return libtorrent_jni.torrent_status_share_mode_get(swigCPtr, this); } public void setSuper_seeding(boolean value) { libtorrent_jni.torrent_status_super_seeding_set(swigCPtr, this, value); } public boolean getSuper_seeding() { return libtorrent_jni.torrent_status_super_seeding_get(swigCPtr, this); } public void setPaused(boolean value) { libtorrent_jni.torrent_status_paused_set(swigCPtr, this, value); } public boolean getPaused() { return libtorrent_jni.torrent_status_paused_get(swigCPtr, this); } public void setAuto_managed(boolean value) { libtorrent_jni.torrent_status_auto_managed_set(swigCPtr, this, value); } public boolean getAuto_managed() { return libtorrent_jni.torrent_status_auto_managed_get(swigCPtr, this); } public void setSequential_download(boolean value) { libtorrent_jni.torrent_status_sequential_download_set(swigCPtr, this, value); } public boolean getSequential_download() { return libtorrent_jni.torrent_status_sequential_download_get(swigCPtr, this); } public void setIs_seeding(boolean value) { libtorrent_jni.torrent_status_is_seeding_set(swigCPtr, this, value); } public boolean getIs_seeding() { return libtorrent_jni.torrent_status_is_seeding_get(swigCPtr, this); } public void setIs_finished(boolean value) { libtorrent_jni.torrent_status_is_finished_set(swigCPtr, this, value); } public boolean getIs_finished() { return libtorrent_jni.torrent_status_is_finished_get(swigCPtr, this); } public void setHas_metadata(boolean value) { libtorrent_jni.torrent_status_has_metadata_set(swigCPtr, this, value); } public boolean getHas_metadata() { return libtorrent_jni.torrent_status_has_metadata_get(swigCPtr, this); } public void setHas_incoming(boolean value) { libtorrent_jni.torrent_status_has_incoming_set(swigCPtr, this, value); } public boolean getHas_incoming() { return libtorrent_jni.torrent_status_has_incoming_get(swigCPtr, this); } public void setSeed_mode(boolean value) { libtorrent_jni.torrent_status_seed_mode_set(swigCPtr, this, value); } public boolean getSeed_mode() { return libtorrent_jni.torrent_status_seed_mode_get(swigCPtr, this); } public void setMoving_storage(boolean value) { libtorrent_jni.torrent_status_moving_storage_set(swigCPtr, this, value); } public boolean getMoving_storage() { return libtorrent_jni.torrent_status_moving_storage_get(swigCPtr, this); } public void setInfo_hash(sha1_hash value) { libtorrent_jni.torrent_status_info_hash_set(swigCPtr, this, sha1_hash.getCPtr(value), value); } public sha1_hash getInfo_hash() { long cPtr = libtorrent_jni.torrent_status_info_hash_get(swigCPtr, this); return (cPtr == 0) ? null : new sha1_hash(cPtr, false); } public enum state_t { queued_for_checking, checking_files, downloading_metadata, downloading, finished, seeding, allocating, checking_resume_data; public final int swigValue() { return swigValue; } public static state_t swigToEnum(int swigValue) { state_t[] swigValues = state_t.class.getEnumConstants(); if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) return swigValues[swigValue]; for (state_t swigEnum : swigValues) if (swigEnum.swigValue == swigValue) return swigEnum; throw new IllegalArgumentException("No enum " + state_t.class + " with value " + swigValue); } @SuppressWarnings("unused") private state_t() { this.swigValue = SwigNext.next++; } @SuppressWarnings("unused") private state_t(int swigValue) { this.swigValue = swigValue; SwigNext.next = swigValue+1; } @SuppressWarnings("unused") private state_t(state_t swigEnum) { this.swigValue = swigEnum.swigValue; SwigNext.next = this.swigValue+1; } private final int swigValue; private static class SwigNext { private static int next = 0; } } }