001package org.vishia.commander.target;
002
003import java.io.Closeable;
004
005/**This part of the file commander may run on any target system which hasn't a display.
006 * For the standard implementation for PC-Usage it is compiled in the same application like the GUI.
007 * This files may be translated to C, it can be run in a embedded environment.
008 * @author Hartmut Schorrig
009 *
010 */
011public class FcmdtTarget implements FcmdtTarget_ifc, Closeable
012{
013  /**The module to copy files.
014   * 
015   */
016  FcmdtCopyCmd copyCmd = new FcmdtCopyCmd();
017  
018  
019  public FcmdtTarget(){
020    
021  }
022  
023  
024  @Override public void cmdTarget(int cmd, String sParam){
025    switch(cmd){
026      case FcmdtTarget_ifc.copyFile:  copyCmd.startCopy(cmd, sParam); break;
027    }
028  }
029  
030  @Override public void close(){
031    copyCmd.close();
032  }
033
034  
035}