/usr/include/thunderbird/nsIMimeEmitter.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 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMimeEmitter.idl
*/
#ifndef __gen_nsIMimeEmitter_h__
#define __gen_nsIMimeEmitter_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsrootidl_h__
#include "nsrootidl.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIOutputStream; /* forward declaration */
class nsIInputStream; /* forward declaration */
class nsIURI; /* forward declaration */
class nsIStreamListener; /* forward declaration */
class nsIChannel; /* forward declaration */
/* starting interface: nsMimeHeaderDisplayTypes */
#define NS_MIMEHEADERDISPLAYTYPES_IID_STR "eb9beb09-44de-4ad2-a560-f572b1afd534"
#define NS_MIMEHEADERDISPLAYTYPES_IID \
{0xeb9beb09, 0x44de, 0x4ad2, \
{ 0xa5, 0x60, 0xf5, 0x72, 0xb1, 0xaf, 0xd5, 0x34 }}
class NS_NO_VTABLE nsMimeHeaderDisplayTypes {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_MIMEHEADERDISPLAYTYPES_IID)
enum {
MicroHeaders = 0,
NormalHeaders = 1,
AllHeaders = 2
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsMimeHeaderDisplayTypes, NS_MIMEHEADERDISPLAYTYPES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMIMEHEADERDISPLAYTYPES \
/* 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_NSMIMEHEADERDISPLAYTYPES \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMIMEHEADERDISPLAYTYPES(_to) \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMIMEHEADERDISPLAYTYPES(_to) \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public nsMimeHeaderDisplayTypes
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSMIMEHEADERDISPLAYTYPES
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, nsMimeHeaderDisplayTypes)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
#define NS_IMIME_MISC_STATUS_KEY "@mozilla.org/MimeMiscStatus;1?type="
/* starting interface: nsIMimeEmitter */
#define NS_IMIMEEMITTER_IID_STR "7a57166f-2891-4122-9a74-6c3fab0caac3"
#define NS_IMIMEEMITTER_IID \
{0x7a57166f, 0x2891, 0x4122, \
{ 0x9a, 0x74, 0x6c, 0x3f, 0xab, 0x0c, 0xaa, 0xc3 }}
class NS_NO_VTABLE nsIMimeEmitter : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMEEMITTER_IID)
/* attribute nsIStreamListener outputListener; */
NS_IMETHOD GetOutputListener(nsIStreamListener * *aOutputListener) = 0;
NS_IMETHOD SetOutputListener(nsIStreamListener *aOutputListener) = 0;
/* void initialize (in nsIURI url, in nsIChannel aChannel, in long aFormat); */
NS_IMETHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat) = 0;
/* void complete (); */
NS_IMETHOD Complete(void) = 0;
/* void setPipe (in nsIInputStream inputStream, in nsIOutputStream outStream); */
NS_IMETHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream) = 0;
/* void startHeader (in boolean rootMailHeader, in boolean headerOnly, [const] in string msgID, [const] in string outCharset); */
NS_IMETHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset) = 0;
/* void addHeaderField ([const] in string field, [const] in string value); */
NS_IMETHOD AddHeaderField(const char * field, const char * value) = 0;
/* void addAllHeaders (in ACString allheaders); */
NS_IMETHOD AddAllHeaders(const nsACString & allheaders) = 0;
/* void writeHTMLHeaders ([const] in AUTF8String name); */
NS_IMETHOD WriteHTMLHeaders(const nsACString & name) = 0;
/* void endHeader ([const] in AUTF8String name); */
NS_IMETHOD EndHeader(const nsACString & name) = 0;
/* void updateCharacterSet ([const] in string aCharset); */
NS_IMETHOD UpdateCharacterSet(const char * aCharset) = 0;
/* void startAttachment ([const] in AUTF8String name, [const] in string contentType, [const] in string url, in boolean aNotDownloaded); */
NS_IMETHOD StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded) = 0;
/* void addAttachmentField ([const] in string field, [const] in string value); */
NS_IMETHOD AddAttachmentField(const char * field, const char * value) = 0;
/* void endAttachment (); */
NS_IMETHOD EndAttachment(void) = 0;
/* void endAllAttachments (); */
NS_IMETHOD EndAllAttachments(void) = 0;
/* void startBody (in boolean bodyOnly, [const] in string msgID, [const] in string outCharset); */
NS_IMETHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset) = 0;
/* void writeBody ([const] in AUTF8String buf, out uint32_t amountWritten); */
NS_IMETHOD WriteBody(const nsACString & buf, uint32_t *amountWritten) = 0;
/* void endBody (); */
NS_IMETHOD EndBody(void) = 0;
/* void write ([const] in ACString buf, out uint32_t amountWritten); */
NS_IMETHOD Write(const nsACString & buf, uint32_t *amountWritten) = 0;
/* void utilityWrite ([const] in string buf); */
NS_IMETHOD UtilityWrite(const char * buf) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMimeEmitter, NS_IMIMEEMITTER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMIMEEMITTER \
NS_IMETHOD GetOutputListener(nsIStreamListener * *aOutputListener) override; \
NS_IMETHOD SetOutputListener(nsIStreamListener *aOutputListener) override; \
NS_IMETHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat) override; \
NS_IMETHOD Complete(void) override; \
NS_IMETHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream) override; \
NS_IMETHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset) override; \
NS_IMETHOD AddHeaderField(const char * field, const char * value) override; \
NS_IMETHOD AddAllHeaders(const nsACString & allheaders) override; \
NS_IMETHOD WriteHTMLHeaders(const nsACString & name) override; \
NS_IMETHOD EndHeader(const nsACString & name) override; \
NS_IMETHOD UpdateCharacterSet(const char * aCharset) override; \
NS_IMETHOD StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded) override; \
NS_IMETHOD AddAttachmentField(const char * field, const char * value) override; \
NS_IMETHOD EndAttachment(void) override; \
NS_IMETHOD EndAllAttachments(void) override; \
NS_IMETHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset) override; \
NS_IMETHOD WriteBody(const nsACString & buf, uint32_t *amountWritten) override; \
NS_IMETHOD EndBody(void) override; \
NS_IMETHOD Write(const nsACString & buf, uint32_t *amountWritten) override; \
NS_IMETHOD UtilityWrite(const char * buf) 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_NSIMIMEEMITTER \
NS_METHOD GetOutputListener(nsIStreamListener * *aOutputListener); \
NS_METHOD SetOutputListener(nsIStreamListener *aOutputListener); \
NS_METHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat); \
NS_METHOD Complete(void); \
NS_METHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream); \
NS_METHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset); \
NS_METHOD AddHeaderField(const char * field, const char * value); \
NS_METHOD AddAllHeaders(const nsACString & allheaders); \
NS_METHOD WriteHTMLHeaders(const nsACString & name); \
NS_METHOD EndHeader(const nsACString & name); \
NS_METHOD UpdateCharacterSet(const char * aCharset); \
NS_METHOD StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded); \
NS_METHOD AddAttachmentField(const char * field, const char * value); \
NS_METHOD EndAttachment(void); \
NS_METHOD EndAllAttachments(void); \
NS_METHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset); \
NS_METHOD WriteBody(const nsACString & buf, uint32_t *amountWritten); \
NS_METHOD EndBody(void); \
NS_METHOD Write(const nsACString & buf, uint32_t *amountWritten); \
NS_METHOD UtilityWrite(const char * buf);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMIMEEMITTER(_to) \
NS_IMETHOD GetOutputListener(nsIStreamListener * *aOutputListener) override { return _to GetOutputListener(aOutputListener); } \
NS_IMETHOD SetOutputListener(nsIStreamListener *aOutputListener) override { return _to SetOutputListener(aOutputListener); } \
NS_IMETHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat) override { return _to Initialize(url, aChannel, aFormat); } \
NS_IMETHOD Complete(void) override { return _to Complete(); } \
NS_IMETHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream) override { return _to SetPipe(inputStream, outStream); } \
NS_IMETHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset) override { return _to StartHeader(rootMailHeader, headerOnly, msgID, outCharset); } \
NS_IMETHOD AddHeaderField(const char * field, const char * value) override { return _to AddHeaderField(field, value); } \
NS_IMETHOD AddAllHeaders(const nsACString & allheaders) override { return _to AddAllHeaders(allheaders); } \
NS_IMETHOD WriteHTMLHeaders(const nsACString & name) override { return _to WriteHTMLHeaders(name); } \
NS_IMETHOD EndHeader(const nsACString & name) override { return _to EndHeader(name); } \
NS_IMETHOD UpdateCharacterSet(const char * aCharset) override { return _to UpdateCharacterSet(aCharset); } \
NS_IMETHOD StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded) override { return _to StartAttachment(name, contentType, url, aNotDownloaded); } \
NS_IMETHOD AddAttachmentField(const char * field, const char * value) override { return _to AddAttachmentField(field, value); } \
NS_IMETHOD EndAttachment(void) override { return _to EndAttachment(); } \
NS_IMETHOD EndAllAttachments(void) override { return _to EndAllAttachments(); } \
NS_IMETHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset) override { return _to StartBody(bodyOnly, msgID, outCharset); } \
NS_IMETHOD WriteBody(const nsACString & buf, uint32_t *amountWritten) override { return _to WriteBody(buf, amountWritten); } \
NS_IMETHOD EndBody(void) override { return _to EndBody(); } \
NS_IMETHOD Write(const nsACString & buf, uint32_t *amountWritten) override { return _to Write(buf, amountWritten); } \
NS_IMETHOD UtilityWrite(const char * buf) override { return _to UtilityWrite(buf); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMIMEEMITTER(_to) \
NS_IMETHOD GetOutputListener(nsIStreamListener * *aOutputListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutputListener(aOutputListener); } \
NS_IMETHOD SetOutputListener(nsIStreamListener *aOutputListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutputListener(aOutputListener); } \
NS_IMETHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(url, aChannel, aFormat); } \
NS_IMETHOD Complete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(); } \
NS_IMETHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPipe(inputStream, outStream); } \
NS_IMETHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartHeader(rootMailHeader, headerOnly, msgID, outCharset); } \
NS_IMETHOD AddHeaderField(const char * field, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHeaderField(field, value); } \
NS_IMETHOD AddAllHeaders(const nsACString & allheaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAllHeaders(allheaders); } \
NS_IMETHOD WriteHTMLHeaders(const nsACString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteHTMLHeaders(name); } \
NS_IMETHOD EndHeader(const nsACString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndHeader(name); } \
NS_IMETHOD UpdateCharacterSet(const char * aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCharacterSet(aCharset); } \
NS_IMETHOD StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartAttachment(name, contentType, url, aNotDownloaded); } \
NS_IMETHOD AddAttachmentField(const char * field, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAttachmentField(field, value); } \
NS_IMETHOD EndAttachment(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndAttachment(); } \
NS_IMETHOD EndAllAttachments(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndAllAttachments(); } \
NS_IMETHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBody(bodyOnly, msgID, outCharset); } \
NS_IMETHOD WriteBody(const nsACString & buf, uint32_t *amountWritten) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteBody(buf, amountWritten); } \
NS_IMETHOD EndBody(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBody(); } \
NS_IMETHOD Write(const nsACString & buf, uint32_t *amountWritten) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(buf, amountWritten); } \
NS_IMETHOD UtilityWrite(const char * buf) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UtilityWrite(buf); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMimeEmitter : public nsIMimeEmitter
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMIMEEMITTER
nsMimeEmitter();
private:
~nsMimeEmitter();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMimeEmitter, nsIMimeEmitter)
nsMimeEmitter::nsMimeEmitter()
{
/* member initializers and constructor code */
}
nsMimeEmitter::~nsMimeEmitter()
{
/* destructor code */
}
/* attribute nsIStreamListener outputListener; */
NS_IMETHODIMP nsMimeEmitter::GetOutputListener(nsIStreamListener * *aOutputListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMimeEmitter::SetOutputListener(nsIStreamListener *aOutputListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initialize (in nsIURI url, in nsIChannel aChannel, in long aFormat); */
NS_IMETHODIMP nsMimeEmitter::Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void complete (); */
NS_IMETHODIMP nsMimeEmitter::Complete()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setPipe (in nsIInputStream inputStream, in nsIOutputStream outStream); */
NS_IMETHODIMP nsMimeEmitter::SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startHeader (in boolean rootMailHeader, in boolean headerOnly, [const] in string msgID, [const] in string outCharset); */
NS_IMETHODIMP nsMimeEmitter::StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addHeaderField ([const] in string field, [const] in string value); */
NS_IMETHODIMP nsMimeEmitter::AddHeaderField(const char * field, const char * value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addAllHeaders (in ACString allheaders); */
NS_IMETHODIMP nsMimeEmitter::AddAllHeaders(const nsACString & allheaders)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeHTMLHeaders ([const] in AUTF8String name); */
NS_IMETHODIMP nsMimeEmitter::WriteHTMLHeaders(const nsACString & name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void endHeader ([const] in AUTF8String name); */
NS_IMETHODIMP nsMimeEmitter::EndHeader(const nsACString & name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void updateCharacterSet ([const] in string aCharset); */
NS_IMETHODIMP nsMimeEmitter::UpdateCharacterSet(const char * aCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startAttachment ([const] in AUTF8String name, [const] in string contentType, [const] in string url, in boolean aNotDownloaded); */
NS_IMETHODIMP nsMimeEmitter::StartAttachment(const nsACString & name, const char * contentType, const char * url, bool aNotDownloaded)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addAttachmentField ([const] in string field, [const] in string value); */
NS_IMETHODIMP nsMimeEmitter::AddAttachmentField(const char * field, const char * value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void endAttachment (); */
NS_IMETHODIMP nsMimeEmitter::EndAttachment()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void endAllAttachments (); */
NS_IMETHODIMP nsMimeEmitter::EndAllAttachments()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startBody (in boolean bodyOnly, [const] in string msgID, [const] in string outCharset); */
NS_IMETHODIMP nsMimeEmitter::StartBody(bool bodyOnly, const char * msgID, const char * outCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeBody ([const] in AUTF8String buf, out uint32_t amountWritten); */
NS_IMETHODIMP nsMimeEmitter::WriteBody(const nsACString & buf, uint32_t *amountWritten)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void endBody (); */
NS_IMETHODIMP nsMimeEmitter::EndBody()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write ([const] in ACString buf, out uint32_t amountWritten); */
NS_IMETHODIMP nsMimeEmitter::Write(const nsACString & buf, uint32_t *amountWritten)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void utilityWrite ([const] in string buf); */
NS_IMETHODIMP nsMimeEmitter::UtilityWrite(const char * buf)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMimeEmitter_h__ */
|