LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIProcess.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13