1///////////////////////////////////////////////////////////////////////////////
2// Name:        wx/palmos/evtloop.h
3// Purpose:     wxEventLoop class for Palm OS
4// Author:      William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created:     2004-10-14
7// RCS-ID:      $Id: evtloop.h 31469 2005-01-18 21:14:27Z ABX $
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
19class WXDLLEXPORT wxEventLoop : public wxEventLoopBase
20{
21public:
22    wxEventLoop();
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();
29    virtual bool IsRunning() const;
30
31    // MSW-specific methods
32    // --------------------
33
34    // preprocess a message, return true if processed (i.e. no further
35    // dispatching required)
36    virtual bool PreProcessMessage(WXMSG *msg);
37
38    // process a single message
39    virtual void ProcessMessage(WXMSG *msg);
40
41protected:
42    // should we exit the loop?
43    bool m_shouldExit;
44
45    // the loop exit code
46    int m_exitcode;
47};
48
49#endif // _WX_PALMOS_EVTLOOP_H_
50
51