]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/apptrait.h
Use correct reload flags on all platforms to avoid compilation errors
[wxWidgets.git] / include / wx / msw / apptrait.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/apptrait.h
3 // Purpose: class implementing wxAppTraits for MSW
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 21.06.2003
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSW_APPTRAIT_H_
13 #define _WX_MSW_APPTRAIT_H_
14
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20 {
21 public:
22 virtual wxEventLoopBase *CreateEventLoop();
23 virtual void *BeforeChildWaitLoop();
24 virtual void AfterChildWaitLoop(void *data);
25 #if wxUSE_TIMER
26 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
27 #endif // wxUSE_TIMER
28 #if wxUSE_THREADS
29 virtual bool DoMessageFromThreadWait();
30 virtual WXDWORD WaitForThread(WXHANDLE hThread, int flags);
31 #endif // wxUSE_THREADS
32 #ifndef __WXWINCE__
33 virtual bool CanUseStderr() { return true; }
34 virtual bool WriteToStderr(const wxString& text);
35 #endif // !__WXWINCE__
36 };
37
38 #if wxUSE_GUI
39
40 class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
41 {
42 public:
43 virtual wxEventLoopBase *CreateEventLoop();
44 virtual void *BeforeChildWaitLoop();
45 virtual void AfterChildWaitLoop(void *data);
46 #if wxUSE_TIMER
47 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
48 #endif // wxUSE_TIMER
49 #if wxUSE_THREADS
50 virtual bool DoMessageFromThreadWait();
51 virtual WXDWORD WaitForThread(WXHANDLE hThread, int flags);
52 #endif // wxUSE_THREADS
53 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
54
55 #ifndef __WXWINCE__
56 virtual bool CanUseStderr();
57 virtual bool WriteToStderr(const wxString& text);
58 #endif // !__WXWINCE__
59 };
60
61 #endif // wxUSE_GUI
62
63 #endif // _WX_MSW_APPTRAIT_H_