1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/apptrait.h
3 // Purpose: class implementing wxAppTraits for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALM_APPTRAIT_H_
13 #define _WX_PALM_APPTRAIT_H_
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits
: public wxConsoleAppTraitsBase
22 virtual void *BeforeChildWaitLoop();
23 virtual void AlwaysYield();
24 virtual void AfterChildWaitLoop(void *data
);
26 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
) { return NULL
; };
28 virtual bool DoMessageFromThreadWait();
33 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
36 virtual void *BeforeChildWaitLoop();
37 virtual void AlwaysYield();
38 virtual void AfterChildWaitLoop(void *data
);
40 // there is no wxTimer support yet
41 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
43 virtual bool DoMessageFromThreadWait();
44 virtual wxPortId
GetToolkitVersion(int *majVer
, int *minVer
) const;
49 #endif // _WX_PALM_APPTRAIT_H_