X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b92fd37cb0f0d68b33d00abf696d0c3583bd8423..6acba9a7194b30113636efb08e0b165f91011e79:/include/wx/protocol/ftp.h diff --git a/include/wx/protocol/ftp.h b/include/wx/protocol/ftp.h index e3ee180c88..f9bdf27da2 100644 --- a/include/wx/protocol/ftp.h +++ b/include/wx/protocol/ftp.h @@ -7,22 +7,25 @@ // Created: 07/07/1997 // RCS-ID: $Id$ // Copyright: (c) 1997, 1998 Guilhem Lavaux -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __WX_FTP_H__ #define __WX_FTP_H__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "ftp.h" #endif -#include "wx/object.h" +#include "wx/defs.h" + +#if wxUSE_PROTOCOL_FTP + #include "wx/sckaddr.h" #include "wx/protocol/protocol.h" #include "wx/url.h" -class WXDLLEXPORT wxFTP : public wxProtocol +class WXDLLIMPEXP_BASE wxFTP : public wxProtocol { public: enum TransferMode @@ -78,15 +81,15 @@ public: bool Rename(const wxString& src, const wxString& dst); bool RmFile(const wxString& path); - // Get the size of a file in the current dir. - // this function tries its best to deliver the size in bytes using BINARY - // (the SIZE command reports different sizes depending on whether - // type is set to ASCII or BINARY) - // returns -1 if file is non-existant or size could not be found - int GetFileSize(const wxString& fileName); + // Get the size of a file in the current dir. + // this function tries its best to deliver the size in bytes using BINARY + // (the SIZE command reports different sizes depending on whether + // type is set to ASCII or BINARY) + // returns -1 if file is non-existant or size could not be found + int GetFileSize(const wxString& fileName); // Check to see if a file exists in the current dir - bool FileExists(const wxString& fileName); + bool FileExists(const wxString& fileName); // Download methods bool Abort(); @@ -117,7 +120,7 @@ public: const wxString& wildcard = wxEmptyString, bool details = FALSE); -#ifdef WXWIN_COMPATIBILITY_2 +#if WXWIN_COMPATIBILITY_2 // deprecated wxList *GetList(const wxString& wildcard, bool details = FALSE); #endif // WXWIN_COMPATIBILITY_2 @@ -161,4 +164,6 @@ protected: // wxLog::AddTraceMask(FTP_TRACE_MASK) to see them in output #define FTP_TRACE_MASK _T("ftp") +#endif // wxUSE_PROTOCOL_FTP + #endif // __WX_FTP_H__