make wxSocketBase::SetTimeout virtual and make it protected in wxFTP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// Name: ftp.h
|
// Name: ftp.h
|
||||||
// Purpose: FTP protocol
|
// Purpose: FTP protocol
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Modified by: Mark Johnson, wxWindows@mj10777.de
|
// Modified by: Mark Johnson, wxWindows@mj10777.de
|
||||||
// 20000917 : RmDir, GetLastResult, GetList
|
// 20000917 : RmDir, GetLastResult, GetList
|
||||||
// Created: 07/07/1997
|
// Created: 07/07/1997
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
bool Connect(const wxString& host);
|
bool Connect(const wxString& host);
|
||||||
|
|
||||||
// disconnect
|
// disconnect
|
||||||
virtual bool Close();
|
virtual bool Close(); // does NOT set m_lastError
|
||||||
|
|
||||||
// Parameters set up
|
// Parameters set up
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ public:
|
|||||||
|
|
||||||
// Get the size of a file in the current dir.
|
// Get the size of a file in the current dir.
|
||||||
// this function tries its best to deliver the size in bytes using BINARY
|
// this function tries its best to deliver the size in bytes using BINARY
|
||||||
// (the SIZE command reports different sizes depending on whether
|
// (the SIZE command reports different sizes depending on whether
|
||||||
// type is set to ASCII or BINARY)
|
// type is set to ASCII or BINARY)
|
||||||
// returns -1 if file is non-existant or size could not be found
|
// returns -1 if file is non-existant or size could not be found
|
||||||
int GetFileSize(const wxString& fileName);
|
int GetFileSize(const wxString& fileName);
|
||||||
@@ -119,6 +119,11 @@ public:
|
|||||||
bool details = false);
|
bool details = false);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// just change access from public to protected for this wxSocketBase function:
|
||||||
|
// use SetDefaultTimeout instead which also sets our m_uiDefaultTimeout var
|
||||||
|
virtual void SetTimeout(long seconds)
|
||||||
|
{ wxSocketBase::SetTimeout(seconds); }
|
||||||
|
|
||||||
// this executes a simple ftp command with the given argument and returns
|
// this executes a simple ftp command with the given argument and returns
|
||||||
// true if it its return code starts with '2'
|
// true if it its return code starts with '2'
|
||||||
bool DoSimpleCommand(const wxChar *command,
|
bool DoSimpleCommand(const wxChar *command,
|
||||||
|
@@ -165,7 +165,7 @@ public:
|
|||||||
|
|
||||||
wxSocketFlags GetFlags() const { return m_flags; }
|
wxSocketFlags GetFlags() const { return m_flags; }
|
||||||
void SetFlags(wxSocketFlags flags);
|
void SetFlags(wxSocketFlags flags);
|
||||||
void SetTimeout(long seconds);
|
virtual void SetTimeout(long seconds);
|
||||||
long GetTimeout() const { return m_timeout; }
|
long GetTimeout() const { return m_timeout; }
|
||||||
|
|
||||||
bool GetOption(int level, int optname, void *optval, int *optlen);
|
bool GetOption(int level, int optname, void *optval, int *optlen);
|
||||||
|
Reference in New Issue
Block a user