1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/apptrait.h
3 // Purpose: class implementing wxAppTraits for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by: Yunhui Fu
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALM_APPTRAIT_H_
13 #define _WX_PALM_APPTRAIT_H_
16 #include "wx/palmos/private/timer.h" // wxPalmOSTimerImpl
19 // ----------------------------------------------------------------------------
20 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_BASE wxConsoleAppTraits
: public wxConsoleAppTraitsBase
26 #if wxUSE_CONSOLE_EVENTLOOP
27 virtual wxEventLoopBase
*CreateEventLoop();
28 #endif // wxUSE_CONSOLE_EVENTLOOP
29 virtual void *BeforeChildWaitLoop();
30 virtual void AlwaysYield();
31 virtual void AfterChildWaitLoop(void *data
);
33 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
) { return new wxPalmOSTimerImpl(timer
); }
35 virtual bool DoMessageFromThreadWait();
36 virtual WXDWORD
WaitForThread(WXHANDLE hThread
);
41 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
44 virtual wxEventLoopBase
*CreateEventLoop();
45 virtual void *BeforeChildWaitLoop();
46 virtual void AlwaysYield();
47 virtual void AfterChildWaitLoop(void *data
);
49 // there is no wxTimer support yet
50 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
52 virtual bool DoMessageFromThreadWait();
53 virtual wxPortId
GetToolkitVersion(int *majVer
, int *minVer
) const;
58 #endif // _WX_PALM_APPTRAIT_H_