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 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/compose/public/nsIMsgSend.idl
 */

#ifndef __gen_nsIMsgSend_h__
#define __gen_nsIMsgSend_h__


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

#ifndef __gen_nsrootidl_h__
#include "nsrootidl.h"
#endif

#ifndef __gen_nsIMsgIdentity_h__
#include "nsIMsgIdentity.h"
#endif

#ifndef __gen_nsIMsgCompFields_h__
#include "nsIMsgCompFields.h"
#endif

#ifndef __gen_nsIMsgSendListener_h__
#include "nsIMsgSendListener.h"
#endif

#ifndef __gen_nsIMsgSendReport_h__
#include "nsIMsgSendReport.h"
#endif

#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

#ifndef __gen_nsIPrompt_h__
#include "nsIPrompt.h"
#endif

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.h"
#endif

#ifndef __gen_nsIMsgComposeParams_h__
#include "nsIMsgComposeParams.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 nsIMsgProgress; /* forward declaration */

class nsIURI; /* forward declaration */

class nsIRequest; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

class nsIMsgHdr; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIOutputStream; /* forward declaration */

class nsIMsgComposeSecure; /* forward declaration */

class nsIMsgStatusFeedback; /* forward declaration */

class nsIEditor; /* forward declaration */

class nsIArray; /* forward declaration */

class nsIMsgAttachmentHandler; /* forward declaration */

class mozIDOMWindowProxy; /* forward declaration */

typedef int32_t  nsMsgDeliverMode;


/* starting interface:    nsIMsgAttachmentData */
#define NS_IMSGATTACHMENTDATA_IID_STR "c658cd1f-dc4a-43c0-911c-c6d3e569ca7e"

#define NS_IMSGATTACHMENTDATA_IID \
  {0xc658cd1f, 0xdc4a, 0x43c0, \
    { 0x91, 0x1c, 0xc6, 0xd3, 0xe5, 0x69, 0xca, 0x7e }}

class NS_NO_VTABLE nsIMsgAttachmentData : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGATTACHMENTDATA_IID)

  /* attribute nsIURI url; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsIURI **aUrl) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUrl(nsIURI *aUrl) = 0;

  /* attribute ACString desiredType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDesiredType(nsACString& aDesiredType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDesiredType(const nsACString& aDesiredType) = 0;

  /* attribute ACString realType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRealType(nsACString& aRealType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRealType(const nsACString& aRealType) = 0;

  /* attribute ACString realEncoding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRealEncoding(nsACString& aRealEncoding) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRealEncoding(const nsACString& aRealEncoding) = 0;

  /* attribute ACString realName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRealName(nsACString& aRealName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRealName(const nsACString& aRealName) = 0;

  /* attribute ACString description; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDescription(nsACString& aDescription) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDescription(const nsACString& aDescription) = 0;

  /* attribute ACString xMacType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetXMacType(nsACString& aXMacType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetXMacType(const nsACString& aXMacType) = 0;

  /* attribute ACString xMacCreator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgAttachmentData, NS_IMSGATTACHMENTDATA_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGATTACHMENTDATA \
  NS_IMETHOD GetUrl(nsIURI **aUrl) override; \
  NS_IMETHOD SetUrl(nsIURI *aUrl) override; \
  NS_IMETHOD GetDesiredType(nsACString& aDesiredType) override; \
  NS_IMETHOD SetDesiredType(const nsACString& aDesiredType) override; \
  NS_IMETHOD GetRealType(nsACString& aRealType) override; \
  NS_IMETHOD SetRealType(const nsACString& aRealType) override; \
  NS_IMETHOD GetRealEncoding(nsACString& aRealEncoding) override; \
  NS_IMETHOD SetRealEncoding(const nsACString& aRealEncoding) override; \
  NS_IMETHOD GetRealName(nsACString& aRealName) override; \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override; \
  NS_IMETHOD GetDescription(nsACString& aDescription) override; \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override; \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override; \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override; \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override; \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) 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_NSIMSGATTACHMENTDATA \
  nsresult GetUrl(nsIURI **aUrl); \
  nsresult SetUrl(nsIURI *aUrl); \
  nsresult GetDesiredType(nsACString& aDesiredType); \
  nsresult SetDesiredType(const nsACString& aDesiredType); \
  nsresult GetRealType(nsACString& aRealType); \
  nsresult SetRealType(const nsACString& aRealType); \
  nsresult GetRealEncoding(nsACString& aRealEncoding); \
  nsresult SetRealEncoding(const nsACString& aRealEncoding); \
  nsresult GetRealName(nsACString& aRealName); \
  nsresult SetRealName(const nsACString& aRealName); \
  nsresult GetDescription(nsACString& aDescription); \
  nsresult SetDescription(const nsACString& aDescription); \
  nsresult GetXMacType(nsACString& aXMacType); \
  nsresult SetXMacType(const nsACString& aXMacType); \
  nsresult GetXMacCreator(nsACString& aXMacCreator); \
  nsresult SetXMacCreator(const nsACString& aXMacCreator); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGATTACHMENTDATA(_to) \
  NS_IMETHOD GetUrl(nsIURI **aUrl) override { return _to GetUrl(aUrl); } \
  NS_IMETHOD SetUrl(nsIURI *aUrl) override { return _to SetUrl(aUrl); } \
  NS_IMETHOD GetDesiredType(nsACString& aDesiredType) override { return _to GetDesiredType(aDesiredType); } \
  NS_IMETHOD SetDesiredType(const nsACString& aDesiredType) override { return _to SetDesiredType(aDesiredType); } \
  NS_IMETHOD GetRealType(nsACString& aRealType) override { return _to GetRealType(aRealType); } \
  NS_IMETHOD SetRealType(const nsACString& aRealType) override { return _to SetRealType(aRealType); } \
  NS_IMETHOD GetRealEncoding(nsACString& aRealEncoding) override { return _to GetRealEncoding(aRealEncoding); } \
  NS_IMETHOD SetRealEncoding(const nsACString& aRealEncoding) override { return _to SetRealEncoding(aRealEncoding); } \
  NS_IMETHOD GetRealName(nsACString& aRealName) override { return _to GetRealName(aRealName); } \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override { return _to SetRealName(aRealName); } \
  NS_IMETHOD GetDescription(nsACString& aDescription) override { return _to GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override { return _to SetDescription(aDescription); } \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override { return _to GetXMacType(aXMacType); } \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override { return _to SetXMacType(aXMacType); } \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override { return _to GetXMacCreator(aXMacCreator); } \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) override { return _to SetXMacCreator(aXMacCreator); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGATTACHMENTDATA(_to) \
  NS_IMETHOD GetUrl(nsIURI **aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
  NS_IMETHOD SetUrl(nsIURI *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUrl(aUrl); } \
  NS_IMETHOD GetDesiredType(nsACString& aDesiredType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesiredType(aDesiredType); } \
  NS_IMETHOD SetDesiredType(const nsACString& aDesiredType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesiredType(aDesiredType); } \
  NS_IMETHOD GetRealType(nsACString& aRealType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealType(aRealType); } \
  NS_IMETHOD SetRealType(const nsACString& aRealType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRealType(aRealType); } \
  NS_IMETHOD GetRealEncoding(nsACString& aRealEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealEncoding(aRealEncoding); } \
  NS_IMETHOD SetRealEncoding(const nsACString& aRealEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRealEncoding(aRealEncoding); } \
  NS_IMETHOD GetRealName(nsACString& aRealName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealName(aRealName); } \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRealName(aRealName); } \
  NS_IMETHOD GetDescription(nsACString& aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXMacType(aXMacType); } \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetXMacType(aXMacType); } \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXMacCreator(aXMacCreator); } \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetXMacCreator(aXMacCreator); } 


/* starting interface:    nsIMsgAttachedFile */
#define NS_IMSGATTACHEDFILE_IID_STR "c552345d-c74b-40b0-a673-79bb461e920b"

#define NS_IMSGATTACHEDFILE_IID \
  {0xc552345d, 0xc74b, 0x40b0, \
    { 0xa6, 0x73, 0x79, 0xbb, 0x46, 0x1e, 0x92, 0x0b }}

class NS_NO_VTABLE nsIMsgAttachedFile : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGATTACHEDFILE_IID)

  /* attribute nsIURI origUrl; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOrigUrl(nsIURI **aOrigUrl) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOrigUrl(nsIURI *aOrigUrl) = 0;

  /* attribute nsIFile tmpFile; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTmpFile(nsIFile *aTmpFile) = 0;

  /* attribute ACString type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsACString& aType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetType(const nsACString& aType) = 0;

  /* attribute ACString encoding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEncoding(nsACString& aEncoding) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetEncoding(const nsACString& aEncoding) = 0;

  /* attribute ACString description; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDescription(nsACString& aDescription) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDescription(const nsACString& aDescription) = 0;

  /* attribute ACString cloudPartInfo; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCloudPartInfo(nsACString& aCloudPartInfo) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCloudPartInfo(const nsACString& aCloudPartInfo) = 0;

  /* attribute ACString xMacType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetXMacType(nsACString& aXMacType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetXMacType(const nsACString& aXMacType) = 0;

  /* attribute ACString xMacCreator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) = 0;

  /* attribute ACString realName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRealName(nsACString& aRealName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRealName(const nsACString& aRealName) = 0;

  /* attribute unsigned long size; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSize(uint32_t *aSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSize(uint32_t aSize) = 0;

  /* attribute unsigned long unprintableCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnprintableCount(uint32_t *aUnprintableCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUnprintableCount(uint32_t aUnprintableCount) = 0;

  /* attribute unsigned long highbitCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHighbitCount(uint32_t *aHighbitCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHighbitCount(uint32_t aHighbitCount) = 0;

  /* attribute unsigned long ctlCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCtlCount(uint32_t *aCtlCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCtlCount(uint32_t aCtlCount) = 0;

  /* attribute unsigned long nullCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNullCount(uint32_t *aNullCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNullCount(uint32_t aNullCount) = 0;

  /* attribute unsigned long maxLineLength; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxLineLength(uint32_t *aMaxLineLength) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMaxLineLength(uint32_t aMaxLineLength) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgAttachedFile, NS_IMSGATTACHEDFILE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGATTACHEDFILE \
  NS_IMETHOD GetOrigUrl(nsIURI **aOrigUrl) override; \
  NS_IMETHOD SetOrigUrl(nsIURI *aOrigUrl) override; \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override; \
  NS_IMETHOD SetTmpFile(nsIFile *aTmpFile) override; \
  NS_IMETHOD GetType(nsACString& aType) override; \
  NS_IMETHOD SetType(const nsACString& aType) override; \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override; \
  NS_IMETHOD SetEncoding(const nsACString& aEncoding) override; \
  NS_IMETHOD GetDescription(nsACString& aDescription) override; \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override; \
  NS_IMETHOD GetCloudPartInfo(nsACString& aCloudPartInfo) override; \
  NS_IMETHOD SetCloudPartInfo(const nsACString& aCloudPartInfo) override; \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override; \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override; \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override; \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) override; \
  NS_IMETHOD GetRealName(nsACString& aRealName) override; \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override; \
  NS_IMETHOD GetSize(uint32_t *aSize) override; \
  NS_IMETHOD SetSize(uint32_t aSize) override; \
  NS_IMETHOD GetUnprintableCount(uint32_t *aUnprintableCount) override; \
  NS_IMETHOD SetUnprintableCount(uint32_t aUnprintableCount) override; \
  NS_IMETHOD GetHighbitCount(uint32_t *aHighbitCount) override; \
  NS_IMETHOD SetHighbitCount(uint32_t aHighbitCount) override; \
  NS_IMETHOD GetCtlCount(uint32_t *aCtlCount) override; \
  NS_IMETHOD SetCtlCount(uint32_t aCtlCount) override; \
  NS_IMETHOD GetNullCount(uint32_t *aNullCount) override; \
  NS_IMETHOD SetNullCount(uint32_t aNullCount) override; \
  NS_IMETHOD GetMaxLineLength(uint32_t *aMaxLineLength) override; \
  NS_IMETHOD SetMaxLineLength(uint32_t aMaxLineLength) 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_NSIMSGATTACHEDFILE \
  nsresult GetOrigUrl(nsIURI **aOrigUrl); \
  nsresult SetOrigUrl(nsIURI *aOrigUrl); \
  nsresult GetTmpFile(nsIFile **aTmpFile); \
  nsresult SetTmpFile(nsIFile *aTmpFile); \
  nsresult GetType(nsACString& aType); \
  nsresult SetType(const nsACString& aType); \
  nsresult GetEncoding(nsACString& aEncoding); \
  nsresult SetEncoding(const nsACString& aEncoding); \
  nsresult GetDescription(nsACString& aDescription); \
  nsresult SetDescription(const nsACString& aDescription); \
  nsresult GetCloudPartInfo(nsACString& aCloudPartInfo); \
  nsresult SetCloudPartInfo(const nsACString& aCloudPartInfo); \
  nsresult GetXMacType(nsACString& aXMacType); \
  nsresult SetXMacType(const nsACString& aXMacType); \
  nsresult GetXMacCreator(nsACString& aXMacCreator); \
  nsresult SetXMacCreator(const nsACString& aXMacCreator); \
  nsresult GetRealName(nsACString& aRealName); \
  nsresult SetRealName(const nsACString& aRealName); \
  nsresult GetSize(uint32_t *aSize); \
  nsresult SetSize(uint32_t aSize); \
  nsresult GetUnprintableCount(uint32_t *aUnprintableCount); \
  nsresult SetUnprintableCount(uint32_t aUnprintableCount); \
  nsresult GetHighbitCount(uint32_t *aHighbitCount); \
  nsresult SetHighbitCount(uint32_t aHighbitCount); \
  nsresult GetCtlCount(uint32_t *aCtlCount); \
  nsresult SetCtlCount(uint32_t aCtlCount); \
  nsresult GetNullCount(uint32_t *aNullCount); \
  nsresult SetNullCount(uint32_t aNullCount); \
  nsresult GetMaxLineLength(uint32_t *aMaxLineLength); \
  nsresult SetMaxLineLength(uint32_t aMaxLineLength); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGATTACHEDFILE(_to) \
  NS_IMETHOD GetOrigUrl(nsIURI **aOrigUrl) override { return _to GetOrigUrl(aOrigUrl); } \
  NS_IMETHOD SetOrigUrl(nsIURI *aOrigUrl) override { return _to SetOrigUrl(aOrigUrl); } \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override { return _to GetTmpFile(aTmpFile); } \
  NS_IMETHOD SetTmpFile(nsIFile *aTmpFile) override { return _to SetTmpFile(aTmpFile); } \
  NS_IMETHOD GetType(nsACString& aType) override { return _to GetType(aType); } \
  NS_IMETHOD SetType(const nsACString& aType) override { return _to SetType(aType); } \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString& aEncoding) override { return _to SetEncoding(aEncoding); } \
  NS_IMETHOD GetDescription(nsACString& aDescription) override { return _to GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override { return _to SetDescription(aDescription); } \
  NS_IMETHOD GetCloudPartInfo(nsACString& aCloudPartInfo) override { return _to GetCloudPartInfo(aCloudPartInfo); } \
  NS_IMETHOD SetCloudPartInfo(const nsACString& aCloudPartInfo) override { return _to SetCloudPartInfo(aCloudPartInfo); } \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override { return _to GetXMacType(aXMacType); } \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override { return _to SetXMacType(aXMacType); } \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override { return _to GetXMacCreator(aXMacCreator); } \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) override { return _to SetXMacCreator(aXMacCreator); } \
  NS_IMETHOD GetRealName(nsACString& aRealName) override { return _to GetRealName(aRealName); } \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override { return _to SetRealName(aRealName); } \
  NS_IMETHOD GetSize(uint32_t *aSize) override { return _to GetSize(aSize); } \
  NS_IMETHOD SetSize(uint32_t aSize) override { return _to SetSize(aSize); } \
  NS_IMETHOD GetUnprintableCount(uint32_t *aUnprintableCount) override { return _to GetUnprintableCount(aUnprintableCount); } \
  NS_IMETHOD SetUnprintableCount(uint32_t aUnprintableCount) override { return _to SetUnprintableCount(aUnprintableCount); } \
  NS_IMETHOD GetHighbitCount(uint32_t *aHighbitCount) override { return _to GetHighbitCount(aHighbitCount); } \
  NS_IMETHOD SetHighbitCount(uint32_t aHighbitCount) override { return _to SetHighbitCount(aHighbitCount); } \
  NS_IMETHOD GetCtlCount(uint32_t *aCtlCount) override { return _to GetCtlCount(aCtlCount); } \
  NS_IMETHOD SetCtlCount(uint32_t aCtlCount) override { return _to SetCtlCount(aCtlCount); } \
  NS_IMETHOD GetNullCount(uint32_t *aNullCount) override { return _to GetNullCount(aNullCount); } \
  NS_IMETHOD SetNullCount(uint32_t aNullCount) override { return _to SetNullCount(aNullCount); } \
  NS_IMETHOD GetMaxLineLength(uint32_t *aMaxLineLength) override { return _to GetMaxLineLength(aMaxLineLength); } \
  NS_IMETHOD SetMaxLineLength(uint32_t aMaxLineLength) override { return _to SetMaxLineLength(aMaxLineLength); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGATTACHEDFILE(_to) \
  NS_IMETHOD GetOrigUrl(nsIURI **aOrigUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigUrl(aOrigUrl); } \
  NS_IMETHOD SetOrigUrl(nsIURI *aOrigUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOrigUrl(aOrigUrl); } \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTmpFile(aTmpFile); } \
  NS_IMETHOD SetTmpFile(nsIFile *aTmpFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTmpFile(aTmpFile); } \
  NS_IMETHOD GetType(nsACString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD SetType(const nsACString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString& aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); } \
  NS_IMETHOD GetDescription(nsACString& aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const nsACString& aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
  NS_IMETHOD GetCloudPartInfo(nsACString& aCloudPartInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCloudPartInfo(aCloudPartInfo); } \
  NS_IMETHOD SetCloudPartInfo(const nsACString& aCloudPartInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCloudPartInfo(aCloudPartInfo); } \
  NS_IMETHOD GetXMacType(nsACString& aXMacType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXMacType(aXMacType); } \
  NS_IMETHOD SetXMacType(const nsACString& aXMacType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetXMacType(aXMacType); } \
  NS_IMETHOD GetXMacCreator(nsACString& aXMacCreator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXMacCreator(aXMacCreator); } \
  NS_IMETHOD SetXMacCreator(const nsACString& aXMacCreator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetXMacCreator(aXMacCreator); } \
  NS_IMETHOD GetRealName(nsACString& aRealName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealName(aRealName); } \
  NS_IMETHOD SetRealName(const nsACString& aRealName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRealName(aRealName); } \
  NS_IMETHOD GetSize(uint32_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  NS_IMETHOD SetSize(uint32_t aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  NS_IMETHOD GetUnprintableCount(uint32_t *aUnprintableCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnprintableCount(aUnprintableCount); } \
  NS_IMETHOD SetUnprintableCount(uint32_t aUnprintableCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnprintableCount(aUnprintableCount); } \
  NS_IMETHOD GetHighbitCount(uint32_t *aHighbitCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighbitCount(aHighbitCount); } \
  NS_IMETHOD SetHighbitCount(uint32_t aHighbitCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHighbitCount(aHighbitCount); } \
  NS_IMETHOD GetCtlCount(uint32_t *aCtlCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtlCount(aCtlCount); } \
  NS_IMETHOD SetCtlCount(uint32_t aCtlCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCtlCount(aCtlCount); } \
  NS_IMETHOD GetNullCount(uint32_t *aNullCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNullCount(aNullCount); } \
  NS_IMETHOD SetNullCount(uint32_t aNullCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNullCount(aNullCount); } \
  NS_IMETHOD GetMaxLineLength(uint32_t *aMaxLineLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLineLength(aMaxLineLength); } \
  NS_IMETHOD SetMaxLineLength(uint32_t aMaxLineLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLineLength(aMaxLineLength); } 


/* starting interface:    nsIMsgEmbeddedImageData */
#define NS_IMSGEMBEDDEDIMAGEDATA_IID_STR "5d2c6554-b4c8-4d68-b864-50e0df929707"

#define NS_IMSGEMBEDDEDIMAGEDATA_IID \
  {0x5d2c6554, 0xb4c8, 0x4d68, \
    { 0xb8, 0x64, 0x50, 0xe0, 0xdf, 0x92, 0x97, 0x07 }}

class NS_NO_VTABLE nsIMsgEmbeddedImageData : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGEMBEDDEDIMAGEDATA_IID)

  /* attribute nsIURI uri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUri(nsIURI **aUri) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUri(nsIURI *aUri) = 0;

  /* attribute ACString cid; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCid(nsACString& aCid) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCid(const nsACString& aCid) = 0;

  /* attribute ACString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetName(const nsACString& aName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgEmbeddedImageData, NS_IMSGEMBEDDEDIMAGEDATA_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGEMBEDDEDIMAGEDATA \
  NS_IMETHOD GetUri(nsIURI **aUri) override; \
  NS_IMETHOD SetUri(nsIURI *aUri) override; \
  NS_IMETHOD GetCid(nsACString& aCid) override; \
  NS_IMETHOD SetCid(const nsACString& aCid) override; \
  NS_IMETHOD GetName(nsACString& aName) override; \
  NS_IMETHOD SetName(const nsACString& aName) 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_NSIMSGEMBEDDEDIMAGEDATA \
  nsresult GetUri(nsIURI **aUri); \
  nsresult SetUri(nsIURI *aUri); \
  nsresult GetCid(nsACString& aCid); \
  nsresult SetCid(const nsACString& aCid); \
  nsresult GetName(nsACString& aName); \
  nsresult SetName(const nsACString& aName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGEMBEDDEDIMAGEDATA(_to) \
  NS_IMETHOD GetUri(nsIURI **aUri) override { return _to GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI *aUri) override { return _to SetUri(aUri); } \
  NS_IMETHOD GetCid(nsACString& aCid) override { return _to GetCid(aCid); } \
  NS_IMETHOD SetCid(const nsACString& aCid) override { return _to SetCid(aCid); } \
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD SetName(const nsACString& aName) override { return _to SetName(aName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGEMBEDDEDIMAGEDATA(_to) \
  NS_IMETHOD GetUri(nsIURI **aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
  NS_IMETHOD GetCid(nsACString& aCid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCid(aCid); } \
  NS_IMETHOD SetCid(const nsACString& aCid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCid(aCid); } \
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD SetName(const nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } 

// Forward declaration
class nsMsgAttachmentHandler;
#include "nsAutoPtr.h"
#include "nsTArray.h"

/* starting interface:    nsIMsgSend */
#define NS_IMSGSEND_IID_STR "747fdfa2-1754-4282-ab26-1e55fd8de13c"

