X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf7f7d5d96c178d35ceb96fe74ea3eb13dd009de..b02dd12239c8a59b9a545d9fcb04974f8ad02c6b:/interface/wx/protocol/ftp.h?ds=inline diff --git a/interface/wx/protocol/ftp.h b/interface/wx/protocol/ftp.h index 364e5e434d..b6a7992ffc 100644 --- a/interface/wx/protocol/ftp.h +++ b/interface/wx/protocol/ftp.h @@ -3,19 +3,9 @@ // Purpose: interface of wxFTP // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -/** - Transfer modes used by wxFTP. -*/ -enum TransferMode -{ - NONE, //!< not set by user explicitly. - ASCII, - BINARY -}; - /** @class wxFTP @@ -54,7 +44,7 @@ enum TransferMode wxLogError("Couldn't get the file size for \"%s\"", filename); } - wxInputStream *i = ftp.GetInputStream(filename); + wxInputStream *in = ftp.GetInputStream(filename); if ( !in ) { wxLogError("Couldn't get the file"); @@ -100,6 +90,16 @@ enum TransferMode class wxFTP : public wxProtocol { public: + /** + Transfer modes used by wxFTP. + */ + enum TransferMode + { + NONE, //!< not set by user explicitly. + ASCII, + BINARY + }; + /** Default constructor. */ @@ -112,6 +112,22 @@ public: + //@{ + /** + Connect to the FTP server to default port (21) of the specified @a host. + */ + virtual bool Connect(const wxString& host); + + /** + Connect to the FTP server to any port of the specified @a host. + By default (@a port = 0), connection is made to default FTP port (21) + of the specified @a host. + + @since 2.9.1 + */ + virtual bool Connect(const wxString& host, unsigned short port); + //@} + /** @name Functions for managing the FTP connection */