From f3e248b6e75c7ce5beda577f5712915417313b0a Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Tue, 29 Jun 1999 02:21:40 +0000 Subject: Initial import. --- plpftp/ftp.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 plpftp/ftp.h (limited to 'plpftp/ftp.h') diff --git a/plpftp/ftp.h b/plpftp/ftp.h new file mode 100644 index 0000000..1905b09 --- /dev/null +++ b/plpftp/ftp.h @@ -0,0 +1,35 @@ +#ifndef _ftp_h_ +#define _ftp_h_ + +#include "bool.h" + +class rfsv32; +class bufferStore; +class bufferArray; + +#define DEFAULT_DRIVE "C:" +#define DEFAULT_BASE_DIRECTORY "\\" + +class ftp { + public: + ftp(); + ~ftp(); + int session(rfsv32 & a, int xargc, char **xargv); + + private: + void getCommand(int &argc, char **argv); + + // utilities + bool unixDirExists(const char *dir); + void getUnixDir(bufferArray & files); + void resetUnixPwd(); + void usage(); + void errprint(long errcode, rfsv32 & a); + void cd(const char *source, const char *cdto, char *dest); + int convertName(const char *orig, char *retVal); + + char localDir[1024]; + char psionDir[1024]; +}; + +#endif -- cgit v1.2.3