Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
nsProcess Class Reference

#include <nsProcess.h>

Inheritance diagram for nsProcess:
Inheritance graph
[legend]
Collaboration diagram for nsProcess:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPROCESS 
nsProcess ()
void init (in nsIFile executable)
void initWithPid (in unsigned long pid)
void kill ()
unsigned long run (in boolean blocking,[array, size_is(count)] in string args, in unsigned long count)
 XXX what charset?

Public Attributes

readonly attribute nsIFile location
readonly attribute unsigned long pid
readonly attribute string processName
readonly attribute unsigned long processSignature
readonly attribute long exitValue

Private Member Functions

 ~nsProcess ()

Private Attributes

nsCOMPtr< nsIFilemExecutable
PRInt32 mExitValue
nsCString mTargetPath
PRProcessmProcess

Detailed Description

Definition at line 52 of file nsProcess.h.


Constructor & Destructor Documentation

Definition at line 77 of file nsProcessCommon.cpp.

    : mExitValue(-1),
      mProcess(nsnull)
{
}
nsProcess::~nsProcess ( ) [inline, private]

Definition at line 62 of file nsProcess.h.

{}

Member Function Documentation

void nsIProcess::init ( in nsIFile  executable) [inherited]
void nsIProcess::initWithPid ( in unsigned long  pid) [inherited]
void nsIProcess::kill ( ) [inherited]
unsigned long nsIProcess::run ( in boolean  blocking,
[array, size_is(count)] in string  args,
in unsigned long  count 
) [inherited]

XXX what charset?

Executes the file this object was initialized with

Parameters:
blockingWhether to wait until the process terminates before returning or not
argsAn array of arguments to pass to the process
countThe length of the args array
Returns:
the PID of the newly spawned process

Member Data Documentation

readonly attribute long nsIProcess::exitValue [inherited]

Definition at line 25 of file nsIProcess.idl.

readonly attribute nsIFile nsIProcess::location [inherited]

Definition at line 21 of file nsIProcess.idl.

Definition at line 64 of file nsProcess.h.

Definition at line 65 of file nsProcess.h.

Definition at line 67 of file nsProcess.h.

Definition at line 66 of file nsProcess.h.

readonly attribute unsigned long nsIProcess::pid [inherited]

Definition at line 22 of file nsIProcess.idl.

Definition at line 23 of file nsIProcess.idl.

readonly attribute unsigned long nsIProcess::processSignature [inherited]

Definition at line 24 of file nsIProcess.idl.


The documentation for this class was generated from the following files: