This file is indexed.

/usr/include/thunderbird-11.0.1/nsIMsgDBView.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 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
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/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

/* 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 nsITreeView; /* forward declaration */

class nsIMsgCustomColumnHandler; /* forward declaration */

typedef PRInt32  nsMsgViewNotificationCodeValue;

typedef PRInt32  nsMsgViewCommandCheckStateValue;

typedef PRInt32  nsMsgViewCommandTypeValue;

typedef PRInt32  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 NS_SCRIPTABLE 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 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) \

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewSortOrder
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWSORTORDER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewSortOrder)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWTYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewType)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewFlagsType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWFLAGSTYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewFlagsType)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


/* starting interface:    nsMsgViewSortType */
#define NS_MSGVIEWSORTTYPE_IID_STR "e8fdf9ca-9425-49de-b231-8d8fb51b8ee2"

#define NS_MSGVIEWSORTTYPE_IID \
  {0xe8fdf9ca, 0x9425, 0x49de, \
    { 0xb2, 0x31, 0x8d, 0x8f, 0xb5, 0x1b, 0x8e, 0xe2 }}

class NS_NO_VTABLE NS_SCRIPTABLE 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
  };

};

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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewSortType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWSORTTYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewSortType)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewNotificationCode
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWNOTIFICATIONCODE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewNotificationCode)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewCommandCheckState
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWCOMMANDCHECKSTATE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewCommandCheckState)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgViewCommandType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGVIEWCOMMANDTYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgViewCommandType)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public nsMsgNavigationType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSMSGNAVIGATIONTYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgNavigationType)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIMsgDBView */
#define NS_IMSGDBVIEW_IID_STR "cc1fb1d8-b033-478f-be73-982aff2248ef"

#define NS_IMSGDBVIEW_IID \
  {0xcc1fb1d8, 0xb033, 0x478f, \
    { 0xbe, 0x73, 0x98, 0x2a, 0xff, 0x22, 0x48, 0xef }}

class NS_NO_VTABLE NS_SCRIPTABLE 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); */
  NS_SCRIPTABLE NS_IMETHOD Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, PRInt32 *count NS_OUTPARAM) = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* unsigned long getFlagsAt (in nsMsgViewIndex aIndex); */
  NS_SCRIPTABLE NS_IMETHOD GetFlagsAt(nsMsgViewIndex aIndex, PRUint32 *_retval NS_OUTPARAM) = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* readonly attribute unsigned long numSelected; */
  NS_SCRIPTABLE NS_IMETHOD GetNumSelected(PRUint32 *aNumSelected) = 0;

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

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

  /* readonly attribute long numMsgsInView; */
  NS_SCRIPTABLE NS_IMETHOD GetNumMsgsInView(PRInt32 *aNumMsgsInView) = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsMsgDBView : public nsIMsgDBView
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGDBVIEW

  nsMsgDBView();

private:
  ~nsMsgDBView();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDBView, nsIMsgDBView)

nsMsgDBView::nsMsgDBView()
{
  /* member initializers and constructor code */
}

nsMsgDBView::~nsMsgDBView()
{
  /* destructor code */
}

