1 #ifndef FILE_UPLOAD_CLIENT_H
2 #define FILE_UPLOAD_CLIENT_H
11 class FileUploadClient
{
14 virtual ~FileUploadClient();
21 virtual bool Connect(const string
& server
, const string
& login
,
22 const string
& passwd
);
24 virtual bool PutFile(const string
& local
, const string
& remote
,
25 ftp_mode mode
= binary_mode
);
27 virtual bool GetFile(const string
& remote
, const string
& local
,
28 ftp_mode mode
= binary_mode
);
30 virtual bool MoveFile(const string
& oldPath
, const string
& newPath
);
31 virtual bool ChangeDir(const string
& dir
);
32 virtual bool PrintWorkingDir(string
& dir
);
33 virtual bool ListDirContents(string
& listing
);
34 virtual bool Chmod(const string
& path
, const string
& mod
);
36 virtual void SetPassive(bool on
);
39 #endif // FILE_UPLOAD_CLIENT_H