make wxSelectDispatcher ctor public, it can be useful to create it in places other than wxFDIODispatcher

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-22 04:19:12 +00:00
parent ea58aac580
commit fdf7ff738c
3 changed files with 3 additions and 18 deletions

View File

@@ -82,8 +82,8 @@ private:
class WXDLLIMPEXP_BASE wxSelectDispatcher : public wxMappedFDIODispatcher
{
public:
// creates an instance of this class, the caller takes ownership of it
static wxSelectDispatcher *Create();
// default ctor
wxSelectDispatcher() { m_maxFD = -1; }
// implement pure virtual methods of the base class
virtual bool RegisterFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL);
@@ -91,10 +91,6 @@ public:
virtual bool UnregisterFD(int fd);
virtual void Dispatch(int timeout = TIMEOUT_INFINITE);
protected:
// ctor is not public, use Create()
wxSelectDispatcher();
private:
// common part of RegisterFD() and ModifyFD()
bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags);