/* ---------------------------------------------------------------------------- * 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 portmap_alert extends alert { private long swigCPtr; protected portmap_alert(long cPtr, boolean cMemoryOwn) { super(libtorrent_jni.portmap_alert_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(portmap_alert 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_portmap_alert(swigCPtr); } swigCPtr = 0; } super.delete(); } public portmap_alert(int i, int port, int t) { this(libtorrent_jni.new_portmap_alert(i, port, t), true); } public int type() { return libtorrent_jni.portmap_alert_type(swigCPtr, this); } public int category() { return libtorrent_jni.portmap_alert_category(swigCPtr, this); } public String what() { return libtorrent_jni.portmap_alert_what(swigCPtr, this); } public String message() { return libtorrent_jni.portmap_alert_message(swigCPtr, this); } public void setMapping(int value) { libtorrent_jni.portmap_alert_mapping_set(swigCPtr, this, value); } public int getMapping() { return libtorrent_jni.portmap_alert_mapping_get(swigCPtr, this); } public void setExternal_port(int value) { libtorrent_jni.portmap_alert_external_port_set(swigCPtr, this, value); } public int getExternal_port() { return libtorrent_jni.portmap_alert_external_port_get(swigCPtr, this); } public void setMap_type(int value) { libtorrent_jni.portmap_alert_map_type_set(swigCPtr, this, value); } public int getMap_type() { return libtorrent_jni.portmap_alert_map_type_get(swigCPtr, this); } public final static int alert_type = libtorrent_jni.portmap_alert_alert_type_get(); public final static int static_category = libtorrent_jni.portmap_alert_static_category_get(); }