]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/sockpm.cpp
Unconditionally define IID_IShellItem in wxMSW sources.
[wxWidgets.git] / src / os2 / sockpm.cpp
index 2c7d7a209aff00912d5297c40b16c413f791c719..a06ad87081a48f13eea15ca31410780be7ef2961 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        os2/sockpm.cpp
+// Name:        src/os2/sockpm.cpp
 // Purpose:     implementation of OS-2-specific handler event handling
 // Author:      Guilhem Lavaux, Vadim Zeitlin
 // Created:     1999
 // Purpose:     implementation of OS-2-specific handler event handling
 // Author:      Guilhem Lavaux, Vadim Zeitlin
 // Created:     1999
 
 static void wxSocket_PM_Input(void *data)
 {
 
 static void wxSocket_PM_Input(void *data)
 {
-    wxSocketImplUnix *handler = static_cast<wxSocketImplUnix *>(data);
+    wxFDIOHandler *handler = static_cast<wxSocketImplUnix *>(data);
 
     handler->OnReadWaiting();
 }
 
 static void wxSocket_PM_Output(void *data)
 {
 
     handler->OnReadWaiting();
 }
 
 static void wxSocket_PM_Output(void *data)
 {
-    wxSocketImplUnix *handler = static_cast<wxSocketImplUnix *>(data);
+    wxFDIOHandler *handler = static_cast<wxSocketImplUnix *>(data);
 
     handler->OnWriteWaiting();
 }
 
 
     handler->OnWriteWaiting();
 }
 
-class PMSocketManager : public wxSocketInputBasedManager
+class PMFDIOManager : public wxFDIOManager
 {
 public:
 {
 public:
-    virtual int AddInput(wxSocketImplUnix *handler, int fd, SocketDir d)
+    virtual int AddInput(wxFDIOHandler *handler,
+                         int fd,
+                         wxFDIOManager::Direction d)
     {
       if (d == FD_OUTPUT)
           return wxTheApp->AddSocketHandler(fd, wxSockWriteMask,
     {
       if (d == FD_OUTPUT)
           return wxTheApp->AddSocketHandler(fd, wxSockWriteMask,
@@ -48,15 +50,18 @@ public:
                                             wxSocket_PM_Input, handler);
     }
 
                                             wxSocket_PM_Input, handler);
     }
 
-    virtual void RemoveInput(int fd)
+    virtual void
+    RemoveInput(wxFDIOHandler * WXUNUSED(handler),
+                int fd,
+                wxFDIOManager::Direction WXUNUSED(dir))
     {
         wxTheApp->RemoveSocketHandler(fd);
     }
 };
 
     {
         wxTheApp->RemoveSocketHandler(fd);
     }
 };
 
-wxSocketManager *wxGUIAppTraits::GetSocketManager()
+wxFDIOManager *wxGUIAppTraits::GetFDIOManager()
 {
 {
-    static PMSocketManager s_manager;
+    static PMFDIOManager s_manager;
     return &s_manager;
 }
 
     return &s_manager;
 }