diff options
author | Fritz Elfert <felfert@to.com> | 1999-06-29 02:21:40 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-06-29 02:21:40 +0000 |
commit | f3e248b6e75c7ce5beda577f5712915417313b0a (patch) | |
tree | be7d7c3dd6b27e4464bb887f12debbf4182b88b7 /plpftp/ftp.h | |
parent | bd48f19dd8931c871c9b79371ff68cf87d2ccc11 (diff) | |
download | plptools-f3e248b6e75c7ce5beda577f5712915417313b0a.tar.gz plptools-f3e248b6e75c7ce5beda577f5712915417313b0a.tar.bz2 plptools-f3e248b6e75c7ce5beda577f5712915417313b0a.zip |
Initial import.
Diffstat (limited to 'plpftp/ftp.h')
-rw-r--r-- | plpftp/ftp.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 |