1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/evtloop.h
3 // Purpose: wxEventLoop class for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALMOS_EVTLOOP_H_
13 #define _WX_PALMOS_EVTLOOP_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxGUIEventLoop
: public wxEventLoopBase
24 // implement base class pure virtuals
26 virtual void Exit(int rc
= 0);
27 virtual bool Pending() const;
28 virtual bool Dispatch();
29 virtual int DispatchTimeout(unsigned long timeout
);
30 virtual bool IsRunning() const;
31 virtual bool YieldFor(long eventsToProcess
);
33 // MSW-specific methods
34 // --------------------
36 // preprocess a message, return true if processed (i.e. no further
37 // dispatching required)
38 virtual bool PreProcessMessage(WXMSG
*msg
);
40 // process a single message
41 virtual void ProcessMessage(WXMSG
*msg
);
42 virtual void WakeUp();
45 // should we exit the loop?
52 #endif // _WX_PALMOS_EVTLOOP_H_