aboutsummaryrefslogtreecommitdiffstats
path: root/plpftp/ftp.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>1999-06-29 02:21:40 +0000
committerFritz Elfert <felfert@to.com>1999-06-29 02:21:40 +0000
commitf3e248b6e75c7ce5beda577f5712915417313b0a (patch)
treebe7d7c3dd6b27e4464bb887f12debbf4182b88b7 /plpftp/ftp.h
parentbd48f19dd8931c871c9b79371ff68cf87d2ccc11 (diff)
downloadplptools-f3e248b6e75c7ce5beda577f5712915417313b0a.tar.gz
plptools-f3e248b6e75c7ce5beda577f5712915417313b0a.tar.bz2
plptools-f3e248b6e75c7ce5beda577f5712915417313b0a.zip
Initial import.
Diffstat (limited to 'plpftp/ftp.h')
-rw-r--r--plpftp/ftp.h35
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