]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/apptbase.h
a4488c6a1b58f4086bd55310fe5e1c0966381213
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/apptbase.h
3 // Purpose: declaration of wxAppTraits for Unix systems
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIX_APPTBASE_H_
13 #define _WX_UNIX_APPTBASE_H_
18 // ----------------------------------------------------------------------------
19 // wxAppTraits: the Unix version adds extra hooks needed by Unix code
20 // ----------------------------------------------------------------------------
22 class WXDLLEXPORT wxAppTraits
: public wxAppTraitsBase
25 // wxExecute() support methods
26 // ---------------------------
28 // called before starting the child process and creates the pipe used for
29 // detecting the process termination asynchronously in GUI, does nothing in
32 // if it returns false, we should return from wxExecute() with an error
33 virtual bool CreateEndProcessPipe(wxExecuteData
& execData
) = 0;
35 // test if the given descriptor is the end of the pipe create by the
37 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData
& execData
, int fd
) = 0;
39 // ensure that the write end of the pipe is not closed by wxPipe dtor
40 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData
& execData
) = 0;
42 // wait for the process termination, return whatever wxExecute() must
44 virtual int WaitForChild(wxExecuteData
& execData
) = 0;
53 #endif // _WX_UNIX_APPTBASE_H_