LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIProcess.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/threads/nsIProcess.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIProcess_h__
       6                 : #define __gen_nsIProcess_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIFile_h__
      10                 : #include "nsIFile.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsISupports_h__
      14                 : #include "nsISupports.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : class nsIObserver; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIProcess */
      25                 : #define NS_IPROCESS_IID_STR "609610de-9954-4a63-8a7c-346350a86403"
      26                 : 
      27                 : #define NS_IPROCESS_IID \
      28                 :   {0x609610de, 0x9954, 0x4a63, \
      29                 :     { 0x8a, 0x7c, 0x34, 0x63, 0x50, 0xa8, 0x64, 0x03 }}
      30                 : 
      31            1019 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProcess : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROCESS_IID)
      35                 : 
      36                 :   /* void init (in nsIFile executable); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *executable) = 0;
      38                 : 
      39                 :   /* void kill (); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD Kill(void) = 0;
      41                 : 
      42                 :   /* void run (in boolean blocking, [array, size_is (count)] in string args, in unsigned long count); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD Run(bool blocking, const char * *args, PRUint32 count) = 0;
      44                 : 
      45                 :   /* void runAsync ([array, size_is (count)] in string args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD RunAsync(const char * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) = 0;
      47                 : 
      48                 :   /* void runw (in boolean blocking, [array, size_is (count)] in wstring args, in unsigned long count); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD Runw(bool blocking, const PRUnichar * *args, PRUint32 count) = 0;
      50                 : 
      51                 :   /* void runwAsync ([array, size_is (count)] in wstring args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD RunwAsync(const PRUnichar * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) = 0;
      53                 : 
      54                 :   /* readonly attribute unsigned long pid; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetPid(PRUint32 *aPid) = 0;
      56                 : 
      57                 :   /* readonly attribute long exitValue; */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetExitValue(PRInt32 *aExitValue) = 0;
      59                 : 
      60                 :   /* readonly attribute boolean isRunning; */
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetIsRunning(bool *aIsRunning) = 0;
      62                 : 
      63                 : };
      64                 : 
      65                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProcess, NS_IPROCESS_IID)
      66                 : 
      67                 : /* Use this macro when declaring classes that implement this interface. */
      68                 : #define NS_DECL_NSIPROCESS \
      69                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *executable); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD Kill(void); \
      71                 :   NS_SCRIPTABLE NS_IMETHOD Run(bool blocking, const char * *args, PRUint32 count); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD RunAsync(const char * *args, PRUint32 count, nsIObserver *observer, bool holdWeak); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD Runw(bool blocking, const PRUnichar * *args, PRUint32 count); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD RunwAsync(const PRUnichar * *args, PRUint32 count, nsIObserver *observer, bool holdWeak); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetPid(PRUint32 *aPid); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetExitValue(PRInt32 *aExitValue); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetIsRunning(bool *aIsRunning); 
      78                 : 
      79                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      80                 : #define NS_FORWARD_NSIPROCESS(_to) \
      81                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *executable) { return _to Init(executable); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD Kill(void) { return _to Kill(); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD Run(bool blocking, const char * *args, PRUint32 count) { return _to Run(blocking, args, count); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD RunAsync(const char * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) { return _to RunAsync(args, count, observer, holdWeak); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD Runw(bool blocking, const PRUnichar * *args, PRUint32 count) { return _to Runw(blocking, args, count); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD RunwAsync(const PRUnichar * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) { return _to RunwAsync(args, count, observer, holdWeak); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetPid(PRUint32 *aPid) { return _to GetPid(aPid); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetExitValue(PRInt32 *aExitValue) { return _to GetExitValue(aExitValue); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetIsRunning(bool *aIsRunning) { return _to GetIsRunning(aIsRunning); } 
      90                 : 
      91                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      92                 : #define NS_FORWARD_SAFE_NSIPROCESS(_to) \
      93                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *executable) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(executable); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD Kill(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Kill(); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD Run(bool blocking, const char * *args, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(blocking, args, count); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD RunAsync(const char * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) { return !_to ? NS_ERROR_NULL_POINTER : _to->RunAsync(args, count, observer, holdWeak); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD Runw(bool blocking, const PRUnichar * *args, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->Runw(blocking, args, count); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD RunwAsync(const PRUnichar * *args, PRUint32 count, nsIObserver *observer, bool holdWeak) { return !_to ? NS_ERROR_NULL_POINTER : _to->RunwAsync(args, count, observer, holdWeak); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetPid(PRUint32 *aPid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPid(aPid); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetExitValue(PRInt32 *aExitValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExitValue(aExitValue); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetIsRunning(bool *aIsRunning) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRunning(aIsRunning); } 
     102                 : 
     103                 : #if 0
     104                 : /* Use the code below as a template for the implementation class for this interface. */
     105                 : 
     106                 : /* Header file */
     107                 : class nsProcess : public nsIProcess
     108                 : {
     109                 : public:
     110                 :   NS_DECL_ISUPPORTS
     111                 :   NS_DECL_NSIPROCESS
     112                 : 
     113                 :   nsProcess();
     114                 : 
     115                 : private:
     116                 :   ~nsProcess();
     117                 : 
     118                 : protected:
     119                 :   /* additional members */
     120                 : };
     121                 : 
     122                 : /* Implementation file */
     123                 : NS_IMPL_ISUPPORTS1(nsProcess, nsIProcess)
     124                 : 
     125                 : nsProcess::nsProcess()
     126                 : {
     127                 :   /* member initializers and constructor code */
     128                 : }
     129                 : 
     130                 : nsProcess::~nsProcess()
     131                 : {
     132                 :   /* destructor code */
     133                 : }
     134                 : 
     135                 : /* void init (in nsIFile executable); */
     136                 : NS_IMETHODIMP nsProcess::Init(nsIFile *executable)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void kill (); */
     142                 : NS_IMETHODIMP nsProcess::Kill()
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* void run (in boolean blocking, [array, size_is (count)] in string args, in unsigned long count); */
     148                 : NS_IMETHODIMP nsProcess::Run(bool blocking, const char * *args, PRUint32 count)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* void runAsync ([array, size_is (count)] in string args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak); */
     154                 : NS_IMETHODIMP nsProcess::RunAsync(const char * *args, PRUint32 count, nsIObserver *observer, bool holdWeak)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* void runw (in boolean blocking, [array, size_is (count)] in wstring args, in unsigned long count); */
     160                 : NS_IMETHODIMP nsProcess::Runw(bool blocking, const PRUnichar * *args, PRUint32 count)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* void runwAsync ([array, size_is (count)] in wstring args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak); */
     166                 : NS_IMETHODIMP nsProcess::RunwAsync(const PRUnichar * *args, PRUint32 count, nsIObserver *observer, bool holdWeak)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* readonly attribute unsigned long pid; */
     172                 : NS_IMETHODIMP nsProcess::GetPid(PRUint32 *aPid)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* readonly attribute long exitValue; */
     178                 : NS_IMETHODIMP nsProcess::GetExitValue(PRInt32 *aExitValue)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* readonly attribute boolean isRunning; */
     184                 : NS_IMETHODIMP nsProcess::GetIsRunning(bool *aIsRunning)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* End of implementation class template. */
     190                 : #endif
     191                 : 
     192                 : 
     193                 : #define NS_PROCESS_CONTRACTID "@mozilla.org/process/util;1"
     194                 : #define NS_PROCESS_CLASSNAME "Process Specification"
     195                 : 
     196                 : #endif /* __gen_nsIProcess_h__ */

Generated by: LCOV version 1.7