#define NS_IMSGSEND_IID \
  {0x747fdfa2, 0x1754, 0x4282, \
    { 0xab, 0x26, 0x1e, 0x55, 0xfd, 0x8d, 0xe1, 0x3c }}

class NS_NO_VTABLE nsIMsgSend : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEND_IID)

  enum {
    nsMsgDeliverNow = 0,
    nsMsgQueueForLater = 1,
    nsMsgSave = 2,
    nsMsgSaveAs = 3,
    nsMsgSaveAsDraft = 4,
    nsMsgSaveAsTemplate = 5,
    nsMsgSendUnsent = 6,
    nsMsgDeliverBackground = 8
  };

  /* void createAndSendMessage (in nsIEditor aEditor, in nsIMsgIdentity aUserIdentity, in string aAccountKey, in nsIMsgCompFields aFields, in boolean aIsDigest, in boolean aDontDeliver, in nsMsgDeliverMode aMode, in nsIMsgDBHdr aMsgToReplace, in string aBodyType, in ACString aBody, in nsIArray aAttachments, in nsIArray aPreloadedAttachments, in mozIDOMWindowProxy aParentWindow, in nsIMsgProgress aProgress, in nsIMsgSendListener aListener, in AString aPassword, in AUTF8String aOriginalMsgURI, in MSG_ComposeType aType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateAndSendMessage(nsIEditor *aEditor, nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, bool aIsDigest, bool aDontDeliver, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, const char * aBodyType, const nsACString& aBody, nsIArray *aAttachments, nsIArray *aPreloadedAttachments, mozIDOMWindowProxy *aParentWindow, nsIMsgProgress *aProgress, nsIMsgSendListener *aListener, const nsAString& aPassword, const nsACString& aOriginalMsgURI, MSG_ComposeType aType) = 0;

  /* void createRFC822Message (in nsIMsgIdentity aUserIdentity, in nsIMsgCompFields aFields, in string aBodyType, in ACString aBody, in boolean aCreateAsDraft, in nsIArray aAttachments, in nsIArray aEmbeddedObjects, in nsIMsgSendListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateRFC822Message(nsIMsgIdentity *aUserIdentity, nsIMsgCompFields *aFields, const char * aBodyType, const nsACString& aBody, bool aCreateAsDraft, nsIArray *aAttachments, nsIArray *aEmbeddedObjects, nsIMsgSendListener *aListener) = 0;

  /* void sendMessageFile (in nsIMsgIdentity aUserIdentity, in string aAccountKey, in nsIMsgCompFields aFields, in nsIFile aSendIFile, in boolean aDeleteSendFileOnCompletion, in boolean aDigest_p, in nsMsgDeliverMode aMode, in nsIMsgDBHdr aMsgToReplace, in nsIMsgSendListener aListener, in nsIMsgStatusFeedback aStatusFeedback, in wstring aPassword); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendMessageFile(nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, nsIFile *aSendIFile, bool aDeleteSendFileOnCompletion, bool aDigest_p, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, nsIMsgSendListener *aListener, nsIMsgStatusFeedback *aStatusFeedback, const char16_t * aPassword) = 0;

  /* void abort (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Abort(void) = 0;

  /* nsresult fail (in nsresult aFailureCode, in wstring aErrorMsg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Fail(nsresult aFailureCode, const char16_t * aErrorMsg, nsresult *_retval) = 0;

  /* void setGUINotificationState (in boolean aEnableFlag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetGUINotificationState(bool aEnableFlag) = 0;

  /* void BeginCryptoEncapsulation (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD BeginCryptoEncapsulation(void) = 0;

  /* readonly attribute nsIMsgSendReport sendReport; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSendReport(nsIMsgSendReport **aSendReport) = 0;

  /* void notifyListenerOnStartSending (in string aMsgID, in unsigned long aMsgSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnStartSending(const char * aMsgID, uint32_t aMsgSize) = 0;

  /* void notifyListenerOnProgress (in string aMsgID, in unsigned long aProgress, in unsigned long aProgressMax); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnProgress(const char * aMsgID, uint32_t aProgress, uint32_t aProgressMax) = 0;

  /* void notifyListenerOnStatus (in string aMsgID, in wstring aMsg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnStatus(const char * aMsgID, const char16_t * aMsg) = 0;

  /* void notifyListenerOnStopSending (in string aMsgID, in nsresult aStatus, in wstring aMsg, in nsIFile returnFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnStopSending(const char * aMsgID, nsresult aStatus, const char16_t * aMsg, nsIFile *returnFile) = 0;

  /* void deliverAsMailExit (in nsIURI aUrl, in nsresult aExitCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeliverAsMailExit(nsIURI *aUrl, nsresult aExitCode) = 0;

  /* void deliverAsNewsExit (in nsIURI aUrl, in nsresult aExitCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeliverAsNewsExit(nsIURI *aUrl, nsresult aExitCode) = 0;

  /* void sendDeliveryCallback (in nsIURI aUrl, in boolean inIsNewsDelivery, in nsresult aExitCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendDeliveryCallback(nsIURI *aUrl, bool inIsNewsDelivery, nsresult aExitCode) = 0;

  /* void notifyListenerOnStartCopy (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnStartCopy(void) = 0;

  /* void notifyListenerOnProgressCopy (in unsigned long aProgress, in unsigned long aProgressMax); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnProgressCopy(uint32_t aProgress, uint32_t aProgressMax) = 0;

  /* void notifyListenerOnStopCopy (in nsresult aStatus); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyListenerOnStopCopy(nsresult aStatus) = 0;

  /* void getMessageId (out ACString messageID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageId(nsACString& messageID) = 0;

  /* readonly attribute ACString folderUri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderUri(nsACString& aFolderUri) = 0;

  /* ACString getPartForDomIndex (in long aDomIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPartForDomIndex(int32_t aDomIndex, nsACString& _retval) = 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;

  /* nsIPrompt getDefaultPrompt (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultPrompt(nsIPrompt **_retval) = 0;

  /* void gatherMimeAttachments (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GatherMimeAttachments(void) = 0;

  /* readonly attribute boolean processAttachmentsSynchronously; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProcessAttachmentsSynchronously(bool *aProcessAttachmentsSynchronously) = 0;

  /* [noscript] nsMsgAttachmentHandlerArray getAttachmentHandlers (); */
  NS_IMETHOD GetAttachmentHandlers(nsTArray<RefPtr<nsMsgAttachmentHandler>> * * _retval) = 0;

  /* readonly attribute unsigned long attachmentCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAttachmentCount(uint32_t *aAttachmentCount) = 0;

  /* attribute unsigned long pendingAttachmentCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPendingAttachmentCount(uint32_t *aPendingAttachmentCount) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPendingAttachmentCount(uint32_t aPendingAttachmentCount) = 0;

  /* readonly attribute nsMsgDeliverMode deliveryMode; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDeliveryMode(nsMsgDeliverMode *aDeliveryMode) = 0;

  /* nsIMsgProgress getProgress (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProgress(nsIMsgProgress **_retval) = 0;

  /* nsIOutputStream getOutputStream (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOutputStream(nsIOutputStream **_retval) = 0;

  /* attribute nsIRequest runningRequest; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunningRequest(nsIRequest **aRunningRequest) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRunningRequest(nsIRequest *aRunningRequest) = 0;

  /* attribute nsresult status; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatus(nsresult *aStatus) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatus(nsresult aStatus) = 0;

  /* attribute nsIMsgComposeSecure cryptoclosure; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCryptoclosure(nsIMsgComposeSecure **aCryptoclosure) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCryptoclosure(nsIMsgComposeSecure *aCryptoclosure) = 0;

  /* readonly attribute nsIMsgCompFields sendCompFields; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSendCompFields(nsIMsgCompFields **aSendCompFields) = 0;

  /* readonly attribute AString sendBody; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSendBody(nsAString& aSendBody) = 0;

  /* readonly attribute ACString sendBodyType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSendBodyType(nsACString& aSendBodyType) = 0;

  /* readonly attribute nsIMsgIdentity identity; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIdentity(nsIMsgIdentity **aIdentity) = 0;

  /* nsIMsgAttachmentHandler getAttachment (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAttachment(uint32_t index, nsIMsgAttachmentHandler **_retval) = 0;

  /* attribute AString savedToFolderName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSavedToFolderName(nsAString& aSavedToFolderName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSavedToFolderName(const nsAString& aSavedToFolderName) = 0;

  /* attribute boolean dontDeliver; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDontDeliver(bool *aDontDeliver) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDontDeliver(bool aDontDeliver) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSend, NS_IMSGSEND_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEND \
  NS_IMETHOD CreateAndSendMessage(nsIEditor *aEditor, nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, bool aIsDigest, bool aDontDeliver, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, const char * aBodyType, const nsACString& aBody, nsIArray *aAttachments, nsIArray *aPreloadedAttachments, mozIDOMWindowProxy *aParentWindow, nsIMsgProgress *aProgress, nsIMsgSendListener *aListener, const nsAString& aPassword, const nsACString& aOriginalMsgURI, MSG_ComposeType aType) override; \
  NS_IMETHOD CreateRFC822Message(nsIMsgIdentity *aUserIdentity, nsIMsgCompFields *aFields, const char * aBodyType, const nsACString& aBody, bool aCreateAsDraft, nsIArray *aAttachments, nsIArray *aEmbeddedObjects, nsIMsgSendListener *aListener) override; \
  NS_IMETHOD SendMessageFile(nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, nsIFile *aSendIFile, bool aDeleteSendFileOnCompletion, bool aDigest_p, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, nsIMsgSendListener *aListener, nsIMsgStatusFeedback *aStatusFeedback, const char16_t * aPassword) override; \
  NS_IMETHOD Abort(void) override; \
  NS_IMETHOD Fail(nsresult aFailureCode, const char16_t * aErrorMsg, nsresult *_retval) override; \
  NS_IMETHOD SetGUINotificationState(bool aEnableFlag) override; \
  NS_IMETHOD BeginCryptoEncapsulation(void) override; \
  NS_IMETHOD GetSendReport(nsIMsgSendReport **aSendReport) override; \
  NS_IMETHOD NotifyListenerOnStartSending(const char * aMsgID, uint32_t aMsgSize) override; \
  NS_IMETHOD NotifyListenerOnProgress(const char * aMsgID, uint32_t aProgress, uint32_t aProgressMax) override; \
  NS_IMETHOD NotifyListenerOnStatus(const char * aMsgID, const char16_t * aMsg) override; \
  NS_IMETHOD NotifyListenerOnStopSending(const char * aMsgID, nsresult aStatus, const char16_t * aMsg, nsIFile *returnFile) override; \
  NS_IMETHOD DeliverAsMailExit(nsIURI *aUrl, nsresult aExitCode) override; \
  NS_IMETHOD DeliverAsNewsExit(nsIURI *aUrl, nsresult aExitCode) override; \
  NS_IMETHOD SendDeliveryCallback(nsIURI *aUrl, bool inIsNewsDelivery, nsresult aExitCode) override; \
  NS_IMETHOD NotifyListenerOnStartCopy(void) override; \
  NS_IMETHOD NotifyListenerOnProgressCopy(uint32_t aProgress, uint32_t aProgressMax) override; \
  NS_IMETHOD NotifyListenerOnStopCopy(nsresult aStatus) override; \
  NS_IMETHOD GetMessageId(nsACString& messageID) override; \
  NS_IMETHOD GetFolderUri(nsACString& aFolderUri) override; \
  NS_IMETHOD GetPartForDomIndex(int32_t aDomIndex, nsACString& _retval) override; \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override; \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override; \
  NS_IMETHOD GetDefaultPrompt(nsIPrompt **_retval) override; \
  NS_IMETHOD GatherMimeAttachments(void) override; \
  NS_IMETHOD GetProcessAttachmentsSynchronously(bool *aProcessAttachmentsSynchronously) override; \
  NS_IMETHOD GetAttachmentHandlers(nsTArray<RefPtr<nsMsgAttachmentHandler>> * * _retval) override; \
  NS_IMETHOD GetAttachmentCount(uint32_t *aAttachmentCount) override; \
  NS_IMETHOD GetPendingAttachmentCount(uint32_t *aPendingAttachmentCount) override; \
  NS_IMETHOD SetPendingAttachmentCount(uint32_t aPendingAttachmentCount) override; \
  NS_IMETHOD GetDeliveryMode(nsMsgDeliverMode *aDeliveryMode) override; \
  NS_IMETHOD GetProgress(nsIMsgProgress **_retval) override; \
  NS_IMETHOD GetOutputStream(nsIOutputStream **_retval) override; \
  NS_IMETHOD GetRunningRequest(nsIRequest **aRunningRequest) override; \
  NS_IMETHOD SetRunningRequest(nsIRequest *aRunningRequest) override; \
  NS_IMETHOD GetStatus(nsresult *aStatus) override; \
  NS_IMETHOD SetStatus(nsresult aStatus) override; \
  NS_IMETHOD GetCryptoclosure(nsIMsgComposeSecure **aCryptoclosure) override; \
  NS_IMETHOD SetCryptoclosure(nsIMsgComposeSecure *aCryptoclosure) override; \
  NS_IMETHOD GetSendCompFields(nsIMsgCompFields **aSendCompFields) override; \
  NS_IMETHOD GetSendBody(nsAString& aSendBody) override; \
  NS_IMETHOD GetSendBodyType(nsACString& aSendBodyType) override; \
  NS_IMETHOD GetIdentity(nsIMsgIdentity **aIdentity) override; \
  NS_IMETHOD GetAttachment(uint32_t index, nsIMsgAttachmentHandler **_retval) override; \
  NS_IMETHOD GetSavedToFolderName(nsAString& aSavedToFolderName) override; \
  NS_IMETHOD SetSavedToFolderName(const nsAString& aSavedToFolderName) override; \
  NS_IMETHOD GetDontDeliver(bool *aDontDeliver) override; \
  NS_IMETHOD SetDontDeliver(bool aDontDeliver) 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_NSIMSGSEND \
  nsresult CreateAndSendMessage(nsIEditor *aEditor, nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, bool aIsDigest, bool aDontDeliver, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, const char * aBodyType, const nsACString& aBody, nsIArray *aAttachments, nsIArray *aPreloadedAttachments, mozIDOMWindowProxy *aParentWindow, nsIMsgProgress *aProgress, nsIMsgSendListener *aListener, const nsAString& aPassword, const nsACString& aOriginalMsgURI, MSG_ComposeType aType); \
  nsresult CreateRFC822Message(nsIMsgIdentity *aUserIdentity, nsIMsgCompFields *aFields, const char * aBodyType, const nsACString& aBody, bool aCreateAsDraft, nsIArray *aAttachments, nsIArray *aEmbeddedObjects, nsIMsgSendListener *aListener); \
  nsresult SendMessageFile(nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, nsIFile *aSendIFile, bool aDeleteSendFileOnCompletion, bool aDigest_p, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, nsIMsgSendListener *aListener, nsIMsgStatusFeedback *aStatusFeedback, const char16_t * aPassword); \
  nsresult Abort(void); \
  nsresult Fail(nsresult aFailureCode, const char16_t * aErrorMsg, nsresult *_retval); \
  nsresult SetGUINotificationState(bool aEnableFlag); \
  nsresult BeginCryptoEncapsulation(void); \
  nsresult GetSendReport(nsIMsgSendReport **aSendReport); \
  nsresult NotifyListenerOnStartSending(const char * aMsgID, uint32_t aMsgSize); \
  nsresult NotifyListenerOnProgress(const char * aMsgID, uint32_t aProgress, uint32_t aProgressMax); \
  nsresult NotifyListenerOnStatus(const char * aMsgID, const char16_t * aMsg); \
  nsresult NotifyListenerOnStopSending(const char * aMsgID, nsresult aStatus, const char16_t * aMsg, nsIFile *returnFile); \
  nsresult DeliverAsMailExit(nsIURI *aUrl, nsresult aExitCode); \
  nsresult DeliverAsNewsExit(nsIURI *aUrl, nsresult aExitCode); \
  nsresult SendDeliveryCallback(nsIURI *aUrl, bool inIsNewsDelivery, nsresult aExitCode); \
  nsresult NotifyListenerOnStartCopy(void); \
  nsresult NotifyListenerOnProgressCopy(uint32_t aProgress, uint32_t aProgressMax); \
  nsresult NotifyListenerOnStopCopy(nsresult aStatus); \
  nsresult GetMessageId(nsACString& messageID); \
  nsresult GetFolderUri(nsACString& aFolderUri); \
  nsresult GetPartForDomIndex(int32_t aDomIndex, nsACString& _retval); \
  nsresult GetMessageKey(nsMsgKey *aMessageKey); \
  nsresult SetMessageKey(nsMsgKey aMessageKey); \
  nsresult GetDefaultPrompt(nsIPrompt **_retval); \
  nsresult GatherMimeAttachments(void); \
  nsresult GetProcessAttachmentsSynchronously(bool *aProcessAttachmentsSynchronously); \
  nsresult GetAttachmentHandlers(nsTArray<RefPtr<nsMsgAttachmentHandler>> * * _retval); \
  nsresult GetAttachmentCount(uint32_t *aAttachmentCount); \
  nsresult GetPendingAttachmentCount(uint32_t *aPendingAttachmentCount); \
  nsresult SetPendingAttachmentCount(uint32_t aPendingAttachmentCount); \
  nsresult GetDeliveryMode(nsMsgDeliverMode *aDeliveryMode); \
  nsresult GetProgress(nsIMsgProgress **_retval); \
  nsresult GetOutputStream(nsIOutputStream **_retval); \
  nsresult GetRunningRequest(nsIRequest **aRunningRequest); \
  nsresult SetRunningRequest(nsIRequest *aRunningRequest); \
  nsresult GetStatus(nsresult *aStatus); \
  nsresult SetStatus(nsresult aStatus); \
  nsresult GetCryptoclosure(nsIMsgComposeSecure **aCryptoclosure); \
  nsresult SetCryptoclosure(nsIMsgComposeSecure *aCryptoclosure); \
  nsresult GetSendCompFields(nsIMsgCompFields **aSendCompFields); \
  nsresult GetSendBody(nsAString& aSendBody); \
  nsresult GetSendBodyType(nsACString& aSendBodyType); \
  nsresult GetIdentity(nsIMsgIdentity **aIdentity); \
  nsresult GetAttachment(uint32_t index, nsIMsgAttachmentHandler **_retval); \
  nsresult GetSavedToFolderName(nsAString& aSavedToFolderName); \
  nsresult SetSavedToFolderName(const nsAString& aSavedToFolderName); \
  nsresult GetDontDeliver(bool *aDontDeliver); \
  nsresult SetDontDeliver(bool aDontDeliver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEND(_to) \
  NS_IMETHOD CreateAndSendMessage(nsIEditor *aEditor, nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, bool aIsDigest, bool aDontDeliver, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, const char * aBodyType, const nsACString& aBody, nsIArray *aAttachments, nsIArray *aPreloadedAttachments, mozIDOMWindowProxy *aParentWindow, nsIMsgProgress *aProgress, nsIMsgSendListener *aListener, const nsAString& aPassword, const nsACString& aOriginalMsgURI, MSG_ComposeType aType) override { return _to CreateAndSendMessage(aEditor, aUserIdentity, aAccountKey, aFields, aIsDigest, aDontDeliver, aMode, aMsgToReplace, aBodyType, aBody, aAttachments, aPreloadedAttachments, aParentWindow, aProgress, aListener, aPassword, aOriginalMsgURI, aType); } \
  NS_IMETHOD CreateRFC822Message(nsIMsgIdentity *aUserIdentity, nsIMsgCompFields *aFields, const char * aBodyType, const nsACString& aBody, bool aCreateAsDraft, nsIArray *aAttachments, nsIArray *aEmbeddedObjects, nsIMsgSendListener *aListener) override { return _to CreateRFC822Message(aUserIdentity, aFields, aBodyType, aBody, aCreateAsDraft, aAttachments, aEmbeddedObjects, aListener); } \
  NS_IMETHOD SendMessageFile(nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, nsIFile *aSendIFile, bool aDeleteSendFileOnCompletion, bool aDigest_p, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, nsIMsgSendListener *aListener, nsIMsgStatusFeedback *aStatusFeedback, const char16_t * aPassword) override { return _to SendMessageFile(aUserIdentity, aAccountKey, aFields, aSendIFile, aDeleteSendFileOnCompletion, aDigest_p, aMode, aMsgToReplace, aListener, aStatusFeedback, aPassword); } \
  NS_IMETHOD Abort(void) override { return _to Abort(); } \
  NS_IMETHOD Fail(nsresult aFailureCode, const char16_t * aErrorMsg, nsresult *_retval) override { return _to Fail(aFailureCode, aErrorMsg, _retval); } \
  NS_IMETHOD SetGUINotificationState(bool aEnableFlag) override { return _to SetGUINotificationState(aEnableFlag); } \
  NS_IMETHOD BeginCryptoEncapsulation(void) override { return _to BeginCryptoEncapsulation(); } \
  NS_IMETHOD GetSendReport(nsIMsgSendReport **aSendReport) override { return _to GetSendReport(aSendReport); } \
  NS_IMETHOD NotifyListenerOnStartSending(const char * aMsgID, uint32_t aMsgSize) override { return _to NotifyListenerOnStartSending(aMsgID, aMsgSize); } \
  NS_IMETHOD NotifyListenerOnProgress(const char * aMsgID, uint32_t aProgress, uint32_t aProgressMax) override { return _to NotifyListenerOnProgress(aMsgID, aProgress, aProgressMax); } \
  NS_IMETHOD NotifyListenerOnStatus(const char * aMsgID, const char16_t * aMsg) override { return _to NotifyListenerOnStatus(aMsgID, aMsg); } \
  NS_IMETHOD NotifyListenerOnStopSending(const char * aMsgID, nsresult aStatus, const char16_t * aMsg, nsIFile *returnFile) override { return _to NotifyListenerOnStopSending(aMsgID, aStatus, aMsg, returnFile); } \
  NS_IMETHOD DeliverAsMailExit(nsIURI *aUrl, nsresult aExitCode) override { return _to DeliverAsMailExit(aUrl, aExitCode); } \
  NS_IMETHOD DeliverAsNewsExit(nsIURI *aUrl, nsresult aExitCode) override { return _to DeliverAsNewsExit(aUrl, aExitCode); } \
  NS_IMETHOD SendDeliveryCallback(nsIURI *aUrl, bool inIsNewsDelivery, nsresult aExitCode) override { return _to SendDeliveryCallback(aUrl, inIsNewsDelivery, aExitCode); } \
  NS_IMETHOD NotifyListenerOnStartCopy(void) override { return _to NotifyListenerOnStartCopy(); } \
  NS_IMETHOD NotifyListenerOnProgressCopy(uint32_t aProgress, uint32_t aProgressMax) override { return _to NotifyListenerOnProgressCopy(aProgress, aProgressMax); } \
  NS_IMETHOD NotifyListenerOnStopCopy(nsresult aStatus) override { return _to NotifyListenerOnStopCopy(aStatus); } \
  NS_IMETHOD GetMessageId(nsACString& messageID) override { return _to GetMessageId(messageID); } \
  NS_IMETHOD GetFolderUri(nsACString& aFolderUri) override { return _to GetFolderUri(aFolderUri); } \
  NS_IMETHOD GetPartForDomIndex(int32_t aDomIndex, nsACString& _retval) override { return _to GetPartForDomIndex(aDomIndex, _retval); } \
  NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) override { return _to GetMessageKey(aMessageKey); } \
  NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) override { return _to SetMessageKey(aMessageKey); } \
  NS_IMETHOD GetDefaultPrompt(nsIPrompt **_retval) override { return _to GetDefaultPrompt(_retval); } \
  NS_IMETHOD GatherMimeAttachments(void) override { return _to GatherMimeAttachments(); } \
  NS_IMETHOD GetProcessAttachmentsSynchronously(bool *aProcessAttachmentsSynchronously) override { return _to GetProcessAttachmentsSynchronously(aProcessAttachmentsSynchronously); } \
  NS_IMETHOD GetAttachmentHandlers(nsTArray<RefPtr<nsMsgAttachmentHandler>> * * _retval) override { return _to GetAttachmentHandlers(_retval); } \
  NS_IMETHOD GetAttachmentCount(uint32_t *aAttachmentCount) override { return _to GetAttachmentCount(aAttachmentCount); } \
  NS_IMETHOD GetPendingAttachmentCount(uint32_t *aPendingAttachmentCount) override { return _to GetPendingAttachmentCount(aPendingAttachmentCount); } \
  NS_IMETHOD SetPendingAttachmentCount(uint32_t aPendingAttachmentCount) override { return _to SetPendingAttachmentCount(aPendingAttachmentCount); } \
  NS_IMETHOD GetDeliveryMode(nsMsgDeliverMode *aDeliveryMode) override { return _to GetDeliveryMode(aDeliveryMode); } \
  NS_IMETHOD GetProgress(nsIMsgProgress **_retval) override { return _to GetProgress(_retval); } \
  NS_IMETHOD GetOutputStream(nsIOutputStream **_retval) override { return _to GetOutputStream(_retval); } \
  NS_IMETHOD GetRunningRequest(nsIRequest **aRunningRequest) override { return _to GetRunningRequest(aRunningRequest); } \
  NS_IMETHOD SetRunningRequest(nsIRequest *aRunningRequest) override { return _to SetRunningRequest(aRunningRequest); } \
  NS_IMETHOD GetStatus(nsresult *aStatus) override { return _to GetStatus(aStatus); } \
  NS_IMETHOD SetStatus(nsresult aStatus) override { return _to SetStatus(aStatus); } \
  NS_IMETHOD GetCryptoclosure(nsIMsgComposeSecure **aCryptoclosure) override { return _to GetCryptoclosure(aCryptoclosure); } \
  NS_IMETHOD SetCryptoclosure(nsIMsgComposeSecure *aCryptoclosure) override { return _to SetCryptoclosure(aCryptoclosure); } \
  NS_IMETHOD GetSendCompFields(nsIMsgCompFields **aSendCompFields) override { return _to GetSendCompFields(aSendCompFields); } \
  NS_IMETHOD GetSendBody(nsAString& aSendBody) override { return _to GetSendBody(aSendBody); } \
  NS_IMETHOD GetSendBodyType(nsACString& aSendBodyType) override { return _to GetSendBodyType(aSendBodyType); } \
  NS_IMETHOD GetIdentity(nsIMsgIdentity **aIdentity) override { return _to GetIdentity(aIdentity); } \
  NS_IMETHOD GetAttachment(uint32_t index, nsIMsgAttachmentHandler **_retval) override { return _to GetAttachment(index, _retval); } \
  NS_IMETHOD GetSavedToFolderName(nsAString& aSavedToFolderName) override { return _to GetSavedToFolderName(aSavedToFolderName); } \
  NS_IMETHOD SetSavedToFolderName(const nsAString& aSavedToFolderName) override { return _to SetSavedToFolderName(aSavedToFolderName); } \
  NS_IMETHOD GetDontDeliver(bool *aDontDeliver) override { return _to GetDontDeliver(aDontDeliver); } \
  NS_IMETHOD SetDontDeliver(bool aDontDeliver) override { return _to SetDontDeliver(aDontDeliver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEND(_to) \
  NS_IMETHOD CreateAndSendMessage(nsIEditor *aEditor, nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, bool aIsDigest, bool aDontDeliver, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, const char * aBodyType, const nsACString& aBody, nsIArray *aAttachments, nsIArray *aPreloadedAttachments, mozIDOMWindowProxy *aParentWindow, nsIMsgProgress *aProgress, nsIMsgSendListener *aListener, const nsAString& aPassword, const nsACString& aOriginalMsgURI, MSG_ComposeType aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAndSendMessage(aEditor, aUserIdentity, aAccountKey, aFields, aIsDigest, aDontDeliver, aMode, aMsgToReplace, aBodyType, aBody, aAttachments, aPreloadedAttachments, aParentWindow, aProgress, aListener, aPassword, aOriginalMsgURI, aType); } \
  NS_IMETHOD CreateRFC822Message(nsIMsgIdentity *aUserIdentity, nsIMsgCompFields *aFields, const char * aBodyType, const nsACString& aBody, bool aCreateAsDraft, nsIArray *aAttachments, nsIArray *aEmbeddedObjects, nsIMsgSendListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRFC822Message(aUserIdentity, aFields, aBodyType, aBody, aCreateAsDraft, aAttachments, aEmbeddedObjects, aListener); } \
  NS_IMETHOD SendMessageFile(nsIMsgIdentity *aUserIdentity, const char * aAccountKey, nsIMsgCompFields *aFields, nsIFile *aSendIFile, bool aDeleteSendFileOnCompletion, bool aDigest_p, nsMsgDeliverMode aMode, nsIMsgDBHdr *aMsgToReplace, nsIMsgSendListener *aListener, nsIMsgStatusFeedback *aStatusFeedback, const char16_t * aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMessageFile(aUserIdentity, aAccountKey, aFields, aSendIFile, aDeleteSendFileOnCompletion, aDigest_p, aMode, aMsgToReplace, aListener, aStatusFeedback, aPassword); } \
  NS_IMETHOD Abort(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
  NS_IMETHOD Fail(nsresult aFailureCode, const char16_t * aErrorMsg, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Fail(aFailureCode, aErrorMsg, _retval); } \
  NS_IMETHOD SetGUINotificationState(bool aEnableFlag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGUINotificationState(aEnableFlag); } \
  NS_IMETHOD BeginCryptoEncapsulation(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginCryptoEncapsulation(); } \
  NS_IMETHOD GetSendReport(nsIMsgSendReport **aSendReport) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendReport(aSendReport); } \
  NS_IMETHOD NotifyListenerOnStartSending(const char * aMsgID, uint32_t aMsgSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnStartSending(aMsgID, aMsgSize); } \
  NS_IMETHOD NotifyListenerOnProgress(const char * aMsgID, uint32_t aProgress, uint32_t aProgressMax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnProgress(aMsgID, aProgress, aProgressMax); } \
  NS_IMETHOD NotifyListenerOnStatus(const char * aMsgID, const char16_t * aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnStatus(aMsgID, aMsg); } \
  NS_IMETHOD NotifyListenerOnStopSending(const char * aMsgID, nsresult aStatus, const char16_t * aMsg, nsIFile *returnFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnStopSending(aMsgID, aStatus, aMsg, returnFile); } \
  NS_IMETHOD DeliverAsMailExit(nsIURI *aUrl, nsresult aExitCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeliverAsMailExit(aUrl, aExitCode); } \
  NS_IMETHOD DeliverAsNewsExit(nsIURI *aUrl, nsresult aExitCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeliverAsNewsExit(aUrl, aExitCode); } \
  NS_IMETHOD SendDeliveryCallback(nsIURI *aUrl, bool inIsNewsDelivery, nsresult aExitCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendDeliveryCallback(aUrl, inIsNewsDelivery, aExitCode); } \
  NS_IMETHOD NotifyListenerOnStartCopy(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnStartCopy(); } \
  NS_IMETHOD NotifyListenerOnProgressCopy(uint32_t aProgress, uint32_t aProgressMax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnProgressCopy(aProgress, aProgressMax); } \
  NS_IMETHOD NotifyListenerOnStopCopy(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyListenerOnStopCopy(aStatus); } \
  NS_IMETHOD GetMessageId(nsACString& messageID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageId(messageID); } \
  NS_IMETHOD GetFolderUri(nsACString& aFolderUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderUri(aFolderUri); } \
  NS_IMETHOD GetPartForDomIndex(int32_t aDomIndex, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPartForDomIndex(aDomIndex, _retval); } \
  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 GetDefaultPrompt(nsIPrompt **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultPrompt(_retval); } \
  NS_IMETHOD GatherMimeAttachments(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GatherMimeAttachments(); } \
  NS_IMETHOD GetProcessAttachmentsSynchronously(bool *aProcessAttachmentsSynchronously) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessAttachmentsSynchronously(aProcessAttachmentsSynchronously); } \
  NS_IMETHOD GetAttachmentHandlers(nsTArray<RefPtr<nsMsgAttachmentHandler>> * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttachmentHandlers(_retval); } \
  NS_IMETHOD GetAttachmentCount(uint32_t *aAttachmentCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttachmentCount(aAttachmentCount); } \
  NS_IMETHOD GetPendingAttachmentCount(uint32_t *aPendingAttachmentCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPendingAttachmentCount(aPendingAttachmentCount); } \
  NS_IMETHOD SetPendingAttachmentCount(uint32_t aPendingAttachmentCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPendingAttachmentCount(aPendingAttachmentCount); } \
  NS_IMETHOD GetDeliveryMode(nsMsgDeliverMode *aDeliveryMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeliveryMode(aDeliveryMode); } \
  NS_IMETHOD GetProgress(nsIMsgProgress **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProgress(_retval); } \
  NS_IMETHOD GetOutputStream(nsIOutputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutputStream(_retval); } \
  NS_IMETHOD GetRunningRequest(nsIRequest **aRunningRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunningRequest(aRunningRequest); } \
  NS_IMETHOD SetRunningRequest(nsIRequest *aRunningRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRunningRequest(aRunningRequest); } \
  NS_IMETHOD GetStatus(nsresult *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
  NS_IMETHOD SetStatus(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatus(aStatus); } \
  NS_IMETHOD GetCryptoclosure(nsIMsgComposeSecure **aCryptoclosure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCryptoclosure(aCryptoclosure); } \
  NS_IMETHOD SetCryptoclosure(nsIMsgComposeSecure *aCryptoclosure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCryptoclosure(aCryptoclosure); } \
  NS_IMETHOD GetSendCompFields(nsIMsgCompFields **aSendCompFields) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendCompFields(aSendCompFields); } \
  NS_IMETHOD GetSendBody(nsAString& aSendBody) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendBody(aSendBody); } \
  NS_IMETHOD GetSendBodyType(nsACString& aSendBodyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendBodyType(aSendBodyType); } \
  NS_IMETHOD GetIdentity(nsIMsgIdentity **aIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(aIdentity); } \
  NS_IMETHOD GetAttachment(uint32_t index, nsIMsgAttachmentHandler **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttachment(index, _retval); } \
  NS_IMETHOD GetSavedToFolderName(nsAString& aSavedToFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSavedToFolderName(aSavedToFolderName); } \
  NS_IMETHOD SetSavedToFolderName(const nsAString& aSavedToFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSavedToFolderName(aSavedToFolderName); } \
  NS_IMETHOD GetDontDeliver(bool *aDontDeliver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDontDeliver(aDontDeliver); } \
  NS_IMETHOD SetDontDeliver(bool aDontDeliver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDontDeliver(aDontDeliver); } 


#endif /* __gen_nsIMsgSend_h__ */