wxWidgets/include/wx/os2/apptbase.h
Vadim Zeitlin 51fe4b60ab Streamline wxSocket code: wxSocketBase now uses wxSocketImpl (previously known
as GSocket) which is a base class with various wxSocketImplXXX implementations
provided by different wxSocketManagers.

Share more code between ports (still not finished).

Refactor some code inside wxSocketImpl itself to be less redundant and fixed a
couple of minor bugs in the process.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-28 12:47:07 +00:00

39 lines
1.3 KiB
C++

///////////////////////////////////////////////////////////////////////////////
// Name: wx/os2/apptbase.h
// Purpose: declaration of wxAppTraits for OS2
// Author: Stefan Neis
// Modified by:
// Created: 22.09.2003
// RCS-ID: $Id$
// Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_OS2_APPTBASE_H_
#define _WX_OS2_APPTBASE_H_
// ----------------------------------------------------------------------------
// wxAppTraits: the OS2 version adds extra hooks needed by OS2-only code
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
{
public:
// wxThread helpers
// ----------------
// Initialize PM facilities to enable GUI access
virtual void InitializeGui(unsigned long &ulHab);
// Clean up message queue.
virtual void TerminateGui(unsigned long ulHab);
#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 wxSocketManager *GetSocketManager();
#endif
};
#endif // _WX_OS2_APPTBASE_H_