mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
This commit is contained in:
parent
de070bf485
commit
a90b5cf37a
1998 changed files with 1034301 additions and 0 deletions
54
wxWidgets/include/wx/unix/apptbase.h
Normal file
54
wxWidgets/include/wx/unix/apptbase.h
Normal file
|
@ -0,0 +1,54 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/unix/apptbase.h
|
||||
// Purpose: declaration of wxAppTraits for Unix systems
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 23.06.2003
|
||||
// RCS-ID: $Id: apptbase.h 29409 2004-09-26 16:28:51Z VZ $
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_UNIX_APPTBASE_H_
|
||||
#define _WX_UNIX_APPTBASE_H_
|
||||
|
||||
struct wxExecuteData;
|
||||
class wxPipe;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxAppTraits: the Unix version adds extra hooks needed by Unix code
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxAppTraits : public wxAppTraitsBase
|
||||
{
|
||||
public:
|
||||
// wxExecute() support methods
|
||||
// ---------------------------
|
||||
|
||||
// called before starting the child process and creates the pipe used for
|
||||
// detecting the process termination asynchronously in GUI, does nothing in
|
||||
// wxBase
|
||||
//
|
||||
// if it returns false, we should return from wxExecute() with an error
|
||||
virtual bool CreateEndProcessPipe(wxExecuteData& execData) = 0;
|
||||
|
||||
// test if the given descriptor is the end of the pipe create by the
|
||||
// function above
|
||||
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd) = 0;
|
||||
|
||||
// ensure that the write end of the pipe is not closed by wxPipe dtor
|
||||
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData) = 0;
|
||||
|
||||
// wait for the process termination, return whatever wxExecute() must
|
||||
// return
|
||||
virtual int WaitForChild(wxExecuteData& execData) = 0;
|
||||
|
||||
|
||||
// wxThread helpers
|
||||
// ----------------
|
||||
|
||||
// TODO
|
||||
};
|
||||
|
||||
#endif // _WX_UNIX_APPTBASE_H_
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue