/usr/include/thunderbird/nsIStatusReporter.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
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 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStatusReporter.idl
*/
#ifndef __gen_nsIStatusReporter_h__
#define __gen_nsIStatusReporter_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 nsISimpleEnumerator; /* forward declaration */
/* starting interface: nsIStatusReporter */
#define NS_ISTATUSREPORTER_IID_STR "ffcb716c-deeb-44ea-9d9d-ab25dc6980a8"
#define NS_ISTATUSREPORTER_IID \
{0xffcb716c, 0xdeeb, 0x44ea, \
{ 0x9d, 0x9d, 0xab, 0x25, 0xdc, 0x69, 0x80, 0xa8 }}
class NS_NO_VTABLE nsIStatusReporter : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTATUSREPORTER_IID)
/* readonly attribute ACString name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute ACString process; */
NS_IMETHOD GetProcess(nsACString & aProcess) = 0;
/* readonly attribute AUTF8String description; */
NS_IMETHOD GetDescription(nsACString & aDescription) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStatusReporter, NS_ISTATUSREPORTER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTATUSREPORTER \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD GetProcess(nsACString & aProcess) override; \
NS_IMETHOD GetDescription(nsACString & aDescription) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISTATUSREPORTER \
NS_METHOD GetName(nsACString & aName); \
NS_METHOD GetProcess(nsACString & aProcess); \
NS_METHOD GetDescription(nsACString & aDescription);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTATUSREPORTER(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetProcess(nsACString & aProcess) override { return _to GetProcess(aProcess); } \
NS_IMETHOD GetDescription(nsACString & aDescription) override { return _to GetDescription(aDescription); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTATUSREPORTER(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetProcess(nsACString & aProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcess(aProcess); } \
NS_IMETHOD GetDescription(nsACString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStatusReporter : public nsIStatusReporter
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTATUSREPORTER
nsStatusReporter();
private:
~nsStatusReporter();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStatusReporter, nsIStatusReporter)
nsStatusReporter::nsStatusReporter()
{
/* member initializers and constructor code */
}
nsStatusReporter::~nsStatusReporter()
{
/* destructor code */
}
/* readonly attribute ACString name; */
NS_IMETHODIMP nsStatusReporter::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString process; */
NS_IMETHODIMP nsStatusReporter::GetProcess(nsACString & aProcess)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String description; */
NS_IMETHODIMP nsStatusReporter::GetDescription(nsACString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIStatusReporterManager */
#define NS_ISTATUSREPORTERMANAGER_IID_STR "fd531273-3319-4fcd-90f2-9f53876c3828"
#define NS_ISTATUSREPORTERMANAGER_IID \
{0xfd531273, 0x3319, 0x4fcd, \
{ 0x90, 0xf2, 0x9f, 0x53, 0x87, 0x6c, 0x38, 0x28 }}
class NS_NO_VTABLE nsIStatusReporterManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTATUSREPORTERMANAGER_IID)
/* nsISimpleEnumerator enumerateReporters (); */
NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) = 0;
/* void registerReporter (in nsIStatusReporter reporter); */
NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) = 0;
/* void unregisterReporter (in nsIStatusReporter reporter); */
NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) = 0;
/* void init (); */
NS_IMETHOD Init(void) = 0;
/* void dumpReports (); */
NS_IMETHOD DumpReports(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStatusReporterManager, NS_ISTATUSREPORTERMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTATUSREPORTERMANAGER \
NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override; \
NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override; \
NS_IMETHOD Init(void) override; \
NS_IMETHOD DumpReports(void) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISTATUSREPORTERMANAGER \
NS_METHOD EnumerateReporters(nsISimpleEnumerator * *_retval); \
NS_METHOD RegisterReporter(nsIStatusReporter *reporter); \
NS_METHOD UnregisterReporter(nsIStatusReporter *reporter); \
NS_METHOD Init(void); \
NS_METHOD DumpReports(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTATUSREPORTERMANAGER(_to) \
NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override { return _to EnumerateReporters(_retval); } \
NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override { return _to RegisterReporter(reporter); } \
NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override { return _to UnregisterReporter(reporter); } \
NS_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD DumpReports(void) override { return _to DumpReports(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTATUSREPORTERMANAGER(_to) \
NS_IMETHOD EnumerateReporters(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateReporters(_retval); } \
NS_IMETHOD RegisterReporter(nsIStatusReporter *reporter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterReporter(reporter); } \
NS_IMETHOD UnregisterReporter(nsIStatusReporter *reporter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReporter(reporter); } \
NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD DumpReports(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DumpReports(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStatusReporterManager : public nsIStatusReporterManager
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTATUSREPORTERMANAGER
nsStatusReporterManager();
private:
~nsStatusReporterManager();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStatusReporterManager, nsIStatusReporterManager)
nsStatusReporterManager::nsStatusReporterManager()
{
/* member initializers and constructor code */
}
nsStatusReporterManager::~nsStatusReporterManager()
{
/* destructor code */
}
/* nsISimpleEnumerator enumerateReporters (); */
NS_IMETHODIMP nsStatusReporterManager::EnumerateReporters(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerReporter (in nsIStatusReporter reporter); */
NS_IMETHODIMP nsStatusReporterManager::RegisterReporter(nsIStatusReporter *reporter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterReporter (in nsIStatusReporter reporter); */
NS_IMETHODIMP nsStatusReporterManager::UnregisterReporter(nsIStatusReporter *reporter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void init (); */
NS_IMETHODIMP nsStatusReporterManager::Init()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void dumpReports (); */
NS_IMETHODIMP nsStatusReporterManager::DumpReports()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/*
* Note that this defaults 'process' to "", which is usually what's desired.
*/
#define NS_STATUS_REPORTER_IMPLEMENT(_classname, _name, _desc_Function) \
class StatusReporter_##_classname final : public nsIStatusReporter { \
~StatusReporter_##_classname() {} \
public: \
NS_DECL_ISUPPORTS \
NS_IMETHOD GetName(nsACString &name) override \
{ name.AssignLiteral(_name); return NS_OK; } \
NS_IMETHOD GetProcess(nsACString &process) override \
{ process.Truncate(); return NS_OK; } \
NS_IMETHOD GetDescription(nsACString &desc) override \
{ _desc_Function(desc); return NS_OK; } \
}; \
NS_IMPL_ISUPPORTS(StatusReporter_##_classname, nsIStatusReporter)
#define NS_STATUS_REPORTER_NAME(_classname) StatusReporter_##_classname
nsresult NS_RegisterStatusReporter(nsIStatusReporter *reporter);
nsresult NS_UnregisterStatusReporter(nsIStatusReporter *reporter);
nsresult NS_DumpStatusReporter();
#define NS_STATUS_REPORTER_MANAGER_CID \
{ 0xe8eb4e7e, 0xf2cf, 0x45e5, \
{ 0xb8, 0xa4, 0x6a, 0x0f, 0x50, 0x18, 0x84, 0x63 } }
#endif /* __gen_nsIStatusReporter_h__ */
|