]>
Commit | Line | Data |
---|---|---|
ffecfa5a JS |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/palmos/evtloop.h | |
3 | // Purpose: wxEventLoop class for Palm OS | |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 2004-10-14 | |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_PALMOS_EVTLOOP_H_ | |
13 | #define _WX_PALMOS_EVTLOOP_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // wxEventLoop | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
53a2db12 | 19 | class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase |
ffecfa5a JS |
20 | { |
21 | public: | |
b46b1d59 | 22 | wxGUIEventLoop(); |
ffecfa5a JS |
23 | |
24 | // implement base class pure virtuals | |
25 | virtual int Run(); | |
26 | virtual void Exit(int rc = 0); | |
27 | virtual bool Pending() const; | |
28 | virtual bool Dispatch(); | |
9af42efd | 29 | virtual int DispatchTimeout(unsigned long timeout); |
ffecfa5a | 30 | virtual bool IsRunning() const; |
dde19c21 | 31 | virtual bool YieldFor(long eventsToProcess); |
ffecfa5a JS |
32 | |
33 | // MSW-specific methods | |
34 | // -------------------- | |
35 | ||
36 | // preprocess a message, return true if processed (i.e. no further | |
37 | // dispatching required) | |
38 | virtual bool PreProcessMessage(WXMSG *msg); | |
39 | ||
40 | // process a single message | |
41 | virtual void ProcessMessage(WXMSG *msg); | |
e2fc40b4 | 42 | virtual void WakeUp(); |
ffecfa5a JS |
43 | |
44 | protected: | |
45 | // should we exit the loop? | |
46 | bool m_shouldExit; | |
47 | ||
48 | // the loop exit code | |
49 | int m_exitcode; | |
50 | }; | |
51 | ||
52 | #endif // _WX_PALMOS_EVTLOOP_H_ | |
53 |