Back to index

lightning-sunbird  0.9+nobinonly
nsIProcess.idl
Go to the documentation of this file.
00001 #include "nsIFile.idl"
00002 #include "nsISupports.idl"
00003 
00004 [scriptable, uuid(9da0b650-d07e-4617-a18a-250035572ac8)]
00005 
00006 interface nsIProcess : nsISupports
00007 {
00008        void init(in nsIFile executable);
00009        void initWithPid(in unsigned long pid);
00010        
00011        void kill();
00012 
00019         unsigned long run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count);
00020 
00021        readonly attribute nsIFile location;
00022        readonly attribute unsigned long pid;
00023        readonly attribute string processName;
00024        readonly attribute unsigned long processSignature;
00025        readonly attribute long exitValue;
00026 };
00027 
00028 %{C++
00029 
00030 #define NS_PROCESS_CONTRACTID "@mozilla.org/process/util;1"
00031 #define NS_PROCESS_CLASSNAME "Process Specification"
00032 %}