summaryrefslogtreecommitdiff
path: root/include/ftplibftpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ftplibftpt.h')
-rw-r--r--include/ftplibftpt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/ftplibftpt.h b/include/ftplibftpt.h
new file mode 100644
index 0000000..7aa9e13
--- /dev/null
+++ b/include/ftplibftpt.h
@@ -0,0 +1,34 @@
+#ifndef FTPLIBFTPT_H
+#define FTPLIBFTPT_H
+
+#include <defs.h>
+#include <ftptrans.h>
+
+typedef struct NetBuf netbuf;
+
+SWORD_NAMESPACE_START
+
+
+// initialize/cleanup SYSTEMWIDE library with life of this static.
+class FTPLibFTPTransport_init {
+public:
+ FTPLibFTPTransport_init();
+ ~FTPLibFTPTransport_init();
+};
+
+
+class SWDLLEXPORT FTPLibFTPTransport : public FTPTransport {
+ netbuf *ftpConnection;
+
+ char assureLoggedIn();
+
+public:
+ FTPLibFTPTransport(const char *host, StatusReporter *statusReporter = 0);
+ ~FTPLibFTPTransport();
+ char getURL(const char *destPath, const char *sourceURL, SWBuf *destBuf = 0);
+};
+
+
+SWORD_NAMESPACE_END
+
+#endif