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 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMsgDBView.idl
 */

#ifndef __gen_nsIMsgDBView_h__
#define __gen_nsIMsgDBView_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 nsIMsgWindow; /* forward declaration */

class nsIMessenger; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

class nsIMsgThread; /* forward declaration */

class nsIMsgDBViewCommandUpdater; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIMsgSearchSession; /* forward declaration */

class nsIMutableArray; /* forward declaration */

class nsISimpleEnumerator; /* forward declaration */

class nsIMsgCustomColumnHandler; /* forward declaration */

typedef int32_t  nsMsgViewNotificationCodeValue;

typedef int32_t  nsMsgViewCommandCheckStateValue;

typedef int32_t  nsMsgViewCommandTypeValue;

typedef int32_t  nsMsgNavigationTypeValue;


/* starting interface:    nsMsgViewSortOrder */
#define NS_MSGVIEWSORTORDER_IID_STR "682a18be-fd18-11d4-a5be-0060b0fc04b7"

#define NS_MSGVIEWSORTORDER_IID \
  {0x682a18be, 0xfd18, 0x11d4, \
    { 0xa5, 0xbe, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsMsgViewSortOrder {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWSORTORDER_IID)

  enum {
    none = 0,
    ascending = 1,
    descending = 2
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewSortOrder, NS_MSGVIEWSORTORDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWSORTORDER \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWSORTORDER(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWSORTORDER(_to) \


/* starting interface:    nsMsgViewType */
#define NS_MSGVIEWTYPE_IID_STR "f28a1cdf-06c3-4e98-8f66-f49991670071"

#define NS_MSGVIEWTYPE_IID \
  {0xf28a1cdf, 0x06c3, 0x4e98, \
    { 0x8f, 0x66, 0xf4, 0x99, 0x91, 0x67, 0x00, 0x71 }}

class NS_NO_VTABLE nsMsgViewType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWTYPE_IID)

  enum {
    eShowAllThreads = 0,
    eShowThreadsWithUnread = 2,
    eShowWatchedThreadsWithUnread = 3,
    eShowQuickSearchResults = 4,
    eShowVirtualFolderResults = 5,
    eShowSearch = 6
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewType, NS_MSGVIEWTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWTYPE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWTYPE(_to) \


/* starting interface:    nsMsgViewFlagsType */
#define NS_MSGVIEWFLAGSTYPE_IID_STR "64852276-1dd2-11b2-8103-afe12002c053"

#define NS_MSGVIEWFLAGSTYPE_IID \
  {0x64852276, 0x1dd2, 0x11b2, \
    { 0x81, 0x03, 0xaf, 0xe1, 0x20, 0x02, 0xc0, 0x53 }}

class NS_NO_VTABLE nsMsgViewFlagsType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWFLAGSTYPE_IID)

  enum {
    kNone = 0,
    kThreadedDisplay = 1,
    kShowIgnored = 8,
    kUnreadOnly = 16,
    kExpandAll = 32,
    kGroupBySort = 64
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewFlagsType, NS_MSGVIEWFLAGSTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWFLAGSTYPE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWFLAGSTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWFLAGSTYPE(_to) \


/* starting interface:    nsMsgViewSortType */
#define NS_MSGVIEWSORTTYPE_IID_STR "b94fc200-3008-420a-85c7-67842f133ef8"

#define NS_MSGVIEWSORTTYPE_IID \
  {0xb94fc200, 0x3008, 0x420a, \
    { 0x85, 0xc7, 0x67, 0x84, 0x2f, 0x13, 0x3e, 0xf8 }}

class NS_NO_VTABLE nsMsgViewSortType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWSORTTYPE_IID)

  enum {
    byNone = 17,
    byDate = 18,
    bySubject = 19,
    byAuthor = 20,
    byId = 21,
    byThread = 22,
    byPriority = 23,
    byStatus = 24,
    bySize = 25,
    byFlagged = 26,
    byUnread = 27,
    byRecipient = 28,
    byLocation = 29,
    byTags = 30,
    byJunkStatus = 31,
    byAttachments = 32,
    byAccount = 33,
    byCustom = 34,
    byReceived = 35,
    byCorrespondent = 36
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewSortType, NS_MSGVIEWSORTTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWSORTTYPE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWSORTTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWSORTTYPE(_to) \


/* starting interface:    nsMsgViewNotificationCode */
#define NS_MSGVIEWNOTIFICATIONCODE_IID_STR "255d1c1e-fde7-11d4-a5be-0060b0fc04b7"

#define NS_MSGVIEWNOTIFICATIONCODE_IID \
  {0x255d1c1e, 0xfde7, 0x11d4, \
    { 0xa5, 0xbe, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsMsgViewNotificationCode {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWNOTIFICATIONCODE_IID)

  enum {
    none = 0,
    insertOrDelete = 1,
    changed = 2,
    scramble = 3,
    all = 4,
    totalContentChanged = 5,
    newTopIndex = 6
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewNotificationCode, NS_MSGVIEWNOTIFICATIONCODE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWNOTIFICATIONCODE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWNOTIFICATIONCODE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWNOTIFICATIONCODE(_to) \


/* starting interface:    nsMsgViewCommandCheckState */
#define NS_MSGVIEWCOMMANDCHECKSTATE_IID_STR "4ec9248e-0108-11d5-a5be-0060b0fc04b7"

#define NS_MSGVIEWCOMMANDCHECKSTATE_IID \
  {0x4ec9248e, 0x0108, 0x11d5, \
    { 0xa5, 0xbe, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsMsgViewCommandCheckState {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWCOMMANDCHECKSTATE_IID)

  enum {
    notUsed = 0,
    checked = 1,
    unchecked = 2
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewCommandCheckState, NS_MSGVIEWCOMMANDCHECKSTATE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWCOMMANDCHECKSTATE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWCOMMANDCHECKSTATE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWCOMMANDCHECKSTATE(_to) \


/* starting interface:    nsMsgViewCommandType */
#define NS_MSGVIEWCOMMANDTYPE_IID_STR "ad36e6cc-0109-11d5-a5be-0060b0fc04b7"

#define NS_MSGVIEWCOMMANDTYPE_IID \
  {0xad36e6cc, 0x0109, 0x11d5, \
    { 0xa5, 0xbe, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsMsgViewCommandType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGVIEWCOMMANDTYPE_IID)

  enum {
    markMessagesRead = 0,
    markMessagesUnread = 1,
    toggleMessageRead = 2,
    flagMessages = 3,
    unflagMessages = 4,
    toggleThreadWatched = 6,
    deleteMsg = 7,
    deleteNoTrash = 8,
    markThreadRead = 9,
    markAllRead = 10,
    expandAll = 11,
    collapseAll = 12,
    copyMessages = 13,
    moveMessages = 14,
    selectAll = 15,
    downloadSelectedForOffline = 16,
    downloadFlaggedForOffline = 17,
    selectThread = 18,
    selectFlagged = 19,
    cmdRequiringMsgBody = 20,
    label0 = 21,
    label1 = 22,
    label2 = 23,
    label3 = 24,
    label4 = 25,
    label5 = 26,
    lastLabel = 26,
    junk = 27,
    unjunk = 28,
    undeleteMsg = 29,
    applyFilters = 30,
    runJunkControls = 31,
    deleteJunk = 32
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgViewCommandType, NS_MSGVIEWCOMMANDTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGVIEWCOMMANDTYPE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGVIEWCOMMANDTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGVIEWCOMMANDTYPE(_to) \


/* starting interface:    nsMsgNavigationType */
#define NS_MSGNAVIGATIONTYPE_IID_STR "65903eb2-1dd2-11b2-ac45-c5b69c1618d7"

#define NS_MSGNAVIGATIONTYPE_IID \
  {0x65903eb2, 0x1dd2, 0x11b2, \
    { 0xac, 0x45, 0xc5, 0xb6, 0x9c, 0x16, 0x18, 0xd7 }}

class NS_NO_VTABLE nsMsgNavigationType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGNAVIGATIONTYPE_IID)

  enum {
    firstMessage = 1,
    nextMessage = 2,
    previousMessage = 3,
    lastMessage = 4,
    toggleThreadKilled = 5,
    firstUnreadMessage = 6,
    nextUnreadMessage = 7,
    previousUnreadMessage = 8,
    lastUnreadMessage = 9,
    nextUnreadThread = 10,
    nextUnreadFolder = 11,
    nextFolder = 12,
    readMore = 13,
    back = 15,
    forward = 16,
    firstFlagged = 17,
    nextFlagged = 18,
    previousFlagged = 19,
    firstNew = 20,
    editUndo = 21,
    editRedo = 22,
    toggleSubthreadKilled = 23
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgNavigationType, NS_MSGNAVIGATIONTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGNAVIGATIONTYPE \

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGNAVIGATIONTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSMSGNAVIGATIONTYPE(_to) \


/* starting interface:    nsIMsgDBView */
#define NS_IMSGDBVIEW_IID_STR "fe8a2326-4dd0-11e5-8b8a-206a8aa7a25c"

#define NS_IMSGDBVIEW_IID \
  {0xfe8a2326, 0x4dd0, 0x11e5, \
    { 0x8b, 0x8a, 0x20, 0x6a, 0x8a, 0xa7, 0xa2, 0x5c }}

class NS_NO_VTABLE nsIMsgDBView : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBVIEW_IID)

  /* void open (in nsIMsgFolder folder, in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder, in nsMsgViewFlagsTypeValue viewFlags, out long count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, int32_t *count) = 0;

  /* void openWithHdrs (in nsISimpleEnumerator aHeaders, in nsMsgViewSortTypeValue aSortType, in nsMsgViewSortOrderValue aSortOrder, in nsMsgViewFlagsTypeValue aViewFlags, out long aCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, int32_t *aCount) = 0;

  /* void close (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Close(void) = 0;

  /* void init (in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater) = 0;

  /* void sort (in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder) = 0;

  /* void doCommand (in nsMsgViewCommandTypeValue command); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoCommand(nsMsgViewCommandTypeValue command) = 0;

  /* void doCommandWithFolder (in nsMsgViewCommandTypeValue command, in nsIMsgFolder destFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder) = 0;

  /* void getCommandStatus (in nsMsgViewCommandTypeValue command, out boolean selectable_p, out nsMsgViewCommandCheckStateValue selected_p); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p, nsMsgViewCommandCheckStateValue *selected_p) = 0;

  /* readonly attribute nsMsgViewTypeValue viewType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewType(nsMsgViewTypeValue *aViewType) = 0;

  /* attribute nsMsgViewFlagsTypeValue viewFlags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags) = 0;

  /* attribute nsMsgViewSortTypeValue sortType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSortType(nsMsgViewSortTypeValue *aSortType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSortType(nsMsgViewSortTypeValue aSortType) = 0;

  /* readonly attribute nsMsgViewSortOrderValue sortOrder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSortOrder(nsMsgViewSortOrderValue *aSortOrder) = 0;

  /* attribute nsMsgViewSortTypeValue secondarySortType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType) = 0;

  /* attribute nsMsgViewSortOrderValue secondarySortOrder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder) = 0;

  /* readonly attribute nsMsgKey keyForFirstSelectedMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage) = 0;

  /* readonly attribute nsMsgViewIndex viewIndexForFirstSelectedMsg; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg) = 0;

  /* void viewNavigate (in nsMsgNavigationTypeValue motion, out nsMsgKey resultId, out nsMsgViewIndex resultIndex, out nsMsgViewIndex threadIndex, in boolean wrap); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId, nsMsgViewIndex *resultIndex, nsMsgViewIndex *threadIndex, bool wrap) = 0;

  /* boolean navigateStatus (in nsMsgNavigationTypeValue motion); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval) = 0;

  /* readonly attribute nsIMsgFolder msgFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgFolder(nsIMsgFolder **aMsgFolder) = 0;

  /* attribute nsIMsgFolder viewFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewFolder(nsIMsgFolder **aViewFolder) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetViewFolder(nsIMsgFolder *aViewFolder) = 0;

  /* nsMsgKey getKeyAt (in nsMsgViewIndex index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval) = 0;

  /* unsigned long getFlagsAt (in nsMsgViewIndex aIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlagsAt(nsMsgViewIndex aIndex, uint32_t *_retval) = 0;

  /* nsIMsgDBHdr getMsgHdrAt (in nsMsgViewIndex aIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr **_retval) = 0;

  /* nsIMsgFolder getFolderForViewIndex (in nsMsgViewIndex index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder **_retval) = 0;

  /* ACString getURIForViewIndex (in nsMsgViewIndex index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURIForViewIndex(nsMsgViewIndex index, nsACString& _retval) = 0;

  /* nsIMsgDBView cloneDBView (in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView **_retval) = 0;

  /* void getSelectedMsgHdrs ([optional] out unsigned long count, [array, size_is (count), retval] out nsIMsgDBHdr headers); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedMsgHdrs(uint32_t *count, nsIMsgDBHdr ***headers) = 0;

  /* nsIMutableArray getMsgHdrsForSelection (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgHdrsForSelection(nsIMutableArray **_retval) = 0;

  /* void getURIsForSelection (out unsigned long count, [array, size_is (count), retval] out string uris); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURIsForSelection(uint32_t *count, char * **uris) = 0;

  /* void getIndicesForSelection (out unsigned long count, [array, size_is (count), retval] out nsMsgViewIndex indices); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIndicesForSelection(uint32_t *count, nsMsgViewIndex **indices) = 0;

  /* readonly attribute ACString URIForFirstSelectedMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURIForFirstSelectedMessage(nsACString& aURIForFirstSelectedMessage) = 0;

  /* readonly attribute nsIMsgDBHdr hdrForFirstSelectedMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHdrForFirstSelectedMessage(nsIMsgDBHdr **aHdrForFirstSelectedMessage) = 0;

  /* void loadMessageByMsgKey (in nsMsgKey aMsgKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadMessageByMsgKey(nsMsgKey aMsgKey) = 0;

  /* void loadMessageByViewIndex (in nsMsgViewIndex aIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadMessageByViewIndex(nsMsgViewIndex aIndex) = 0;

  /* void loadMessageByUrl (in string aUrl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadMessageByUrl(const char * aUrl) = 0;

  /* void reloadMessage (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReloadMessage(void) = 0;

  /* void reloadMessageWithAllParts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReloadMessageWithAllParts(void) = 0;

  /* readonly attribute unsigned long numSelected; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumSelected(uint32_t *aNumSelected) = 0;

  /* readonly attribute nsMsgViewIndex msgToSelectAfterDelete; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete) = 0;

  /* readonly attribute nsMsgViewIndex currentlyDisplayedMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage) = 0;

  /* readonly attribute long numMsgsInView; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumMsgsInView(int32_t *aNumMsgsInView) = 0;

  /* void selectMsgByKey (in nsMsgKey key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectMsgByKey(nsMsgKey key) = 0;

  /* void selectFolderMsgByKey (in nsIMsgFolder aFolder, in nsMsgKey aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey) = 0;

  /* attribute boolean suppressMsgDisplay; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSuppressMsgDisplay(bool *aSuppressMsgDisplay) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSuppressMsgDisplay(bool aSuppressMsgDisplay) = 0;

  /* attribute boolean suppressCommandUpdating; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSuppressCommandUpdating(bool *aSuppressCommandUpdating) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSuppressCommandUpdating(bool aSuppressCommandUpdating) = 0;

  /* attribute boolean suppressChangeNotifications; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSuppressChangeNotifications(bool *aSuppressChangeNotifications) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSuppressChangeNotifications(bool aSuppressChangeNotifications) = 0;

  /* void onDeleteCompleted (in boolean succeeded); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDeleteCompleted(bool succeeded) = 0;

  /* readonly attribute nsIMsgDatabase db; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDb(nsIMsgDatabase **aDb) = 0;

  /* readonly attribute boolean supportsThreading; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportsThreading(bool *aSupportsThreading) = 0;

  /* attribute nsIMsgSearchSession searchSession; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) = 0;

  /* readonly attribute boolean removeRowOnMoveOrDelete; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete) = 0;

  /* nsMsgViewIndex findIndexFromKey (in nsMsgKey aMsgKey, in boolean aExpand); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval) = 0;

  /* nsMsgViewIndex findIndexOfMsgHdr (in nsIMsgDBHdr aMsgHdr, in boolean aExpand); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval) = 0;

  /* void ExpandAndSelectThreadByIndex (in nsMsgViewIndex aIndex, in boolean aAugment); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment) = 0;

  /* nsIMsgThread getThreadContainingIndex (in nsMsgViewIndex aIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread **_retval) = 0;

  /* void insertTreeRows (in nsMsgViewIndex aIndex, in unsigned long aNumRows, in nsMsgKey aKey, in nsMsgViewFlagsTypeValue aFlags, in unsigned long aLevel, in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InsertTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows, nsMsgKey aKey, nsMsgViewFlagsTypeValue aFlags, uint32_t aLevel, nsIMsgFolder *aFolder) = 0;

  /* void removeTreeRows (in nsMsgViewIndex aIndex, in unsigned long aNumRows); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows) = 0;

  /* void NoteChange (in nsMsgViewIndex aFirstLineChanged, in long aNumRows, in nsMsgViewNotificationCodeValue aChangeType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NoteChange(nsMsgViewIndex aFirstLineChanged, int32_t aNumRows, nsMsgViewNotificationCodeValue aChangeType) = 0;

  /* nsIMsgThread getThreadContainingMsgHdr (in nsIMsgDBHdr aMsgHdr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread **_retval) = 0;

  /* readonly attribute boolean usingLines; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUsingLines(bool *aUsingLines) = 0;

  /* void addColumnHandler (in AString aColumn, in nsIMsgCustomColumnHandler aHandler); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler *aHandler) = 0;

  /* void removeColumnHandler (in AString aColumn); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveColumnHandler(const nsAString& aColumn) = 0;

  /* nsIMsgCustomColumnHandler getColumnHandler (in AString aColumn); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler **_retval) = 0;

  /* attribute AString curCustomColumn; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurCustomColumn(nsAString& aCurCustomColumn) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCurCustomColumn(const nsAString& aCurCustomColumn) = 0;

  /* readonly attribute AString secondaryCustomColumn; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSecondaryCustomColumn(nsAString& aSecondaryCustomColumn) = 0;

  /* AString cellTextForColumn (in long aRow, in AString aColumnName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CellTextForColumn(int32_t aRow, const nsAString& aColumnName, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDBView, NS_IMSGDBVIEW_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDBVIEW \
  NS_IMETHOD Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, int32_t *count) override; \
  NS_IMETHOD OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, int32_t *aCount) override; \
  NS_IMETHOD Close(void) override; \
  NS_IMETHOD Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater) override; \
  NS_IMETHOD Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder) override; \
  NS_IMETHOD DoCommand(nsMsgViewCommandTypeValue command) override; \
  NS_IMETHOD DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder) override; \
  NS_IMETHOD GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p, nsMsgViewCommandCheckStateValue *selected_p) override; \
  NS_IMETHOD GetViewType(nsMsgViewTypeValue *aViewType) override; \
  NS_IMETHOD GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags) override; \
  NS_IMETHOD SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags) override; \
  NS_IMETHOD GetSortType(nsMsgViewSortTypeValue *aSortType) override; \
  NS_IMETHOD SetSortType(nsMsgViewSortTypeValue aSortType) override; \
  NS_IMETHOD GetSortOrder(nsMsgViewSortOrderValue *aSortOrder) override; \
  NS_IMETHOD GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType) override; \
  NS_IMETHOD SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType) override; \
  NS_IMETHOD GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder) override; \
  NS_IMETHOD SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder) override; \
  NS_IMETHOD GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage) override; \
  NS_IMETHOD GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg) override; \
  NS_IMETHOD ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId, nsMsgViewIndex *resultIndex, nsMsgViewIndex *threadIndex, bool wrap) override; \
  NS_IMETHOD NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval) override; \
  NS_IMETHOD GetMsgFolder(nsIMsgFolder **aMsgFolder) override; \
  NS_IMETHOD GetViewFolder(nsIMsgFolder **aViewFolder) override; \
  NS_IMETHOD SetViewFolder(nsIMsgFolder *aViewFolder) override; \
  NS_IMETHOD GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval) override; \
  NS_IMETHOD GetFlagsAt(nsMsgViewIndex aIndex, uint32_t *_retval) override; \
  NS_IMETHOD GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder **_retval) override; \
  NS_IMETHOD GetURIForViewIndex(nsMsgViewIndex index, nsACString& _retval) override; \
  NS_IMETHOD CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView **_retval) override; \
  NS_IMETHOD GetSelectedMsgHdrs(uint32_t *count, nsIMsgDBHdr ***headers) override; \
  NS_IMETHOD GetMsgHdrsForSelection(nsIMutableArray **_retval) override; \
  NS_IMETHOD GetURIsForSelection(uint32_t *count, char * **uris) override; \
  NS_IMETHOD GetIndicesForSelection(uint32_t *count, nsMsgViewIndex **indices) override; \
  NS_IMETHOD GetURIForFirstSelectedMessage(nsACString& aURIForFirstSelectedMessage) override; \
  NS_IMETHOD GetHdrForFirstSelectedMessage(nsIMsgDBHdr **aHdrForFirstSelectedMessage) override; \
  NS_IMETHOD LoadMessageByMsgKey(nsMsgKey aMsgKey) override; \
  NS_IMETHOD LoadMessageByViewIndex(nsMsgViewIndex aIndex) override; \
  NS_IMETHOD LoadMessageByUrl(const char * aUrl) override; \
  NS_IMETHOD ReloadMessage(void) override; \
  NS_IMETHOD ReloadMessageWithAllParts(void) override; \
  NS_IMETHOD GetNumSelected(uint32_t *aNumSelected) override; \
  NS_IMETHOD GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete) override; \
  NS_IMETHOD GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage) override; \
  NS_IMETHOD GetNumMsgsInView(int32_t *aNumMsgsInView) override; \
  NS_IMETHOD SelectMsgByKey(nsMsgKey key) override; \
  NS_IMETHOD SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey) override; \
  NS_IMETHOD GetSuppressMsgDisplay(bool *aSuppressMsgDisplay) override; \
  NS_IMETHOD SetSuppressMsgDisplay(bool aSuppressMsgDisplay) override; \
  NS_IMETHOD GetSuppressCommandUpdating(bool *aSuppressCommandUpdating) override; \
  NS_IMETHOD SetSuppressCommandUpdating(bool aSuppressCommandUpdating) override; \
  NS_IMETHOD GetSuppressChangeNotifications(bool *aSuppressChangeNotifications) override; \
  NS_IMETHOD SetSuppressChangeNotifications(bool aSuppressChangeNotifications) override; \
  NS_IMETHOD OnDeleteCompleted(bool succeeded) override; \
  NS_IMETHOD GetDb(nsIMsgDatabase **aDb) override; \
  NS_IMETHOD GetSupportsThreading(bool *aSupportsThreading) override; \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override; \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override; \
  NS_IMETHOD GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete) override; \
  NS_IMETHOD FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval) override; \
  NS_IMETHOD FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval) override; \
  NS_IMETHOD ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment) override; \
  NS_IMETHOD GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread **_retval) override; \
  NS_IMETHOD InsertTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows, nsMsgKey aKey, nsMsgViewFlagsTypeValue aFlags, uint32_t aLevel, nsIMsgFolder *aFolder) override; \
  NS_IMETHOD RemoveTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows) override; \
  NS_IMETHOD NoteChange(nsMsgViewIndex aFirstLineChanged, int32_t aNumRows, nsMsgViewNotificationCodeValue aChangeType) override; \
  NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread **_retval) override; \
  NS_IMETHOD GetUsingLines(bool *aUsingLines) override; \
  NS_IMETHOD AddColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler *aHandler) override; \
  NS_IMETHOD RemoveColumnHandler(const nsAString& aColumn) override; \
  NS_IMETHOD GetColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler **_retval) override; \
  NS_IMETHOD GetCurCustomColumn(nsAString& aCurCustomColumn) override; \
  NS_IMETHOD SetCurCustomColumn(const nsAString& aCurCustomColumn) override; \
  NS_IMETHOD GetSecondaryCustomColumn(nsAString& aSecondaryCustomColumn) override; \
  NS_IMETHOD CellTextForColumn(int32_t aRow, const nsAString& aColumnName, nsAString& _retval) 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_NSIMSGDBVIEW \
  nsresult Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, int32_t *count); \
  nsresult OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, int32_t *aCount); \
  nsresult Close(void); \
  nsresult Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater); \
  nsresult Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder); \
  nsresult DoCommand(nsMsgViewCommandTypeValue command); \
  nsresult DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder); \
  nsresult GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p, nsMsgViewCommandCheckStateValue *selected_p); \
  nsresult GetViewType(nsMsgViewTypeValue *aViewType); \
  nsresult GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags); \
  nsresult SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags); \
  nsresult GetSortType(nsMsgViewSortTypeValue *aSortType); \
  nsresult SetSortType(nsMsgViewSortTypeValue aSortType); \
  nsresult GetSortOrder(nsMsgViewSortOrderValue *aSortOrder); \
  nsresult GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType); \
  nsresult SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType); \
  nsresult GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder); \
  nsresult SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder); \
  nsresult GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage); \
  nsresult GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg); \
  nsresult ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId, nsMsgViewIndex *resultIndex, nsMsgViewIndex *threadIndex, bool wrap); \
  nsresult NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval); \
  nsresult GetMsgFolder(nsIMsgFolder **aMsgFolder); \
  nsresult GetViewFolder(nsIMsgFolder **aViewFolder); \
  nsresult SetViewFolder(nsIMsgFolder *aViewFolder); \
  nsresult GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval); \
  nsresult GetFlagsAt(nsMsgViewIndex aIndex, uint32_t *_retval); \
  nsresult GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr **_retval); \
  nsresult GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder **_retval); \
  nsresult GetURIForViewIndex(nsMsgViewIndex index, nsACString& _retval); \
  nsresult CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView **_retval); \
  nsresult GetSelectedMsgHdrs(uint32_t *count, nsIMsgDBHdr ***headers); \
  nsresult GetMsgHdrsForSelection(nsIMutableArray **_retval); \
  nsresult GetURIsForSelection(uint32_t *count, char * **uris); \
  nsresult GetIndicesForSelection(uint32_t *count, nsMsgViewIndex **indices); \
  nsresult GetURIForFirstSelectedMessage(nsACString& aURIForFirstSelectedMessage); \
  nsresult GetHdrForFirstSelectedMessage(nsIMsgDBHdr **aHdrForFirstSelectedMessage); \
  nsresult LoadMessageByMsgKey(nsMsgKey aMsgKey); \
  nsresult LoadMessageByViewIndex(nsMsgViewIndex aIndex); \
  nsresult LoadMessageByUrl(const char * aUrl); \
  nsresult ReloadMessage(void); \
  nsresult ReloadMessageWithAllParts(void); \
  nsresult GetNumSelected(uint32_t *aNumSelected); \
  nsresult GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete); \
  nsresult GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage); \
  nsresult GetNumMsgsInView(int32_t *aNumMsgsInView); \
  nsresult SelectMsgByKey(nsMsgKey key); \
  nsresult SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey); \
  nsresult GetSuppressMsgDisplay(bool *aSuppressMsgDisplay); \
  nsresult SetSuppressMsgDisplay(bool aSuppressMsgDisplay); \
  nsresult GetSuppressCommandUpdating(bool *aSuppressCommandUpdating); \
  nsresult SetSuppressCommandUpdating(bool aSuppressCommandUpdating); \
  nsresult GetSuppressChangeNotifications(bool *aSuppressChangeNotifications); \
  nsresult SetSuppressChangeNotifications(bool aSuppressChangeNotifications); \
  nsresult OnDeleteCompleted(bool succeeded); \
  nsresult GetDb(nsIMsgDatabase **aDb); \
  nsresult GetSupportsThreading(bool *aSupportsThreading); \
  nsresult GetSearchSession(nsIMsgSearchSession **aSearchSession); \
  nsresult SetSearchSession(nsIMsgSearchSession *aSearchSession); \
  nsresult GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete); \
  nsresult FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval); \
  nsresult FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval); \
  nsresult ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment); \
  nsresult GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread **_retval); \
  nsresult InsertTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows, nsMsgKey aKey, nsMsgViewFlagsTypeValue aFlags, uint32_t aLevel, nsIMsgFolder *aFolder); \
  nsresult RemoveTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows); \
  nsresult NoteChange(nsMsgViewIndex aFirstLineChanged, int32_t aNumRows, nsMsgViewNotificationCodeValue aChangeType); \
  nsresult GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread **_retval); \
  nsresult GetUsingLines(bool *aUsingLines); \
  nsresult AddColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler *aHandler); \
  nsresult RemoveColumnHandler(const nsAString& aColumn); \
  nsresult GetColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler **_retval); \
  nsresult GetCurCustomColumn(nsAString& aCurCustomColumn); \
  nsresult SetCurCustomColumn(const nsAString& aCurCustomColumn); \
  nsresult GetSecondaryCustomColumn(nsAString& aSecondaryCustomColumn); \
  nsresult CellTextForColumn(int32_t aRow, const nsAString& aColumnName, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBVIEW(_to) \
  NS_IMETHOD Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, int32_t *count) override { return _to Open(folder, sortType, sortOrder, viewFlags, count); } \
  NS_IMETHOD OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, int32_t *aCount) override { return _to OpenWithHdrs(aHeaders, aSortType, aSortOrder, aViewFlags, aCount); } \
  NS_IMETHOD Close(void) override { return _to Close(); } \
  NS_IMETHOD Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater) override { return _to Init(aMessengerInstance, aMsgWindow, aCommandUpdater); } \
  NS_IMETHOD Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder) override { return _to Sort(sortType, sortOrder); } \
  NS_IMETHOD DoCommand(nsMsgViewCommandTypeValue command) override { return _to DoCommand(command); } \
  NS_IMETHOD DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder) override { return _to DoCommandWithFolder(command, destFolder); } \
  NS_IMETHOD GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p, nsMsgViewCommandCheckStateValue *selected_p) override { return _to GetCommandStatus(command, selectable_p, selected_p); } \
  NS_IMETHOD GetViewType(nsMsgViewTypeValue *aViewType) override { return _to GetViewType(aViewType); } \
  NS_IMETHOD GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags) override { return _to GetViewFlags(aViewFlags); } \
  NS_IMETHOD SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags) override { return _to SetViewFlags(aViewFlags); } \
  NS_IMETHOD GetSortType(nsMsgViewSortTypeValue *aSortType) override { return _to GetSortType(aSortType); } \
  NS_IMETHOD SetSortType(nsMsgViewSortTypeValue aSortType) override { return _to SetSortType(aSortType); } \
  NS_IMETHOD GetSortOrder(nsMsgViewSortOrderValue *aSortOrder) override { return _to GetSortOrder(aSortOrder); } \
  NS_IMETHOD GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType) override { return _to GetSecondarySortType(aSecondarySortType); } \
  NS_IMETHOD SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType) override { return _to SetSecondarySortType(aSecondarySortType); } \
  NS_IMETHOD GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder) override { return _to GetSecondarySortOrder(aSecondarySortOrder); } \
  NS_IMETHOD SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder) override { return _to SetSecondarySortOrder(aSecondarySortOrder); } \
  NS_IMETHOD GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage) override { return _to GetKeyForFirstSelectedMessage(aKeyForFirstSelectedMessage); } \
  NS_IMETHOD GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg) override { return _to GetViewIndexForFirstSelectedMsg(aViewIndexForFirstSelectedMsg); } \
  NS_IMETHOD ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId, nsMsgViewIndex *resultIndex, nsMsgViewIndex *threadIndex, bool wrap) override { return _to ViewNavigate(motion, resultId, resultIndex, threadIndex, wrap); } \
  NS_IMETHOD NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval) override { return _to NavigateStatus(motion, _retval); } \
  NS_IMETHOD GetMsgFolder(nsIMsgFolder **aMsgFolder) override { return _to GetMsgFolder(aMsgFolder); } \
  NS_IMETHOD GetViewFolder(nsIMsgFolder **aViewFolder) override { return _to GetViewFolder(aViewFolder); } \
  NS_IMETHOD SetViewFolder(nsIMsgFolder *aViewFolder) override { return _to SetViewFolder(aViewFolder); } \
  NS_IMETHOD GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval) override { return _to GetKeyAt(index, _retval); } \
  NS_IMETHOD GetFlagsAt(nsMsgViewIndex aIndex, uint32_t *_retval) override { return _to GetFlagsAt(aIndex, _retval); } \
  NS_IMETHOD GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr **_retval) override { return _to GetMsgHdrAt(aIndex, _retval); } \
  NS_IMETHOD GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder **_retval) override { return _to GetFolderForViewIndex(index, _retval); } \
  NS_IMETHOD GetURIForViewIndex(nsMsgViewIndex index, nsACString& _retval) override { return _to GetURIForViewIndex(index, _retval); } \
  NS_IMETHOD CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView **_retval) override { return _to CloneDBView(aMessengerInstance, aMsgWindow, aCommandUpdater, _retval); } \
  NS_IMETHOD GetSelectedMsgHdrs(uint32_t *count, nsIMsgDBHdr ***headers) override { return _to GetSelectedMsgHdrs(count, headers); } \
  NS_IMETHOD GetMsgHdrsForSelection(nsIMutableArray **_retval) override { return _to GetMsgHdrsForSelection(_retval); } \
  NS_IMETHOD GetURIsForSelection(uint32_t *count, char * **uris) override { return _to GetURIsForSelection(count, uris); } \
  NS_IMETHOD GetIndicesForSelection(uint32_t *count, nsMsgViewIndex **indices) override { return _to GetIndicesForSelection(count, indices); } \
  NS_IMETHOD GetURIForFirstSelectedMessage(nsACString& aURIForFirstSelectedMessage) override { return _to GetURIForFirstSelectedMessage(aURIForFirstSelectedMessage); } \
  NS_IMETHOD GetHdrForFirstSelectedMessage(nsIMsgDBHdr **aHdrForFirstSelectedMessage) override { return _to GetHdrForFirstSelectedMessage(aHdrForFirstSelectedMessage); } \
  NS_IMETHOD LoadMessageByMsgKey(nsMsgKey aMsgKey) override { return _to LoadMessageByMsgKey(aMsgKey); } \
  NS_IMETHOD LoadMessageByViewIndex(nsMsgViewIndex aIndex) override { return _to LoadMessageByViewIndex(aIndex); } \
  NS_IMETHOD LoadMessageByUrl(const char * aUrl) override { return _to LoadMessageByUrl(aUrl); } \
  NS_IMETHOD ReloadMessage(void) override { return _to ReloadMessage(); } \
  NS_IMETHOD ReloadMessageWithAllParts(void) override { return _to ReloadMessageWithAllParts(); } \
  NS_IMETHOD GetNumSelected(uint32_t *aNumSelected) override { return _to GetNumSelected(aNumSelected); } \
  NS_IMETHOD GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete) override { return _to GetMsgToSelectAfterDelete(aMsgToSelectAfterDelete); } \
  NS_IMETHOD GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage) override { return _to GetCurrentlyDisplayedMessage(aCurrentlyDisplayedMessage); } \
  NS_IMETHOD GetNumMsgsInView(int32_t *aNumMsgsInView) override { return _to GetNumMsgsInView(aNumMsgsInView); } \
  NS_IMETHOD SelectMsgByKey(nsMsgKey key) override { return _to SelectMsgByKey(key); } \
  NS_IMETHOD SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey) override { return _to SelectFolderMsgByKey(aFolder, aKey); } \
  NS_IMETHOD GetSuppressMsgDisplay(bool *aSuppressMsgDisplay) override { return _to GetSuppressMsgDisplay(aSuppressMsgDisplay); } \
  NS_IMETHOD SetSuppressMsgDisplay(bool aSuppressMsgDisplay) override { return _to SetSuppressMsgDisplay(aSuppressMsgDisplay); } \
  NS_IMETHOD GetSuppressCommandUpdating(bool *aSuppressCommandUpdating) override { return _to GetSuppressCommandUpdating(aSuppressCommandUpdating); } \
  NS_IMETHOD SetSuppressCommandUpdating(bool aSuppressCommandUpdating) override { return _to SetSuppressCommandUpdating(aSuppressCommandUpdating); } \
  NS_IMETHOD GetSuppressChangeNotifications(bool *aSuppressChangeNotifications) override { return _to GetSuppressChangeNotifications(aSuppressChangeNotifications); } \
  NS_IMETHOD SetSuppressChangeNotifications(bool aSuppressChangeNotifications) override { return _to SetSuppressChangeNotifications(aSuppressChangeNotifications); } \
  NS_IMETHOD OnDeleteCompleted(bool succeeded) override { return _to OnDeleteCompleted(succeeded); } \
  NS_IMETHOD GetDb(nsIMsgDatabase **aDb) override { return _to GetDb(aDb); } \
  NS_IMETHOD GetSupportsThreading(bool *aSupportsThreading) override { return _to GetSupportsThreading(aSupportsThreading); } \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override { return _to GetSearchSession(aSearchSession); } \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override { return _to SetSearchSession(aSearchSession); } \
  NS_IMETHOD GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete) override { return _to GetRemoveRowOnMoveOrDelete(aRemoveRowOnMoveOrDelete); } \
  NS_IMETHOD FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval) override { return _to FindIndexFromKey(aMsgKey, aExpand, _retval); } \
  NS_IMETHOD FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval) override { return _to FindIndexOfMsgHdr(aMsgHdr, aExpand, _retval); } \
  NS_IMETHOD ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment) override { return _to ExpandAndSelectThreadByIndex(aIndex, aAugment); } \
  NS_IMETHOD GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread **_retval) override { return _to GetThreadContainingIndex(aIndex, _retval); } \
  NS_IMETHOD InsertTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows, nsMsgKey aKey, nsMsgViewFlagsTypeValue aFlags, uint32_t aLevel, nsIMsgFolder *aFolder) override { return _to InsertTreeRows(aIndex, aNumRows, aKey, aFlags, aLevel, aFolder); } \
  NS_IMETHOD RemoveTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows) override { return _to RemoveTreeRows(aIndex, aNumRows); } \
  NS_IMETHOD NoteChange(nsMsgViewIndex aFirstLineChanged, int32_t aNumRows, nsMsgViewNotificationCodeValue aChangeType) override { return _to NoteChange(aFirstLineChanged, aNumRows, aChangeType); } \
  NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread **_retval) override { return _to GetThreadContainingMsgHdr(aMsgHdr, _retval); } \
  NS_IMETHOD GetUsingLines(bool *aUsingLines) override { return _to GetUsingLines(aUsingLines); } \
  NS_IMETHOD AddColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler *aHandler) override { return _to AddColumnHandler(aColumn, aHandler); } \
  NS_IMETHOD RemoveColumnHandler(const nsAString& aColumn) override { return _to RemoveColumnHandler(aColumn); } \
  NS_IMETHOD GetColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler **_retval) override { return _to GetColumnHandler(aColumn, _retval); } \
  NS_IMETHOD GetCurCustomColumn(nsAString& aCurCustomColumn) override { return _to GetCurCustomColumn(aCurCustomColumn); } \
  NS_IMETHOD SetCurCustomColumn(const nsAString& aCurCustomColumn) override { return _to SetCurCustomColumn(aCurCustomColumn); } \
  NS_IMETHOD GetSecondaryCustomColumn(nsAString& aSecondaryCustomColumn) override { return _to GetSecondaryCustomColumn(aSecondaryCustomColumn); } \
  NS_IMETHOD CellTextForColumn(int32_t aRow, const nsAString& aColumnName, nsAString& _retval) override { return _to CellTextForColumn(aRow, aColumnName, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGDBVIEW(_to) \
  NS_IMETHOD Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, int32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(folder, sortType, sortOrder, viewFlags, count); } \
  NS_IMETHOD OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, int32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenWithHdrs(aHeaders, aSortType, aSortOrder, aViewFlags, aCount); } \
  NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
  NS_IMETHOD Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aMessengerInstance, aMsgWindow, aCommandUpdater); } \
  NS_IMETHOD Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sort(sortType, sortOrder); } \
  NS_IMETHOD DoCommand(nsMsgViewCommandTypeValue command) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \
  NS_IMETHOD DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandWithFolder(command, destFolder); } \
  NS_IMETHOD GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p, nsMsgViewCommandCheckStateValue *selected_p) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStatus(command, selectable_p, selected_p); } \
  NS_IMETHOD GetViewType(nsMsgViewTypeValue *aViewType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewType(aViewType); } \
  NS_IMETHOD GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewFlags(aViewFlags); } \
  NS_IMETHOD SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetViewFlags(aViewFlags); } \
  NS_IMETHOD GetSortType(nsMsgViewSortTypeValue *aSortType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortType(aSortType); } \
  NS_IMETHOD SetSortType(nsMsgViewSortTypeValue aSortType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortType(aSortType); } \
  NS_IMETHOD GetSortOrder(nsMsgViewSortOrderValue *aSortOrder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortOrder(aSortOrder); } \
  NS_IMETHOD GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecondarySortType(aSecondarySortType); } \
  NS_IMETHOD SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecondarySortType(aSecondarySortType); } \
  NS_IMETHOD GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecondarySortOrder(aSecondarySortOrder); } \
  NS_IMETHOD SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecondarySortOrder(aSecondarySortOrder); } \
  NS_IMETHOD GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyForFirstSelectedMessage(aKeyForFirstSelectedMessage); } \
  NS_IMETHOD GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewIndexForFirstSelectedMsg(aViewIndexForFirstSelectedMsg); } \
  NS_IMETHOD ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId, nsMsgViewIndex *resultIndex, nsMsgViewIndex *threadIndex, bool wrap) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ViewNavigate(motion, resultId, resultIndex, threadIndex, wrap); } \
  NS_IMETHOD NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NavigateStatus(motion, _retval); } \
  NS_IMETHOD GetMsgFolder(nsIMsgFolder **aMsgFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgFolder(aMsgFolder); } \
  NS_IMETHOD GetViewFolder(nsIMsgFolder **aViewFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewFolder(aViewFolder); } \
  NS_IMETHOD SetViewFolder(nsIMsgFolder *aViewFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetViewFolder(aViewFolder); } \
  NS_IMETHOD GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyAt(index, _retval); } \
  NS_IMETHOD GetFlagsAt(nsMsgViewIndex aIndex, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlagsAt(aIndex, _retval); } \
  NS_IMETHOD GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrAt(aIndex, _retval); } \
  NS_IMETHOD GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderForViewIndex(index, _retval); } \
  NS_IMETHOD GetURIForViewIndex(nsMsgViewIndex index, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIForViewIndex(index, _retval); } \
  NS_IMETHOD CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneDBView(aMessengerInstance, aMsgWindow, aCommandUpdater, _retval); } \
  NS_IMETHOD GetSelectedMsgHdrs(uint32_t *count, nsIMsgDBHdr ***headers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedMsgHdrs(count, headers); } \
  NS_IMETHOD GetMsgHdrsForSelection(nsIMutableArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrsForSelection(_retval); } \
  NS_IMETHOD GetURIsForSelection(uint32_t *count, char * **uris) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIsForSelection(count, uris); } \
  NS_IMETHOD GetIndicesForSelection(uint32_t *count, nsMsgViewIndex **indices) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndicesForSelection(count, indices); } \
  NS_IMETHOD GetURIForFirstSelectedMessage(nsACString& aURIForFirstSelectedMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIForFirstSelectedMessage(aURIForFirstSelectedMessage); } \
  NS_IMETHOD GetHdrForFirstSelectedMessage(nsIMsgDBHdr **aHdrForFirstSelectedMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHdrForFirstSelectedMessage(aHdrForFirstSelectedMessage); } \
  NS_IMETHOD LoadMessageByMsgKey(nsMsgKey aMsgKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadMessageByMsgKey(aMsgKey); } \
  NS_IMETHOD LoadMessageByViewIndex(nsMsgViewIndex aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadMessageByViewIndex(aIndex); } \
  NS_IMETHOD LoadMessageByUrl(const char * aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadMessageByUrl(aUrl); } \
  NS_IMETHOD ReloadMessage(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadMessage(); } \
  NS_IMETHOD ReloadMessageWithAllParts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadMessageWithAllParts(); } \
  NS_IMETHOD GetNumSelected(uint32_t *aNumSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumSelected(aNumSelected); } \
  NS_IMETHOD GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgToSelectAfterDelete(aMsgToSelectAfterDelete); } \
  NS_IMETHOD GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentlyDisplayedMessage(aCurrentlyDisplayedMessage); } \
  NS_IMETHOD GetNumMsgsInView(int32_t *aNumMsgsInView) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumMsgsInView(aNumMsgsInView); } \
  NS_IMETHOD SelectMsgByKey(nsMsgKey key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectMsgByKey(key); } \
  NS_IMETHOD SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectFolderMsgByKey(aFolder, aKey); } \
  NS_IMETHOD GetSuppressMsgDisplay(bool *aSuppressMsgDisplay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressMsgDisplay(aSuppressMsgDisplay); } \
  NS_IMETHOD SetSuppressMsgDisplay(bool aSuppressMsgDisplay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressMsgDisplay(aSuppressMsgDisplay); } \
  NS_IMETHOD GetSuppressCommandUpdating(bool *aSuppressCommandUpdating) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressCommandUpdating(aSuppressCommandUpdating); } \
  NS_IMETHOD SetSuppressCommandUpdating(bool aSuppressCommandUpdating) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressCommandUpdating(aSuppressCommandUpdating); } \
  NS_IMETHOD GetSuppressChangeNotifications(bool *aSuppressChangeNotifications) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressChangeNotifications(aSuppressChangeNotifications); } \
  NS_IMETHOD SetSuppressChangeNotifications(bool aSuppressChangeNotifications) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressChangeNotifications(aSuppressChangeNotifications); } \
  NS_IMETHOD OnDeleteCompleted(bool succeeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteCompleted(succeeded); } \
  NS_IMETHOD GetDb(nsIMsgDatabase **aDb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDb(aDb); } \
  NS_IMETHOD GetSupportsThreading(bool *aSupportsThreading) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportsThreading(aSupportsThreading); } \
  NS_IMETHOD GetSearchSession(nsIMsgSearchSession **aSearchSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchSession(aSearchSession); } \
  NS_IMETHOD SetSearchSession(nsIMsgSearchSession *aSearchSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchSession(aSearchSession); } \
  NS_IMETHOD GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemoveRowOnMoveOrDelete(aRemoveRowOnMoveOrDelete); } \
  NS_IMETHOD FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindIndexFromKey(aMsgKey, aExpand, _retval); } \
  NS_IMETHOD FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindIndexOfMsgHdr(aMsgHdr, aExpand, _retval); } \
  NS_IMETHOD ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExpandAndSelectThreadByIndex(aIndex, aAugment); } \
  NS_IMETHOD GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadContainingIndex(aIndex, _retval); } \
  NS_IMETHOD InsertTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows, nsMsgKey aKey, nsMsgViewFlagsTypeValue aFlags, uint32_t aLevel, nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertTreeRows(aIndex, aNumRows, aKey, aFlags, aLevel, aFolder); } \
  NS_IMETHOD RemoveTreeRows(nsMsgViewIndex aIndex, uint32_t aNumRows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveTreeRows(aIndex, aNumRows); } \
  NS_IMETHOD NoteChange(nsMsgViewIndex aFirstLineChanged, int32_t aNumRows, nsMsgViewNotificationCodeValue aChangeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NoteChange(aFirstLineChanged, aNumRows, aChangeType); } \
  NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadContainingMsgHdr(aMsgHdr, _retval); } \
  NS_IMETHOD GetUsingLines(bool *aUsingLines) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingLines(aUsingLines); } \
  NS_IMETHOD AddColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler *aHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddColumnHandler(aColumn, aHandler); } \
  NS_IMETHOD RemoveColumnHandler(const nsAString& aColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveColumnHandler(aColumn); } \
  NS_IMETHOD GetColumnHandler(const nsAString& aColumn, nsIMsgCustomColumnHandler **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnHandler(aColumn, _retval); } \
  NS_IMETHOD GetCurCustomColumn(nsAString& aCurCustomColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurCustomColumn(aCurCustomColumn); } \
  NS_IMETHOD SetCurCustomColumn(const nsAString& aCurCustomColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurCustomColumn(aCurCustomColumn); } \
  NS_IMETHOD GetSecondaryCustomColumn(nsAString& aSecondaryCustomColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecondaryCustomColumn(aSecondaryCustomColumn); } \
  NS_IMETHOD CellTextForColumn(int32_t aRow, const nsAString& aColumnName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CellTextForColumn(aRow, aColumnName, _retval); } 


/* starting interface:    nsIMsgDBViewCommandUpdater */
#define NS_IMSGDBVIEWCOMMANDUPDATER_IID_STR "ce8f52ee-e742-4b31-8bdd-2b3a8168a117"

#define NS_IMSGDBVIEWCOMMANDUPDATER_IID \
  {0xce8f52ee, 0xe742, 0x4b31, \
    { 0x8b, 0xdd, 0x2b, 0x3a, 0x81, 0x68, 0xa1, 0x17 }}

class NS_NO_VTABLE nsIMsgDBViewCommandUpdater : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBVIEWCOMMANDUPDATER_IID)

  /* void updateCommandStatus (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateCommandStatus(void) = 0;

  /* void displayMessageChanged (in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString& aSubject, const nsACString& aKeywords) = 0;

  /* void updateNextMessageAfterDelete (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateNextMessageAfterDelete(void) = 0;

  /* boolean summarizeSelection (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SummarizeSelection(bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDBViewCommandUpdater, NS_IMSGDBVIEWCOMMANDUPDATER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDBVIEWCOMMANDUPDATER \
  NS_IMETHOD UpdateCommandStatus(void) override; \
  NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString& aSubject, const nsACString& aKeywords) override; \
  NS_IMETHOD UpdateNextMessageAfterDelete(void) override; \
  NS_IMETHOD SummarizeSelection(bool *_retval) 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_NSIMSGDBVIEWCOMMANDUPDATER \
  nsresult UpdateCommandStatus(void); \
  nsresult DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString& aSubject, const nsACString& aKeywords); \
  nsresult UpdateNextMessageAfterDelete(void); \
  nsresult SummarizeSelection(bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBVIEWCOMMANDUPDATER(_to) \
  NS_IMETHOD UpdateCommandStatus(void) override { return _to UpdateCommandStatus(); } \
  NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString& aSubject, const nsACString& aKeywords) override { return _to DisplayMessageChanged(aFolder, aSubject, aKeywords); } \
  NS_IMETHOD UpdateNextMessageAfterDelete(void) override { return _to UpdateNextMessageAfterDelete(); } \
  NS_IMETHOD SummarizeSelection(bool *_retval) override { return _to SummarizeSelection(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGDBVIEWCOMMANDUPDATER(_to) \
  NS_IMETHOD UpdateCommandStatus(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandStatus(); } \
  NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString& aSubject, const nsACString& aKeywords) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisplayMessageChanged(aFolder, aSubject, aKeywords); } \
  NS_IMETHOD UpdateNextMessageAfterDelete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateNextMessageAfterDelete(); } \
  NS_IMETHOD SummarizeSelection(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SummarizeSelection(_retval); } 


#endif /* __gen_nsIMsgDBView_h__ */