repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / codycam / FileUploadClient.h
blob7c0d82bfc65eed589ffecbdae280f4b96087068a
1 #ifndef FILE_UPLOAD_CLIENT_H
2 #define FILE_UPLOAD_CLIENT_H
5 #include <stdio.h>
6 #include <string>
8 using std::string;
11 class FileUploadClient {
12 public:
13 FileUploadClient();
14 virtual ~FileUploadClient();
16 enum ftp_mode {
17 binary_mode,
18 ascii_mode
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