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