X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2478fde622a16d25c66690af353dfdc37e7b582..0b9eac66cc640395c9cf4aefd01b506c492036eb:/include/wx/unix/apptbase.h diff --git a/include/wx/unix/apptbase.h b/include/wx/unix/apptbase.h index 3832761d13..50f30040f8 100644 --- a/include/wx/unix/apptbase.h +++ b/include/wx/unix/apptbase.h @@ -5,21 +5,21 @@ // Modified by: // Created: 23.06.2003 // RCS-ID: $Id$ -// Copyright: (c) 2003 Vadim Zeitlin +// Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIX_APPTBASE_H_ #define _WX_UNIX_APPTBASE_H_ -class wxExecuteData; +struct wxExecuteData; class wxPipe; // ---------------------------------------------------------------------------- // wxAppTraits: the Unix version adds extra hooks needed by Unix code // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxAppTraits : public wxAppTraitsBase +class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase { public: // wxExecute() support methods @@ -49,14 +49,12 @@ public: // TODO - - // other miscellaneous helpers - // --------------------------- - - // wxGetOsVersion() behaves differently in GUI and non-GUI builds udner - // Unix: in the former case it returns the information about the toolkit - // and in the latter -- about the OS, so we need to virtualize it - virtual int GetOSVersion(int *verMaj, int *verMin) = 0; +#if wxUSE_SOCKETS + // returns the select()-based socket manager for console applications which + // is also used by some ports (wxX11, wxDFB) in the GUI build (hence it is + // here and not in wxConsoleAppTraits) + virtual GSocketManager *GetSocketManager(); +#endif }; #endif // _WX_UNIX_APPTBASE_H_