X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..8d740f720363f249cebf5c871b4d1bdd623a8086:/interface/wx/protocol/ftp.h diff --git a/interface/wx/protocol/ftp.h b/interface/wx/protocol/ftp.h index a78b3d1dfa..b0f932fcd4 100644 --- a/interface/wx/protocol/ftp.h +++ b/interface/wx/protocol/ftp.h @@ -97,13 +97,13 @@ public: /** Destructor will close the connection if connected. */ - ~wxFTP(); + virtual ~wxFTP(); /** Aborts the download currently in process, returns @true if ok, @false if an error occurred. */ - bool Abort(); + virtual bool Abort(); /** Change the current FTP working directory. @@ -153,7 +153,7 @@ public: @see GetFilesList() */ bool GetDirList(wxArrayString& files, - const wxString& wildcard = ""); + const wxString& wildcard = wxEmptyString); /** Returns the file size in bytes or -1 if the file doesn't exist or the size @@ -177,7 +177,7 @@ public: @see GetDirList() */ bool GetFilesList(wxArrayString& files, - const wxString& wildcard = ""); + const wxString& wildcard = wxEmptyString); /** Creates a new input stream on the specified path. @@ -192,12 +192,12 @@ public: @return Returns @NULL if an error occurred (it could be a network failure or the fact that the file doesn't exist). */ - wxInputStream* GetInputStream(const wxString& path); + virtual wxInputStream* GetInputStream(const wxString& path); /** Returns the last command result, i.e. the full server reply for the last command. */ - const wxString GetLastResult(); + const wxString& GetLastResult(); /** Initializes an output stream to the specified @e file. @@ -209,7 +209,7 @@ public: @see wxOutputStream */ - wxOutputStream* GetOutputStream(const wxString& file); + virtual wxOutputStream* GetOutputStream(const wxString& file); /** Create the specified directory in the current FTP working directory. @@ -266,7 +266,7 @@ public: /** Sets the password to be sent to the FTP server to be allowed to log in. */ - void SetPassword(const wxString& passwd); + virtual void SetPassword(const wxString& passwd); /** Sets the transfer mode to the specified one. It will be used for the next @@ -279,6 +279,6 @@ public: /** Sets the user name to be sent to the FTP server to be allowed to log in. */ - void SetUser(const wxString& user); + virtual void SetUser(const wxString& user); };