1///////////////////////////////////////////////////////////////////////////////
2// Name:        wx/palmos/apptbase.h
3// Purpose:     declaration of wxAppTraits for Palm OS
4// Author:      William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created:     10/13/04
7// RCS-ID:      $Id: apptbase.h 40599 2006-08-13 21:00:32Z VZ $
8// Copyright:   (c) William Osborne
9// Licence:     wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PALMOS_APPTBASE_H_
13#define _WX_PALMOS_APPTBASE_H_
14
15// ----------------------------------------------------------------------------
16// wxAppTraits
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
20{
21public:
22    // wxExecute() support methods
23    // ---------------------------
24
25    // called before starting to wait for the child termination, may return
26    // some opaque data which will be passed later to AfterChildWaitLoop()
27    virtual void *BeforeChildWaitLoop() = 0;
28
29    // process pending Windows messages, even in console app
30    virtual void AlwaysYield() = 0;
31
32    // called after starting to wait for the child termination, the parameter
33    // is the return value of BeforeChildWaitLoop()
34    virtual void AfterChildWaitLoop(void *data) = 0;
35
36
37    // wxThread helpers
38    // ----------------
39
40    // process a message while waiting for a(nother) thread, should return
41    // false if and only if we have to exit the application
42    virtual bool DoMessageFromThreadWait() = 0;
43};
44
45#endif // _WX_PALMOS_APPTBASE_H_
46
47