Added wxAppTraits::CreateGSocket() as well as implementations for wxBase and
wxGUI. This method should return a new derived instance of GSocketBSD which implements the EventLoop_ pure virtual functions appropriately. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,6 +29,9 @@ extern "C"
|
||||
struct GSocketGUIFunctionsTable;
|
||||
}
|
||||
|
||||
// FIXME: Eventually unify Mac OS 9
|
||||
class GSocketBSD;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// toolkit information
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -113,6 +116,10 @@ public:
|
||||
#if wxUSE_SOCKETS
|
||||
// return table of GUI callbacks for GSocket code or NULL in wxBase
|
||||
virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0;
|
||||
|
||||
// return a new GSocket with the EventLoop_* stuff implemented.
|
||||
// or at least stubbed (i.e. wxBase)
|
||||
virtual GSocketBSD* CreateGSocket() = 0;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -168,6 +175,7 @@ public:
|
||||
virtual wxRendererNative *CreateRenderer();
|
||||
#if wxUSE_SOCKETS
|
||||
virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable();
|
||||
virtual GSocketBSD* CreateGSocket();
|
||||
#endif
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
@@ -198,6 +206,9 @@ public:
|
||||
virtual wxRendererNative *CreateRenderer();
|
||||
#if wxUSE_SOCKETS
|
||||
virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable();
|
||||
// return a new GSocket with the EventLoop_* stuff implemented.
|
||||
// TODO: Remove this because each GUI should implement it separately
|
||||
virtual GSocketBSD* CreateGSocket();
|
||||
#endif
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
Reference in New Issue
Block a user