/usr/include/thunderbird-11.0.1/nsIMsgDatabase.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 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/db/msgdb/public/nsIMsgDatabase.idl
*/
#ifndef __gen_nsIMsgDatabase_h__
#define __gen_nsIMsgDatabase_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.h"
#endif
#ifndef __gen_nsIDBChangeAnnouncer_h__
#include "nsIDBChangeAnnouncer.h"
#endif
#ifndef __gen_nsIMsgDBView_h__
#include "nsIMsgDBView.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "nsTArray.h"
class nsIDBChangeListener; /* forward declaration */
class nsIMsgDBHdr; /* forward declaration */
class nsISimpleEnumerator; /* forward declaration */
class nsIMsgThread; /* forward declaration */
class nsIDBFolderInfo; /* forward declaration */
class nsIMsgOfflineImapOperation; /* forward declaration */
class nsIMsgFolder; /* forward declaration */
class nsIMsgKeyArray; /* forward declaration */
class nsIOutputStream; /* forward declaration */
class nsIUrlListener; /* forward declaration */
class nsILocalFile; /* forward declaration */
class nsIArray; /* forward declaration */
typedef PRUint32 nsMsgRetainByPreference;
/* starting interface: nsIMsgRetentionSettings */
#define NS_IMSGRETENTIONSETTINGS_IID_STR "b01d6b3b-78c2-4958-b836-2259c76dbc24"
#define NS_IMSGRETENTIONSETTINGS_IID \
{0xb01d6b3b, 0x78c2, 0x4958, \
{ 0xb8, 0x36, 0x22, 0x59, 0xc7, 0x6d, 0xbc, 0x24 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgRetentionSettings : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGRETENTIONSETTINGS_IID)
enum {
nsMsgRetainAll = 1U,
nsMsgRetainByAge = 2U,
nsMsgRetainByNumHeaders = 3U
};
/* attribute boolean useServerDefaults; */
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) = 0;
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) = 0;
/* attribute nsMsgRetainByPreference retainByPreference; */
NS_SCRIPTABLE NS_IMETHOD GetRetainByPreference(nsMsgRetainByPreference *aRetainByPreference) = 0;
NS_SCRIPTABLE NS_IMETHOD SetRetainByPreference(nsMsgRetainByPreference aRetainByPreference) = 0;
/* attribute unsigned long daysToKeepHdrs; */
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepHdrs(PRUint32 *aDaysToKeepHdrs) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepHdrs(PRUint32 aDaysToKeepHdrs) = 0;
/* attribute unsigned long numHeadersToKeep; */
NS_SCRIPTABLE NS_IMETHOD GetNumHeadersToKeep(PRUint32 *aNumHeadersToKeep) = 0;
NS_SCRIPTABLE NS_IMETHOD SetNumHeadersToKeep(PRUint32 aNumHeadersToKeep) = 0;
/* attribute boolean keepUnreadMessagesOnly; */
NS_SCRIPTABLE NS_IMETHOD GetKeepUnreadMessagesOnly(bool *aKeepUnreadMessagesOnly) = 0;
NS_SCRIPTABLE NS_IMETHOD SetKeepUnreadMessagesOnly(bool aKeepUnreadMessagesOnly) = 0;
/* attribute boolean cleanupBodiesByDays; */
NS_SCRIPTABLE NS_IMETHOD GetCleanupBodiesByDays(bool *aCleanupBodiesByDays) = 0;
NS_SCRIPTABLE NS_IMETHOD SetCleanupBodiesByDays(bool aCleanupBodiesByDays) = 0;
/* attribute unsigned long daysToKeepBodies; */
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepBodies(PRUint32 *aDaysToKeepBodies) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepBodies(PRUint32 aDaysToKeepBodies) = 0;
/* attribute boolean applyToFlaggedMessages; */
NS_SCRIPTABLE NS_IMETHOD GetApplyToFlaggedMessages(bool *aApplyToFlaggedMessages) = 0;
NS_SCRIPTABLE NS_IMETHOD SetApplyToFlaggedMessages(bool aApplyToFlaggedMessages) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgRetentionSettings, NS_IMSGRETENTIONSETTINGS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGRETENTIONSETTINGS \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults); \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults); \
NS_SCRIPTABLE NS_IMETHOD GetRetainByPreference(nsMsgRetainByPreference *aRetainByPreference); \
NS_SCRIPTABLE NS_IMETHOD SetRetainByPreference(nsMsgRetainByPreference aRetainByPreference); \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepHdrs(PRUint32 *aDaysToKeepHdrs); \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepHdrs(PRUint32 aDaysToKeepHdrs); \
NS_SCRIPTABLE NS_IMETHOD GetNumHeadersToKeep(PRUint32 *aNumHeadersToKeep); \
NS_SCRIPTABLE NS_IMETHOD SetNumHeadersToKeep(PRUint32 aNumHeadersToKeep); \
NS_SCRIPTABLE NS_IMETHOD GetKeepUnreadMessagesOnly(bool *aKeepUnreadMessagesOnly); \
NS_SCRIPTABLE NS_IMETHOD SetKeepUnreadMessagesOnly(bool aKeepUnreadMessagesOnly); \
NS_SCRIPTABLE NS_IMETHOD GetCleanupBodiesByDays(bool *aCleanupBodiesByDays); \
NS_SCRIPTABLE NS_IMETHOD SetCleanupBodiesByDays(bool aCleanupBodiesByDays); \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepBodies(PRUint32 *aDaysToKeepBodies); \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepBodies(PRUint32 aDaysToKeepBodies); \
NS_SCRIPTABLE NS_IMETHOD GetApplyToFlaggedMessages(bool *aApplyToFlaggedMessages); \
NS_SCRIPTABLE NS_IMETHOD SetApplyToFlaggedMessages(bool aApplyToFlaggedMessages);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGRETENTIONSETTINGS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) { return _to GetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) { return _to SetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD GetRetainByPreference(nsMsgRetainByPreference *aRetainByPreference) { return _to GetRetainByPreference(aRetainByPreference); } \
NS_SCRIPTABLE NS_IMETHOD SetRetainByPreference(nsMsgRetainByPreference aRetainByPreference) { return _to SetRetainByPreference(aRetainByPreference); } \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepHdrs(PRUint32 *aDaysToKeepHdrs) { return _to GetDaysToKeepHdrs(aDaysToKeepHdrs); } \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepHdrs(PRUint32 aDaysToKeepHdrs) { return _to SetDaysToKeepHdrs(aDaysToKeepHdrs); } \
NS_SCRIPTABLE NS_IMETHOD GetNumHeadersToKeep(PRUint32 *aNumHeadersToKeep) { return _to GetNumHeadersToKeep(aNumHeadersToKeep); } \
NS_SCRIPTABLE NS_IMETHOD SetNumHeadersToKeep(PRUint32 aNumHeadersToKeep) { return _to SetNumHeadersToKeep(aNumHeadersToKeep); } \
NS_SCRIPTABLE NS_IMETHOD GetKeepUnreadMessagesOnly(bool *aKeepUnreadMessagesOnly) { return _to GetKeepUnreadMessagesOnly(aKeepUnreadMessagesOnly); } \
NS_SCRIPTABLE NS_IMETHOD SetKeepUnreadMessagesOnly(bool aKeepUnreadMessagesOnly) { return _to SetKeepUnreadMessagesOnly(aKeepUnreadMessagesOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetCleanupBodiesByDays(bool *aCleanupBodiesByDays) { return _to GetCleanupBodiesByDays(aCleanupBodiesByDays); } \
NS_SCRIPTABLE NS_IMETHOD SetCleanupBodiesByDays(bool aCleanupBodiesByDays) { return _to SetCleanupBodiesByDays(aCleanupBodiesByDays); } \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepBodies(PRUint32 *aDaysToKeepBodies) { return _to GetDaysToKeepBodies(aDaysToKeepBodies); } \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepBodies(PRUint32 aDaysToKeepBodies) { return _to SetDaysToKeepBodies(aDaysToKeepBodies); } \
NS_SCRIPTABLE NS_IMETHOD GetApplyToFlaggedMessages(bool *aApplyToFlaggedMessages) { return _to GetApplyToFlaggedMessages(aApplyToFlaggedMessages); } \
NS_SCRIPTABLE NS_IMETHOD SetApplyToFlaggedMessages(bool aApplyToFlaggedMessages) { return _to SetApplyToFlaggedMessages(aApplyToFlaggedMessages); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGRETENTIONSETTINGS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD GetRetainByPreference(nsMsgRetainByPreference *aRetainByPreference) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRetainByPreference(aRetainByPreference); } \
NS_SCRIPTABLE NS_IMETHOD SetRetainByPreference(nsMsgRetainByPreference aRetainByPreference) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRetainByPreference(aRetainByPreference); } \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepHdrs(PRUint32 *aDaysToKeepHdrs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDaysToKeepHdrs(aDaysToKeepHdrs); } \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepHdrs(PRUint32 aDaysToKeepHdrs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDaysToKeepHdrs(aDaysToKeepHdrs); } \
NS_SCRIPTABLE NS_IMETHOD GetNumHeadersToKeep(PRUint32 *aNumHeadersToKeep) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumHeadersToKeep(aNumHeadersToKeep); } \
NS_SCRIPTABLE NS_IMETHOD SetNumHeadersToKeep(PRUint32 aNumHeadersToKeep) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumHeadersToKeep(aNumHeadersToKeep); } \
NS_SCRIPTABLE NS_IMETHOD GetKeepUnreadMessagesOnly(bool *aKeepUnreadMessagesOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeepUnreadMessagesOnly(aKeepUnreadMessagesOnly); } \
NS_SCRIPTABLE NS_IMETHOD SetKeepUnreadMessagesOnly(bool aKeepUnreadMessagesOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKeepUnreadMessagesOnly(aKeepUnreadMessagesOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetCleanupBodiesByDays(bool *aCleanupBodiesByDays) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCleanupBodiesByDays(aCleanupBodiesByDays); } \
NS_SCRIPTABLE NS_IMETHOD SetCleanupBodiesByDays(bool aCleanupBodiesByDays) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCleanupBodiesByDays(aCleanupBodiesByDays); } \
NS_SCRIPTABLE NS_IMETHOD GetDaysToKeepBodies(PRUint32 *aDaysToKeepBodies) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDaysToKeepBodies(aDaysToKeepBodies); } \
NS_SCRIPTABLE NS_IMETHOD SetDaysToKeepBodies(PRUint32 aDaysToKeepBodies) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDaysToKeepBodies(aDaysToKeepBodies); } \
NS_SCRIPTABLE NS_IMETHOD GetApplyToFlaggedMessages(bool *aApplyToFlaggedMessages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplyToFlaggedMessages(aApplyToFlaggedMessages); } \
NS_SCRIPTABLE NS_IMETHOD SetApplyToFlaggedMessages(bool aApplyToFlaggedMessages) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetApplyToFlaggedMessages(aApplyToFlaggedMessages); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgRetentionSettings : public nsIMsgRetentionSettings
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGRETENTIONSETTINGS
nsMsgRetentionSettings();
private:
~nsMsgRetentionSettings();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgRetentionSettings, nsIMsgRetentionSettings)
nsMsgRetentionSettings::nsMsgRetentionSettings()
{
/* member initializers and constructor code */
}
nsMsgRetentionSettings::~nsMsgRetentionSettings()
{
/* destructor code */
}
/* attribute boolean useServerDefaults; */
NS_IMETHODIMP nsMsgRetentionSettings::GetUseServerDefaults(bool *aUseServerDefaults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetUseServerDefaults(bool aUseServerDefaults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsMsgRetainByPreference retainByPreference; */
NS_IMETHODIMP nsMsgRetentionSettings::GetRetainByPreference(nsMsgRetainByPreference *aRetainByPreference)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetRetainByPreference(nsMsgRetainByPreference aRetainByPreference)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long daysToKeepHdrs; */
NS_IMETHODIMP nsMsgRetentionSettings::GetDaysToKeepHdrs(PRUint32 *aDaysToKeepHdrs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetDaysToKeepHdrs(PRUint32 aDaysToKeepHdrs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long numHeadersToKeep; */
NS_IMETHODIMP nsMsgRetentionSettings::GetNumHeadersToKeep(PRUint32 *aNumHeadersToKeep)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetNumHeadersToKeep(PRUint32 aNumHeadersToKeep)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean keepUnreadMessagesOnly; */
NS_IMETHODIMP nsMsgRetentionSettings::GetKeepUnreadMessagesOnly(bool *aKeepUnreadMessagesOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetKeepUnreadMessagesOnly(bool aKeepUnreadMessagesOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean cleanupBodiesByDays; */
NS_IMETHODIMP nsMsgRetentionSettings::GetCleanupBodiesByDays(bool *aCleanupBodiesByDays)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetCleanupBodiesByDays(bool aCleanupBodiesByDays)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long daysToKeepBodies; */
NS_IMETHODIMP nsMsgRetentionSettings::GetDaysToKeepBodies(PRUint32 *aDaysToKeepBodies)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetDaysToKeepBodies(PRUint32 aDaysToKeepBodies)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean applyToFlaggedMessages; */
NS_IMETHODIMP nsMsgRetentionSettings::GetApplyToFlaggedMessages(bool *aApplyToFlaggedMessages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgRetentionSettings::SetApplyToFlaggedMessages(bool aApplyToFlaggedMessages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIMsgDownloadSettings */
#define NS_IMSGDOWNLOADSETTINGS_IID_STR "86a9da90-14f1-11d5-a5c0-0060b0fc04b7"
#define NS_IMSGDOWNLOADSETTINGS_IID \
{0x86a9da90, 0x14f1, 0x11d5, \
{ 0xa5, 0xc0, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgDownloadSettings : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDOWNLOADSETTINGS_IID)
/* attribute boolean useServerDefaults; */
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) = 0;
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) = 0;
/* attribute boolean downloadByDate; */
NS_SCRIPTABLE NS_IMETHOD GetDownloadByDate(bool *aDownloadByDate) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDownloadByDate(bool aDownloadByDate) = 0;
/* attribute boolean downloadUnreadOnly; */
NS_SCRIPTABLE NS_IMETHOD GetDownloadUnreadOnly(bool *aDownloadUnreadOnly) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDownloadUnreadOnly(bool aDownloadUnreadOnly) = 0;
/* attribute unsigned long ageLimitOfMsgsToDownload; */
NS_SCRIPTABLE NS_IMETHOD GetAgeLimitOfMsgsToDownload(PRUint32 *aAgeLimitOfMsgsToDownload) = 0;
NS_SCRIPTABLE NS_IMETHOD SetAgeLimitOfMsgsToDownload(PRUint32 aAgeLimitOfMsgsToDownload) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDownloadSettings, NS_IMSGDOWNLOADSETTINGS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDOWNLOADSETTINGS \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults); \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults); \
NS_SCRIPTABLE NS_IMETHOD GetDownloadByDate(bool *aDownloadByDate); \
NS_SCRIPTABLE NS_IMETHOD SetDownloadByDate(bool aDownloadByDate); \
NS_SCRIPTABLE NS_IMETHOD GetDownloadUnreadOnly(bool *aDownloadUnreadOnly); \
NS_SCRIPTABLE NS_IMETHOD SetDownloadUnreadOnly(bool aDownloadUnreadOnly); \
NS_SCRIPTABLE NS_IMETHOD GetAgeLimitOfMsgsToDownload(PRUint32 *aAgeLimitOfMsgsToDownload); \
NS_SCRIPTABLE NS_IMETHOD SetAgeLimitOfMsgsToDownload(PRUint32 aAgeLimitOfMsgsToDownload);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDOWNLOADSETTINGS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) { return _to GetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) { return _to SetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD GetDownloadByDate(bool *aDownloadByDate) { return _to GetDownloadByDate(aDownloadByDate); } \
NS_SCRIPTABLE NS_IMETHOD SetDownloadByDate(bool aDownloadByDate) { return _to SetDownloadByDate(aDownloadByDate); } \
NS_SCRIPTABLE NS_IMETHOD GetDownloadUnreadOnly(bool *aDownloadUnreadOnly) { return _to GetDownloadUnreadOnly(aDownloadUnreadOnly); } \
NS_SCRIPTABLE NS_IMETHOD SetDownloadUnreadOnly(bool aDownloadUnreadOnly) { return _to SetDownloadUnreadOnly(aDownloadUnreadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetAgeLimitOfMsgsToDownload(PRUint32 *aAgeLimitOfMsgsToDownload) { return _to GetAgeLimitOfMsgsToDownload(aAgeLimitOfMsgsToDownload); } \
NS_SCRIPTABLE NS_IMETHOD SetAgeLimitOfMsgsToDownload(PRUint32 aAgeLimitOfMsgsToDownload) { return _to SetAgeLimitOfMsgsToDownload(aAgeLimitOfMsgsToDownload); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGDOWNLOADSETTINGS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetUseServerDefaults(bool *aUseServerDefaults) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD SetUseServerDefaults(bool aUseServerDefaults) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseServerDefaults(aUseServerDefaults); } \
NS_SCRIPTABLE NS_IMETHOD GetDownloadByDate(bool *aDownloadByDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadByDate(aDownloadByDate); } \
NS_SCRIPTABLE NS_IMETHOD SetDownloadByDate(bool aDownloadByDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadByDate(aDownloadByDate); } \
NS_SCRIPTABLE NS_IMETHOD GetDownloadUnreadOnly(bool *aDownloadUnreadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadUnreadOnly(aDownloadUnreadOnly); } \
NS_SCRIPTABLE NS_IMETHOD SetDownloadUnreadOnly(bool aDownloadUnreadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadUnreadOnly(aDownloadUnreadOnly); } \
NS_SCRIPTABLE NS_IMETHOD GetAgeLimitOfMsgsToDownload(PRUint32 *aAgeLimitOfMsgsToDownload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAgeLimitOfMsgsToDownload(aAgeLimitOfMsgsToDownload); } \
NS_SCRIPTABLE NS_IMETHOD SetAgeLimitOfMsgsToDownload(PRUint32 aAgeLimitOfMsgsToDownload) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAgeLimitOfMsgsToDownload(aAgeLimitOfMsgsToDownload); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgDownloadSettings : public nsIMsgDownloadSettings
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGDOWNLOADSETTINGS
nsMsgDownloadSettings();
private:
~nsMsgDownloadSettings();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDownloadSettings, nsIMsgDownloadSettings)
nsMsgDownloadSettings::nsMsgDownloadSettings()
{
/* member initializers and constructor code */
}
nsMsgDownloadSettings::~nsMsgDownloadSettings()
{
/* destructor code */
}
/* attribute boolean useServerDefaults; */
NS_IMETHODIMP nsMsgDownloadSettings::GetUseServerDefaults(bool *aUseServerDefaults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDownloadSettings::SetUseServerDefaults(bool aUseServerDefaults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean downloadByDate; */
NS_IMETHODIMP nsMsgDownloadSettings::GetDownloadByDate(bool *aDownloadByDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDownloadSettings::SetDownloadByDate(bool aDownloadByDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean downloadUnreadOnly; */
NS_IMETHODIMP nsMsgDownloadSettings::GetDownloadUnreadOnly(bool *aDownloadUnreadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDownloadSettings::SetDownloadUnreadOnly(bool aDownloadUnreadOnly)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long ageLimitOfMsgsToDownload; */
NS_IMETHODIMP nsMsgDownloadSettings::GetAgeLimitOfMsgsToDownload(PRUint32 *aAgeLimitOfMsgsToDownload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDownloadSettings::SetAgeLimitOfMsgsToDownload(PRUint32 aAgeLimitOfMsgsToDownload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
typedef PRInt32 nsMsgDBCommit;
/* starting interface: nsMsgDBCommitType */
#define NS_MSGDBCOMMITTYPE_IID_STR "aa4d45d0-3956-11d3-8d76-00805f8a6617"
#define NS_MSGDBCOMMITTYPE_IID \
{0xaa4d45d0, 0x3956, 0x11d3, \
{ 0x8d, 0x76, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0x17 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsMsgDBCommitType {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_MSGDBCOMMITTYPE_IID)
enum {
kSmallCommit = 0,
kLargeCommit = 1,
kSessionCommit = 2,
kCompressCommit = 3
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsMsgDBCommitType, NS_MSGDBCOMMITTYPE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSMSGDBCOMMITTYPE \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSMSGDBCOMMITTYPE(_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_NSMSGDBCOMMITTYPE(_to) \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public nsMsgDBCommitType
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSMSGDBCOMMITTYPE
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, nsMsgDBCommitType)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIMsgDBService */
#define NS_IMSGDBSERVICE_IID_STR "6ddaeb28-0499-4be1-85f7-7a5d20f80256"
#define NS_IMSGDBSERVICE_IID \
{0x6ddaeb28, 0x0499, 0x4be1, \
{ 0x85, 0xf7, 0x7a, 0x5d, 0x20, 0xf8, 0x02, 0x56 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgDBService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBSERVICE_IID)
/* nsIMsgDatabase openFolderDB (in nsIMsgFolder aFolder, in boolean aLeaveInvalidDB); */
NS_SCRIPTABLE NS_IMETHOD OpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) = 0;
/* nsIMsgDatabase asyncOpenFolderDB (in nsIMsgFolder aFolder, in boolean aLeaveInvalidDB); */
NS_SCRIPTABLE NS_IMETHOD AsyncOpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) = 0;
/* boolean openMore (in nsIMsgDatabase aDB, in long aTimeHint); */
NS_SCRIPTABLE NS_IMETHOD OpenMore(nsIMsgDatabase *aDB, PRInt32 aTimeHint, bool *_retval NS_OUTPARAM) = 0;
/* nsIMsgDatabase createNewDB (in nsIMsgFolder aFolder); */
NS_SCRIPTABLE NS_IMETHOD CreateNewDB(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) = 0;
/* nsIMsgDatabase openMailDBFromFile (in nsILocalFile aFile, in boolean aCreate, in boolean aLeaveInvalidDB); */
NS_SCRIPTABLE NS_IMETHOD OpenMailDBFromFile(nsILocalFile *aFile, bool aCreate, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) = 0;
/* void registerPendingListener (in nsIMsgFolder aFolder, in nsIDBChangeListener aListener); */
NS_SCRIPTABLE NS_IMETHOD RegisterPendingListener(nsIMsgFolder *aFolder, nsIDBChangeListener *aListener) = 0;
/* void unregisterPendingListener (in nsIDBChangeListener aListener); */
NS_SCRIPTABLE NS_IMETHOD UnregisterPendingListener(nsIDBChangeListener *aListener) = 0;
/* nsIMsgDatabase cachedDBForFolder (in nsIMsgFolder aFolder); */
NS_SCRIPTABLE NS_IMETHOD CachedDBForFolder(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDBService, NS_IMSGDBSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDBSERVICE \
NS_SCRIPTABLE NS_IMETHOD OpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AsyncOpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD OpenMore(nsIMsgDatabase *aDB, PRInt32 aTimeHint, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CreateNewDB(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD OpenMailDBFromFile(nsILocalFile *aFile, bool aCreate, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RegisterPendingListener(nsIMsgFolder *aFolder, nsIDBChangeListener *aListener); \
NS_SCRIPTABLE NS_IMETHOD UnregisterPendingListener(nsIDBChangeListener *aListener); \
NS_SCRIPTABLE NS_IMETHOD CachedDBForFolder(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBSERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD OpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return _to OpenFolderDB(aFolder, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AsyncOpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return _to AsyncOpenFolderDB(aFolder, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD OpenMore(nsIMsgDatabase *aDB, PRInt32 aTimeHint, bool *_retval NS_OUTPARAM) { return _to OpenMore(aDB, aTimeHint, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewDB(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) { return _to CreateNewDB(aFolder, _retval); } \
NS_SCRIPTABLE NS_IMETHOD OpenMailDBFromFile(nsILocalFile *aFile, bool aCreate, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return _to OpenMailDBFromFile(aFile, aCreate, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RegisterPendingListener(nsIMsgFolder *aFolder, nsIDBChangeListener *aListener) { return _to RegisterPendingListener(aFolder, aListener); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterPendingListener(nsIDBChangeListener *aListener) { return _to UnregisterPendingListener(aListener); } \
NS_SCRIPTABLE NS_IMETHOD CachedDBForFolder(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) { return _to CachedDBForFolder(aFolder, _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_NSIMSGDBSERVICE(_to) \
NS_SCRIPTABLE NS_IMETHOD OpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenFolderDB(aFolder, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AsyncOpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpenFolderDB(aFolder, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD OpenMore(nsIMsgDatabase *aDB, PRInt32 aTimeHint, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenMore(aDB, aTimeHint, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewDB(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewDB(aFolder, _retval); } \
NS_SCRIPTABLE NS_IMETHOD OpenMailDBFromFile(nsILocalFile *aFile, bool aCreate, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenMailDBFromFile(aFile, aCreate, aLeaveInvalidDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RegisterPendingListener(nsIMsgFolder *aFolder, nsIDBChangeListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterPendingListener(aFolder, aListener); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterPendingListener(nsIDBChangeListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterPendingListener(aListener); } \
NS_SCRIPTABLE NS_IMETHOD CachedDBForFolder(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CachedDBForFolder(aFolder, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgDBService : public nsIMsgDBService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGDBSERVICE
nsMsgDBService();
private:
~nsMsgDBService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDBService, nsIMsgDBService)
nsMsgDBService::nsMsgDBService()
{
/* member initializers and constructor code */
}
nsMsgDBService::~nsMsgDBService()
{
/* destructor code */
}
/* nsIMsgDatabase openFolderDB (in nsIMsgFolder aFolder, in boolean aLeaveInvalidDB); */
NS_IMETHODIMP nsMsgDBService::OpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDatabase asyncOpenFolderDB (in nsIMsgFolder aFolder, in boolean aLeaveInvalidDB); */
NS_IMETHODIMP nsMsgDBService::AsyncOpenFolderDB(nsIMsgFolder *aFolder, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean openMore (in nsIMsgDatabase aDB, in long aTimeHint); */
NS_IMETHODIMP nsMsgDBService::OpenMore(nsIMsgDatabase *aDB, PRInt32 aTimeHint, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDatabase createNewDB (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsMsgDBService::CreateNewDB(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDatabase openMailDBFromFile (in nsILocalFile aFile, in boolean aCreate, in boolean aLeaveInvalidDB); */
NS_IMETHODIMP nsMsgDBService::OpenMailDBFromFile(nsILocalFile *aFile, bool aCreate, bool aLeaveInvalidDB, nsIMsgDatabase * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerPendingListener (in nsIMsgFolder aFolder, in nsIDBChangeListener aListener); */
NS_IMETHODIMP nsMsgDBService::RegisterPendingListener(nsIMsgFolder *aFolder, nsIDBChangeListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterPendingListener (in nsIDBChangeListener aListener); */
NS_IMETHODIMP nsMsgDBService::UnregisterPendingListener(nsIDBChangeListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDatabase cachedDBForFolder (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsMsgDBService::CachedDBForFolder(nsIMsgFolder *aFolder, nsIMsgDatabase * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIMsgDatabase */
#define NS_IMSGDATABASE_IID_STR "19719187-6a85-4807-aeb6-421115240ba1"
#define NS_IMSGDATABASE_IID \
{0x19719187, 0x6a85, 0x4807, \
{ 0xae, 0xb6, 0x42, 0x11, 0x15, 0x24, 0x0b, 0xa1 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgDatabase : public nsIDBChangeAnnouncer {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDATABASE_IID)
/* void Open (in nsILocalFile aFolderName, in boolean aCreate, in boolean aLeaveInvalidDB); */
NS_SCRIPTABLE NS_IMETHOD Open(nsILocalFile *aFolderName, bool aCreate, bool aLeaveInvalidDB) = 0;
/* void forceFolderDBClosed (in nsIMsgFolder aFolder); */
NS_SCRIPTABLE NS_IMETHOD ForceFolderDBClosed(nsIMsgFolder *aFolder) = 0;
/* void Close (in boolean aForceCommit); */
NS_SCRIPTABLE NS_IMETHOD Close(bool aForceCommit) = 0;
/* void Commit (in nsMsgDBCommit commitType); */
NS_SCRIPTABLE NS_IMETHOD Commit(nsMsgDBCommit commitType) = 0;
/* void ForceClosed (); */
NS_SCRIPTABLE NS_IMETHOD ForceClosed(void) = 0;
/* void clearCachedHdrs (); */
NS_SCRIPTABLE NS_IMETHOD ClearCachedHdrs(void) = 0;
/* void resetHdrCacheSize (in unsigned long size); */
NS_SCRIPTABLE NS_IMETHOD ResetHdrCacheSize(PRUint32 size) = 0;
/* readonly attribute nsIDBFolderInfo dBFolderInfo; */
NS_SCRIPTABLE NS_IMETHOD GetDBFolderInfo(nsIDBFolderInfo * *aDBFolderInfo) = 0;
/* nsIMsgDBHdr GetMsgHdrForKey (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForKey(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* nsIMsgDBHdr getMsgHdrForMessageID (in string messageID); */
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForMessageID(const char * messageID, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* boolean ContainsKey (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD ContainsKey(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* nsIMsgDBHdr CreateNewHdr (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD CreateNewHdr(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* void AddNewHdrToDB (in nsIMsgDBHdr newHdr, in boolean notify); */
NS_SCRIPTABLE NS_IMETHOD AddNewHdrToDB(nsIMsgDBHdr *newHdr, bool notify) = 0;
/* nsIMsgDBHdr CopyHdrFromExistingHdr (in nsMsgKey key, in nsIMsgDBHdr existingHdr, in boolean addHdrToDB); */
NS_SCRIPTABLE NS_IMETHOD CopyHdrFromExistingHdr(nsMsgKey key, nsIMsgDBHdr *existingHdr, bool addHdrToDB, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* void ListAllKeys (in nsIMsgKeyArray array); */
NS_SCRIPTABLE NS_IMETHOD ListAllKeys(nsIMsgKeyArray *array) = 0;
/* nsISimpleEnumerator EnumerateMessages (); */
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* nsISimpleEnumerator ReverseEnumerateMessages (); */
NS_SCRIPTABLE NS_IMETHOD ReverseEnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* nsISimpleEnumerator EnumerateThreads (); */
NS_SCRIPTABLE NS_IMETHOD EnumerateThreads(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* nsISimpleEnumerator getFilterEnumerator (in nsIArray searchTerms, [optional] in boolean reverse); */
NS_SCRIPTABLE NS_IMETHOD GetFilterEnumerator(nsIArray *searchTerms, bool reverse, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* boolean nextMatchingHdrs (in nsISimpleEnumerator enumerator, in long numHdrsToLookAt, in long maxResults, in nsIMutableArray matchingHdrs, out long numMatches); */
NS_SCRIPTABLE NS_IMETHOD NextMatchingHdrs(nsISimpleEnumerator *enumerator, PRInt32 numHdrsToLookAt, PRInt32 maxResults, nsIMutableArray *matchingHdrs, PRInt32 *numMatches NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
/* void syncCounts (); */
NS_SCRIPTABLE NS_IMETHOD SyncCounts(void) = 0;
/* nsIMsgThread GetThreadContainingMsgHdr (in nsIMsgDBHdr msgHdr); */
NS_SCRIPTABLE NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread * *_retval NS_OUTPARAM) = 0;
/* void MarkHdrRead (in nsIMsgDBHdr msgHdr, in boolean bRead, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHdrRead(nsIMsgDBHdr *msgHdr, bool bRead, nsIDBChangeListener *instigator) = 0;
/* void MarkHdrReplied (in nsIMsgDBHdr msgHdr, in boolean bReplied, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHdrReplied(nsIMsgDBHdr *msgHdr, bool bReplied, nsIDBChangeListener *instigator) = 0;
/* void MarkHdrMarked (in nsIMsgDBHdr msgHdr, in boolean mark, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHdrMarked(nsIMsgDBHdr *msgHdr, bool mark, nsIDBChangeListener *instigator) = 0;
/* void MarkHdrNotNew (in nsIMsgDBHdr aMsgHdr, in nsIDBChangeListener aInstigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHdrNotNew(nsIMsgDBHdr *aMsgHdr, nsIDBChangeListener *aInstigator) = 0;
/* void MarkMDNNeeded (in nsMsgKey key, in boolean bNeeded, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkMDNNeeded(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) = 0;
/* boolean IsMDNNeeded (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD IsMDNNeeded(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* void MarkMDNSent (in nsMsgKey key, in boolean bNeeded, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkMDNSent(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) = 0;
/* boolean IsMDNSent (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD IsMDNSent(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* void MarkRead (in nsMsgKey key, in boolean bRead, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkRead(nsMsgKey key, bool bRead, nsIDBChangeListener *instigator) = 0;
/* void MarkReplied (in nsMsgKey key, in boolean bReplied, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkReplied(nsMsgKey key, bool bReplied, nsIDBChangeListener *instigator) = 0;
/* void MarkForwarded (in nsMsgKey key, in boolean bForwarded, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkForwarded(nsMsgKey key, bool bForwarded, nsIDBChangeListener *instigator) = 0;
/* void MarkHasAttachments (in nsMsgKey key, in boolean bHasAttachments, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(nsMsgKey key, bool bHasAttachments, nsIDBChangeListener *instigator) = 0;
/* void MarkThreadRead (in nsIMsgThread thread, in nsIDBChangeListener instigator, out unsigned long aCount, [array, size_is (aCount)] out nsMsgKey aKeys); */
NS_SCRIPTABLE NS_IMETHOD MarkThreadRead(nsIMsgThread *thread, nsIDBChangeListener *instigator, PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) = 0;
/* void MarkThreadIgnored (in nsIMsgThread thread, in nsMsgKey threadKey, in boolean bIgnored, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkThreadIgnored(nsIMsgThread *thread, nsMsgKey threadKey, bool bIgnored, nsIDBChangeListener *instigator) = 0;
/* void MarkThreadWatched (in nsIMsgThread thread, in nsMsgKey threadKey, in boolean bWatched, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkThreadWatched(nsIMsgThread *thread, nsMsgKey threadKey, bool bWatched, nsIDBChangeListener *instigator) = 0;
/* void MarkHeaderKilled (in nsIMsgDBHdr msg, in boolean bIgnored, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkHeaderKilled(nsIMsgDBHdr *msg, bool bIgnored, nsIDBChangeListener *instigator) = 0;
/* boolean IsRead (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD IsRead(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* boolean IsIgnored (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD IsIgnored(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* boolean IsMarked (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD IsMarked(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* boolean HasAttachments (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD HasAttachments(nsMsgKey key, bool *_retval NS_OUTPARAM) = 0;
/* void MarkAllRead (out unsigned long aCount, [array, size_is (aCount)] out nsMsgKey aKeys); */
NS_SCRIPTABLE NS_IMETHOD MarkAllRead(PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) = 0;
/* void deleteMessages (in unsigned long aNumKeys, [array, size_is (aNumKeys)] in nsMsgKey nsMsgKeys, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(PRUint32 aNumKeys, nsMsgKey *nsMsgKeys, nsIDBChangeListener *instigator) = 0;
/* void DeleteMessage (in nsMsgKey key, in nsIDBChangeListener instigator, in boolean commit); */
NS_SCRIPTABLE NS_IMETHOD DeleteMessage(nsMsgKey key, nsIDBChangeListener *instigator, bool commit) = 0;
/* void DeleteHeader (in nsIMsgDBHdr msgHdr, in nsIDBChangeListener instigator, in boolean commit, in boolean notify); */
NS_SCRIPTABLE NS_IMETHOD DeleteHeader(nsIMsgDBHdr *msgHdr, nsIDBChangeListener *instigator, bool commit, bool notify) = 0;
/* void RemoveHeaderMdbRow (in nsIMsgDBHdr msgHdr); */
NS_SCRIPTABLE NS_IMETHOD RemoveHeaderMdbRow(nsIMsgDBHdr *msgHdr) = 0;
/* void UndoDelete (in nsIMsgDBHdr msgHdr); */
NS_SCRIPTABLE NS_IMETHOD UndoDelete(nsIMsgDBHdr *msgHdr) = 0;
/* void MarkMarked (in nsMsgKey key, in boolean mark, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkMarked(nsMsgKey key, bool mark, nsIDBChangeListener *instigator) = 0;
/* void MarkOffline (in nsMsgKey key, in boolean offline, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkOffline(nsMsgKey key, bool offline, nsIDBChangeListener *instigator) = 0;
/* void SetLabel (in nsMsgKey key, in nsMsgLabelValue label); */
NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgKey key, nsMsgLabelValue label) = 0;
/* void setStringProperty (in nsMsgKey aKey, in string aProperty, in string aValue); */
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(nsMsgKey aKey, const char * aProperty, const char * aValue) = 0;
/* void setStringPropertyByHdr (in nsIMsgDBHdr msgHdr, in string aProperty, in string aValue); */
NS_SCRIPTABLE NS_IMETHOD SetStringPropertyByHdr(nsIMsgDBHdr *msgHdr, const char * aProperty, const char * aValue) = 0;
/* void setUint32PropertyByHdr (in nsIMsgDBHdr aMsgHdr, in string aProperty, in unsigned long aValue); */
NS_SCRIPTABLE NS_IMETHOD SetUint32PropertyByHdr(nsIMsgDBHdr *aMsgHdr, const char * aProperty, PRUint32 aValue) = 0;
/* void MarkImapDeleted (in nsMsgKey key, in boolean deleted, in nsIDBChangeListener instigator); */
NS_SCRIPTABLE NS_IMETHOD MarkImapDeleted(nsMsgKey key, bool deleted, nsIDBChangeListener *instigator) = 0;
/* readonly attribute nsMsgKey FirstNew; */
NS_SCRIPTABLE NS_IMETHOD GetFirstNew(nsMsgKey *aFirstNew) = 0;
/* attribute nsIMsgRetentionSettings msgRetentionSettings; */
NS_SCRIPTABLE NS_IMETHOD GetMsgRetentionSettings(nsIMsgRetentionSettings * *aMsgRetentionSettings) = 0;
NS_SCRIPTABLE NS_IMETHOD SetMsgRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings) = 0;
/* void applyRetentionSettings (in nsIMsgRetentionSettings aMsgRetentionSettings, in boolean aDeleteViaFolder); */
NS_SCRIPTABLE NS_IMETHOD ApplyRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings, bool aDeleteViaFolder) = 0;
/* attribute nsIMsgDownloadSettings msgDownloadSettings; */
NS_SCRIPTABLE NS_IMETHOD GetMsgDownloadSettings(nsIMsgDownloadSettings * *aMsgDownloadSettings) = 0;
NS_SCRIPTABLE NS_IMETHOD SetMsgDownloadSettings(nsIMsgDownloadSettings *aMsgDownloadSettings) = 0;
/* boolean HasNew (); */
NS_SCRIPTABLE NS_IMETHOD HasNew(bool *_retval NS_OUTPARAM) = 0;
/* void ClearNewList (in boolean notify); */
NS_SCRIPTABLE NS_IMETHOD ClearNewList(bool notify) = 0;
/* void AddToNewList (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD AddToNewList(nsMsgKey key) = 0;
/* attribute boolean summaryValid; */
NS_SCRIPTABLE NS_IMETHOD GetSummaryValid(bool *aSummaryValid) = 0;
NS_SCRIPTABLE NS_IMETHOD SetSummaryValid(bool aSummaryValid) = 0;
/* void StartBatch (); */
NS_SCRIPTABLE NS_IMETHOD StartBatch(void) = 0;
/* void EndBatch (); */
NS_SCRIPTABLE NS_IMETHOD EndBatch(void) = 0;
/* nsIMsgOfflineImapOperation GetOfflineOpForKey (in nsMsgKey messageKey, in boolean create); */
NS_SCRIPTABLE NS_IMETHOD GetOfflineOpForKey(nsMsgKey messageKey, bool create, nsIMsgOfflineImapOperation * *_retval NS_OUTPARAM) = 0;
/* void RemoveOfflineOp (in nsIMsgOfflineImapOperation op); */
NS_SCRIPTABLE NS_IMETHOD RemoveOfflineOp(nsIMsgOfflineImapOperation *op) = 0;
/* nsISimpleEnumerator EnumerateOfflineOps (); */
NS_SCRIPTABLE NS_IMETHOD EnumerateOfflineOps(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* [noscript] void ListAllOfflineOpIds (in nsMsgKeyArrayPtr offlineOpIds); */
NS_IMETHOD ListAllOfflineOpIds(nsTArray<nsMsgKey> *offlineOpIds) = 0;
/* [noscript] void ListAllOfflineDeletes (in nsMsgKeyArrayPtr offlineDeletes); */
NS_IMETHOD ListAllOfflineDeletes(nsTArray<nsMsgKey> *offlineDeletes) = 0;
/* void ListAllOfflineMsgs (in nsIMsgKeyArray aKeys); */
NS_SCRIPTABLE NS_IMETHOD ListAllOfflineMsgs(nsIMsgKeyArray *aKeys) = 0;
/* void setAttributeOnPendingHdr (in nsIMsgDBHdr pendingHdr, in string property, in string propertyVal); */
NS_SCRIPTABLE NS_IMETHOD SetAttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, const char * propertyVal) = 0;
/* void setUint32AttributeOnPendingHdr (in nsIMsgDBHdr pendingHdr, in string property, in unsigned long propertyVal); */
NS_SCRIPTABLE NS_IMETHOD SetUint32AttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, PRUint32 propertyVal) = 0;
/* void setUint64AttributeOnPendingHdr (in nsIMsgDBHdr aPendingHdr, in string aProperty, in unsigned long long aPropertyVal); */
NS_SCRIPTABLE NS_IMETHOD SetUint64AttributeOnPendingHdr(nsIMsgDBHdr *aPendingHdr, const char * aProperty, PRUint64 aPropertyVal) = 0;
/* void updatePendingAttributes (in nsIMsgDBHdr aNewHdr); */
NS_SCRIPTABLE NS_IMETHOD UpdatePendingAttributes(nsIMsgDBHdr *aNewHdr) = 0;
/* readonly attribute nsMsgKey lowWaterArticleNum; */
NS_SCRIPTABLE NS_IMETHOD GetLowWaterArticleNum(nsMsgKey *aLowWaterArticleNum) = 0;
/* readonly attribute nsMsgKey highWaterArticleNum; */
NS_SCRIPTABLE NS_IMETHOD GetHighWaterArticleNum(nsMsgKey *aHighWaterArticleNum) = 0;
/* attribute nsMsgKey nextPseudoMsgKey; */
NS_SCRIPTABLE NS_IMETHOD GetNextPseudoMsgKey(nsMsgKey *aNextPseudoMsgKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetNextPseudoMsgKey(nsMsgKey aNextPseudoMsgKey) = 0;
/* readonly attribute nsMsgKey nextFakeOfflineMsgKey; */
NS_SCRIPTABLE NS_IMETHOD GetNextFakeOfflineMsgKey(nsMsgKey *aNextFakeOfflineMsgKey) = 0;
/* void createCollationKey (in AString sourceString, out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
NS_SCRIPTABLE NS_IMETHOD CreateCollationKey(const nsAString & sourceString, PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) = 0;
/* long compareCollationKeys (in unsigned long aLen1, [array, size_is (aLen1)] in octet key1, in unsigned long aLen2, [array, size_is (aLen2)] in octet key2); */
NS_SCRIPTABLE NS_IMETHOD CompareCollationKeys(PRUint32 aLen1, PRUint8 *key1, PRUint32 aLen2, PRUint8 *key2, PRInt32 *_retval NS_OUTPARAM) = 0;
/* readonly attribute nsMsgViewFlagsTypeValue defaultViewFlags; */
NS_SCRIPTABLE NS_IMETHOD GetDefaultViewFlags(nsMsgViewFlagsTypeValue *aDefaultViewFlags) = 0;
/* readonly attribute nsMsgViewSortTypeValue defaultSortType; */
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortType(nsMsgViewSortTypeValue *aDefaultSortType) = 0;
/* readonly attribute nsMsgViewSortOrderValue defaultSortOrder; */
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortOrder(nsMsgViewSortOrderValue *aDefaultSortOrder) = 0;
/* attribute unsigned long msgHdrCacheSize; */
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrCacheSize(PRUint32 *aMsgHdrCacheSize) = 0;
NS_SCRIPTABLE NS_IMETHOD SetMsgHdrCacheSize(PRUint32 aMsgHdrCacheSize) = 0;
/* attribute nsIOutputStream folderStream; */
NS_SCRIPTABLE NS_IMETHOD GetFolderStream(nsIOutputStream * *aFolderStream) = 0;
NS_SCRIPTABLE NS_IMETHOD SetFolderStream(nsIOutputStream *aFolderStream) = 0;
/* void getNewList (out unsigned long count, [array, size_is (count)] out nsMsgKey newKeys); */
NS_SCRIPTABLE NS_IMETHOD GetNewList(PRUint32 *count NS_OUTPARAM, nsMsgKey **newKeys NS_OUTPARAM) = 0;
/* nsISimpleEnumerator getCachedHits (in string aSearchFolderUri); */
NS_SCRIPTABLE NS_IMETHOD GetCachedHits(const char * aSearchFolderUri, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* void refreshCache (in string aSearchFolderUri, in unsigned long aNumKeys, [array, size_is (aNumKeys)] in nsMsgKey aNewHits, out unsigned long aNumBadHits, [array, size_is (aNumBadHits)] out nsMsgKey aStaleHits); */
NS_SCRIPTABLE NS_IMETHOD RefreshCache(const char * aSearchFolderUri, PRUint32 aNumKeys, nsMsgKey *aNewHits, PRUint32 *aNumBadHits NS_OUTPARAM, nsMsgKey **aStaleHits NS_OUTPARAM) = 0;
/* void updateHdrInCache (in string aSearchFolderUri, in nsIMsgDBHdr aHdr, in boolean aAdd); */
NS_SCRIPTABLE NS_IMETHOD UpdateHdrInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool aAdd) = 0;
/* boolean hdrIsInCache (in string aSearchFolderUri, in nsIMsgDBHdr aHdr); */
NS_SCRIPTABLE NS_IMETHOD HdrIsInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool *_retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDatabase, NS_IMSGDATABASE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDATABASE \
NS_SCRIPTABLE NS_IMETHOD Open(nsILocalFile *aFolderName, bool aCreate, bool aLeaveInvalidDB); \
NS_SCRIPTABLE NS_IMETHOD ForceFolderDBClosed(nsIMsgFolder *aFolder); \
NS_SCRIPTABLE NS_IMETHOD Close(bool aForceCommit); \
NS_SCRIPTABLE NS_IMETHOD Commit(nsMsgDBCommit commitType); \
NS_SCRIPTABLE NS_IMETHOD ForceClosed(void); \
NS_SCRIPTABLE NS_IMETHOD ClearCachedHdrs(void); \
NS_SCRIPTABLE NS_IMETHOD ResetHdrCacheSize(PRUint32 size); \
NS_SCRIPTABLE NS_IMETHOD GetDBFolderInfo(nsIDBFolderInfo * *aDBFolderInfo); \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForKey(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForMessageID(const char * messageID, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ContainsKey(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CreateNewHdr(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AddNewHdrToDB(nsIMsgDBHdr *newHdr, bool notify); \
NS_SCRIPTABLE NS_IMETHOD CopyHdrFromExistingHdr(nsMsgKey key, nsIMsgDBHdr *existingHdr, bool addHdrToDB, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ListAllKeys(nsIMsgKeyArray *array); \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ReverseEnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD EnumerateThreads(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetFilterEnumerator(nsIArray *searchTerms, bool reverse, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD NextMatchingHdrs(nsISimpleEnumerator *enumerator, PRInt32 numHdrsToLookAt, PRInt32 maxResults, nsIMutableArray *matchingHdrs, PRInt32 *numMatches NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SyncCounts(void); \
NS_SCRIPTABLE NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MarkHdrRead(nsIMsgDBHdr *msgHdr, bool bRead, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkHdrReplied(nsIMsgDBHdr *msgHdr, bool bReplied, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkHdrMarked(nsIMsgDBHdr *msgHdr, bool mark, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkHdrNotNew(nsIMsgDBHdr *aMsgHdr, nsIDBChangeListener *aInstigator); \
NS_SCRIPTABLE NS_IMETHOD MarkMDNNeeded(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD IsMDNNeeded(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MarkMDNSent(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD IsMDNSent(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MarkRead(nsMsgKey key, bool bRead, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkReplied(nsMsgKey key, bool bReplied, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkForwarded(nsMsgKey key, bool bForwarded, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(nsMsgKey key, bool bHasAttachments, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkThreadRead(nsIMsgThread *thread, nsIDBChangeListener *instigator, PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MarkThreadIgnored(nsIMsgThread *thread, nsMsgKey threadKey, bool bIgnored, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkThreadWatched(nsIMsgThread *thread, nsMsgKey threadKey, bool bWatched, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkHeaderKilled(nsIMsgDBHdr *msg, bool bIgnored, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD IsRead(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsIgnored(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsMarked(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD HasAttachments(nsMsgKey key, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MarkAllRead(PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(PRUint32 aNumKeys, nsMsgKey *nsMsgKeys, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD DeleteMessage(nsMsgKey key, nsIDBChangeListener *instigator, bool commit); \
NS_SCRIPTABLE NS_IMETHOD DeleteHeader(nsIMsgDBHdr *msgHdr, nsIDBChangeListener *instigator, bool commit, bool notify); \
NS_SCRIPTABLE NS_IMETHOD RemoveHeaderMdbRow(nsIMsgDBHdr *msgHdr); \
NS_SCRIPTABLE NS_IMETHOD UndoDelete(nsIMsgDBHdr *msgHdr); \
NS_SCRIPTABLE NS_IMETHOD MarkMarked(nsMsgKey key, bool mark, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD MarkOffline(nsMsgKey key, bool offline, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgKey key, nsMsgLabelValue label); \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(nsMsgKey aKey, const char * aProperty, const char * aValue); \
NS_SCRIPTABLE NS_IMETHOD SetStringPropertyByHdr(nsIMsgDBHdr *msgHdr, const char * aProperty, const char * aValue); \
NS_SCRIPTABLE NS_IMETHOD SetUint32PropertyByHdr(nsIMsgDBHdr *aMsgHdr, const char * aProperty, PRUint32 aValue); \
NS_SCRIPTABLE NS_IMETHOD MarkImapDeleted(nsMsgKey key, bool deleted, nsIDBChangeListener *instigator); \
NS_SCRIPTABLE NS_IMETHOD GetFirstNew(nsMsgKey *aFirstNew); \
NS_SCRIPTABLE NS_IMETHOD GetMsgRetentionSettings(nsIMsgRetentionSettings * *aMsgRetentionSettings); \
NS_SCRIPTABLE NS_IMETHOD SetMsgRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings); \
NS_SCRIPTABLE NS_IMETHOD ApplyRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings, bool aDeleteViaFolder); \
NS_SCRIPTABLE NS_IMETHOD GetMsgDownloadSettings(nsIMsgDownloadSettings * *aMsgDownloadSettings); \
NS_SCRIPTABLE NS_IMETHOD SetMsgDownloadSettings(nsIMsgDownloadSettings *aMsgDownloadSettings); \
NS_SCRIPTABLE NS_IMETHOD HasNew(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ClearNewList(bool notify); \
NS_SCRIPTABLE NS_IMETHOD AddToNewList(nsMsgKey key); \
NS_SCRIPTABLE NS_IMETHOD GetSummaryValid(bool *aSummaryValid); \
NS_SCRIPTABLE NS_IMETHOD SetSummaryValid(bool aSummaryValid); \
NS_SCRIPTABLE NS_IMETHOD StartBatch(void); \
NS_SCRIPTABLE NS_IMETHOD EndBatch(void); \
NS_SCRIPTABLE NS_IMETHOD GetOfflineOpForKey(nsMsgKey messageKey, bool create, nsIMsgOfflineImapOperation * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RemoveOfflineOp(nsIMsgOfflineImapOperation *op); \
NS_SCRIPTABLE NS_IMETHOD EnumerateOfflineOps(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_IMETHOD ListAllOfflineOpIds(nsTArray<nsMsgKey> *offlineOpIds); \
NS_IMETHOD ListAllOfflineDeletes(nsTArray<nsMsgKey> *offlineDeletes); \
NS_SCRIPTABLE NS_IMETHOD ListAllOfflineMsgs(nsIMsgKeyArray *aKeys); \
NS_SCRIPTABLE NS_IMETHOD SetAttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, const char * propertyVal); \
NS_SCRIPTABLE NS_IMETHOD SetUint32AttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, PRUint32 propertyVal); \
NS_SCRIPTABLE NS_IMETHOD SetUint64AttributeOnPendingHdr(nsIMsgDBHdr *aPendingHdr, const char * aProperty, PRUint64 aPropertyVal); \
NS_SCRIPTABLE NS_IMETHOD UpdatePendingAttributes(nsIMsgDBHdr *aNewHdr); \
NS_SCRIPTABLE NS_IMETHOD GetLowWaterArticleNum(nsMsgKey *aLowWaterArticleNum); \
NS_SCRIPTABLE NS_IMETHOD GetHighWaterArticleNum(nsMsgKey *aHighWaterArticleNum); \
NS_SCRIPTABLE NS_IMETHOD GetNextPseudoMsgKey(nsMsgKey *aNextPseudoMsgKey); \
NS_SCRIPTABLE NS_IMETHOD SetNextPseudoMsgKey(nsMsgKey aNextPseudoMsgKey); \
NS_SCRIPTABLE NS_IMETHOD GetNextFakeOfflineMsgKey(nsMsgKey *aNextFakeOfflineMsgKey); \
NS_SCRIPTABLE NS_IMETHOD CreateCollationKey(const nsAString & sourceString, PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CompareCollationKeys(PRUint32 aLen1, PRUint8 *key1, PRUint32 aLen2, PRUint8 *key2, PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetDefaultViewFlags(nsMsgViewFlagsTypeValue *aDefaultViewFlags); \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortType(nsMsgViewSortTypeValue *aDefaultSortType); \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortOrder(nsMsgViewSortOrderValue *aDefaultSortOrder); \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrCacheSize(PRUint32 *aMsgHdrCacheSize); \
NS_SCRIPTABLE NS_IMETHOD SetMsgHdrCacheSize(PRUint32 aMsgHdrCacheSize); \
NS_SCRIPTABLE NS_IMETHOD GetFolderStream(nsIOutputStream * *aFolderStream); \
NS_SCRIPTABLE NS_IMETHOD SetFolderStream(nsIOutputStream *aFolderStream); \
NS_SCRIPTABLE NS_IMETHOD GetNewList(PRUint32 *count NS_OUTPARAM, nsMsgKey **newKeys NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetCachedHits(const char * aSearchFolderUri, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RefreshCache(const char * aSearchFolderUri, PRUint32 aNumKeys, nsMsgKey *aNewHits, PRUint32 *aNumBadHits NS_OUTPARAM, nsMsgKey **aStaleHits NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD UpdateHdrInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool aAdd); \
NS_SCRIPTABLE NS_IMETHOD HdrIsInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDATABASE(_to) \
NS_SCRIPTABLE NS_IMETHOD Open(nsILocalFile *aFolderName, bool aCreate, bool aLeaveInvalidDB) { return _to Open(aFolderName, aCreate, aLeaveInvalidDB); } \
NS_SCRIPTABLE NS_IMETHOD ForceFolderDBClosed(nsIMsgFolder *aFolder) { return _to ForceFolderDBClosed(aFolder); } \
NS_SCRIPTABLE NS_IMETHOD Close(bool aForceCommit) { return _to Close(aForceCommit); } \
NS_SCRIPTABLE NS_IMETHOD Commit(nsMsgDBCommit commitType) { return _to Commit(commitType); } \
NS_SCRIPTABLE NS_IMETHOD ForceClosed(void) { return _to ForceClosed(); } \
NS_SCRIPTABLE NS_IMETHOD ClearCachedHdrs(void) { return _to ClearCachedHdrs(); } \
NS_SCRIPTABLE NS_IMETHOD ResetHdrCacheSize(PRUint32 size) { return _to ResetHdrCacheSize(size); } \
NS_SCRIPTABLE NS_IMETHOD GetDBFolderInfo(nsIDBFolderInfo * *aDBFolderInfo) { return _to GetDBFolderInfo(aDBFolderInfo); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForKey(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetMsgHdrForKey(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForMessageID(const char * messageID, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetMsgHdrForMessageID(messageID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ContainsKey(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to ContainsKey(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewHdr(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to CreateNewHdr(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddNewHdrToDB(nsIMsgDBHdr *newHdr, bool notify) { return _to AddNewHdrToDB(newHdr, notify); } \
NS_SCRIPTABLE NS_IMETHOD CopyHdrFromExistingHdr(nsMsgKey key, nsIMsgDBHdr *existingHdr, bool addHdrToDB, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to CopyHdrFromExistingHdr(key, existingHdr, addHdrToDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ListAllKeys(nsIMsgKeyArray *array) { return _to ListAllKeys(array); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to EnumerateMessages(_retval); } \
NS_SCRIPTABLE NS_IMETHOD ReverseEnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to ReverseEnumerateMessages(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateThreads(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to EnumerateThreads(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFilterEnumerator(nsIArray *searchTerms, bool reverse, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetFilterEnumerator(searchTerms, reverse, _retval); } \
NS_SCRIPTABLE NS_IMETHOD NextMatchingHdrs(nsISimpleEnumerator *enumerator, PRInt32 numHdrsToLookAt, PRInt32 maxResults, nsIMutableArray *matchingHdrs, PRInt32 *numMatches NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to NextMatchingHdrs(enumerator, numHdrsToLookAt, maxResults, matchingHdrs, numMatches, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SyncCounts(void) { return _to SyncCounts(); } \
NS_SCRIPTABLE NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread * *_retval NS_OUTPARAM) { return _to GetThreadContainingMsgHdr(msgHdr, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrRead(nsIMsgDBHdr *msgHdr, bool bRead, nsIDBChangeListener *instigator) { return _to MarkHdrRead(msgHdr, bRead, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrReplied(nsIMsgDBHdr *msgHdr, bool bReplied, nsIDBChangeListener *instigator) { return _to MarkHdrReplied(msgHdr, bReplied, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrMarked(nsIMsgDBHdr *msgHdr, bool mark, nsIDBChangeListener *instigator) { return _to MarkHdrMarked(msgHdr, mark, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrNotNew(nsIMsgDBHdr *aMsgHdr, nsIDBChangeListener *aInstigator) { return _to MarkHdrNotNew(aMsgHdr, aInstigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkMDNNeeded(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) { return _to MarkMDNNeeded(key, bNeeded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsMDNNeeded(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to IsMDNNeeded(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkMDNSent(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) { return _to MarkMDNSent(key, bNeeded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsMDNSent(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to IsMDNSent(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkRead(nsMsgKey key, bool bRead, nsIDBChangeListener *instigator) { return _to MarkRead(key, bRead, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkReplied(nsMsgKey key, bool bReplied, nsIDBChangeListener *instigator) { return _to MarkReplied(key, bReplied, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkForwarded(nsMsgKey key, bool bForwarded, nsIDBChangeListener *instigator) { return _to MarkForwarded(key, bForwarded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(nsMsgKey key, bool bHasAttachments, nsIDBChangeListener *instigator) { return _to MarkHasAttachments(key, bHasAttachments, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadRead(nsIMsgThread *thread, nsIDBChangeListener *instigator, PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) { return _to MarkThreadRead(thread, instigator, aCount, aKeys); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadIgnored(nsIMsgThread *thread, nsMsgKey threadKey, bool bIgnored, nsIDBChangeListener *instigator) { return _to MarkThreadIgnored(thread, threadKey, bIgnored, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadWatched(nsIMsgThread *thread, nsMsgKey threadKey, bool bWatched, nsIDBChangeListener *instigator) { return _to MarkThreadWatched(thread, threadKey, bWatched, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHeaderKilled(nsIMsgDBHdr *msg, bool bIgnored, nsIDBChangeListener *instigator) { return _to MarkHeaderKilled(msg, bIgnored, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsRead(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to IsRead(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsIgnored(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to IsIgnored(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsMarked(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to IsMarked(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD HasAttachments(nsMsgKey key, bool *_retval NS_OUTPARAM) { return _to HasAttachments(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkAllRead(PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) { return _to MarkAllRead(aCount, aKeys); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(PRUint32 aNumKeys, nsMsgKey *nsMsgKeys, nsIDBChangeListener *instigator) { return _to DeleteMessages(aNumKeys, nsMsgKeys, instigator); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessage(nsMsgKey key, nsIDBChangeListener *instigator, bool commit) { return _to DeleteMessage(key, instigator, commit); } \
NS_SCRIPTABLE NS_IMETHOD DeleteHeader(nsIMsgDBHdr *msgHdr, nsIDBChangeListener *instigator, bool commit, bool notify) { return _to DeleteHeader(msgHdr, instigator, commit, notify); } \
NS_SCRIPTABLE NS_IMETHOD RemoveHeaderMdbRow(nsIMsgDBHdr *msgHdr) { return _to RemoveHeaderMdbRow(msgHdr); } \
NS_SCRIPTABLE NS_IMETHOD UndoDelete(nsIMsgDBHdr *msgHdr) { return _to UndoDelete(msgHdr); } \
NS_SCRIPTABLE NS_IMETHOD MarkMarked(nsMsgKey key, bool mark, nsIDBChangeListener *instigator) { return _to MarkMarked(key, mark, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkOffline(nsMsgKey key, bool offline, nsIDBChangeListener *instigator) { return _to MarkOffline(key, offline, instigator); } \
NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgKey key, nsMsgLabelValue label) { return _to SetLabel(key, label); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(nsMsgKey aKey, const char * aProperty, const char * aValue) { return _to SetStringProperty(aKey, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetStringPropertyByHdr(nsIMsgDBHdr *msgHdr, const char * aProperty, const char * aValue) { return _to SetStringPropertyByHdr(msgHdr, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetUint32PropertyByHdr(nsIMsgDBHdr *aMsgHdr, const char * aProperty, PRUint32 aValue) { return _to SetUint32PropertyByHdr(aMsgHdr, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD MarkImapDeleted(nsMsgKey key, bool deleted, nsIDBChangeListener *instigator) { return _to MarkImapDeleted(key, deleted, instigator); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstNew(nsMsgKey *aFirstNew) { return _to GetFirstNew(aFirstNew); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgRetentionSettings(nsIMsgRetentionSettings * *aMsgRetentionSettings) { return _to GetMsgRetentionSettings(aMsgRetentionSettings); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings) { return _to SetMsgRetentionSettings(aMsgRetentionSettings); } \
NS_SCRIPTABLE NS_IMETHOD ApplyRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings, bool aDeleteViaFolder) { return _to ApplyRetentionSettings(aMsgRetentionSettings, aDeleteViaFolder); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgDownloadSettings(nsIMsgDownloadSettings * *aMsgDownloadSettings) { return _to GetMsgDownloadSettings(aMsgDownloadSettings); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgDownloadSettings(nsIMsgDownloadSettings *aMsgDownloadSettings) { return _to SetMsgDownloadSettings(aMsgDownloadSettings); } \
NS_SCRIPTABLE NS_IMETHOD HasNew(bool *_retval NS_OUTPARAM) { return _to HasNew(_retval); } \
NS_SCRIPTABLE NS_IMETHOD ClearNewList(bool notify) { return _to ClearNewList(notify); } \
NS_SCRIPTABLE NS_IMETHOD AddToNewList(nsMsgKey key) { return _to AddToNewList(key); } \
NS_SCRIPTABLE NS_IMETHOD GetSummaryValid(bool *aSummaryValid) { return _to GetSummaryValid(aSummaryValid); } \
NS_SCRIPTABLE NS_IMETHOD SetSummaryValid(bool aSummaryValid) { return _to SetSummaryValid(aSummaryValid); } \
NS_SCRIPTABLE NS_IMETHOD StartBatch(void) { return _to StartBatch(); } \
NS_SCRIPTABLE NS_IMETHOD EndBatch(void) { return _to EndBatch(); } \
NS_SCRIPTABLE NS_IMETHOD GetOfflineOpForKey(nsMsgKey messageKey, bool create, nsIMsgOfflineImapOperation * *_retval NS_OUTPARAM) { return _to GetOfflineOpForKey(messageKey, create, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveOfflineOp(nsIMsgOfflineImapOperation *op) { return _to RemoveOfflineOp(op); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateOfflineOps(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to EnumerateOfflineOps(_retval); } \
NS_IMETHOD ListAllOfflineOpIds(nsTArray<nsMsgKey> *offlineOpIds) { return _to ListAllOfflineOpIds(offlineOpIds); } \
NS_IMETHOD ListAllOfflineDeletes(nsTArray<nsMsgKey> *offlineDeletes) { return _to ListAllOfflineDeletes(offlineDeletes); } \
NS_SCRIPTABLE NS_IMETHOD ListAllOfflineMsgs(nsIMsgKeyArray *aKeys) { return _to ListAllOfflineMsgs(aKeys); } \
NS_SCRIPTABLE NS_IMETHOD SetAttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, const char * propertyVal) { return _to SetAttributeOnPendingHdr(pendingHdr, property, propertyVal); } \
NS_SCRIPTABLE NS_IMETHOD SetUint32AttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, PRUint32 propertyVal) { return _to SetUint32AttributeOnPendingHdr(pendingHdr, property, propertyVal); } \
NS_SCRIPTABLE NS_IMETHOD SetUint64AttributeOnPendingHdr(nsIMsgDBHdr *aPendingHdr, const char * aProperty, PRUint64 aPropertyVal) { return _to SetUint64AttributeOnPendingHdr(aPendingHdr, aProperty, aPropertyVal); } \
NS_SCRIPTABLE NS_IMETHOD UpdatePendingAttributes(nsIMsgDBHdr *aNewHdr) { return _to UpdatePendingAttributes(aNewHdr); } \
NS_SCRIPTABLE NS_IMETHOD GetLowWaterArticleNum(nsMsgKey *aLowWaterArticleNum) { return _to GetLowWaterArticleNum(aLowWaterArticleNum); } \
NS_SCRIPTABLE NS_IMETHOD GetHighWaterArticleNum(nsMsgKey *aHighWaterArticleNum) { return _to GetHighWaterArticleNum(aHighWaterArticleNum); } \
NS_SCRIPTABLE NS_IMETHOD GetNextPseudoMsgKey(nsMsgKey *aNextPseudoMsgKey) { return _to GetNextPseudoMsgKey(aNextPseudoMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD SetNextPseudoMsgKey(nsMsgKey aNextPseudoMsgKey) { return _to SetNextPseudoMsgKey(aNextPseudoMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD GetNextFakeOfflineMsgKey(nsMsgKey *aNextFakeOfflineMsgKey) { return _to GetNextFakeOfflineMsgKey(aNextFakeOfflineMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD CreateCollationKey(const nsAString & sourceString, PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return _to CreateCollationKey(sourceString, aCount, aKey); } \
NS_SCRIPTABLE NS_IMETHOD CompareCollationKeys(PRUint32 aLen1, PRUint8 *key1, PRUint32 aLen2, PRUint8 *key2, PRInt32 *_retval NS_OUTPARAM) { return _to CompareCollationKeys(aLen1, key1, aLen2, key2, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultViewFlags(nsMsgViewFlagsTypeValue *aDefaultViewFlags) { return _to GetDefaultViewFlags(aDefaultViewFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortType(nsMsgViewSortTypeValue *aDefaultSortType) { return _to GetDefaultSortType(aDefaultSortType); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortOrder(nsMsgViewSortOrderValue *aDefaultSortOrder) { return _to GetDefaultSortOrder(aDefaultSortOrder); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrCacheSize(PRUint32 *aMsgHdrCacheSize) { return _to GetMsgHdrCacheSize(aMsgHdrCacheSize); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgHdrCacheSize(PRUint32 aMsgHdrCacheSize) { return _to SetMsgHdrCacheSize(aMsgHdrCacheSize); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderStream(nsIOutputStream * *aFolderStream) { return _to GetFolderStream(aFolderStream); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderStream(nsIOutputStream *aFolderStream) { return _to SetFolderStream(aFolderStream); } \
NS_SCRIPTABLE NS_IMETHOD GetNewList(PRUint32 *count NS_OUTPARAM, nsMsgKey **newKeys NS_OUTPARAM) { return _to GetNewList(count, newKeys); } \
NS_SCRIPTABLE NS_IMETHOD GetCachedHits(const char * aSearchFolderUri, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetCachedHits(aSearchFolderUri, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RefreshCache(const char * aSearchFolderUri, PRUint32 aNumKeys, nsMsgKey *aNewHits, PRUint32 *aNumBadHits NS_OUTPARAM, nsMsgKey **aStaleHits NS_OUTPARAM) { return _to RefreshCache(aSearchFolderUri, aNumKeys, aNewHits, aNumBadHits, aStaleHits); } \
NS_SCRIPTABLE NS_IMETHOD UpdateHdrInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool aAdd) { return _to UpdateHdrInCache(aSearchFolderUri, aHdr, aAdd); } \
NS_SCRIPTABLE NS_IMETHOD HdrIsInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool *_retval NS_OUTPARAM) { return _to HdrIsInCache(aSearchFolderUri, aHdr, _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_NSIMSGDATABASE(_to) \
NS_SCRIPTABLE NS_IMETHOD Open(nsILocalFile *aFolderName, bool aCreate, bool aLeaveInvalidDB) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aFolderName, aCreate, aLeaveInvalidDB); } \
NS_SCRIPTABLE NS_IMETHOD ForceFolderDBClosed(nsIMsgFolder *aFolder) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceFolderDBClosed(aFolder); } \
NS_SCRIPTABLE NS_IMETHOD Close(bool aForceCommit) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(aForceCommit); } \
NS_SCRIPTABLE NS_IMETHOD Commit(nsMsgDBCommit commitType) { return !_to ? NS_ERROR_NULL_POINTER : _to->Commit(commitType); } \
NS_SCRIPTABLE NS_IMETHOD ForceClosed(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceClosed(); } \
NS_SCRIPTABLE NS_IMETHOD ClearCachedHdrs(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearCachedHdrs(); } \
NS_SCRIPTABLE NS_IMETHOD ResetHdrCacheSize(PRUint32 size) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetHdrCacheSize(size); } \
NS_SCRIPTABLE NS_IMETHOD GetDBFolderInfo(nsIDBFolderInfo * *aDBFolderInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBFolderInfo(aDBFolderInfo); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForKey(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrForKey(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrForMessageID(const char * messageID, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrForMessageID(messageID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ContainsKey(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsKey(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewHdr(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewHdr(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddNewHdrToDB(nsIMsgDBHdr *newHdr, bool notify) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNewHdrToDB(newHdr, notify); } \
NS_SCRIPTABLE NS_IMETHOD CopyHdrFromExistingHdr(nsMsgKey key, nsIMsgDBHdr *existingHdr, bool addHdrToDB, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyHdrFromExistingHdr(key, existingHdr, addHdrToDB, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ListAllKeys(nsIMsgKeyArray *array) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListAllKeys(array); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateMessages(_retval); } \
NS_SCRIPTABLE NS_IMETHOD ReverseEnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReverseEnumerateMessages(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateThreads(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateThreads(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFilterEnumerator(nsIArray *searchTerms, bool reverse, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilterEnumerator(searchTerms, reverse, _retval); } \
NS_SCRIPTABLE NS_IMETHOD NextMatchingHdrs(nsISimpleEnumerator *enumerator, PRInt32 numHdrsToLookAt, PRInt32 maxResults, nsIMutableArray *matchingHdrs, PRInt32 *numMatches NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NextMatchingHdrs(enumerator, numHdrsToLookAt, maxResults, matchingHdrs, numMatches, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SyncCounts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncCounts(); } \
NS_SCRIPTABLE NS_IMETHOD GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadContainingMsgHdr(msgHdr, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrRead(nsIMsgDBHdr *msgHdr, bool bRead, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHdrRead(msgHdr, bRead, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrReplied(nsIMsgDBHdr *msgHdr, bool bReplied, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHdrReplied(msgHdr, bReplied, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrMarked(nsIMsgDBHdr *msgHdr, bool mark, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHdrMarked(msgHdr, mark, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHdrNotNew(nsIMsgDBHdr *aMsgHdr, nsIDBChangeListener *aInstigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHdrNotNew(aMsgHdr, aInstigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkMDNNeeded(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkMDNNeeded(key, bNeeded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsMDNNeeded(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsMDNNeeded(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkMDNSent(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkMDNSent(key, bNeeded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsMDNSent(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsMDNSent(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkRead(nsMsgKey key, bool bRead, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkRead(key, bRead, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkReplied(nsMsgKey key, bool bReplied, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkReplied(key, bReplied, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkForwarded(nsMsgKey key, bool bForwarded, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkForwarded(key, bForwarded, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(nsMsgKey key, bool bHasAttachments, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHasAttachments(key, bHasAttachments, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadRead(nsIMsgThread *thread, nsIDBChangeListener *instigator, PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkThreadRead(thread, instigator, aCount, aKeys); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadIgnored(nsIMsgThread *thread, nsMsgKey threadKey, bool bIgnored, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkThreadIgnored(thread, threadKey, bIgnored, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkThreadWatched(nsIMsgThread *thread, nsMsgKey threadKey, bool bWatched, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkThreadWatched(thread, threadKey, bWatched, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkHeaderKilled(nsIMsgDBHdr *msg, bool bIgnored, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHeaderKilled(msg, bIgnored, instigator); } \
NS_SCRIPTABLE NS_IMETHOD IsRead(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRead(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsIgnored(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsIgnored(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD IsMarked(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsMarked(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD HasAttachments(nsMsgKey key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAttachments(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MarkAllRead(PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAllRead(aCount, aKeys); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessages(PRUint32 aNumKeys, nsMsgKey *nsMsgKeys, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessages(aNumKeys, nsMsgKeys, instigator); } \
NS_SCRIPTABLE NS_IMETHOD DeleteMessage(nsMsgKey key, nsIDBChangeListener *instigator, bool commit) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessage(key, instigator, commit); } \
NS_SCRIPTABLE NS_IMETHOD DeleteHeader(nsIMsgDBHdr *msgHdr, nsIDBChangeListener *instigator, bool commit, bool notify) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteHeader(msgHdr, instigator, commit, notify); } \
NS_SCRIPTABLE NS_IMETHOD RemoveHeaderMdbRow(nsIMsgDBHdr *msgHdr) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveHeaderMdbRow(msgHdr); } \
NS_SCRIPTABLE NS_IMETHOD UndoDelete(nsIMsgDBHdr *msgHdr) { return !_to ? NS_ERROR_NULL_POINTER : _to->UndoDelete(msgHdr); } \
NS_SCRIPTABLE NS_IMETHOD MarkMarked(nsMsgKey key, bool mark, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkMarked(key, mark, instigator); } \
NS_SCRIPTABLE NS_IMETHOD MarkOffline(nsMsgKey key, bool offline, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkOffline(key, offline, instigator); } \
NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgKey key, nsMsgLabelValue label) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(key, label); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(nsMsgKey aKey, const char * aProperty, const char * aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(aKey, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetStringPropertyByHdr(nsIMsgDBHdr *msgHdr, const char * aProperty, const char * aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringPropertyByHdr(msgHdr, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetUint32PropertyByHdr(nsIMsgDBHdr *aMsgHdr, const char * aProperty, PRUint32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUint32PropertyByHdr(aMsgHdr, aProperty, aValue); } \
NS_SCRIPTABLE NS_IMETHOD MarkImapDeleted(nsMsgKey key, bool deleted, nsIDBChangeListener *instigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkImapDeleted(key, deleted, instigator); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstNew(nsMsgKey *aFirstNew) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstNew(aFirstNew); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgRetentionSettings(nsIMsgRetentionSettings * *aMsgRetentionSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgRetentionSettings(aMsgRetentionSettings); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgRetentionSettings(aMsgRetentionSettings); } \
NS_SCRIPTABLE NS_IMETHOD ApplyRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings, bool aDeleteViaFolder) { return !_to ? NS_ERROR_NULL_POINTER : _to->ApplyRetentionSettings(aMsgRetentionSettings, aDeleteViaFolder); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgDownloadSettings(nsIMsgDownloadSettings * *aMsgDownloadSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgDownloadSettings(aMsgDownloadSettings); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgDownloadSettings(nsIMsgDownloadSettings *aMsgDownloadSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgDownloadSettings(aMsgDownloadSettings); } \
NS_SCRIPTABLE NS_IMETHOD HasNew(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasNew(_retval); } \
NS_SCRIPTABLE NS_IMETHOD ClearNewList(bool notify) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearNewList(notify); } \
NS_SCRIPTABLE NS_IMETHOD AddToNewList(nsMsgKey key) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddToNewList(key); } \
NS_SCRIPTABLE NS_IMETHOD GetSummaryValid(bool *aSummaryValid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSummaryValid(aSummaryValid); } \
NS_SCRIPTABLE NS_IMETHOD SetSummaryValid(bool aSummaryValid) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSummaryValid(aSummaryValid); } \
NS_SCRIPTABLE NS_IMETHOD StartBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBatch(); } \
NS_SCRIPTABLE NS_IMETHOD EndBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatch(); } \
NS_SCRIPTABLE NS_IMETHOD GetOfflineOpForKey(nsMsgKey messageKey, bool create, nsIMsgOfflineImapOperation * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOfflineOpForKey(messageKey, create, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveOfflineOp(nsIMsgOfflineImapOperation *op) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveOfflineOp(op); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateOfflineOps(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateOfflineOps(_retval); } \
NS_IMETHOD ListAllOfflineOpIds(nsTArray<nsMsgKey> *offlineOpIds) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListAllOfflineOpIds(offlineOpIds); } \
NS_IMETHOD ListAllOfflineDeletes(nsTArray<nsMsgKey> *offlineDeletes) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListAllOfflineDeletes(offlineDeletes); } \
NS_SCRIPTABLE NS_IMETHOD ListAllOfflineMsgs(nsIMsgKeyArray *aKeys) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListAllOfflineMsgs(aKeys); } \
NS_SCRIPTABLE NS_IMETHOD SetAttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, const char * propertyVal) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributeOnPendingHdr(pendingHdr, property, propertyVal); } \
NS_SCRIPTABLE NS_IMETHOD SetUint32AttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, PRUint32 propertyVal) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUint32AttributeOnPendingHdr(pendingHdr, property, propertyVal); } \
NS_SCRIPTABLE NS_IMETHOD SetUint64AttributeOnPendingHdr(nsIMsgDBHdr *aPendingHdr, const char * aProperty, PRUint64 aPropertyVal) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUint64AttributeOnPendingHdr(aPendingHdr, aProperty, aPropertyVal); } \
NS_SCRIPTABLE NS_IMETHOD UpdatePendingAttributes(nsIMsgDBHdr *aNewHdr) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdatePendingAttributes(aNewHdr); } \
NS_SCRIPTABLE NS_IMETHOD GetLowWaterArticleNum(nsMsgKey *aLowWaterArticleNum) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLowWaterArticleNum(aLowWaterArticleNum); } \
NS_SCRIPTABLE NS_IMETHOD GetHighWaterArticleNum(nsMsgKey *aHighWaterArticleNum) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighWaterArticleNum(aHighWaterArticleNum); } \
NS_SCRIPTABLE NS_IMETHOD GetNextPseudoMsgKey(nsMsgKey *aNextPseudoMsgKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextPseudoMsgKey(aNextPseudoMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD SetNextPseudoMsgKey(nsMsgKey aNextPseudoMsgKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNextPseudoMsgKey(aNextPseudoMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD GetNextFakeOfflineMsgKey(nsMsgKey *aNextFakeOfflineMsgKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextFakeOfflineMsgKey(aNextFakeOfflineMsgKey); } \
NS_SCRIPTABLE NS_IMETHOD CreateCollationKey(const nsAString & sourceString, PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCollationKey(sourceString, aCount, aKey); } \
NS_SCRIPTABLE NS_IMETHOD CompareCollationKeys(PRUint32 aLen1, PRUint8 *key1, PRUint32 aLen2, PRUint8 *key2, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareCollationKeys(aLen1, key1, aLen2, key2, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultViewFlags(nsMsgViewFlagsTypeValue *aDefaultViewFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultViewFlags(aDefaultViewFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortType(nsMsgViewSortTypeValue *aDefaultSortType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSortType(aDefaultSortType); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultSortOrder(nsMsgViewSortOrderValue *aDefaultSortOrder) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSortOrder(aDefaultSortOrder); } \
NS_SCRIPTABLE NS_IMETHOD GetMsgHdrCacheSize(PRUint32 *aMsgHdrCacheSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMsgHdrCacheSize(aMsgHdrCacheSize); } \
NS_SCRIPTABLE NS_IMETHOD SetMsgHdrCacheSize(PRUint32 aMsgHdrCacheSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMsgHdrCacheSize(aMsgHdrCacheSize); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderStream(nsIOutputStream * *aFolderStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderStream(aFolderStream); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderStream(nsIOutputStream *aFolderStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderStream(aFolderStream); } \
NS_SCRIPTABLE NS_IMETHOD GetNewList(PRUint32 *count NS_OUTPARAM, nsMsgKey **newKeys NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewList(count, newKeys); } \
NS_SCRIPTABLE NS_IMETHOD GetCachedHits(const char * aSearchFolderUri, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedHits(aSearchFolderUri, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RefreshCache(const char * aSearchFolderUri, PRUint32 aNumKeys, nsMsgKey *aNewHits, PRUint32 *aNumBadHits NS_OUTPARAM, nsMsgKey **aStaleHits NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshCache(aSearchFolderUri, aNumKeys, aNewHits, aNumBadHits, aStaleHits); } \
NS_SCRIPTABLE NS_IMETHOD UpdateHdrInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool aAdd) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateHdrInCache(aSearchFolderUri, aHdr, aAdd); } \
NS_SCRIPTABLE NS_IMETHOD HdrIsInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HdrIsInCache(aSearchFolderUri, aHdr, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgDatabase : public nsIMsgDatabase
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGDATABASE
nsMsgDatabase();
private:
~nsMsgDatabase();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDatabase, nsIMsgDatabase)
nsMsgDatabase::nsMsgDatabase()
{
/* member initializers and constructor code */
}
nsMsgDatabase::~nsMsgDatabase()
{
/* destructor code */
}
/* void Open (in nsILocalFile aFolderName, in boolean aCreate, in boolean aLeaveInvalidDB); */
NS_IMETHODIMP nsMsgDatabase::Open(nsILocalFile *aFolderName, bool aCreate, bool aLeaveInvalidDB)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forceFolderDBClosed (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsMsgDatabase::ForceFolderDBClosed(nsIMsgFolder *aFolder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Close (in boolean aForceCommit); */
NS_IMETHODIMP nsMsgDatabase::Close(bool aForceCommit)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Commit (in nsMsgDBCommit commitType); */
NS_IMETHODIMP nsMsgDatabase::Commit(nsMsgDBCommit commitType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ForceClosed (); */
NS_IMETHODIMP nsMsgDatabase::ForceClosed()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearCachedHdrs (); */
NS_IMETHODIMP nsMsgDatabase::ClearCachedHdrs()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resetHdrCacheSize (in unsigned long size); */
NS_IMETHODIMP nsMsgDatabase::ResetHdrCacheSize(PRUint32 size)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDBFolderInfo dBFolderInfo; */
NS_IMETHODIMP nsMsgDatabase::GetDBFolderInfo(nsIDBFolderInfo * *aDBFolderInfo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr GetMsgHdrForKey (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::GetMsgHdrForKey(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr getMsgHdrForMessageID (in string messageID); */
NS_IMETHODIMP nsMsgDatabase::GetMsgHdrForMessageID(const char * messageID, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean ContainsKey (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::ContainsKey(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr CreateNewHdr (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::CreateNewHdr(nsMsgKey key, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddNewHdrToDB (in nsIMsgDBHdr newHdr, in boolean notify); */
NS_IMETHODIMP nsMsgDatabase::AddNewHdrToDB(nsIMsgDBHdr *newHdr, bool notify)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr CopyHdrFromExistingHdr (in nsMsgKey key, in nsIMsgDBHdr existingHdr, in boolean addHdrToDB); */
NS_IMETHODIMP nsMsgDatabase::CopyHdrFromExistingHdr(nsMsgKey key, nsIMsgDBHdr *existingHdr, bool addHdrToDB, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ListAllKeys (in nsIMsgKeyArray array); */
NS_IMETHODIMP nsMsgDatabase::ListAllKeys(nsIMsgKeyArray *array)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator EnumerateMessages (); */
NS_IMETHODIMP nsMsgDatabase::EnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator ReverseEnumerateMessages (); */
NS_IMETHODIMP nsMsgDatabase::ReverseEnumerateMessages(nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator EnumerateThreads (); */
NS_IMETHODIMP nsMsgDatabase::EnumerateThreads(nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getFilterEnumerator (in nsIArray searchTerms, [optional] in boolean reverse); */
NS_IMETHODIMP nsMsgDatabase::GetFilterEnumerator(nsIArray *searchTerms, bool reverse, nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean nextMatchingHdrs (in nsISimpleEnumerator enumerator, in long numHdrsToLookAt, in long maxResults, in nsIMutableArray matchingHdrs, out long numMatches); */
NS_IMETHODIMP nsMsgDatabase::NextMatchingHdrs(nsISimpleEnumerator *enumerator, PRInt32 numHdrsToLookAt, PRInt32 maxResults, nsIMutableArray *matchingHdrs, PRInt32 *numMatches NS_OUTPARAM, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void syncCounts (); */
NS_IMETHODIMP nsMsgDatabase::SyncCounts()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgThread GetThreadContainingMsgHdr (in nsIMsgDBHdr msgHdr); */
NS_IMETHODIMP nsMsgDatabase::GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHdrRead (in nsIMsgDBHdr msgHdr, in boolean bRead, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHdrRead(nsIMsgDBHdr *msgHdr, bool bRead, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHdrReplied (in nsIMsgDBHdr msgHdr, in boolean bReplied, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHdrReplied(nsIMsgDBHdr *msgHdr, bool bReplied, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHdrMarked (in nsIMsgDBHdr msgHdr, in boolean mark, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHdrMarked(nsIMsgDBHdr *msgHdr, bool mark, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHdrNotNew (in nsIMsgDBHdr aMsgHdr, in nsIDBChangeListener aInstigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHdrNotNew(nsIMsgDBHdr *aMsgHdr, nsIDBChangeListener *aInstigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkMDNNeeded (in nsMsgKey key, in boolean bNeeded, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkMDNNeeded(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsMDNNeeded (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::IsMDNNeeded(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkMDNSent (in nsMsgKey key, in boolean bNeeded, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkMDNSent(nsMsgKey key, bool bNeeded, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsMDNSent (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::IsMDNSent(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkRead (in nsMsgKey key, in boolean bRead, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkRead(nsMsgKey key, bool bRead, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkReplied (in nsMsgKey key, in boolean bReplied, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkReplied(nsMsgKey key, bool bReplied, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkForwarded (in nsMsgKey key, in boolean bForwarded, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkForwarded(nsMsgKey key, bool bForwarded, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHasAttachments (in nsMsgKey key, in boolean bHasAttachments, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHasAttachments(nsMsgKey key, bool bHasAttachments, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkThreadRead (in nsIMsgThread thread, in nsIDBChangeListener instigator, out unsigned long aCount, [array, size_is (aCount)] out nsMsgKey aKeys); */
NS_IMETHODIMP nsMsgDatabase::MarkThreadRead(nsIMsgThread *thread, nsIDBChangeListener *instigator, PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkThreadIgnored (in nsIMsgThread thread, in nsMsgKey threadKey, in boolean bIgnored, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkThreadIgnored(nsIMsgThread *thread, nsMsgKey threadKey, bool bIgnored, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkThreadWatched (in nsIMsgThread thread, in nsMsgKey threadKey, in boolean bWatched, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkThreadWatched(nsIMsgThread *thread, nsMsgKey threadKey, bool bWatched, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkHeaderKilled (in nsIMsgDBHdr msg, in boolean bIgnored, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkHeaderKilled(nsIMsgDBHdr *msg, bool bIgnored, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsRead (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::IsRead(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsIgnored (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::IsIgnored(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsMarked (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::IsMarked(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean HasAttachments (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::HasAttachments(nsMsgKey key, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkAllRead (out unsigned long aCount, [array, size_is (aCount)] out nsMsgKey aKeys); */
NS_IMETHODIMP nsMsgDatabase::MarkAllRead(PRUint32 *aCount NS_OUTPARAM, nsMsgKey **aKeys NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteMessages (in unsigned long aNumKeys, [array, size_is (aNumKeys)] in nsMsgKey nsMsgKeys, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::DeleteMessages(PRUint32 aNumKeys, nsMsgKey *nsMsgKeys, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void DeleteMessage (in nsMsgKey key, in nsIDBChangeListener instigator, in boolean commit); */
NS_IMETHODIMP nsMsgDatabase::DeleteMessage(nsMsgKey key, nsIDBChangeListener *instigator, bool commit)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void DeleteHeader (in nsIMsgDBHdr msgHdr, in nsIDBChangeListener instigator, in boolean commit, in boolean notify); */
NS_IMETHODIMP nsMsgDatabase::DeleteHeader(nsIMsgDBHdr *msgHdr, nsIDBChangeListener *instigator, bool commit, bool notify)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RemoveHeaderMdbRow (in nsIMsgDBHdr msgHdr); */
NS_IMETHODIMP nsMsgDatabase::RemoveHeaderMdbRow(nsIMsgDBHdr *msgHdr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void UndoDelete (in nsIMsgDBHdr msgHdr); */
NS_IMETHODIMP nsMsgDatabase::UndoDelete(nsIMsgDBHdr *msgHdr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkMarked (in nsMsgKey key, in boolean mark, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkMarked(nsMsgKey key, bool mark, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkOffline (in nsMsgKey key, in boolean offline, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkOffline(nsMsgKey key, bool offline, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void SetLabel (in nsMsgKey key, in nsMsgLabelValue label); */
NS_IMETHODIMP nsMsgDatabase::SetLabel(nsMsgKey key, nsMsgLabelValue label)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setStringProperty (in nsMsgKey aKey, in string aProperty, in string aValue); */
NS_IMETHODIMP nsMsgDatabase::SetStringProperty(nsMsgKey aKey, const char * aProperty, const char * aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setStringPropertyByHdr (in nsIMsgDBHdr msgHdr, in string aProperty, in string aValue); */
NS_IMETHODIMP nsMsgDatabase::SetStringPropertyByHdr(nsIMsgDBHdr *msgHdr, const char * aProperty, const char * aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setUint32PropertyByHdr (in nsIMsgDBHdr aMsgHdr, in string aProperty, in unsigned long aValue); */
NS_IMETHODIMP nsMsgDatabase::SetUint32PropertyByHdr(nsIMsgDBHdr *aMsgHdr, const char * aProperty, PRUint32 aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void MarkImapDeleted (in nsMsgKey key, in boolean deleted, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsMsgDatabase::MarkImapDeleted(nsMsgKey key, bool deleted, nsIDBChangeListener *instigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgKey FirstNew; */
NS_IMETHODIMP nsMsgDatabase::GetFirstNew(nsMsgKey *aFirstNew)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMsgRetentionSettings msgRetentionSettings; */
NS_IMETHODIMP nsMsgDatabase::GetMsgRetentionSettings(nsIMsgRetentionSettings * *aMsgRetentionSettings)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetMsgRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void applyRetentionSettings (in nsIMsgRetentionSettings aMsgRetentionSettings, in boolean aDeleteViaFolder); */
NS_IMETHODIMP nsMsgDatabase::ApplyRetentionSettings(nsIMsgRetentionSettings *aMsgRetentionSettings, bool aDeleteViaFolder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMsgDownloadSettings msgDownloadSettings; */
NS_IMETHODIMP nsMsgDatabase::GetMsgDownloadSettings(nsIMsgDownloadSettings * *aMsgDownloadSettings)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetMsgDownloadSettings(nsIMsgDownloadSettings *aMsgDownloadSettings)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean HasNew (); */
NS_IMETHODIMP nsMsgDatabase::HasNew(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ClearNewList (in boolean notify); */
NS_IMETHODIMP nsMsgDatabase::ClearNewList(bool notify)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddToNewList (in nsMsgKey key); */
NS_IMETHODIMP nsMsgDatabase::AddToNewList(nsMsgKey key)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean summaryValid; */
NS_IMETHODIMP nsMsgDatabase::GetSummaryValid(bool *aSummaryValid)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetSummaryValid(bool aSummaryValid)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void StartBatch (); */
NS_IMETHODIMP nsMsgDatabase::StartBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void EndBatch (); */
NS_IMETHODIMP nsMsgDatabase::EndBatch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgOfflineImapOperation GetOfflineOpForKey (in nsMsgKey messageKey, in boolean create); */
NS_IMETHODIMP nsMsgDatabase::GetOfflineOpForKey(nsMsgKey messageKey, bool create, nsIMsgOfflineImapOperation * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RemoveOfflineOp (in nsIMsgOfflineImapOperation op); */
NS_IMETHODIMP nsMsgDatabase::RemoveOfflineOp(nsIMsgOfflineImapOperation *op)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator EnumerateOfflineOps (); */
NS_IMETHODIMP nsMsgDatabase::EnumerateOfflineOps(nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void ListAllOfflineOpIds (in nsMsgKeyArrayPtr offlineOpIds); */
NS_IMETHODIMP nsMsgDatabase::ListAllOfflineOpIds(nsTArray<nsMsgKey> *offlineOpIds)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void ListAllOfflineDeletes (in nsMsgKeyArrayPtr offlineDeletes); */
NS_IMETHODIMP nsMsgDatabase::ListAllOfflineDeletes(nsTArray<nsMsgKey> *offlineDeletes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ListAllOfflineMsgs (in nsIMsgKeyArray aKeys); */
NS_IMETHODIMP nsMsgDatabase::ListAllOfflineMsgs(nsIMsgKeyArray *aKeys)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAttributeOnPendingHdr (in nsIMsgDBHdr pendingHdr, in string property, in string propertyVal); */
NS_IMETHODIMP nsMsgDatabase::SetAttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, const char * propertyVal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setUint32AttributeOnPendingHdr (in nsIMsgDBHdr pendingHdr, in string property, in unsigned long propertyVal); */
NS_IMETHODIMP nsMsgDatabase::SetUint32AttributeOnPendingHdr(nsIMsgDBHdr *pendingHdr, const char * property, PRUint32 propertyVal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setUint64AttributeOnPendingHdr (in nsIMsgDBHdr aPendingHdr, in string aProperty, in unsigned long long aPropertyVal); */
NS_IMETHODIMP nsMsgDatabase::SetUint64AttributeOnPendingHdr(nsIMsgDBHdr *aPendingHdr, const char * aProperty, PRUint64 aPropertyVal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void updatePendingAttributes (in nsIMsgDBHdr aNewHdr); */
NS_IMETHODIMP nsMsgDatabase::UpdatePendingAttributes(nsIMsgDBHdr *aNewHdr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgKey lowWaterArticleNum; */
NS_IMETHODIMP nsMsgDatabase::GetLowWaterArticleNum(nsMsgKey *aLowWaterArticleNum)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgKey highWaterArticleNum; */
NS_IMETHODIMP nsMsgDatabase::GetHighWaterArticleNum(nsMsgKey *aHighWaterArticleNum)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsMsgKey nextPseudoMsgKey; */
NS_IMETHODIMP nsMsgDatabase::GetNextPseudoMsgKey(nsMsgKey *aNextPseudoMsgKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetNextPseudoMsgKey(nsMsgKey aNextPseudoMsgKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgKey nextFakeOfflineMsgKey; */
NS_IMETHODIMP nsMsgDatabase::GetNextFakeOfflineMsgKey(nsMsgKey *aNextFakeOfflineMsgKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void createCollationKey (in AString sourceString, out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
NS_IMETHODIMP nsMsgDatabase::CreateCollationKey(const nsAString & sourceString, PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long compareCollationKeys (in unsigned long aLen1, [array, size_is (aLen1)] in octet key1, in unsigned long aLen2, [array, size_is (aLen2)] in octet key2); */
NS_IMETHODIMP nsMsgDatabase::CompareCollationKeys(PRUint32 aLen1, PRUint8 *key1, PRUint32 aLen2, PRUint8 *key2, PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgViewFlagsTypeValue defaultViewFlags; */
NS_IMETHODIMP nsMsgDatabase::GetDefaultViewFlags(nsMsgViewFlagsTypeValue *aDefaultViewFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgViewSortTypeValue defaultSortType; */
NS_IMETHODIMP nsMsgDatabase::GetDefaultSortType(nsMsgViewSortTypeValue *aDefaultSortType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsMsgViewSortOrderValue defaultSortOrder; */
NS_IMETHODIMP nsMsgDatabase::GetDefaultSortOrder(nsMsgViewSortOrderValue *aDefaultSortOrder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long msgHdrCacheSize; */
NS_IMETHODIMP nsMsgDatabase::GetMsgHdrCacheSize(PRUint32 *aMsgHdrCacheSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetMsgHdrCacheSize(PRUint32 aMsgHdrCacheSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIOutputStream folderStream; */
NS_IMETHODIMP nsMsgDatabase::GetFolderStream(nsIOutputStream * *aFolderStream)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDatabase::SetFolderStream(nsIOutputStream *aFolderStream)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getNewList (out unsigned long count, [array, size_is (count)] out nsMsgKey newKeys); */
NS_IMETHODIMP nsMsgDatabase::GetNewList(PRUint32 *count NS_OUTPARAM, nsMsgKey **newKeys NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getCachedHits (in string aSearchFolderUri); */
NS_IMETHODIMP nsMsgDatabase::GetCachedHits(const char * aSearchFolderUri, nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void refreshCache (in string aSearchFolderUri, in unsigned long aNumKeys, [array, size_is (aNumKeys)] in nsMsgKey aNewHits, out unsigned long aNumBadHits, [array, size_is (aNumBadHits)] out nsMsgKey aStaleHits); */
NS_IMETHODIMP nsMsgDatabase::RefreshCache(const char * aSearchFolderUri, PRUint32 aNumKeys, nsMsgKey *aNewHits, PRUint32 *aNumBadHits NS_OUTPARAM, nsMsgKey **aStaleHits NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void updateHdrInCache (in string aSearchFolderUri, in nsIMsgDBHdr aHdr, in boolean aAdd); */
NS_IMETHODIMP nsMsgDatabase::UpdateHdrInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool aAdd)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hdrIsInCache (in string aSearchFolderUri, in nsIMsgDBHdr aHdr); */
NS_IMETHODIMP nsMsgDatabase::HdrIsInCache(const char * aSearchFolderUri, nsIMsgDBHdr *aHdr, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgDatabase_h__ */
|