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:
Francesco Montorsi
2009-01-16 13:34:44 +00:00
parent 21f0f3a2fa
commit 6214e8d571
2 changed files with 9 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ public:
bool Connect(const wxString& host);
// disconnect
virtual bool Close();
virtual bool Close(); // does NOT set m_lastError
// Parameters set up
@@ -119,6 +119,11 @@ public:
bool details = false);
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
// true if it its return code starts with '2'
bool DoSimpleCommand(const wxChar *command,

View File

@@ -165,7 +165,7 @@ public:
wxSocketFlags GetFlags() const { return m_flags; }
void SetFlags(wxSocketFlags flags);
void SetTimeout(long seconds);
virtual void SetTimeout(long seconds);
long GetTimeout() const { return m_timeout; }
bool GetOption(int level, int optname, void *optval, int *optlen);