summaryrefslogtreecommitdiff
path: root/include/ftplibftpt.h
blob: 7aa9e131e1738145216056efda7b6b8f78b62446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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