/* void open (in nsIMsgFolder folder, in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder, in nsMsgViewFlagsTypeValue viewFlags, out long count); */
NS_IMETHODIMP nsMsgDBView::Open(nsIMsgFolder *folder, nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder, nsMsgViewFlagsTypeValue viewFlags, PRInt32 *count NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void openWithHdrs (in nsISimpleEnumerator aHeaders, in nsMsgViewSortTypeValue aSortType, in nsMsgViewSortOrderValue aSortOrder, in nsMsgViewFlagsTypeValue aViewFlags, out long aCount); */
NS_IMETHODIMP nsMsgDBView::OpenWithHdrs(nsISimpleEnumerator *aHeaders, nsMsgViewSortTypeValue aSortType, nsMsgViewSortOrderValue aSortOrder, nsMsgViewFlagsTypeValue aViewFlags, PRInt32 *aCount NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void close (); */
NS_IMETHODIMP nsMsgDBView::Close()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void init (in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); */
NS_IMETHODIMP nsMsgDBView::Init(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void sort (in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder); */
NS_IMETHODIMP nsMsgDBView::Sort(nsMsgViewSortTypeValue sortType, nsMsgViewSortOrderValue sortOrder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void doCommand (in nsMsgViewCommandTypeValue command); */
NS_IMETHODIMP nsMsgDBView::DoCommand(nsMsgViewCommandTypeValue command)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void doCommandWithFolder (in nsMsgViewCommandTypeValue command, in nsIMsgFolder destFolder); */
NS_IMETHODIMP nsMsgDBView::DoCommandWithFolder(nsMsgViewCommandTypeValue command, nsIMsgFolder *destFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getCommandStatus (in nsMsgViewCommandTypeValue command, out boolean selectable_p, out nsMsgViewCommandCheckStateValue selected_p); */
NS_IMETHODIMP nsMsgDBView::GetCommandStatus(nsMsgViewCommandTypeValue command, bool *selectable_p NS_OUTPARAM, nsMsgViewCommandCheckStateValue *selected_p NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgViewTypeValue viewType; */
NS_IMETHODIMP nsMsgDBView::GetViewType(nsMsgViewTypeValue *aViewType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgViewFlagsTypeValue viewFlags; */
NS_IMETHODIMP nsMsgDBView::GetViewFlags(nsMsgViewFlagsTypeValue *aViewFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetViewFlags(nsMsgViewFlagsTypeValue aViewFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgViewSortTypeValue sortType; */
NS_IMETHODIMP nsMsgDBView::GetSortType(nsMsgViewSortTypeValue *aSortType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSortType(nsMsgViewSortTypeValue aSortType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgViewSortOrderValue sortOrder; */
NS_IMETHODIMP nsMsgDBView::GetSortOrder(nsMsgViewSortOrderValue *aSortOrder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgViewSortTypeValue secondarySortType; */
NS_IMETHODIMP nsMsgDBView::GetSecondarySortType(nsMsgViewSortTypeValue *aSecondarySortType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSecondarySortType(nsMsgViewSortTypeValue aSecondarySortType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgViewSortOrderValue secondarySortOrder; */
NS_IMETHODIMP nsMsgDBView::GetSecondarySortOrder(nsMsgViewSortOrderValue *aSecondarySortOrder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSecondarySortOrder(nsMsgViewSortOrderValue aSecondarySortOrder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgKey keyForFirstSelectedMessage; */
NS_IMETHODIMP nsMsgDBView::GetKeyForFirstSelectedMessage(nsMsgKey *aKeyForFirstSelectedMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgViewIndex viewIndexForFirstSelectedMsg; */
NS_IMETHODIMP nsMsgDBView::GetViewIndexForFirstSelectedMsg(nsMsgViewIndex *aViewIndexForFirstSelectedMsg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void viewNavigate (in nsMsgNavigationTypeValue motion, out nsMsgKey resultId, out nsMsgViewIndex resultIndex, out nsMsgViewIndex threadIndex, in boolean wrap); */
NS_IMETHODIMP nsMsgDBView::ViewNavigate(nsMsgNavigationTypeValue motion, nsMsgKey *resultId NS_OUTPARAM, nsMsgViewIndex *resultIndex NS_OUTPARAM, nsMsgViewIndex *threadIndex NS_OUTPARAM, bool wrap)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean navigateStatus (in nsMsgNavigationTypeValue motion); */
NS_IMETHODIMP nsMsgDBView::NavigateStatus(nsMsgNavigationTypeValue motion, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgFolder msgFolder; */
NS_IMETHODIMP nsMsgDBView::GetMsgFolder(nsIMsgFolder * *aMsgFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgFolder viewFolder; */
NS_IMETHODIMP nsMsgDBView::GetViewFolder(nsIMsgFolder * *aViewFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetViewFolder(nsIMsgFolder *aViewFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsMsgKey getKeyAt (in nsMsgViewIndex index); */
NS_IMETHODIMP nsMsgDBView::GetKeyAt(nsMsgViewIndex index, nsMsgKey *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getFlagsAt (in nsMsgViewIndex aIndex); */
NS_IMETHODIMP nsMsgDBView::GetFlagsAt(nsMsgViewIndex aIndex, PRUint32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgDBHdr getMsgHdrAt (in nsMsgViewIndex aIndex); */
NS_IMETHODIMP nsMsgDBView::GetMsgHdrAt(nsMsgViewIndex aIndex, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgFolder getFolderForViewIndex (in nsMsgViewIndex index); */
NS_IMETHODIMP nsMsgDBView::GetFolderForViewIndex(nsMsgViewIndex index, nsIMsgFolder * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* ACString getURIForViewIndex (in nsMsgViewIndex index); */
NS_IMETHODIMP nsMsgDBView::GetURIForViewIndex(nsMsgViewIndex index, nsACString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgDBView cloneDBView (in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); */
NS_IMETHODIMP nsMsgDBView::CloneDBView(nsIMessenger *aMessengerInstance, nsIMsgWindow *aMsgWindow, nsIMsgDBViewCommandUpdater *aCommandUpdater, nsIMsgDBView * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMutableArray getMsgHdrsForSelection (); */
NS_IMETHODIMP nsMsgDBView::GetMsgHdrsForSelection(nsIMutableArray * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getURIsForSelection (out unsigned long count, [array, size_is (count), retval] out string uris); */
NS_IMETHODIMP nsMsgDBView::GetURIsForSelection(PRUint32 *count NS_OUTPARAM, char * **uris NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getIndicesForSelection (out unsigned long count, [array, size_is (count), retval] out nsMsgViewIndex indices); */
NS_IMETHODIMP nsMsgDBView::GetIndicesForSelection(PRUint32 *count NS_OUTPARAM, nsMsgViewIndex **indices NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString URIForFirstSelectedMessage; */
NS_IMETHODIMP nsMsgDBView::GetURIForFirstSelectedMessage(nsACString & aURIForFirstSelectedMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgDBHdr hdrForFirstSelectedMessage; */
NS_IMETHODIMP nsMsgDBView::GetHdrForFirstSelectedMessage(nsIMsgDBHdr * *aHdrForFirstSelectedMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadMessageByMsgKey (in nsMsgKey aMsgKey); */
NS_IMETHODIMP nsMsgDBView::LoadMessageByMsgKey(nsMsgKey aMsgKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadMessageByViewIndex (in nsMsgViewIndex aIndex); */
NS_IMETHODIMP nsMsgDBView::LoadMessageByViewIndex(nsMsgViewIndex aIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadMessageByUrl (in string aUrl); */
NS_IMETHODIMP nsMsgDBView::LoadMessageByUrl(const char * aUrl)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reloadMessage (); */
NS_IMETHODIMP nsMsgDBView::ReloadMessage()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reloadMessageWithAllParts (); */
NS_IMETHODIMP nsMsgDBView::ReloadMessageWithAllParts()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long numSelected; */
NS_IMETHODIMP nsMsgDBView::GetNumSelected(PRUint32 *aNumSelected)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgViewIndex msgToSelectAfterDelete; */
NS_IMETHODIMP nsMsgDBView::GetMsgToSelectAfterDelete(nsMsgViewIndex *aMsgToSelectAfterDelete)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsMsgViewIndex currentlyDisplayedMessage; */
NS_IMETHODIMP nsMsgDBView::GetCurrentlyDisplayedMessage(nsMsgViewIndex *aCurrentlyDisplayedMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long numMsgsInView; */
NS_IMETHODIMP nsMsgDBView::GetNumMsgsInView(PRInt32 *aNumMsgsInView)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void selectMsgByKey (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDBView::SelectMsgByKey(nsMsgKey key)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void selectFolderMsgByKey (in nsIMsgFolder aFolder, in nsMsgKey aKey); */
NS_IMETHODIMP nsMsgDBView::SelectFolderMsgByKey(nsIMsgFolder *aFolder, nsMsgKey aKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean suppressMsgDisplay; */
NS_IMETHODIMP nsMsgDBView::GetSuppressMsgDisplay(bool *aSuppressMsgDisplay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSuppressMsgDisplay(bool aSuppressMsgDisplay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean suppressCommandUpdating; */
NS_IMETHODIMP nsMsgDBView::GetSuppressCommandUpdating(bool *aSuppressCommandUpdating)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSuppressCommandUpdating(bool aSuppressCommandUpdating)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean suppressChangeNotifications; */
NS_IMETHODIMP nsMsgDBView::GetSuppressChangeNotifications(bool *aSuppressChangeNotifications)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSuppressChangeNotifications(bool aSuppressChangeNotifications)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDeleteCompleted (in boolean succeeded); */
NS_IMETHODIMP nsMsgDBView::OnDeleteCompleted(bool succeeded)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgDatabase db; */
NS_IMETHODIMP nsMsgDBView::GetDb(nsIMsgDatabase * *aDb)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean supportsThreading; */
NS_IMETHODIMP nsMsgDBView::GetSupportsThreading(bool *aSupportsThreading)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgSearchSession searchSession; */
NS_IMETHODIMP nsMsgDBView::GetSearchSession(nsIMsgSearchSession * *aSearchSession)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetSearchSession(nsIMsgSearchSession *aSearchSession)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean removeRowOnMoveOrDelete; */
NS_IMETHODIMP nsMsgDBView::GetRemoveRowOnMoveOrDelete(bool *aRemoveRowOnMoveOrDelete)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsMsgViewIndex findIndexFromKey (in nsMsgKey aMsgKey, in boolean aExpand); */
NS_IMETHODIMP nsMsgDBView::FindIndexFromKey(nsMsgKey aMsgKey, bool aExpand, nsMsgViewIndex *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsMsgViewIndex findIndexOfMsgHdr (in nsIMsgDBHdr aMsgHdr, in boolean aExpand); */
NS_IMETHODIMP nsMsgDBView::FindIndexOfMsgHdr(nsIMsgDBHdr *aMsgHdr, bool aExpand, nsMsgViewIndex *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ExpandAndSelectThreadByIndex (in nsMsgViewIndex aIndex, in boolean aAugment); */
NS_IMETHODIMP nsMsgDBView::ExpandAndSelectThreadByIndex(nsMsgViewIndex aIndex, bool aAugment)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgThread getThreadContainingIndex (in nsMsgViewIndex aIndex); */
NS_IMETHODIMP nsMsgDBView::GetThreadContainingIndex(nsMsgViewIndex aIndex, nsIMsgThread * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgThread getThreadContainingMsgHdr (in nsIMsgDBHdr aMsgHdr); */
NS_IMETHODIMP nsMsgDBView::GetThreadContainingMsgHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgThread * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean usingLines; */
NS_IMETHODIMP nsMsgDBView::GetUsingLines(bool *aUsingLines)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addColumnHandler (in AString aColumn, in nsIMsgCustomColumnHandler aHandler); */
NS_IMETHODIMP nsMsgDBView::AddColumnHandler(const nsAString & aColumn, nsIMsgCustomColumnHandler *aHandler)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeColumnHandler (in AString aColumn); */
NS_IMETHODIMP nsMsgDBView::RemoveColumnHandler(const nsAString & aColumn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIMsgCustomColumnHandler getColumnHandler (in AString aColumn); */
NS_IMETHODIMP nsMsgDBView::GetColumnHandler(const nsAString & aColumn, nsIMsgCustomColumnHandler * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString curCustomColumn; */
NS_IMETHODIMP nsMsgDBView::GetCurCustomColumn(nsAString & aCurCustomColumn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBView::SetCurCustomColumn(const nsAString & aCurCustomColumn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString cellTextForColumn (in long aRow, in wstring aColumnName); */
NS_IMETHODIMP nsMsgDBView::CellTextForColumn(PRInt32 aRow, const PRUnichar * aColumnName, nsAString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* 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 NS_SCRIPTABLE nsIMsgDBViewCommandUpdater : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBVIEWCOMMANDUPDATER_IID)

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

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

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

  /* boolean summarizeSelection (); */
  NS_SCRIPTABLE NS_IMETHOD SummarizeSelection(bool *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD UpdateCommandStatus(void); \
  NS_SCRIPTABLE NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString & aSubject, const nsACString & aKeywords); \
  NS_SCRIPTABLE NS_IMETHOD UpdateNextMessageAfterDelete(void); \
  NS_SCRIPTABLE NS_IMETHOD SummarizeSelection(bool *_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBVIEWCOMMANDUPDATER(_to) \
  NS_SCRIPTABLE NS_IMETHOD UpdateCommandStatus(void) { return _to UpdateCommandStatus(); } \
  NS_SCRIPTABLE NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString & aSubject, const nsACString & aKeywords) { return _to DisplayMessageChanged(aFolder, aSubject, aKeywords); } \
  NS_SCRIPTABLE NS_IMETHOD UpdateNextMessageAfterDelete(void) { return _to UpdateNextMessageAfterDelete(); } \
  NS_SCRIPTABLE NS_IMETHOD SummarizeSelection(bool *_retval NS_OUTPARAM) { 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_SCRIPTABLE NS_IMETHOD UpdateCommandStatus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandStatus(); } \
  NS_SCRIPTABLE NS_IMETHOD DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString & aSubject, const nsACString & aKeywords) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisplayMessageChanged(aFolder, aSubject, aKeywords); } \
  NS_SCRIPTABLE NS_IMETHOD UpdateNextMessageAfterDelete(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateNextMessageAfterDelete(); } \
  NS_SCRIPTABLE NS_IMETHOD SummarizeSelection(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SummarizeSelection(_retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsMsgDBViewCommandUpdater : public nsIMsgDBViewCommandUpdater
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGDBVIEWCOMMANDUPDATER

  nsMsgDBViewCommandUpdater();

private:
  ~nsMsgDBViewCommandUpdater();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDBViewCommandUpdater, nsIMsgDBViewCommandUpdater)

nsMsgDBViewCommandUpdater::nsMsgDBViewCommandUpdater()
{
  /* member initializers and constructor code */
}

nsMsgDBViewCommandUpdater::~nsMsgDBViewCommandUpdater()
{
  /* destructor code */
}

/* void updateCommandStatus (); */
NS_IMETHODIMP nsMsgDBViewCommandUpdater::UpdateCommandStatus()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void displayMessageChanged (in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords); */
NS_IMETHODIMP nsMsgDBViewCommandUpdater::DisplayMessageChanged(nsIMsgFolder *aFolder, const nsAString & aSubject, const nsACString & aKeywords)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void updateNextMessageAfterDelete (); */
NS_IMETHODIMP nsMsgDBViewCommandUpdater::UpdateNextMessageAfterDelete()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean summarizeSelection (); */
NS_IMETHODIMP nsMsgDBViewCommandUpdater::SummarizeSelection(bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIMsgDBView_h__ */