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

package com.chilkatsoft;

public class CkSFtpDir {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

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

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

  protected static long swigRelease(CkSFtpDir obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

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

  public CkSFtpDir() {
    this(chilkatJNI.new_CkSFtpDir(), true);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkSFtpDir_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkSFtpDir_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkSFtpDir_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkSFtpDir_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkSFtpDir_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkSFtpDir_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkSFtpDir_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkSFtpDir_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkSFtpDir_lastErrorXml(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkSFtpDir_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkSFtpDir_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public int get_NumFilesAndDirs() {
    return chilkatJNI.CkSFtpDir_get_NumFilesAndDirs(swigCPtr, this);
  }

  public void get_OriginalPath(CkString str) {
    chilkatJNI.CkSFtpDir_get_OriginalPath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String originalPath() {
    return chilkatJNI.CkSFtpDir_originalPath(swigCPtr, this);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkSFtpDir_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkSFtpDir_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkSFtpDir_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkSFtpDir_version(swigCPtr, this);
  }

  public boolean FileAt(int index, CkSFtpFile fileObj) {
    return chilkatJNI.CkSFtpDir_FileAt(swigCPtr, this, index, CkSFtpFile.getCPtr(fileObj), fileObj);
  }

  public boolean GetFilename(int index, CkString outStr) {
    return chilkatJNI.CkSFtpDir_GetFilename(swigCPtr, this, index, CkString.getCPtr(outStr), outStr);
  }

  public String getFilename(int index) {
    return chilkatJNI.CkSFtpDir_getFilename(swigCPtr, this, index);
  }

  public String filename(int index) {
    return chilkatJNI.CkSFtpDir_filename(swigCPtr, this, index);
  }

  public CkSFtpFile GetFileObject(int index) {
    long cPtr = chilkatJNI.CkSFtpDir_GetFileObject(swigCPtr, this, index);
    return (cPtr == 0) ? null : new CkSFtpFile(cPtr, true);
  }

  public boolean LoadTaskResult(CkTask task) {
    return chilkatJNI.CkSFtpDir_LoadTaskResult(swigCPtr, this, CkTask.getCPtr(task), task);
  }

  public void Sort(String field, boolean ascending) {
    chilkatJNI.CkSFtpDir_Sort(swigCPtr, this, field, ascending);
  }

}
