Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
76 lines (64 sloc)
1.8 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __REMOTEMACHINE | |
#define __REMOTEMACHINE | |
// wxWindows includes | |
#include <wx/datetime.h> | |
#include <wx/string.h> | |
#include <wx/protocol/ftp.h> | |
#include "RestartingFTP.h" | |
// Statsgen Includes | |
#define MAX_CONNECTION_ATTEMPTS 1 | |
class RemoteMachine | |
{ | |
public: | |
RemoteMachine(wxString &IDIn); | |
virtual ~RemoteMachine(); | |
bool MakeDir(wxString &baseDirectory,wxString &newDirectory); | |
bool PutFile(wxString &remoteDirectory, | |
wxString &localFilename); | |
bool PutFile(wxString &remoteDirectory, | |
wxString &localFilename, | |
int maxSeverity); | |
bool PutFile(wxString &remoteDirectory, | |
wxString &localFilename, | |
wxInputStream *localFileStream, | |
wxString &remoteFilename, | |
int maxSeverity); | |
bool GetRemoteFile( | |
wxString &remoteDirectory, | |
wxString &remoteFilename, | |
wxString &localDirectory); | |
bool GetRemoteFileRestart( | |
wxString &remoteDirectory, | |
wxString &remoteFilename, | |
wxString &localDirectory, | |
bool restartDownload, | |
long maxLogfileSize); | |
long GetRemoteFileSize( | |
wxString &remoteDirectory, | |
wxString &remoteFilename); | |
bool GetRemoteDirectoryListing(wxString &remoteDirectory, | |
wxString &remoteWildcard, | |
wxArrayString &remoteFiles); | |
bool DownloadFileList(wxString &remoteDirectory, | |
wxString &remoteWildcard, | |
wxString &localDirectory); | |
bool ChangeDirectory(wxString &fullPath); | |
bool Connect(RestartingFTP &ftpConnection); | |
void Disconnect(); | |
void MaxErrorSeverity(int severity); | |
wxString GetLastErrorMessage(); | |
public: | |
wxString ID; | |
wxString IPAddress; | |
wxString FTPUsername; | |
wxString FTPPassword; | |
int FTPPort; | |
bool FTPPassive; | |
int FTPRetries; | |
private: | |
// RestartingFTP ftpConnection; | |
RestartingFTP *staticFTPConnection; | |
int maxErrorSeverity; | |
wxString lastErrorMessage; | |
}; | |
#endif |