X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d79bd3eaf6fe173996b9fc71693891a11dabd96..7a69cd967ad590541b83a6c52dca78b5b24f4037:/include/wx/protocol/ftp.h diff --git a/include/wx/protocol/ftp.h b/include/wx/protocol/ftp.h index 0ef5e77cf8..4fee213c9a 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(NO_GCC_PRAGMA) #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_NET wxFTP : public wxProtocol { public: enum TransferMode @@ -117,11 +120,6 @@ public: const wxString& wildcard = wxEmptyString, bool details = FALSE); -#if WXWIN_COMPATIBILITY_2 - // deprecated - wxList *GetList(const wxString& wildcard, bool details = FALSE); -#endif // WXWIN_COMPATIBILITY_2 - protected: // this executes a simple ftp command with the given argument and returns // TRUE if it its return code starts with '2' @@ -153,7 +151,7 @@ protected: friend class wxInputFTPStream; friend class wxOutputFTPStream; - DECLARE_DYNAMIC_CLASS(wxFTP) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxFTP) DECLARE_PROTOCOL(wxFTP) }; @@ -161,4 +159,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__