/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.40
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.opalvoip;

public class OpalParamProtocol {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected OpalParamProtocol(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OpalParamProtocol obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        OPALJNI.delete_OpalParamProtocol(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setM_prefix(String value) {
    OPALJNI.OpalParamProtocol_m_prefix_set(swigCPtr, this, value);
  }

  public String getM_prefix() {
    return OPALJNI.OpalParamProtocol_m_prefix_get(swigCPtr, this);
  }

  public void setM_userName(String value) {
    OPALJNI.OpalParamProtocol_m_userName_set(swigCPtr, this, value);
  }

  public String getM_userName() {
    return OPALJNI.OpalParamProtocol_m_userName_get(swigCPtr, this);
  }

  public void setM_displayName(String value) {
    OPALJNI.OpalParamProtocol_m_displayName_set(swigCPtr, this, value);
  }

  public String getM_displayName() {
    return OPALJNI.OpalParamProtocol_m_displayName_get(swigCPtr, this);
  }

  public void setM_product(OpalProductDescription value) {
    OPALJNI.OpalParamProtocol_m_product_set(swigCPtr, this, OpalProductDescription.getCPtr(value), value);
  }

  public OpalProductDescription getM_product() {
    long cPtr = OPALJNI.OpalParamProtocol_m_product_get(swigCPtr, this);
    return (cPtr == 0) ? null : new OpalProductDescription(cPtr, false);
  }

  public void setM_interfaceAddresses(String value) {
    OPALJNI.OpalParamProtocol_m_interfaceAddresses_set(swigCPtr, this, value);
  }

  public String getM_interfaceAddresses() {
    return OPALJNI.OpalParamProtocol_m_interfaceAddresses_get(swigCPtr, this);
  }

  public void setM_userInputMode(OpalUserInputModes value) {
    OPALJNI.OpalParamProtocol_m_userInputMode_set(swigCPtr, this, value.swigValue());
  }

  public OpalUserInputModes getM_userInputMode() {
    return OpalUserInputModes.swigToEnum(OPALJNI.OpalParamProtocol_m_userInputMode_get(swigCPtr, this));
  }

  public void setM_defaultOptions(String value) {
    OPALJNI.OpalParamProtocol_m_defaultOptions_set(swigCPtr, this, value);
  }

  public String getM_defaultOptions() {
    return OPALJNI.OpalParamProtocol_m_defaultOptions_get(swigCPtr, this);
  }

  public OpalParamProtocol() {
    this(OPALJNI.new_OpalParamProtocol(), true);
  }

}
