29 #ifndef __SB_PROCESS_H__
30 #define __SB_PROCESS_H__
56 #include <nsIThread.h>
57 #include <nsStringGlue.h>
125 nsresult
GetArgList(nsTArray<nsString>& aArgList);
126 nsresult
SetArgList(
const nsTArray<nsString>& aArgList);
204 PRLock* mProcessLock;
205 nsTArray<nsString> mArgList;
206 PRBool mPipeStdinString;
207 nsString mStdinString;
208 PRBool mPipeStdoutString;
209 nsString mStdoutString;
210 nsresult mDoneResult;
212 PRProcess* mBaseProcess;
213 PRFileDesc* mStdinReadFD;
214 PRFileDesc* mStdoutReadFD;
215 PRFileDesc* mStdoutWriteFD;
216 nsCOMPtr<nsIThread> mWaitForDoneThread;
217 PRBool mHasBeenKilled;
219 PRMonitor* mDoneMonitor;
242 nsresult HandleDone();
256 PR_DestroyProcessAttr(mValue));
289 nsTArray<nsString>& aArgList,
290 const nsAString* aStdin = nsnull,
291 PRBool aPipeStdoutString = PR_FALSE,
292 PRMonitor* aDoneMonitor = nsnull);
295 #endif // __SB_PROCESS_H__
nsresult GetStdoutString(nsAString &aStdoutString)
SB_AUTO_NULL_CLASS(sbAutoPRProcessAttr, PRProcessAttr *, PR_DestroyProcessAttr(mValue))
nsresult GetDoneMonitor(PRMonitor **aDoneMonitor)
nsresult GetExitCode(PRInt32 *aExitCode)
nsresult GetDoneResult(nsresult *aDoneResult)
nsresult GetIsDone(PRBool *aIsDone)
nsresult SetDoneMonitor(PRMonitor *aDoneMonitor)
nsresult SetPipeStdoutString(PRBool aPipeStdoutString)
nsresult GetArgList(nsTArray< nsString > &aArgList)
nsresult GetPipeStdoutString(PRBool *aPipeStdoutString)
nsresult SB_RunProcess(sbProcess **aProcess, nsTArray< nsString > &aArgList, const nsAString *aStdin=nsnull, PRBool aPipeStdoutString=PR_FALSE, PRMonitor *aDoneMonitor=nsnull)
nsresult SetArgList(const nsTArray< nsString > &aArgList)
static NS_DECL_ISUPPORTS nsresult New(sbProcess **aProcess)
nsresult GetStdinString(nsAString &aStdinString)
nsresult SetStdinString(const nsAString &aStdinString)