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 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 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMsgHdr.idl
 */

#ifndef __gen_nsIMsgHdr_h__
#define __gen_nsIMsgHdr_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.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 nsIMsgFolder; /* forward declaration */

class nsIUTF8StringEnumerator; /* forward declaration */


/* starting interface:    nsIMsgDBHdr */
#define NS_IMSGDBHDR_IID_STR "3c11ddbe-c805-40c5-b9c9-d065fad5d0be"

#define NS_IMSGDBHDR_IID \
  {0x3c11ddbe, 0xc805, 0x40c5, \
    { 0xb9, 0xc9, 0xd0, 0x65, 0xfa, 0xd5, 0xd0, 0xbe }}

class NS_NO_VTABLE nsIMsgDBHdr : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBHDR_IID)

  /* AString getProperty (in string propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProperty(const char * propertyName, nsAString& _retval) = 0;

  /* void setProperty (in string propertyName, in AString propertyStr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetProperty(const char * propertyName, const nsAString& propertyStr) = 0;

  /* void setStringProperty (in string propertyName, in string propertyValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) = 0;

  /* string getStringProperty (in string propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval) = 0;

  /* unsigned long getUint32Property (in string propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUint32Property(const char * propertyName, uint32_t *_retval) = 0;

  /* void setUint32Property (in string propertyName, in unsigned long propertyVal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUint32Property(const char * propertyName, uint32_t propertyVal) = 0;

  /* readonly attribute boolean isRead; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsRead(bool *aIsRead) = 0;

  /* readonly attribute boolean isFlagged; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsFlagged(bool *aIsFlagged) = 0;

  /* readonly attribute boolean isKilled; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsKilled(bool *aIsKilled) = 0;

  /* void markRead (in boolean read); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkRead(bool read) = 0;

  /* void markFlagged (in boolean flagged); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkFlagged(bool flagged) = 0;

  /* void markHasAttachments (in boolean hasAttachments); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkHasAttachments(bool hasAttachments) = 0;

  /* attribute nsMsgPriorityValue priority; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) = 0;

  /* void setPriorityString (in string priority); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPriorityString(const char * priority) = 0;

  /* attribute unsigned long flags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFlags(uint32_t aFlags) = 0;

  /* unsigned long OrFlags (in unsigned long flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OrFlags(uint32_t flags, uint32_t *_retval) = 0;

  /* unsigned long AndFlags (in unsigned long flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AndFlags(uint32_t flags, uint32_t *_retval) = 0;

  /* attribute nsMsgKey threadId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetThreadId(nsMsgKey aThreadId) = 0;

  /* attribute nsMsgKey messageKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) = 0;

  /* attribute nsMsgKey threadParent; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) = 0;

  /* attribute unsigned long messageSize; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageSize(uint32_t *aMessageSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageSize(uint32_t aMessageSize) = 0;

  /* attribute unsigned long lineCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLineCount(uint32_t *aLineCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLineCount(uint32_t aLineCount) = 0;

  /* attribute unsigned long statusOffset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusOffset(uint32_t *aStatusOffset) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatusOffset(uint32_t aStatusOffset) = 0;

  /* attribute unsigned long long messageOffset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageOffset(uint64_t *aMessageOffset) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageOffset(uint64_t aMessageOffset) = 0;

  /* attribute unsigned long offlineMessageSize; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOfflineMessageSize(uint32_t *aOfflineMessageSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOfflineMessageSize(uint32_t aOfflineMessageSize) = 0;

  /* attribute PRTime date; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDate(PRTime *aDate) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDate(PRTime aDate) = 0;

  /* readonly attribute unsigned long dateInSeconds; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDateInSeconds(uint32_t *aDateInSeconds) = 0;

  /* attribute string messageId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageId(char * *aMessageId) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageId(const char * aMessageId) = 0;

  /* attribute string ccList; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCcList(char * *aCcList) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCcList(const char * aCcList) = 0;

  /* attribute string bccList; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBccList(char * *aBccList) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBccList(const char * aBccList) = 0;

  /* attribute string author; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAuthor(char * *aAuthor) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAuthor(const char * aAuthor) = 0;

  /* attribute string subject; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSubject(char * *aSubject) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSubject(const char * aSubject) = 0;

  /* attribute string recipients; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRecipients(char * *aRecipients) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRecipients(const char * aRecipients) = 0;

  /* void setReferences (in string references); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetReferences(const char * references) = 0;

  /* readonly attribute unsigned short numReferences; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumReferences(uint16_t *aNumReferences) = 0;

  /* ACString getStringReference (in long refNum); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStringReference(int32_t refNum, nsACString& _retval) = 0;

  /* readonly attribute AString mime2DecodedAuthor; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMime2DecodedAuthor(nsAString& aMime2DecodedAuthor) = 0;

  /* readonly attribute AString mime2DecodedSubject; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMime2DecodedSubject(nsAString& aMime2DecodedSubject) = 0;

  /* readonly attribute AString mime2DecodedRecipients; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMime2DecodedRecipients(nsAString& aMime2DecodedRecipients) = 0;

  /* void getAuthorCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAuthorCollationKey(uint32_t *aCount, uint8_t **aKey) = 0;

  /* void getSubjectCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSubjectCollationKey(uint32_t *aCount, uint8_t **aKey) = 0;

  /* void getRecipientsCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRecipientsCollationKey(uint32_t *aCount, uint8_t **aKey) = 0;

  /* attribute string Charset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharset(char * *aCharset) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCharset(const char * aCharset) = 0;

  /* readonly attribute ACString effectiveCharset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEffectiveCharset(nsACString& aEffectiveCharset) = 0;

  /* attribute nsMsgLabelValue label; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) = 0;

  /* attribute string accountKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAccountKey(char * *aAccountKey) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAccountKey(const char * aAccountKey) = 0;

  /* readonly attribute nsIMsgFolder folder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) = 0;

  /* readonly attribute nsIUTF8StringEnumerator propertyEnumerator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator **aPropertyEnumerator) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDBHdr, NS_IMSGDBHDR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDBHDR \
  NS_IMETHOD GetProperty(const char * propertyName, nsAString& _retval) override; \
  NS_IMETHOD SetProperty(const char * propertyName, const nsAString& propertyStr) override; \
  NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) override; \
  NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval) override; \
  NS_IMETHOD GetUint32Property(const char * propertyName, uint32_t *_retval) override; \
  NS_IMETHOD SetUint32Property(const char * propertyName, uint32_t propertyVal) override; \
  NS_IMETHOD GetIsRead(bool *aIsRead) override; \
  NS_IMETHOD GetIsFlagged(bool *aIsFlagged) override; \
  NS_IMETHOD GetIsKilled(bool *aIsKilled) override; \
  NS_IMETHOD MarkRead(bool read) override; \
  NS_IMETHOD MarkFlagged(bool flagged) override; \
  NS_IMETHOD MarkHasAttachments(bool hasAttachments) override; \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override; \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override; \
  NS_IMETHOD SetPriorityString(const char * priority) override; \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
  NS_IMETHOD SetFlags(uint32_t aFlags) override; \
  NS_IMETHOD OrFlags(uint32_t flags, uint32_t *_retval) override; \
  NS_IMETHOD AndFlags(uint32_t flags, uint32_t *_retval) override; \
  NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) override; \
  NS_IMETHOD SetThreadId(nsMsgKey aThreadId) override; \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override; \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override; \
  NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) override; \
  NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) override; \
  NS_IMETHOD GetMessageSize(uint32_t *aMessageSize) override; \
  NS_IMETHOD SetMessageSize(uint32_t aMessageSize) override; \
  NS_IMETHOD GetLineCount(uint32_t *aLineCount) override; \
  NS_IMETHOD SetLineCount(uint32_t aLineCount) override; \
  NS_IMETHOD GetStatusOffset(uint32_t *aStatusOffset) override; \
  NS_IMETHOD SetStatusOffset(uint32_t aStatusOffset) override; \
  NS_IMETHOD GetMessageOffset(uint64_t *aMessageOffset) override; \
  NS_IMETHOD SetMessageOffset(uint64_t aMessageOffset) override; \
  NS_IMETHOD GetOfflineMessageSize(uint32_t *aOfflineMessageSize) override; \
  NS_IMETHOD SetOfflineMessageSize(uint32_t aOfflineMessageSize) override; \
  NS_IMETHOD GetDate(PRTime *aDate) override; \
  NS_IMETHOD SetDate(PRTime aDate) override; \
  NS_IMETHOD GetDateInSeconds(uint32_t *aDateInSeconds) override; \
  NS_IMETHOD GetMessageId(char * *aMessageId) override; \
  NS_IMETHOD SetMessageId(const char * aMessageId) override; \
  NS_IMETHOD GetCcList(char * *aCcList) override; \
  NS_IMETHOD SetCcList(const char * aCcList) override; \
  NS_IMETHOD GetBccList(char * *aBccList) override; \
  NS_IMETHOD SetBccList(const char * aBccList) override; \
  NS_IMETHOD GetAuthor(char * *aAuthor) override; \
  NS_IMETHOD SetAuthor(const char * aAuthor) override; \
  NS_IMETHOD GetSubject(char * *aSubject) override; \
  NS_IMETHOD SetSubject(const char * aSubject) override; \
  NS_IMETHOD GetRecipients(char * *aRecipients) override; \
  NS_IMETHOD SetRecipients(const char * aRecipients) override; \
  NS_IMETHOD SetReferences(const char * references) override; \
  NS_IMETHOD GetNumReferences(uint16_t *aNumReferences) override; \
  NS_IMETHOD GetStringReference(int32_t refNum, nsACString& _retval) override; \
  NS_IMETHOD GetMime2DecodedAuthor(nsAString& aMime2DecodedAuthor) override; \
  NS_IMETHOD GetMime2DecodedSubject(nsAString& aMime2DecodedSubject) override; \
  NS_IMETHOD GetMime2DecodedRecipients(nsAString& aMime2DecodedRecipients) override; \
  NS_IMETHOD GetAuthorCollationKey(uint32_t *aCount, uint8_t **aKey) override; \
  NS_IMETHOD GetSubjectCollationKey(uint32_t *aCount, uint8_t **aKey) override; \
  NS_IMETHOD GetRecipientsCollationKey(uint32_t *aCount, uint8_t **aKey) override; \
  NS_IMETHOD GetCharset(char * *aCharset) override; \
  NS_IMETHOD SetCharset(const char * aCharset) override; \
  NS_IMETHOD GetEffectiveCharset(nsACString& aEffectiveCharset) override; \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override; \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override; \
  NS_IMETHOD GetAccountKey(char * *aAccountKey) override; \
  NS_IMETHOD SetAccountKey(const char * aAccountKey) override; \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override; \
  NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator **aPropertyEnumerator) 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_NSIMSGDBHDR \
  nsresult GetProperty(const char * propertyName, nsAString& _retval); \
  nsresult SetProperty(const char * propertyName, const nsAString& propertyStr); \
  nsresult SetStringProperty(const char * propertyName, const char * propertyValue); \
  nsresult GetStringProperty(const char * propertyName, char * *_retval); \
  nsresult GetUint32Property(const char * propertyName, uint32_t *_retval); \
  nsresult SetUint32Property(const char * propertyName, uint32_t propertyVal); \
  nsresult GetIsRead(bool *aIsRead); \
  nsresult GetIsFlagged(bool *aIsFlagged); \
  nsresult GetIsKilled(bool *aIsKilled); \
  nsresult MarkRead(bool read); \
  nsresult MarkFlagged(bool flagged); \
  nsresult MarkHasAttachments(bool hasAttachments); \
  nsresult GetPriority(nsMsgPriorityValue *aPriority); \
  nsresult SetPriority(nsMsgPriorityValue aPriority); \
  nsresult SetPriorityString(const char * priority); \
  nsresult GetFlags(uint32_t *aFlags); \
  nsresult SetFlags(uint32_t aFlags); \
  nsresult OrFlags(uint32_t flags, uint32_t *_retval); \
  nsresult AndFlags(uint32_t flags, uint32_t *_retval); \
  nsresult GetThreadId(nsMsgKey *aThreadId); \
  nsresult SetThreadId(nsMsgKey aThreadId); \
  nsresult GetMessageKey(nsMsgKey *aMessageKey); \
  nsresult SetMessageKey(nsMsgKey aMessageKey); \
  nsresult GetThreadParent(nsMsgKey *aThreadParent); \
  nsresult SetThreadParent(nsMsgKey aThreadParent); \
  nsresult GetMessageSize(uint32_t *aMessageSize); \
  nsresult SetMessageSize(uint32_t aMessageSize); \
  nsresult GetLineCount(uint32_t *aLineCount); \
  nsresult SetLineCount(uint32_t aLineCount); \
  nsresult GetStatusOffset(uint32_t *aStatusOffset); \
  nsresult SetStatusOffset(uint32_t aStatusOffset); \
  nsresult GetMessageOffset(uint64_t *aMessageOffset); \
  nsresult SetMessageOffset(uint64_t aMessageOffset); \
  nsresult GetOfflineMessageSize(uint32_t *aOfflineMessageSize); \
  nsresult SetOfflineMessageSize(uint32_t aOfflineMessageSize); \
  nsresult GetDate(PRTime *aDate); \
  nsresult SetDate(PRTime aDate); \
  nsresult GetDateInSeconds(uint32_t *aDateInSeconds); \
  nsresult GetMessageId(char * *aMessageId); \
  nsresult SetMessageId(const char * aMessageId); \
  nsresult GetCcList(char * *aCcList); \
  nsresult SetCcList(const char * aCcList); \
  nsresult GetBccList(char * *aBccList); \
  nsresult SetBccList(const char * aBccList); \
  nsresult GetAuthor(char * *aAuthor); \
  nsresult SetAuthor(const char * aAuthor); \
  nsresult GetSubject(char * *aSubject); \
  nsresult SetSubject(const char * aSubject); \
  nsresult GetRecipients(char * *aRecipients); \
  nsresult SetRecipients(const char * aRecipients); \
  nsresult SetReferences(const char * references); \
  nsresult GetNumReferences(uint16_t *aNumReferences); \
  nsresult GetStringReference(int32_t refNum, nsACString& _retval); \
  nsresult GetMime2DecodedAuthor(nsAString& aMime2DecodedAuthor); \
  nsresult GetMime2DecodedSubject(nsAString& aMime2DecodedSubject); \
  nsresult GetMime2DecodedRecipients(nsAString& aMime2DecodedRecipients); \
  nsresult GetAuthorCollationKey(uint32_t *aCount, uint8_t **aKey); \
  nsresult GetSubjectCollationKey(uint32_t *aCount, uint8_t **aKey); \
  nsresult GetRecipientsCollationKey(uint32_t *aCount, uint8_t **aKey); \
  nsresult GetCharset(char * *aCharset); \
  nsresult SetCharset(const char * aCharset); \
  nsresult GetEffectiveCharset(nsACString& aEffectiveCharset); \
  nsresult GetLabel(nsMsgLabelValue *aLabel); \
  nsresult SetLabel(nsMsgLabelValue aLabel); \
  nsresult GetAccountKey(char * *aAccountKey); \
  nsresult SetAccountKey(const char * aAccountKey); \
  nsresult GetFolder(nsIMsgFolder **aFolder); \
  nsresult GetPropertyEnumerator(nsIUTF8StringEnumerator **aPropertyEnumerator); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBHDR(_to) \
  NS_IMETHOD GetProperty(const char * propertyName, nsAString& _retval) override { return _to GetProperty(propertyName, _retval); } \
  NS_IMETHOD SetProperty(const char * propertyName, const nsAString& propertyStr) override { return _to SetProperty(propertyName, propertyStr); } \
  NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) override { return _to SetStringProperty(propertyName, propertyValue); } \
  NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval) override { return _to GetStringProperty(propertyName, _retval); } \
  NS_IMETHOD GetUint32Property(const char * propertyName, uint32_t *_retval) override { return _to GetUint32Property(propertyName, _retval); } \
  NS_IMETHOD SetUint32Property(const char * propertyName, uint32_t propertyVal) override { return _to SetUint32Property(propertyName, propertyVal); } \
  NS_IMETHOD GetIsRead(bool *aIsRead) override { return _to GetIsRead(aIsRead); } \
  NS_IMETHOD GetIsFlagged(bool *aIsFlagged) override { return _to GetIsFlagged(aIsFlagged); } \
  NS_IMETHOD GetIsKilled(bool *aIsKilled) override { return _to GetIsKilled(aIsKilled); } \
  NS_IMETHOD MarkRead(bool read) override { return _to MarkRead(read); } \
  NS_IMETHOD MarkFlagged(bool flagged) override { return _to MarkFlagged(flagged); } \
  NS_IMETHOD MarkHasAttachments(bool hasAttachments) override { return _to MarkHasAttachments(hasAttachments); } \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override { return _to GetPriority(aPriority); } \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override { return _to SetPriority(aPriority); } \
  NS_IMETHOD SetPriorityString(const char * priority) override { return _to SetPriorityString(priority); } \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
  NS_IMETHOD SetFlags(uint32_t aFlags) override { return _to SetFlags(aFlags); } \
  NS_IMETHOD OrFlags(uint32_t flags, uint32_t *_retval) override { return _to OrFlags(flags, _retval); } \
  NS_IMETHOD AndFlags(uint32_t flags, uint32_t *_retval) override { return _to AndFlags(flags, _retval); } \
  NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) override { return _to GetThreadId(aThreadId); } \
  NS_IMETHOD SetThreadId(nsMsgKey aThreadId) override { return _to SetThreadId(aThreadId); } \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override { return _to GetMessageKey(aMessageKey); } \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override { return _to SetMessageKey(aMessageKey); } \
  NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) override { return _to GetThreadParent(aThreadParent); } \
  NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) override { return _to SetThreadParent(aThreadParent); } \
  NS_IMETHOD GetMessageSize(uint32_t *aMessageSize) override { return _to GetMessageSize(aMessageSize); } \
  NS_IMETHOD SetMessageSize(uint32_t aMessageSize) override { return _to SetMessageSize(aMessageSize); } \
  NS_IMETHOD GetLineCount(uint32_t *aLineCount) override { return _to GetLineCount(aLineCount); } \
  NS_IMETHOD SetLineCount(uint32_t aLineCount) override { return _to SetLineCount(aLineCount); } \
  NS_IMETHOD GetStatusOffset(uint32_t *aStatusOffset) override { return _to GetStatusOffset(aStatusOffset); } \
  NS_IMETHOD SetStatusOffset(uint32_t aStatusOffset) override { return _to SetStatusOffset(aStatusOffset); } \
  NS_IMETHOD GetMessageOffset(uint64_t *aMessageOffset) override { return _to GetMessageOffset(aMessageOffset); } \
  NS_IMETHOD SetMessageOffset(uint64_t aMessageOffset) override { return _to SetMessageOffset(aMessageOffset); } \
  NS_IMETHOD GetOfflineMessageSize(uint32_t *aOfflineMessageSize) override { return _to GetOfflineMessageSize(aOfflineMessageSize); } \
  NS_IMETHOD SetOfflineMessageSize(uint32_t aOfflineMessageSize) override { return _to SetOfflineMessageSize(aOfflineMessageSize); } \
  NS_IMETHOD GetDate(PRTime *aDate) override { return _to GetDate(aDate); } \
  NS_IMETHOD SetDate(PRTime aDate) override { return _to SetDate(aDate); } \
  NS_IMETHOD GetDateInSeconds(uint32_t *aDateInSeconds) override { return _to GetDateInSeconds(aDateInSeconds); } \
  NS_IMETHOD GetMessageId(char * *aMessageId) override { return _to GetMessageId(aMessageId); } \
  NS_IMETHOD SetMessageId(const char * aMessageId) override { return _to SetMessageId(aMessageId); } \
  NS_IMETHOD GetCcList(char * *aCcList) override { return _to GetCcList(aCcList); } \
  NS_IMETHOD SetCcList(const char * aCcList) override { return _to SetCcList(aCcList); } \
  NS_IMETHOD GetBccList(char * *aBccList) override { return _to GetBccList(aBccList); } \
  NS_IMETHOD SetBccList(const char * aBccList) override { return _to SetBccList(aBccList); } \
  NS_IMETHOD GetAuthor(char * *aAuthor) override { return _to GetAuthor(aAuthor); } \
  NS_IMETHOD SetAuthor(const char * aAuthor) override { return _to SetAuthor(aAuthor); } \
  NS_IMETHOD GetSubject(char * *aSubject) override { return _to GetSubject(aSubject); } \
  NS_IMETHOD SetSubject(const char * aSubject) override { return _to SetSubject(aSubject); } \
  NS_IMETHOD GetRecipients(char * *aRecipients) override { return _to GetRecipients(aRecipients); } \
  NS_IMETHOD SetRecipients(const char * aRecipients) override { return _to SetRecipients(aRecipients); } \
  NS_IMETHOD SetReferences(const char * references) override { return _to SetReferences(references); } \
  NS_IMETHOD GetNumReferences(uint16_t *aNumReferences) override { return _to GetNumReferences(aNumReferences); } \
  NS_IMETHOD GetStringReference(int32_t refNum, nsACString& _retval) override { return _to GetStringReference(refNum, _retval); } \
  NS_IMETHOD GetMime2DecodedAuthor(nsAString& aMime2DecodedAuthor) override { return _to GetMime2DecodedAuthor(aMime2DecodedAuthor); } \
  NS_IMETHOD GetMime2DecodedSubject(nsAString& aMime2DecodedSubject) override { return _to GetMime2DecodedSubject(aMime2DecodedSubject); } \
  NS_IMETHOD GetMime2DecodedRecipients(nsAString& aMime2DecodedRecipients) override { return _to GetMime2DecodedRecipients(aMime2DecodedRecipients); } \
  NS_IMETHOD GetAuthorCollationKey(uint32_t *aCount, uint8_t **aKey) override { return _to GetAuthorCollationKey(aCount, aKey); } \
  NS_IMETHOD GetSubjectCollationKey(uint32_t *aCount, uint8_t **aKey) override { return _to GetSubjectCollationKey(aCount, aKey); } \
  NS_IMETHOD GetRecipientsCollationKey(uint32_t *aCount, uint8_t **aKey) override { return _to GetRecipientsCollationKey(aCount, aKey); } \
  NS_IMETHOD GetCharset(char * *aCharset) override { return _to GetCharset(aCharset); } \
  NS_IMETHOD SetCharset(const char * aCharset) override { return _to SetCharset(aCharset); } \
  NS_IMETHOD GetEffectiveCharset(nsACString& aEffectiveCharset) override { return _to GetEffectiveCharset(aEffectiveCharset); } \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override { return _to GetLabel(aLabel); } \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override { return _to SetLabel(aLabel); } \
  NS_IMETHOD GetAccountKey(char * *aAccountKey) override { return _to GetAccountKey(aAccountKey); } \
  NS_IMETHOD SetAccountKey(const char * aAccountKey) override { return _to SetAccountKey(aAccountKey); } \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override { return _to GetFolder(aFolder); } \
  NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator **aPropertyEnumerator) override { return _to GetPropertyEnumerator(aPropertyEnumerator); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGDBHDR(_to) \
  NS_IMETHOD GetProperty(const char * propertyName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
  NS_IMETHOD SetProperty(const char * propertyName, const nsAString& propertyStr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyStr); } \
  NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(propertyName, propertyValue); } \
  NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(propertyName, _retval); } \
  NS_IMETHOD GetUint32Property(const char * propertyName, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUint32Property(propertyName, _retval); } \
  NS_IMETHOD SetUint32Property(const char * propertyName, uint32_t propertyVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUint32Property(propertyName, propertyVal); } \
  NS_IMETHOD GetIsRead(bool *aIsRead) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRead(aIsRead); } \
  NS_IMETHOD GetIsFlagged(bool *aIsFlagged) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFlagged(aIsFlagged); } \
  NS_IMETHOD GetIsKilled(bool *aIsKilled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsKilled(aIsKilled); } \
  NS_IMETHOD MarkRead(bool read) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkRead(read); } \
  NS_IMETHOD MarkFlagged(bool flagged) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkFlagged(flagged); } \
  NS_IMETHOD MarkHasAttachments(bool hasAttachments) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHasAttachments(hasAttachments); } \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriority(aPriority); } \
  NS_IMETHOD SetPriorityString(const char * priority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriorityString(priority); } \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
  NS_IMETHOD SetFlags(uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlags(aFlags); } \
  NS_IMETHOD OrFlags(uint32_t flags, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OrFlags(flags, _retval); } \
  NS_IMETHOD AndFlags(uint32_t flags, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AndFlags(flags, _retval); } \
  NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadId(aThreadId); } \
  NS_IMETHOD SetThreadId(nsMsgKey aThreadId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadId(aThreadId); } \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageKey(aMessageKey); } \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageKey(aMessageKey); } \
  NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadParent(aThreadParent); } \
  NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadParent(aThreadParent); } \
  NS_IMETHOD GetMessageSize(uint32_t *aMessageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageSize(aMessageSize); } \
  NS_IMETHOD SetMessageSize(uint32_t aMessageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageSize(aMessageSize); } \
  NS_IMETHOD GetLineCount(uint32_t *aLineCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineCount(aLineCount); } \
  NS_IMETHOD SetLineCount(uint32_t aLineCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineCount(aLineCount); } \
  NS_IMETHOD GetStatusOffset(uint32_t *aStatusOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusOffset(aStatusOffset); } \
  NS_IMETHOD SetStatusOffset(uint32_t aStatusOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusOffset(aStatusOffset); } \
  NS_IMETHOD GetMessageOffset(uint64_t *aMessageOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageOffset(aMessageOffset); } \
  NS_IMETHOD SetMessageOffset(uint64_t aMessageOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageOffset(aMessageOffset); } \
  NS_IMETHOD GetOfflineMessageSize(uint32_t *aOfflineMessageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOfflineMessageSize(aOfflineMessageSize); } \
  NS_IMETHOD SetOfflineMessageSize(uint32_t aOfflineMessageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOfflineMessageSize(aOfflineMessageSize); } \
  NS_IMETHOD GetDate(PRTime *aDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDate(aDate); } \
  NS_IMETHOD SetDate(PRTime aDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDate(aDate); } \
  NS_IMETHOD GetDateInSeconds(uint32_t *aDateInSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateInSeconds(aDateInSeconds); } \
  NS_IMETHOD GetMessageId(char * *aMessageId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageId(aMessageId); } \
  NS_IMETHOD SetMessageId(const char * aMessageId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageId(aMessageId); } \
  NS_IMETHOD GetCcList(char * *aCcList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCcList(aCcList); } \
  NS_IMETHOD SetCcList(const char * aCcList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCcList(aCcList); } \
  NS_IMETHOD GetBccList(char * *aBccList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBccList(aBccList); } \
  NS_IMETHOD SetBccList(const char * aBccList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBccList(aBccList); } \
  NS_IMETHOD GetAuthor(char * *aAuthor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthor(aAuthor); } \
  NS_IMETHOD SetAuthor(const char * aAuthor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAuthor(aAuthor); } \
  NS_IMETHOD GetSubject(char * *aSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubject(aSubject); } \
  NS_IMETHOD SetSubject(const char * aSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubject(aSubject); } \
  NS_IMETHOD GetRecipients(char * *aRecipients) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecipients(aRecipients); } \
  NS_IMETHOD SetRecipients(const char * aRecipients) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecipients(aRecipients); } \
  NS_IMETHOD SetReferences(const char * references) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferences(references); } \
  NS_IMETHOD GetNumReferences(uint16_t *aNumReferences) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumReferences(aNumReferences); } \
  NS_IMETHOD GetStringReference(int32_t refNum, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringReference(refNum, _retval); } \
  NS_IMETHOD GetMime2DecodedAuthor(nsAString& aMime2DecodedAuthor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedAuthor(aMime2DecodedAuthor); } \
  NS_IMETHOD GetMime2DecodedSubject(nsAString& aMime2DecodedSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedSubject(aMime2DecodedSubject); } \
  NS_IMETHOD GetMime2DecodedRecipients(nsAString& aMime2DecodedRecipients) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedRecipients(aMime2DecodedRecipients); } \
  NS_IMETHOD GetAuthorCollationKey(uint32_t *aCount, uint8_t **aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthorCollationKey(aCount, aKey); } \
  NS_IMETHOD GetSubjectCollationKey(uint32_t *aCount, uint8_t **aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectCollationKey(aCount, aKey); } \
  NS_IMETHOD GetRecipientsCollationKey(uint32_t *aCount, uint8_t **aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecipientsCollationKey(aCount, aKey); } \
  NS_IMETHOD GetCharset(char * *aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  NS_IMETHOD SetCharset(const char * aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
  NS_IMETHOD GetEffectiveCharset(nsACString& aEffectiveCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectiveCharset(aEffectiveCharset); } \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
  NS_IMETHOD GetAccountKey(char * *aAccountKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountKey(aAccountKey); } \
  NS_IMETHOD SetAccountKey(const char * aAccountKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccountKey(aAccountKey); } \
  NS_IMETHOD GetFolder(nsIMsgFolder **aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolder(aFolder); } \
  NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator **aPropertyEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyEnumerator(aPropertyEnumerator); } 


#endif /* __gen_nsIMsgHdr_h__ */