DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/mime/public/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

#include "js/GCAnnotations.h"

/* 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) \

#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; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOutputListener(nsIStreamListener **aOutputListener) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOutputListener(nsIStreamListener *aOutputListener) = 0;

  /* void initialize (in nsIURI url, in nsIChannel aChannel, in long aFormat); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat) = 0;

  /* void complete (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Complete(void) = 0;

  /* void setPipe (in nsIInputStream inputStream, in nsIOutputStream outStream); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream) = 0;

  /* void startHeader (in boolean rootMailHeader, in boolean headerOnly, [const] in string msgID, [const] in string outCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset) = 0;

  /* void addHeaderField ([const] in string field, [const] in string value); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddHeaderField(const char * field, const char * value) = 0;

  /* void addAllHeaders (in ACString allheaders); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddAllHeaders(const nsACString& allheaders) = 0;

  /* void writeHTMLHeaders ([const] in AUTF8String name); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteHTMLHeaders(const nsACString& name) = 0;

  /* void endHeader ([const] in AUTF8String name); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndHeader(const nsACString& name) = 0;

  /* void updateCharacterSet ([const] in string aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateCharacterSet(const char * aCharset) = 0;

  /* void startAttachment ([const] in AUTF8String name, [const] in string contentType, [const] in string url, in boolean aNotDownloaded); */
  JS_HAZ_CAN_RUN_SCRIPT 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); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddAttachmentField(const char * field, const char * value) = 0;

  /* void endAttachment (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndAttachment(void) = 0;

  /* void endAllAttachments (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndAllAttachments(void) = 0;

  /* void startBody (in boolean bodyOnly, [const] in string msgID, [const] in string outCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartBody(bool bodyOnly, const char * msgID, const char * outCharset) = 0;

  /* void writeBody ([const] in AUTF8String buf, out uint32_t amountWritten); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteBody(const nsACString& buf, uint32_t *amountWritten) = 0;

  /* void endBody (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndBody(void) = 0;

  /* void write ([const] in ACString buf, out uint32_t amountWritten); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Write(const nsACString& buf, uint32_t *amountWritten) = 0;

  /* void utilityWrite ([const] in string buf); */
  JS_HAZ_CAN_RUN_SCRIPT 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 \
  nsresult GetOutputListener(nsIStreamListener **aOutputListener); \
  nsresult SetOutputListener(nsIStreamListener *aOutputListener); \
  nsresult Initialize(nsIURI *url, nsIChannel *aChannel, int32_t aFormat); \
  nsresult Complete(void); \
  nsresult SetPipe(nsIInputStream *inputStream, nsIOutputStream *outStream); \
  nsresult StartHeader(bool rootMailHeader, bool headerOnly, const char * msgID, const char * outCharset); \
  nsresult AddHeaderField(const char * field, const char * value); \
  nsresult AddAllHeaders(const nsACString& allheaders); \
  nsresult WriteHTMLHeaders(const nsACString& name); \
  nsresult EndHeader(const nsACString& name); \
  nsresult UpdateCharacterSet(const char * aCharset); \
  nsresult StartAttachment(const nsACString& name, const char * contentType, const char * url, bool aNotDownloaded); \
  nsresult AddAttachmentField(const char * field, const char * value); \
  nsresult EndAttachment(void); \
  nsresult EndAllAttachments(void); \
  nsresult StartBody(bool bodyOnly, const char * msgID, const char * outCharset); \
  nsresult WriteBody(const nsACString& buf, uint32_t *amountWritten); \
  nsresult EndBody(void); \
  nsresult Write(const nsACString& buf, uint32_t *amountWritten); \
  nsresult 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); } 


#endif /* __gen_nsIMimeEmitter_h__ */