1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/apptrait.h
3 // Purpose: class implementing wxAppTraits for OS/2
8 // Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_OS2_APPTRAIT_H_
13 #define _WX_OS2_APPTRAIT_H_
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits
: public wxConsoleAppTraitsBase
22 #if wxUSE_CONSOLE_EVENTLOOP
23 virtual wxEventLoopBase
*CreateEventLoop();
24 #endif // wxUSE_CONSOLE_EVENTLOOP
26 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
32 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
35 virtual wxEventLoopBase
*CreateEventLoop();
37 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
39 virtual wxPortId
GetToolkitVersion(int *majVer
= NULL
, int *minVer
= NULL
) const;
44 // Initialize PM facilities to enable GUI access
45 virtual void InitializeGui(unsigned long &ulHab
);
47 // Clean up message queue.
48 virtual void TerminateGui(unsigned long ulHab
);
50 virtual wxString
GetDesktopEnvironment() const;
53 virtual wxFDIOManager
*GetFDIOManager();
58 inline void wxGUIAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab
))
62 inline void wxGUIAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab
))
69 #endif // _WX_OS2_APPTRAIT_H_