This file is indexed.

/usr/include/thunderbird-11.0.1/nsIMsgCompose.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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/compose/public/nsIMsgCompose.idl
 */

#ifndef __gen_nsIMsgCompose_h__
#define __gen_nsIMsgCompose_h__


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

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

#ifndef __gen_nsIMsgComposeParams_h__
#include "nsIMsgComposeParams.h"
#endif

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

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "nsStringGlue.h"
class nsIMsgSend; /* forward declaration */

class nsIMsgIdentity; /* forward declaration */

class nsIMsgProgress; /* forward declaration */

class nsIDocShell; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

class nsIDOMNode; /* forward declaration */

class nsIEditor; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

typedef PRInt32  MSG_ComposeSaveType;


/* starting interface:    nsIMsgCompSaveType */
#define NS_IMSGCOMPSAVETYPE_IID_STR "6953e50a-7531-11d3-85fe-006008948010"

#define NS_IMSGCOMPSAVETYPE_IID \
  {0x6953e50a, 0x7531, 0x11d3, \
    { 0x85, 0xfe, 0x00, 0x60, 0x08, 0x94, 0x80, 0x10 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgCompSaveType {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPSAVETYPE_IID)

  enum {
    File = 0,
    Template = 1,
    Draft = 2
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCompSaveType, NS_IMSGCOMPSAVETYPE_IID)

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPSAVETYPE(_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_NSIMSGCOMPSAVETYPE(_to) \

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

/* Header file */
class nsMsgCompSaveType : public nsIMsgCompSaveType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPSAVETYPE

  nsMsgCompSaveType();

private:
  ~nsMsgCompSaveType();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgCompSaveType, nsIMsgCompSaveType)

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

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

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

typedef PRInt32  MSG_DeliverMode;


/* starting interface:    nsIMsgCompDeliverMode */
#define NS_IMSGCOMPDELIVERMODE_IID_STR "a9f27dd7-8f89-4de3-8fbf-41b789c16ee5"

#define NS_IMSGCOMPDELIVERMODE_IID \
  {0xa9f27dd7, 0x8f89, 0x4de3, \
    { 0x8f, 0xbf, 0x41, 0xb7, 0x89, 0xc1, 0x6e, 0xe5 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgCompDeliverMode {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPDELIVERMODE_IID)

  enum {
    Now = 0,
    Later = 1,
    Save = 2,
    SaveAs = 3,
    SaveAsDraft = 4,
    SaveAsTemplate = 5,
    SendUnsent = 6,
    AutoSaveAsDraft = 7,
    Background = 8
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCompDeliverMode, NS_IMSGCOMPDELIVERMODE_IID)

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPDELIVERMODE(_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_NSIMSGCOMPDELIVERMODE(_to) \

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

/* Header file */
class nsMsgCompDeliverMode : public nsIMsgCompDeliverMode
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPDELIVERMODE

  nsMsgCompDeliverMode();

private:
  ~nsMsgCompDeliverMode();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgCompDeliverMode, nsIMsgCompDeliverMode)

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

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

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


/* starting interface:    nsIMsgCompSendFormat */
#define NS_IMSGCOMPSENDFORMAT_IID_STR "f38ea280-e090-11d3-a449-e3153319347c"

#define NS_IMSGCOMPSENDFORMAT_IID \
  {0xf38ea280, 0xe090, 0x11d3, \
    { 0xa4, 0x49, 0xe3, 0x15, 0x33, 0x19, 0x34, 0x7c }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgCompSendFormat {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPSENDFORMAT_IID)

  enum {
    AskUser = 4,
    PlainText = 1,
    HTML = 2,
    Both = 3
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCompSendFormat, NS_IMSGCOMPSENDFORMAT_IID)

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPSENDFORMAT(_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_NSIMSGCOMPSENDFORMAT(_to) \

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

/* Header file */
class nsMsgCompSendFormat : public nsIMsgCompSendFormat
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPSENDFORMAT

  nsMsgCompSendFormat();

private:
  ~nsMsgCompSendFormat();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgCompSendFormat, nsIMsgCompSendFormat)

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

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

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


/* starting interface:    nsIMsgCompConvertible */
#define NS_IMSGCOMPCONVERTIBLE_IID_STR "9638af92-1dd1-11b2-bef1-ca5fee0abc62"

#define NS_IMSGCOMPCONVERTIBLE_IID \
  {0x9638af92, 0x1dd1, 0x11b2, \
    { 0xbe, 0xf1, 0xca, 0x5f, 0xee, 0x0a, 0xbc, 0x62 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgCompConvertible {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPCONVERTIBLE_IID)

  enum {
    Plain = 1,
    Yes = 2,
    Altering = 3,
    No = 4
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCompConvertible, NS_IMSGCOMPCONVERTIBLE_IID)

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPCONVERTIBLE(_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_NSIMSGCOMPCONVERTIBLE(_to) \

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

/* Header file */
class nsMsgCompConvertible : public nsIMsgCompConvertible
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPCONVERTIBLE

  nsMsgCompConvertible();

private:
  ~nsMsgCompConvertible();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgCompConvertible, nsIMsgCompConvertible)

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

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

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


/* starting interface:    nsIMsgComposeStateListener */
#define NS_IMSGCOMPOSESTATELISTENER_IID_STR "6ce49b2a-07dc-4783-b307-9a355423163f"

#define NS_IMSGCOMPOSESTATELISTENER_IID \
  {0x6ce49b2a, 0x07dc, 0x4783, \
    { 0xb3, 0x07, 0x9a, 0x35, 0x54, 0x23, 0x16, 0x3f }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgComposeStateListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSESTATELISTENER_IID)

  /* void NotifyComposeFieldsReady (); */
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeFieldsReady(void) = 0;

  /* void ComposeProcessDone (in nsresult aResult); */
  NS_SCRIPTABLE NS_IMETHOD ComposeProcessDone(nsresult aResult) = 0;

  /* void SaveInFolderDone (in string folderName); */
  NS_SCRIPTABLE NS_IMETHOD SaveInFolderDone(const char * folderName) = 0;

  /* void NotifyComposeBodyReady (); */
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeBodyReady(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgComposeStateListener, NS_IMSGCOMPOSESTATELISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOMPOSESTATELISTENER \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeFieldsReady(void); \
  NS_SCRIPTABLE NS_IMETHOD ComposeProcessDone(nsresult aResult); \
  NS_SCRIPTABLE NS_IMETHOD SaveInFolderDone(const char * folderName); \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeBodyReady(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSESTATELISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeFieldsReady(void) { return _to NotifyComposeFieldsReady(); } \
  NS_SCRIPTABLE NS_IMETHOD ComposeProcessDone(nsresult aResult) { return _to ComposeProcessDone(aResult); } \
  NS_SCRIPTABLE NS_IMETHOD SaveInFolderDone(const char * folderName) { return _to SaveInFolderDone(folderName); } \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeBodyReady(void) { return _to NotifyComposeBodyReady(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCOMPOSESTATELISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeFieldsReady(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyComposeFieldsReady(); } \
  NS_SCRIPTABLE NS_IMETHOD ComposeProcessDone(nsresult aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->ComposeProcessDone(aResult); } \
  NS_SCRIPTABLE NS_IMETHOD SaveInFolderDone(const char * folderName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveInFolderDone(folderName); } \
  NS_SCRIPTABLE NS_IMETHOD NotifyComposeBodyReady(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyComposeBodyReady(); } 

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

/* Header file */
class nsMsgComposeStateListener : public nsIMsgComposeStateListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPOSESTATELISTENER

  nsMsgComposeStateListener();

private:
  ~nsMsgComposeStateListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgComposeStateListener, nsIMsgComposeStateListener)

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

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

/* void NotifyComposeFieldsReady (); */
NS_IMETHODIMP nsMsgComposeStateListener::NotifyComposeFieldsReady()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ComposeProcessDone (in nsresult aResult); */
NS_IMETHODIMP nsMsgComposeStateListener::ComposeProcessDone(nsresult aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SaveInFolderDone (in string folderName); */
NS_IMETHODIMP nsMsgComposeStateListener::SaveInFolderDone(const char * folderName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyComposeBodyReady (); */
NS_IMETHODIMP nsMsgComposeStateListener::NotifyComposeBodyReady()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIMsgComposeNotificationType */
#define NS_IMSGCOMPOSENOTIFICATIONTYPE_IID_STR "061aae23-7e0a-4818-9a15-1b5db3ceb7f4"

#define NS_IMSGCOMPOSENOTIFICATIONTYPE_IID \
  {0x061aae23, 0x7e0a, 0x4818, \
    { 0x9a, 0x15, 0x1b, 0x5d, 0xb3, 0xce, 0xb7, 0xf4 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgComposeNotificationType {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSENOTIFICATIONTYPE_IID)

  enum {
    ComposeFieldsReady = 0,
    ComposeProcessDone = 1,
    SaveInFolderDone = 2,
    ComposeBodyReady = 3
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgComposeNotificationType, NS_IMSGCOMPOSENOTIFICATIONTYPE_IID)

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

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSENOTIFICATIONTYPE(_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_NSIMSGCOMPOSENOTIFICATIONTYPE(_to) \

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

/* Header file */
class nsMsgComposeNotificationType : public nsIMsgComposeNotificationType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPOSENOTIFICATIONTYPE

  nsMsgComposeNotificationType();

private:
  ~nsMsgComposeNotificationType();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgComposeNotificationType, nsIMsgComposeNotificationType)

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

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

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


/* starting interface:    nsIMsgComposeRecyclingListener */
#define NS_IMSGCOMPOSERECYCLINGLISTENER_IID_STR "0b28cc56-1dd2-11b2-bbe4-99e6a314f8ba"

#define NS_IMSGCOMPOSERECYCLINGLISTENER_IID \
  {0x0b28cc56, 0x1dd2, 0x11b2, \
    { 0xbb, 0xe4, 0x99, 0xe6, 0xa3, 0x14, 0xf8, 0xba }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgComposeRecyclingListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSERECYCLINGLISTENER_IID)

  /* void onClose (); */
  NS_SCRIPTABLE NS_IMETHOD OnClose(void) = 0;

  /* void onReopen (in nsIMsgComposeParams params); */
  NS_SCRIPTABLE NS_IMETHOD OnReopen(nsIMsgComposeParams *params) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgComposeRecyclingListener, NS_IMSGCOMPOSERECYCLINGLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOMPOSERECYCLINGLISTENER \
  NS_SCRIPTABLE NS_IMETHOD OnClose(void); \
  NS_SCRIPTABLE NS_IMETHOD OnReopen(nsIMsgComposeParams *params); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSERECYCLINGLISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnClose(void) { return _to OnClose(); } \
  NS_SCRIPTABLE NS_IMETHOD OnReopen(nsIMsgComposeParams *params) { return _to OnReopen(params); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCOMPOSERECYCLINGLISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnClose(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClose(); } \
  NS_SCRIPTABLE NS_IMETHOD OnReopen(nsIMsgComposeParams *params) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnReopen(params); } 

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

/* Header file */
class nsMsgComposeRecyclingListener : public nsIMsgComposeRecyclingListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPOSERECYCLINGLISTENER

  nsMsgComposeRecyclingListener();

private:
  ~nsMsgComposeRecyclingListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgComposeRecyclingListener, nsIMsgComposeRecyclingListener)

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

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

/* void onClose (); */
NS_IMETHODIMP nsMsgComposeRecyclingListener::OnClose()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onReopen (in nsIMsgComposeParams params); */
NS_IMETHODIMP nsMsgComposeRecyclingListener::OnReopen(nsIMsgComposeParams *params)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIMsgCompose */
#define NS_IMSGCOMPOSE_IID_STR "fc9dc1dc-7726-4d29-bb92-a0227f526651"

#define NS_IMSGCOMPOSE_IID \
  {0xfc9dc1dc, 0x7726, 0x4d29, \
    { 0xbb, 0x92, 0xa0, 0x22, 0x7f, 0x52, 0x66, 0x51 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgCompose : public nsIMsgSendListener {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSE_IID)

  /* void initialize (in nsIMsgComposeParams aParams, [optional] in nsIDOMWindow aWindow, [optional] in nsIDocShell aDocShell); */
  NS_SCRIPTABLE NS_IMETHOD Initialize(nsIMsgComposeParams *aParams, nsIDOMWindow *aWindow, nsIDocShell *aDocShell) = 0;

  /* void SetDocumentCharset (in string charset); */
  NS_SCRIPTABLE NS_IMETHOD SetDocumentCharset(const char * charset) = 0;

  /* void RegisterStateListener (in nsIMsgComposeStateListener stateListener); */
  NS_SCRIPTABLE NS_IMETHOD RegisterStateListener(nsIMsgComposeStateListener *stateListener) = 0;

  /* void UnregisterStateListener (in nsIMsgComposeStateListener stateListener); */
  NS_SCRIPTABLE NS_IMETHOD UnregisterStateListener(nsIMsgComposeStateListener *stateListener) = 0;

  /* void SendMsg (in MSG_DeliverMode deliverMode, in nsIMsgIdentity identity, in string accountKey, in nsIMsgWindow aMsgWindow, in nsIMsgProgress progress); */
  NS_SCRIPTABLE NS_IMETHOD SendMsg(MSG_DeliverMode deliverMode, nsIMsgIdentity *identity, const char * accountKey, nsIMsgWindow *aMsgWindow, nsIMsgProgress *progress) = 0;

  /* void CloseWindow (in boolean reclycleIt); */
  NS_SCRIPTABLE NS_IMETHOD CloseWindow(bool reclycleIt) = 0;

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

  /* void quoteMessage (in string msgURI); */
  NS_SCRIPTABLE NS_IMETHOD QuoteMessage(const char * msgURI) = 0;

  /* AUTF8String AttachmentPrettyName (in AUTF8String url, in string charset); */
  NS_SCRIPTABLE NS_IMETHOD AttachmentPrettyName(const nsACString & url, const char * charset, nsACString & _retval NS_OUTPARAM) = 0;

  /* unsigned long checkAndPopulateRecipients (in boolean aPopulateMailList, in boolean aReturnNonHTMLRecipients, out AString aNonHTMLRecipients); */
  NS_SCRIPTABLE NS_IMETHOD CheckAndPopulateRecipients(bool aPopulateMailList, bool aReturnNonHTMLRecipients, nsAString & aNonHTMLRecipients NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) = 0;

  /* long bodyConvertible (); */
  NS_SCRIPTABLE NS_IMETHOD BodyConvertible(PRInt32 *_retval NS_OUTPARAM) = 0;

  /* attribute nsIMsgIdentity identity; */
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIMsgIdentity * *aIdentity) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetIdentity(nsIMsgIdentity *aIdentity) = 0;

  /* boolean checkCharsetConversion (in nsIMsgIdentity identity, out string fallbackCharset); */
  NS_SCRIPTABLE NS_IMETHOD CheckCharsetConversion(nsIMsgIdentity *identity, char * *fallbackCharset NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;

  /* readonly attribute nsIMsgSend messageSend; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageSend(nsIMsgSend * *aMessageSend) = 0;

  /* readonly attribute nsIEditor editor; */
  NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) = 0;

  /* readonly attribute nsIDOMWindow domWindow; */
  NS_SCRIPTABLE NS_IMETHOD GetDomWindow(nsIDOMWindow * *aDomWindow) = 0;

  /* readonly attribute nsIMsgCompFields compFields; */
  NS_SCRIPTABLE NS_IMETHOD GetCompFields(nsIMsgCompFields * *aCompFields) = 0;

  /* readonly attribute boolean composeHTML; */
  NS_SCRIPTABLE NS_IMETHOD GetComposeHTML(bool *aComposeHTML) = 0;

  /* attribute MSG_ComposeType type; */
  NS_SCRIPTABLE NS_IMETHOD GetType(MSG_ComposeType *aType) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetType(MSG_ComposeType aType) = 0;

  /* readonly attribute long wrapLength; */
  NS_SCRIPTABLE NS_IMETHOD GetWrapLength(PRInt32 *aWrapLength) = 0;

  /* attribute boolean bodyModified; */
  NS_SCRIPTABLE NS_IMETHOD GetBodyModified(bool *aBodyModified) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetBodyModified(bool aBodyModified) = 0;

  /* void initEditor (in nsIEditor editor, in nsIDOMWindow contentWindow); */
  NS_SCRIPTABLE NS_IMETHOD InitEditor(nsIEditor *editor, nsIDOMWindow *contentWindow) = 0;

  /* [noscript] void clearEditor (); */
  NS_IMETHOD ClearEditor(void) = 0;

  /* [noscript] void setCiteReference (in nsString citeReference); */
  NS_IMETHOD SetCiteReference(nsString citeReference) = 0;

  /* attribute string savedFolderURI; */
  NS_SCRIPTABLE NS_IMETHOD GetSavedFolderURI(char * *aSavedFolderURI) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetSavedFolderURI(const char * aSavedFolderURI) = 0;

  /* [noscript] void processSignature (in nsIMsgIdentity identity, in boolean aQuoted, inout nsString aMsgBody); */
  NS_IMETHOD ProcessSignature(nsIMsgIdentity *identity, bool aQuoted, nsString *aMsgBody NS_INOUTPARAM) = 0;

  /* [noscript] void processReplyFlags (); */
  NS_IMETHOD ProcessReplyFlags(void) = 0;

  /* [noscript] void rememberQueuedDisposition (); */
  NS_IMETHOD RememberQueuedDisposition(void) = 0;

  /* [noscript] void convertAndLoadComposeWindow (in nsStringRef aPrefix, in nsStringRef aBuf, in nsStringRef aSignature, in boolean aQuoted, in boolean aHTMLEditor); */
  NS_IMETHOD ConvertAndLoadComposeWindow(nsString & aPrefix, nsString & aBuf, nsString & aSignature, bool aQuoted, bool aHTMLEditor) = 0;

  /* [noscript] void notifyStateListeners (in long aNotificationType, in nsresult aResult); */
  NS_IMETHOD NotifyStateListeners(PRInt32 aNotificationType, nsresult aResult) = 0;

  /* readonly attribute nsIMsgProgress progress; */
  NS_SCRIPTABLE NS_IMETHOD GetProgress(nsIMsgProgress * *aProgress) = 0;

  /* [noscript] void buildBodyMessageAndSignature (); */
  NS_IMETHOD BuildBodyMessageAndSignature(void) = 0;

  /* [noscript] void buildQuotedMessageAndSignature (); */
  NS_IMETHOD BuildQuotedMessageAndSignature(void) = 0;

  /* [noscript] void getQuotingToFollow (out boolean quotingToFollow); */
  NS_IMETHOD GetQuotingToFollow(bool *quotingToFollow NS_OUTPARAM) = 0;

  /* attribute nsIMsgComposeRecyclingListener recyclingListener; */
  NS_SCRIPTABLE NS_IMETHOD GetRecyclingListener(nsIMsgComposeRecyclingListener * *aRecyclingListener) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetRecyclingListener(nsIMsgComposeRecyclingListener *aRecyclingListener) = 0;

  /* attribute boolean recycledWindow; */
  NS_SCRIPTABLE NS_IMETHOD GetRecycledWindow(bool *aRecycledWindow) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetRecycledWindow(bool aRecycledWindow) = 0;

  /* readonly attribute string originalMsgURI; */
  NS_SCRIPTABLE NS_IMETHOD GetOriginalMsgURI(char * *aOriginalMsgURI) = 0;

  /* attribute boolean deleteDraft; */
  NS_SCRIPTABLE NS_IMETHOD GetDeleteDraft(bool *aDeleteDraft) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetDeleteDraft(bool aDeleteDraft) = 0;

  /* attribute boolean insertingQuotedContent; */
  NS_SCRIPTABLE NS_IMETHOD GetInsertingQuotedContent(bool *aInsertingQuotedContent) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetInsertingQuotedContent(bool aInsertingQuotedContent) = 0;

  /* void addMsgSendListener (in nsIMsgSendListener sendListener); */
  NS_SCRIPTABLE NS_IMETHOD AddMsgSendListener(nsIMsgSendListener *sendListener) = 0;

  /* void removeMsgSendListener (in nsIMsgSendListener sendListener); */
  NS_SCRIPTABLE NS_IMETHOD RemoveMsgSendListener(nsIMsgSendListener *sendListener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCompose, NS_IMSGCOMPOSE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOMPOSE \
  NS_SCRIPTABLE NS_IMETHOD Initialize(nsIMsgComposeParams *aParams, nsIDOMWindow *aWindow, nsIDocShell *aDocShell); \
  NS_SCRIPTABLE NS_IMETHOD SetDocumentCharset(const char * charset); \
  NS_SCRIPTABLE NS_IMETHOD RegisterStateListener(nsIMsgComposeStateListener *stateListener); \
  NS_SCRIPTABLE NS_IMETHOD UnregisterStateListener(nsIMsgComposeStateListener *stateListener); \
  NS_SCRIPTABLE NS_IMETHOD SendMsg(MSG_DeliverMode deliverMode, nsIMsgIdentity *identity, const char * accountKey, nsIMsgWindow *aMsgWindow, nsIMsgProgress *progress); \
  NS_SCRIPTABLE NS_IMETHOD CloseWindow(bool reclycleIt); \
  NS_SCRIPTABLE NS_IMETHOD Abort(void); \
  NS_SCRIPTABLE NS_IMETHOD QuoteMessage(const char * msgURI); \
  NS_SCRIPTABLE NS_IMETHOD AttachmentPrettyName(const nsACString & url, const char * charset, nsACString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD CheckAndPopulateRecipients(bool aPopulateMailList, bool aReturnNonHTMLRecipients, nsAString & aNonHTMLRecipients NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD BodyConvertible(PRInt32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIMsgIdentity * *aIdentity); \
  NS_SCRIPTABLE NS_IMETHOD SetIdentity(nsIMsgIdentity *aIdentity); \
  NS_SCRIPTABLE NS_IMETHOD CheckCharsetConversion(nsIMsgIdentity *identity, char * *fallbackCharset NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSend(nsIMsgSend * *aMessageSend); \
  NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor); \
  NS_SCRIPTABLE NS_IMETHOD GetDomWindow(nsIDOMWindow * *aDomWindow); \
  NS_SCRIPTABLE NS_IMETHOD GetCompFields(nsIMsgCompFields * *aCompFields); \
  NS_SCRIPTABLE NS_IMETHOD GetComposeHTML(bool *aComposeHTML); \
  NS_SCRIPTABLE NS_IMETHOD GetType(MSG_ComposeType *aType); \
  NS_SCRIPTABLE NS_IMETHOD SetType(MSG_ComposeType aType); \
  NS_SCRIPTABLE NS_IMETHOD GetWrapLength(PRInt32 *aWrapLength); \
  NS_SCRIPTABLE NS_IMETHOD GetBodyModified(bool *aBodyModified); \
  NS_SCRIPTABLE NS_IMETHOD SetBodyModified(bool aBodyModified); \
  NS_SCRIPTABLE NS_IMETHOD InitEditor(nsIEditor *editor, nsIDOMWindow *contentWindow); \
  NS_IMETHOD ClearEditor(void); \
  NS_IMETHOD SetCiteReference(nsString citeReference); \
  NS_SCRIPTABLE NS_IMETHOD GetSavedFolderURI(char * *aSavedFolderURI); \
  NS_SCRIPTABLE NS_IMETHOD SetSavedFolderURI(const char * aSavedFolderURI); \
  NS_IMETHOD ProcessSignature(nsIMsgIdentity *identity, bool aQuoted, nsString *aMsgBody NS_INOUTPARAM); \
  NS_IMETHOD ProcessReplyFlags(void); \
  NS_IMETHOD RememberQueuedDisposition(void); \
  NS_IMETHOD ConvertAndLoadComposeWindow(nsString & aPrefix, nsString & aBuf, nsString & aSignature, bool aQuoted, bool aHTMLEditor); \
  NS_IMETHOD NotifyStateListeners(PRInt32 aNotificationType, nsresult aResult); \
  NS_SCRIPTABLE NS_IMETHOD GetProgress(nsIMsgProgress * *aProgress); \
  NS_IMETHOD BuildBodyMessageAndSignature(void); \
  NS_IMETHOD BuildQuotedMessageAndSignature(void); \
  NS_IMETHOD GetQuotingToFollow(bool *quotingToFollow NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetRecyclingListener(nsIMsgComposeRecyclingListener * *aRecyclingListener); \
  NS_SCRIPTABLE NS_IMETHOD SetRecyclingListener(nsIMsgComposeRecyclingListener *aRecyclingListener); \
  NS_SCRIPTABLE NS_IMETHOD GetRecycledWindow(bool *aRecycledWindow); \
  NS_SCRIPTABLE NS_IMETHOD SetRecycledWindow(bool aRecycledWindow); \
  NS_SCRIPTABLE NS_IMETHOD GetOriginalMsgURI(char * *aOriginalMsgURI); \
  NS_SCRIPTABLE NS_IMETHOD GetDeleteDraft(bool *aDeleteDraft); \
  NS_SCRIPTABLE NS_IMETHOD SetDeleteDraft(bool aDeleteDraft); \
  NS_SCRIPTABLE NS_IMETHOD GetInsertingQuotedContent(bool *aInsertingQuotedContent); \
  NS_SCRIPTABLE NS_IMETHOD SetInsertingQuotedContent(bool aInsertingQuotedContent); \
  NS_SCRIPTABLE NS_IMETHOD AddMsgSendListener(nsIMsgSendListener *sendListener); \
  NS_SCRIPTABLE NS_IMETHOD RemoveMsgSendListener(nsIMsgSendListener *sendListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Initialize(nsIMsgComposeParams *aParams, nsIDOMWindow *aWindow, nsIDocShell *aDocShell) { return _to Initialize(aParams, aWindow, aDocShell); } \
  NS_SCRIPTABLE NS_IMETHOD SetDocumentCharset(const char * charset) { return _to SetDocumentCharset(charset); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterStateListener(nsIMsgComposeStateListener *stateListener) { return _to RegisterStateListener(stateListener); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterStateListener(nsIMsgComposeStateListener *stateListener) { return _to UnregisterStateListener(stateListener); } \
  NS_SCRIPTABLE NS_IMETHOD SendMsg(MSG_DeliverMode deliverMode, nsIMsgIdentity *identity, const char * accountKey, nsIMsgWindow *aMsgWindow, nsIMsgProgress *progress) { return _to SendMsg(deliverMode, identity, accountKey, aMsgWindow, progress); } \
  NS_SCRIPTABLE NS_IMETHOD CloseWindow(bool reclycleIt) { return _to CloseWindow(reclycleIt); } \
  NS_SCRIPTABLE NS_IMETHOD Abort(void) { return _to Abort(); } \
  NS_SCRIPTABLE NS_IMETHOD QuoteMessage(const char * msgURI) { return _to QuoteMessage(msgURI); } \
  NS_SCRIPTABLE NS_IMETHOD AttachmentPrettyName(const nsACString & url, const char * charset, nsACString & _retval NS_OUTPARAM) { return _to AttachmentPrettyName(url, charset, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CheckAndPopulateRecipients(bool aPopulateMailList, bool aReturnNonHTMLRecipients, nsAString & aNonHTMLRecipients NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return _to CheckAndPopulateRecipients(aPopulateMailList, aReturnNonHTMLRecipients, aNonHTMLRecipients, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD BodyConvertible(PRInt32 *_retval NS_OUTPARAM) { return _to BodyConvertible(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIMsgIdentity * *aIdentity) { return _to GetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD SetIdentity(nsIMsgIdentity *aIdentity) { return _to SetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD CheckCharsetConversion(nsIMsgIdentity *identity, char * *fallbackCharset NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to CheckCharsetConversion(identity, fallbackCharset, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSend(nsIMsgSend * *aMessageSend) { return _to GetMessageSend(aMessageSend); } \
  NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return _to GetEditor(aEditor); } \
  NS_SCRIPTABLE NS_IMETHOD GetDomWindow(nsIDOMWindow * *aDomWindow) { return _to GetDomWindow(aDomWindow); } \
  NS_SCRIPTABLE NS_IMETHOD GetCompFields(nsIMsgCompFields * *aCompFields) { return _to GetCompFields(aCompFields); } \
  NS_SCRIPTABLE NS_IMETHOD GetComposeHTML(bool *aComposeHTML) { return _to GetComposeHTML(aComposeHTML); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(MSG_ComposeType *aType) { return _to GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD SetType(MSG_ComposeType aType) { return _to SetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetWrapLength(PRInt32 *aWrapLength) { return _to GetWrapLength(aWrapLength); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyModified(bool *aBodyModified) { return _to GetBodyModified(aBodyModified); } \
  NS_SCRIPTABLE NS_IMETHOD SetBodyModified(bool aBodyModified) { return _to SetBodyModified(aBodyModified); } \
  NS_SCRIPTABLE NS_IMETHOD InitEditor(nsIEditor *editor, nsIDOMWindow *contentWindow) { return _to InitEditor(editor, contentWindow); } \
  NS_IMETHOD ClearEditor(void) { return _to ClearEditor(); } \
  NS_IMETHOD SetCiteReference(nsString citeReference) { return _to SetCiteReference(citeReference); } \
  NS_SCRIPTABLE NS_IMETHOD GetSavedFolderURI(char * *aSavedFolderURI) { return _to GetSavedFolderURI(aSavedFolderURI); } \
  NS_SCRIPTABLE NS_IMETHOD SetSavedFolderURI(const char * aSavedFolderURI) { return _to SetSavedFolderURI(aSavedFolderURI); } \
  NS_IMETHOD ProcessSignature(nsIMsgIdentity *identity, bool aQuoted, nsString *aMsgBody NS_INOUTPARAM) { return _to ProcessSignature(identity, aQuoted, aMsgBody); } \
  NS_IMETHOD ProcessReplyFlags(void) { return _to ProcessReplyFlags(); } \
  NS_IMETHOD RememberQueuedDisposition(void) { return _to RememberQueuedDisposition(); } \
  NS_IMETHOD ConvertAndLoadComposeWindow(nsString & aPrefix, nsString & aBuf, nsString & aSignature, bool aQuoted, bool aHTMLEditor) { return _to ConvertAndLoadComposeWindow(aPrefix, aBuf, aSignature, aQuoted, aHTMLEditor); } \
  NS_IMETHOD NotifyStateListeners(PRInt32 aNotificationType, nsresult aResult) { return _to NotifyStateListeners(aNotificationType, aResult); } \
  NS_SCRIPTABLE NS_IMETHOD GetProgress(nsIMsgProgress * *aProgress) { return _to GetProgress(aProgress); } \
  NS_IMETHOD BuildBodyMessageAndSignature(void) { return _to BuildBodyMessageAndSignature(); } \
  NS_IMETHOD BuildQuotedMessageAndSignature(void) { return _to BuildQuotedMessageAndSignature(); } \
  NS_IMETHOD GetQuotingToFollow(bool *quotingToFollow NS_OUTPARAM) { return _to GetQuotingToFollow(quotingToFollow); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecyclingListener(nsIMsgComposeRecyclingListener * *aRecyclingListener) { return _to GetRecyclingListener(aRecyclingListener); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecyclingListener(nsIMsgComposeRecyclingListener *aRecyclingListener) { return _to SetRecyclingListener(aRecyclingListener); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecycledWindow(bool *aRecycledWindow) { return _to GetRecycledWindow(aRecycledWindow); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecycledWindow(bool aRecycledWindow) { return _to SetRecycledWindow(aRecycledWindow); } \
  NS_SCRIPTABLE NS_IMETHOD GetOriginalMsgURI(char * *aOriginalMsgURI) { return _to GetOriginalMsgURI(aOriginalMsgURI); } \
  NS_SCRIPTABLE NS_IMETHOD GetDeleteDraft(bool *aDeleteDraft) { return _to GetDeleteDraft(aDeleteDraft); } \
  NS_SCRIPTABLE NS_IMETHOD SetDeleteDraft(bool aDeleteDraft) { return _to SetDeleteDraft(aDeleteDraft); } \
  NS_SCRIPTABLE NS_IMETHOD GetInsertingQuotedContent(bool *aInsertingQuotedContent) { return _to GetInsertingQuotedContent(aInsertingQuotedContent); } \
  NS_SCRIPTABLE NS_IMETHOD SetInsertingQuotedContent(bool aInsertingQuotedContent) { return _to SetInsertingQuotedContent(aInsertingQuotedContent); } \
  NS_SCRIPTABLE NS_IMETHOD AddMsgSendListener(nsIMsgSendListener *sendListener) { return _to AddMsgSendListener(sendListener); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveMsgSendListener(nsIMsgSendListener *sendListener) { return _to RemoveMsgSendListener(sendListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCOMPOSE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Initialize(nsIMsgComposeParams *aParams, nsIDOMWindow *aWindow, nsIDocShell *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(aParams, aWindow, aDocShell); } \
  NS_SCRIPTABLE NS_IMETHOD SetDocumentCharset(const char * charset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentCharset(charset); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterStateListener(nsIMsgComposeStateListener *stateListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterStateListener(stateListener); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterStateListener(nsIMsgComposeStateListener *stateListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterStateListener(stateListener); } \
  NS_SCRIPTABLE NS_IMETHOD SendMsg(MSG_DeliverMode deliverMode, nsIMsgIdentity *identity, const char * accountKey, nsIMsgWindow *aMsgWindow, nsIMsgProgress *progress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMsg(deliverMode, identity, accountKey, aMsgWindow, progress); } \
  NS_SCRIPTABLE NS_IMETHOD CloseWindow(bool reclycleIt) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseWindow(reclycleIt); } \
  NS_SCRIPTABLE NS_IMETHOD Abort(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
  NS_SCRIPTABLE NS_IMETHOD QuoteMessage(const char * msgURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->QuoteMessage(msgURI); } \
  NS_SCRIPTABLE NS_IMETHOD AttachmentPrettyName(const nsACString & url, const char * charset, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AttachmentPrettyName(url, charset, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CheckAndPopulateRecipients(bool aPopulateMailList, bool aReturnNonHTMLRecipients, nsAString & aNonHTMLRecipients NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAndPopulateRecipients(aPopulateMailList, aReturnNonHTMLRecipients, aNonHTMLRecipients, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD BodyConvertible(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->BodyConvertible(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIMsgIdentity * *aIdentity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD SetIdentity(nsIMsgIdentity *aIdentity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD CheckCharsetConversion(nsIMsgIdentity *identity, char * *fallbackCharset NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckCharsetConversion(identity, fallbackCharset, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSend(nsIMsgSend * *aMessageSend) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageSend(aMessageSend); } \
  NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditor(aEditor); } \
  NS_SCRIPTABLE NS_IMETHOD GetDomWindow(nsIDOMWindow * *aDomWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomWindow(aDomWindow); } \
  NS_SCRIPTABLE NS_IMETHOD GetCompFields(nsIMsgCompFields * *aCompFields) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompFields(aCompFields); } \
  NS_SCRIPTABLE NS_IMETHOD GetComposeHTML(bool *aComposeHTML) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComposeHTML(aComposeHTML); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(MSG_ComposeType *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD SetType(MSG_ComposeType aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetWrapLength(PRInt32 *aWrapLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrapLength(aWrapLength); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyModified(bool *aBodyModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBodyModified(aBodyModified); } \
  NS_SCRIPTABLE NS_IMETHOD SetBodyModified(bool aBodyModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBodyModified(aBodyModified); } \
  NS_SCRIPTABLE NS_IMETHOD InitEditor(nsIEditor *editor, nsIDOMWindow *contentWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitEditor(editor, contentWindow); } \
  NS_IMETHOD ClearEditor(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearEditor(); } \
  NS_IMETHOD SetCiteReference(nsString citeReference) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCiteReference(citeReference); } \
  NS_SCRIPTABLE NS_IMETHOD GetSavedFolderURI(char * *aSavedFolderURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSavedFolderURI(aSavedFolderURI); } \
  NS_SCRIPTABLE NS_IMETHOD SetSavedFolderURI(const char * aSavedFolderURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSavedFolderURI(aSavedFolderURI); } \
  NS_IMETHOD ProcessSignature(nsIMsgIdentity *identity, bool aQuoted, nsString *aMsgBody NS_INOUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessSignature(identity, aQuoted, aMsgBody); } \
  NS_IMETHOD ProcessReplyFlags(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessReplyFlags(); } \
  NS_IMETHOD RememberQueuedDisposition(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RememberQueuedDisposition(); } \
  NS_IMETHOD ConvertAndLoadComposeWindow(nsString & aPrefix, nsString & aBuf, nsString & aSignature, bool aQuoted, bool aHTMLEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertAndLoadComposeWindow(aPrefix, aBuf, aSignature, aQuoted, aHTMLEditor); } \
  NS_IMETHOD NotifyStateListeners(PRInt32 aNotificationType, nsresult aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyStateListeners(aNotificationType, aResult); } \
  NS_SCRIPTABLE NS_IMETHOD GetProgress(nsIMsgProgress * *aProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProgress(aProgress); } \
  NS_IMETHOD BuildBodyMessageAndSignature(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildBodyMessageAndSignature(); } \
  NS_IMETHOD BuildQuotedMessageAndSignature(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildQuotedMessageAndSignature(); } \
  NS_IMETHOD GetQuotingToFollow(bool *quotingToFollow NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQuotingToFollow(quotingToFollow); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecyclingListener(nsIMsgComposeRecyclingListener * *aRecyclingListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecyclingListener(aRecyclingListener); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecyclingListener(nsIMsgComposeRecyclingListener *aRecyclingListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecyclingListener(aRecyclingListener); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecycledWindow(bool *aRecycledWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecycledWindow(aRecycledWindow); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecycledWindow(bool aRecycledWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecycledWindow(aRecycledWindow); } \
  NS_SCRIPTABLE NS_IMETHOD GetOriginalMsgURI(char * *aOriginalMsgURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalMsgURI(aOriginalMsgURI); } \
  NS_SCRIPTABLE NS_IMETHOD GetDeleteDraft(bool *aDeleteDraft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeleteDraft(aDeleteDraft); } \
  NS_SCRIPTABLE NS_IMETHOD SetDeleteDraft(bool aDeleteDraft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDeleteDraft(aDeleteDraft); } \
  NS_SCRIPTABLE NS_IMETHOD GetInsertingQuotedContent(bool *aInsertingQuotedContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInsertingQuotedContent(aInsertingQuotedContent); } \
  NS_SCRIPTABLE NS_IMETHOD SetInsertingQuotedContent(bool aInsertingQuotedContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInsertingQuotedContent(aInsertingQuotedContent); } \
  NS_SCRIPTABLE NS_IMETHOD AddMsgSendListener(nsIMsgSendListener *sendListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMsgSendListener(sendListener); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveMsgSendListener(nsIMsgSendListener *sendListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveMsgSendListener(sendListener); } 

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

/* Header file */
class nsMsgCompose : public nsIMsgCompose
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPOSE

  nsMsgCompose();

private:
  ~nsMsgCompose();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgCompose, nsIMsgCompose)

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

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

/* void initialize (in nsIMsgComposeParams aParams, [optional] in nsIDOMWindow aWindow, [optional] in nsIDocShell aDocShell); */
NS_IMETHODIMP nsMsgCompose::Initialize(nsIMsgComposeParams *aParams, nsIDOMWindow *aWindow, nsIDocShell *aDocShell)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetDocumentCharset (in string charset); */
NS_IMETHODIMP nsMsgCompose::SetDocumentCharset(const char * charset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RegisterStateListener (in nsIMsgComposeStateListener stateListener); */
NS_IMETHODIMP nsMsgCompose::RegisterStateListener(nsIMsgComposeStateListener *stateListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void UnregisterStateListener (in nsIMsgComposeStateListener stateListener); */
NS_IMETHODIMP nsMsgCompose::UnregisterStateListener(nsIMsgComposeStateListener *stateListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SendMsg (in MSG_DeliverMode deliverMode, in nsIMsgIdentity identity, in string accountKey, in nsIMsgWindow aMsgWindow, in nsIMsgProgress progress); */
NS_IMETHODIMP nsMsgCompose::SendMsg(MSG_DeliverMode deliverMode, nsIMsgIdentity *identity, const char * accountKey, nsIMsgWindow *aMsgWindow, nsIMsgProgress *progress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void CloseWindow (in boolean reclycleIt); */
NS_IMETHODIMP nsMsgCompose::CloseWindow(bool reclycleIt)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void abort (); */
NS_IMETHODIMP nsMsgCompose::Abort()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void quoteMessage (in string msgURI); */
NS_IMETHODIMP nsMsgCompose::QuoteMessage(const char * msgURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String AttachmentPrettyName (in AUTF8String url, in string charset); */
NS_IMETHODIMP nsMsgCompose::AttachmentPrettyName(const nsACString & url, const char * charset, nsACString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long checkAndPopulateRecipients (in boolean aPopulateMailList, in boolean aReturnNonHTMLRecipients, out AString aNonHTMLRecipients); */
NS_IMETHODIMP nsMsgCompose::CheckAndPopulateRecipients(bool aPopulateMailList, bool aReturnNonHTMLRecipients, nsAString & aNonHTMLRecipients NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long bodyConvertible (); */
NS_IMETHODIMP nsMsgCompose::BodyConvertible(PRInt32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgIdentity identity; */
NS_IMETHODIMP nsMsgCompose::GetIdentity(nsIMsgIdentity * *aIdentity)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetIdentity(nsIMsgIdentity *aIdentity)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean checkCharsetConversion (in nsIMsgIdentity identity, out string fallbackCharset); */
NS_IMETHODIMP nsMsgCompose::CheckCharsetConversion(nsIMsgIdentity *identity, char * *fallbackCharset NS_OUTPARAM, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgSend messageSend; */
NS_IMETHODIMP nsMsgCompose::GetMessageSend(nsIMsgSend * *aMessageSend)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIEditor editor; */
NS_IMETHODIMP nsMsgCompose::GetEditor(nsIEditor * *aEditor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMWindow domWindow; */
NS_IMETHODIMP nsMsgCompose::GetDomWindow(nsIDOMWindow * *aDomWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgCompFields compFields; */
NS_IMETHODIMP nsMsgCompose::GetCompFields(nsIMsgCompFields * *aCompFields)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean composeHTML; */
NS_IMETHODIMP nsMsgCompose::GetComposeHTML(bool *aComposeHTML)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute MSG_ComposeType type; */
NS_IMETHODIMP nsMsgCompose::GetType(MSG_ComposeType *aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetType(MSG_ComposeType aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long wrapLength; */
NS_IMETHODIMP nsMsgCompose::GetWrapLength(PRInt32 *aWrapLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean bodyModified; */
NS_IMETHODIMP nsMsgCompose::GetBodyModified(bool *aBodyModified)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetBodyModified(bool aBodyModified)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initEditor (in nsIEditor editor, in nsIDOMWindow contentWindow); */
NS_IMETHODIMP nsMsgCompose::InitEditor(nsIEditor *editor, nsIDOMWindow *contentWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void clearEditor (); */
NS_IMETHODIMP nsMsgCompose::ClearEditor()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void setCiteReference (in nsString citeReference); */
NS_IMETHODIMP nsMsgCompose::SetCiteReference(nsString citeReference)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string savedFolderURI; */
NS_IMETHODIMP nsMsgCompose::GetSavedFolderURI(char * *aSavedFolderURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetSavedFolderURI(const char * aSavedFolderURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void processSignature (in nsIMsgIdentity identity, in boolean aQuoted, inout nsString aMsgBody); */
NS_IMETHODIMP nsMsgCompose::ProcessSignature(nsIMsgIdentity *identity, bool aQuoted, nsString *aMsgBody NS_INOUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void processReplyFlags (); */
NS_IMETHODIMP nsMsgCompose::ProcessReplyFlags()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void rememberQueuedDisposition (); */
NS_IMETHODIMP nsMsgCompose::RememberQueuedDisposition()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void convertAndLoadComposeWindow (in nsStringRef aPrefix, in nsStringRef aBuf, in nsStringRef aSignature, in boolean aQuoted, in boolean aHTMLEditor); */
NS_IMETHODIMP nsMsgCompose::ConvertAndLoadComposeWindow(nsString & aPrefix, nsString & aBuf, nsString & aSignature, bool aQuoted, bool aHTMLEditor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void notifyStateListeners (in long aNotificationType, in nsresult aResult); */
NS_IMETHODIMP nsMsgCompose::NotifyStateListeners(PRInt32 aNotificationType, nsresult aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgProgress progress; */
NS_IMETHODIMP nsMsgCompose::GetProgress(nsIMsgProgress * *aProgress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void buildBodyMessageAndSignature (); */
NS_IMETHODIMP nsMsgCompose::BuildBodyMessageAndSignature()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void buildQuotedMessageAndSignature (); */
NS_IMETHODIMP nsMsgCompose::BuildQuotedMessageAndSignature()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void getQuotingToFollow (out boolean quotingToFollow); */
NS_IMETHODIMP nsMsgCompose::GetQuotingToFollow(bool *quotingToFollow NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgComposeRecyclingListener recyclingListener; */
NS_IMETHODIMP nsMsgCompose::GetRecyclingListener(nsIMsgComposeRecyclingListener * *aRecyclingListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetRecyclingListener(nsIMsgComposeRecyclingListener *aRecyclingListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean recycledWindow; */
NS_IMETHODIMP nsMsgCompose::GetRecycledWindow(bool *aRecycledWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetRecycledWindow(bool aRecycledWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string originalMsgURI; */
NS_IMETHODIMP nsMsgCompose::GetOriginalMsgURI(char * *aOriginalMsgURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean deleteDraft; */
NS_IMETHODIMP nsMsgCompose::GetDeleteDraft(bool *aDeleteDraft)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetDeleteDraft(bool aDeleteDraft)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean insertingQuotedContent; */
NS_IMETHODIMP nsMsgCompose::GetInsertingQuotedContent(bool *aInsertingQuotedContent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgCompose::SetInsertingQuotedContent(bool aInsertingQuotedContent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addMsgSendListener (in nsIMsgSendListener sendListener); */
NS_IMETHODIMP nsMsgCompose::AddMsgSendListener(nsIMsgSendListener *sendListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeMsgSendListener (in nsIMsgSendListener sendListener); */
NS_IMETHODIMP nsMsgCompose::RemoveMsgSendListener(nsIMsgSendListener *sendListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIMsgComposeSendListener */
#define NS_IMSGCOMPOSESENDLISTENER_IID_STR "acc72780-2cea-11d5-9daa-bacdeac1eefc"

#define NS_IMSGCOMPOSESENDLISTENER_IID \
  {0xacc72780, 0x2cea, 0x11d5, \
    { 0x9d, 0xaa, 0xba, 0xcd, 0xea, 0xc1, 0xee, 0xfc }}

class NS_NO_VTABLE nsIMsgComposeSendListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOMPOSESENDLISTENER_IID)

  /* void setMsgCompose (in nsIMsgCompose msgCompose); */
  NS_IMETHOD SetMsgCompose(nsIMsgCompose *msgCompose) = 0;

  /* void setDeliverMode (in MSG_DeliverMode deliverMode); */
  NS_IMETHOD SetDeliverMode(MSG_DeliverMode deliverMode) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgComposeSendListener, NS_IMSGCOMPOSESENDLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOMPOSESENDLISTENER \
  NS_IMETHOD SetMsgCompose(nsIMsgCompose *msgCompose); \
  NS_IMETHOD SetDeliverMode(MSG_DeliverMode deliverMode); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOMPOSESENDLISTENER(_to) \
  NS_IMETHOD SetMsgCompose(nsIMsgCompose *msgCompose) { return _to SetMsgCompose(msgCompose); } \
  NS_IMETHOD SetDeliverMode(MSG_DeliverMode deliverMode) { return _to SetDeliverMode(deliverMode); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCOMPOSESENDLISTENER(_to) \
  NS_IMETHOD SetMsgCompose(nsIMsgCompose *msgCompose) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgCompose(msgCompose); } \
  NS_IMETHOD SetDeliverMode(MSG_DeliverMode deliverMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDeliverMode(deliverMode); } 

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

/* Header file */
class nsMsgComposeSendListener : public nsIMsgComposeSendListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGCOMPOSESENDLISTENER

  nsMsgComposeSendListener();

private:
  ~nsMsgComposeSendListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgComposeSendListener, nsIMsgComposeSendListener)

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

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

/* void setMsgCompose (in nsIMsgCompose msgCompose); */
NS_IMETHODIMP nsMsgComposeSendListener::SetMsgCompose(nsIMsgCompose *msgCompose)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setDeliverMode (in MSG_DeliverMode deliverMode); */
NS_IMETHODIMP nsMsgComposeSendListener::SetDeliverMode(MSG_DeliverMode deliverMode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgCompose_h__ */