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@wxwidgets.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 WXDLLIMPEXP_BASE 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
);
35 // test if the given descriptor is the end of the pipe create by the
37 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData
& execData
, int fd
);
39 // ensure that the write end of the pipe is not closed by wxPipe dtor
40 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData
& execData
);
42 // wait for the process termination, return whatever wxExecute() must
44 virtual int WaitForChild(wxExecuteData
& execData
) = 0;
53 // returns the select()-based socket manager for console applications which
54 // is also used by some ports (wxX11, wxDFB) in the GUI build (hence it is
55 // here and not in wxConsoleAppTraits)
56 virtual GSocketManager
*GetSocketManager();
60 #endif // _WX_UNIX_APPTBASE_H_