DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/addrbook/public/nsIAddrDatabase.idl
 */

#ifndef __gen_nsIAddrDatabase_h__
#define __gen_nsIAddrDatabase_h__


#ifndef __gen_nsIAddrDBAnnouncer_h__
#include "nsIAddrDBAnnouncer.h"
#endif

#ifndef __gen_nsIAbCard_h__
#include "nsIAbCard.h"
#endif

#ifndef __gen_nsIAbDirectory_h__
#include "nsIAbDirectory.h"
#endif

#include "js/GCAnnotations.h"

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

class nsIMdbTableRowCursor; /* forward declaration */

class nsIMdbEnv; /* forward declaration */

class nsIMdbRow;
class nsIArray; /* forward declaration */

class nsISimpleEnumerator; /* forward declaration */

// this is the prefix we for attributes that are specific
// to the mozilla addressbook, and weren't in 4.x and aren't specified in
// RFC 2789.  used when exporting and import LDIF
// see nsTextAddress.cpp, nsAddressBook.cpp
#define MOZ_AB_LDIF_PREFIX "mozilla"
// note, GeneratedName is not a real column
// if you change any of this, make sure to change
// Get / Set CardValue in nsAbCardProperty.cpp
#define kPhoneticNameColumn       "_PhoneticName"
#define kAddressCharSetColumn     "AddrCharSet"
#define kMailListName             "ListName"
#define kMailListNickName         "ListNickName"
#define kMailListDescription      "ListDescription"
#define kMailListTotalAddresses   "ListTotalAddresses"
// not shown in the UI
#define kLowerPriEmailColumn      "LowercasePrimaryEmail"
#define kLower2ndEmailColumn      "LowercaseSecondEmail"
// Palm Integration
#define  CARD_ATTRIB_PALMID "PalmRecId"
#define  CARD_ATTRIB_DISPLAY "DisplayName"

/* starting interface:    nsAddrDBCommitType */
#define NS_ADDRDBCOMMITTYPE_IID_STR "20d4c6c3-0460-403e-aa9c-813654641566"

#define NS_ADDRDBCOMMITTYPE_IID \
  {0x20d4c6c3, 0x0460, 0x403e, \
    { 0xaa, 0x9c, 0x81, 0x36, 0x54, 0x64, 0x15, 0x66 }}

class NS_NO_VTABLE nsAddrDBCommitType {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ADDRDBCOMMITTYPE_IID)

  enum {
    kLargeCommit = 1,
    kSessionCommit = 2,
    kCompressCommit = 3
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsAddrDBCommitType, NS_ADDRDBCOMMITTYPE_IID)

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

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSADDRDBCOMMITTYPE \

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


/* starting interface:    nsIAddrDatabase */
#define NS_IADDRDATABASE_IID_STR "c54973e4-d251-4b93-a0d0-81a616225061"

#define NS_IADDRDATABASE_IID \
  {0xc54973e4, 0xd251, 0x4b93, \
    { 0xa0, 0xd0, 0x81, 0xa6, 0x16, 0x22, 0x50, 0x61 }}

class NS_NO_VTABLE nsIAddrDatabase : public nsIAddrDBAnnouncer {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDRDATABASE_IID)

  /* attribute nsIFile dbPath; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDbPath(nsIFile **aDbPath) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDbPath(nsIFile *aDbPath) = 0;

  /* nsIAddrDatabase open (in nsIFile dbFile, in boolean create, in boolean upgrading); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open(nsIFile *dbFile, bool create, bool upgrading, nsIAddrDatabase **_retval) = 0;

  /* void close (in boolean forceCommit); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Close(bool forceCommit) = 0;

  /* void openMDB (in nsIFile dbName, in boolean create); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenMDB(nsIFile *dbName, bool create) = 0;

  /* void closeMDB (in boolean commit); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloseMDB(bool commit) = 0;

  /* void commit (in unsigned long commitType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Commit(uint32_t commitType) = 0;

  /* void forceClosed (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForceClosed(void) = 0;

  /* void createNewCardAndAddToDB (in nsIAbCard aNewCard, in boolean aNotify, in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateNewCardAndAddToDB(nsIAbCard *aNewCard, bool aNotify, nsIAbDirectory *aParent) = 0;

  /* void createNewListCardAndAddToDB (in nsIAbDirectory list, in unsigned long listRowID, in nsIAbCard newCard, in boolean aNotify); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateNewListCardAndAddToDB(nsIAbDirectory *list, uint32_t listRowID, nsIAbCard *newCard, bool aNotify) = 0;

  /* void createMailListAndAddToDB (in nsIAbDirectory aNewList, in boolean aNotify, in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateMailListAndAddToDB(nsIAbDirectory *aNewList, bool aNotify, nsIAbDirectory *aParent) = 0;

  /* nsISimpleEnumerator enumerateCards (in nsIAbDirectory directory); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnumerateCards(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) = 0;

  /* nsISimpleEnumerator enumerateListAddresses (in nsIAbDirectory directory); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnumerateListAddresses(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) = 0;

  /* void getMailingListsFromDB (in nsIAbDirectory parentDir); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMailingListsFromDB(nsIAbDirectory *parentDir) = 0;

  /* void deleteCard (in nsIAbCard aCard, in boolean aNotify, in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) = 0;

  /* void editCard (in nsIAbCard aCard, in boolean aNotify, in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EditCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) = 0;

  /* boolean containsCard (in nsIAbCard card); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContainsCard(nsIAbCard *card, bool *_retval) = 0;

  /* void deleteMailList (in nsIAbDirectory aMailList, [optional] in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteMailList(nsIAbDirectory *aMailList, nsIAbDirectory *aParent) = 0;

  /* void editMailList (in nsIAbDirectory mailList, in nsIAbCard listCard, in boolean aNotify); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EditMailList(nsIAbDirectory *mailList, nsIAbCard *listCard, bool aNotify) = 0;

  /* boolean containsMailList (in nsIAbDirectory mailList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContainsMailList(nsIAbDirectory *mailList, bool *_retval) = 0;

  /* void deleteCardFromMailList (in nsIAbDirectory mailList, in nsIAbCard card, in boolean aNotify); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteCardFromMailList(nsIAbDirectory *mailList, nsIAbCard *card, bool aNotify) = 0;

  /* nsIAbCard getCardFromAttribute (in nsIAbDirectory aDirectory, in string aName, in AUTF8String aUTF8Value, in boolean aCaseInsensitive); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& aUTF8Value, bool aCaseInsensitive, nsIAbCard **_retval) = 0;

  /* nsISimpleEnumerator getCardsFromAttribute (in nsIAbDirectory aDirectory, in string aName, in AUTF8String uUTF8Value, in boolean aCaseInsensitive); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardsFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& uUTF8Value, bool aCaseInsensitive, nsISimpleEnumerator **_retval) = 0;

  /* boolean findMailListbyUnicodeName (in wstring listName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindMailListbyUnicodeName(const char16_t * listName, bool *_retval) = 0;

  /* void getCardCount (out uint32_t count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardCount(uint32_t *count) = 0;

  /* [noscript] readonly attribute nsIMdbRow newRow; */
  NS_IMETHOD GetNewRow(nsIMdbRow * * aNewRow) = 0;

  /* [noscript] readonly attribute nsIMdbRow newListRow; */
  NS_IMETHOD GetNewListRow(nsIMdbRow * * aNewListRow) = 0;

  /* [noscript] void addCardRowToDB (in nsIMdbRow newRow); */
  NS_IMETHOD AddCardRowToDB(nsIMdbRow * newRow) = 0;

  /* [noscript] void addLdifListMember (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddLdifListMember(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addFirstName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddFirstName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addLastName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddLastName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPhoneticFirstName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddPhoneticFirstName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPhoneticLastName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddPhoneticLastName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addDisplayName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddDisplayName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addNickName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddNickName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPrimaryEmail (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddPrimaryEmail(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void add2ndEmail (in nsIMdbRow row, in string value); */
  NS_IMETHOD Add2ndEmail(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkPhone (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkPhone(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomePhone (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomePhone(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addFaxNumber (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddFaxNumber(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPagerNumber (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddPagerNumber(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCellularNumber (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCellularNumber(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkPhoneType (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkPhoneType(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomePhoneType (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomePhoneType(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addFaxNumberType (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddFaxNumberType(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPagerNumberType (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddPagerNumberType(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCellularNumberType (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCellularNumberType(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeAddress (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeAddress(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeAddress2 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeAddress2(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeCity (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeCity(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeState (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeState(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeZipCode (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeZipCode(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addHomeCountry (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddHomeCountry(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkAddress (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkAddress(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkAddress2 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkAddress2(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkCity (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkCity(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkState (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkState(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkZipCode (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkZipCode(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWorkCountry (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWorkCountry(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addJobTitle (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddJobTitle(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addDepartment (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddDepartment(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCompany (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCompany(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addAimScreenName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddAimScreenName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addAnniversaryYear (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddAnniversaryYear(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addAnniversaryMonth (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddAnniversaryMonth(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addAnniversaryDay (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddAnniversaryDay(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addSpouseName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddSpouseName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addFamilyName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddFamilyName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addDefaultAddress (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddDefaultAddress(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCategory (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCategory(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWebPage1 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWebPage1(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addWebPage2 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddWebPage2(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addBirthYear (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddBirthYear(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addBirthMonth (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddBirthMonth(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addBirthDay (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddBirthDay(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCustom1 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCustom1(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCustom2 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCustom2(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCustom3 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCustom3(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addCustom4 (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddCustom4(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addNotes (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddNotes(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addPreferMailFormat (in nsIMdbRow row, in unsigned long value); */
  NS_IMETHOD AddPreferMailFormat(nsIMdbRow * row, uint32_t value) = 0;

  /* [noscript] void addPopularityIndex (in nsIMdbRow row, in unsigned long value); */
  NS_IMETHOD AddPopularityIndex(nsIMdbRow * row, uint32_t value) = 0;

  /* [noscript] void addListName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddListName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addListNickName (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddListNickName(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addListDescription (in nsIMdbRow row, in string value); */
  NS_IMETHOD AddListDescription(nsIMdbRow * row, const char * value) = 0;

  /* [noscript] void addListDirNode (in nsIMdbRow listRow); */
  NS_IMETHOD AddListDirNode(nsIMdbRow * listRow) = 0;

  /* void setCardValue (in nsIAbCard card, in string name, in wstring value, in boolean notify); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCardValue(nsIAbCard *card, const char * name, const char16_t * value, bool notify) = 0;

  /* wstring getCardValue (in nsIAbCard card, in string name); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardValue(nsIAbCard *card, const char * name, char16_t * *_retval) = 0;

  /* void AddListCardColumnsToRow (in nsIAbCard aPCard, in nsIMdbRow aPListRow, in unsigned long aPos, out nsIAbCard aPNewCard, in boolean aInMailingList, in nsIAbDirectory aParent, in nsIAbDirectory aRoot); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListCardColumnsToRow(nsIAbCard *aPCard, nsIMdbRow * aPListRow, uint32_t aPos, nsIAbCard **aPNewCard, bool aInMailingList, nsIAbDirectory *aParent, nsIAbDirectory *aRoot) = 0;

  /* void InitCardFromRow (in nsIAbCard aNewCard, in nsIMdbRow aCardRow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow * aCardRow) = 0;

  /* void SetListAddressTotal (in nsIMdbRow aListRow, in uint32_t aTotal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetListAddressTotal(nsIMdbRow * aListRow, uint32_t aTotal) = 0;

  /* nsIMdbRow FindRowByCard (in nsIAbCard aCard); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindRowByCard(nsIAbCard *aCard, nsIMdbRow * * _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddrDatabase, NS_IADDRDATABASE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDRDATABASE \
  NS_IMETHOD GetDbPath(nsIFile **aDbPath) override; \
  NS_IMETHOD SetDbPath(nsIFile *aDbPath) override; \
  NS_IMETHOD Open(nsIFile *dbFile, bool create, bool upgrading, nsIAddrDatabase **_retval) override; \
  NS_IMETHOD Close(bool forceCommit) override; \
  NS_IMETHOD OpenMDB(nsIFile *dbName, bool create) override; \
  NS_IMETHOD CloseMDB(bool commit) override; \
  NS_IMETHOD Commit(uint32_t commitType) override; \
  NS_IMETHOD ForceClosed(void) override; \
  NS_IMETHOD CreateNewCardAndAddToDB(nsIAbCard *aNewCard, bool aNotify, nsIAbDirectory *aParent) override; \
  NS_IMETHOD CreateNewListCardAndAddToDB(nsIAbDirectory *list, uint32_t listRowID, nsIAbCard *newCard, bool aNotify) override; \
  NS_IMETHOD CreateMailListAndAddToDB(nsIAbDirectory *aNewList, bool aNotify, nsIAbDirectory *aParent) override; \
  NS_IMETHOD EnumerateCards(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD EnumerateListAddresses(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD GetMailingListsFromDB(nsIAbDirectory *parentDir) override; \
  NS_IMETHOD DeleteCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override; \
  NS_IMETHOD EditCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override; \
  NS_IMETHOD ContainsCard(nsIAbCard *card, bool *_retval) override; \
  NS_IMETHOD DeleteMailList(nsIAbDirectory *aMailList, nsIAbDirectory *aParent) override; \
  NS_IMETHOD EditMailList(nsIAbDirectory *mailList, nsIAbCard *listCard, bool aNotify) override; \
  NS_IMETHOD ContainsMailList(nsIAbDirectory *mailList, bool *_retval) override; \
  NS_IMETHOD DeleteCardFromMailList(nsIAbDirectory *mailList, nsIAbCard *card, bool aNotify) override; \
  NS_IMETHOD GetCardFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& aUTF8Value, bool aCaseInsensitive, nsIAbCard **_retval) override; \
  NS_IMETHOD GetCardsFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& uUTF8Value, bool aCaseInsensitive, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD FindMailListbyUnicodeName(const char16_t * listName, bool *_retval) override; \
  NS_IMETHOD GetCardCount(uint32_t *count) override; \
  NS_IMETHOD GetNewRow(nsIMdbRow * * aNewRow) override; \
  NS_IMETHOD GetNewListRow(nsIMdbRow * * aNewListRow) override; \
  NS_IMETHOD AddCardRowToDB(nsIMdbRow * newRow) override; \
  NS_IMETHOD AddLdifListMember(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddFirstName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddLastName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPhoneticFirstName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPhoneticLastName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddDisplayName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddNickName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPrimaryEmail(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD Add2ndEmail(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkPhone(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomePhone(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddFaxNumber(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPagerNumber(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCellularNumber(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkPhoneType(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomePhoneType(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddFaxNumberType(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPagerNumberType(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCellularNumberType(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeAddress(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeAddress2(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeCity(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeState(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeZipCode(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddHomeCountry(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkAddress(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkAddress2(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkCity(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkState(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkZipCode(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWorkCountry(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddJobTitle(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddDepartment(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCompany(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddAimScreenName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddAnniversaryYear(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddAnniversaryMonth(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddAnniversaryDay(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddSpouseName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddFamilyName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddDefaultAddress(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCategory(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWebPage1(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddWebPage2(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddBirthYear(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddBirthMonth(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddBirthDay(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCustom1(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCustom2(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCustom3(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddCustom4(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddNotes(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddPreferMailFormat(nsIMdbRow * row, uint32_t value) override; \
  NS_IMETHOD AddPopularityIndex(nsIMdbRow * row, uint32_t value) override; \
  NS_IMETHOD AddListName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddListNickName(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddListDescription(nsIMdbRow * row, const char * value) override; \
  NS_IMETHOD AddListDirNode(nsIMdbRow * listRow) override; \
  NS_IMETHOD SetCardValue(nsIAbCard *card, const char * name, const char16_t * value, bool notify) override; \
  NS_IMETHOD GetCardValue(nsIAbCard *card, const char * name, char16_t * *_retval) override; \
  NS_IMETHOD AddListCardColumnsToRow(nsIAbCard *aPCard, nsIMdbRow * aPListRow, uint32_t aPos, nsIAbCard **aPNewCard, bool aInMailingList, nsIAbDirectory *aParent, nsIAbDirectory *aRoot) override; \
  NS_IMETHOD InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow * aCardRow) override; \
  NS_IMETHOD SetListAddressTotal(nsIMdbRow * aListRow, uint32_t aTotal) override; \
  NS_IMETHOD FindRowByCard(nsIAbCard *aCard, nsIMdbRow * * _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIADDRDATABASE \
  nsresult GetDbPath(nsIFile **aDbPath); \
  nsresult SetDbPath(nsIFile *aDbPath); \
  nsresult Open(nsIFile *dbFile, bool create, bool upgrading, nsIAddrDatabase **_retval); \
  nsresult Close(bool forceCommit); \
  nsresult OpenMDB(nsIFile *dbName, bool create); \
  nsresult CloseMDB(bool commit); \
  nsresult Commit(uint32_t commitType); \
  nsresult ForceClosed(void); \
  nsresult CreateNewCardAndAddToDB(nsIAbCard *aNewCard, bool aNotify, nsIAbDirectory *aParent); \
  nsresult CreateNewListCardAndAddToDB(nsIAbDirectory *list, uint32_t listRowID, nsIAbCard *newCard, bool aNotify); \
  nsresult CreateMailListAndAddToDB(nsIAbDirectory *aNewList, bool aNotify, nsIAbDirectory *aParent); \
  nsresult EnumerateCards(nsIAbDirectory *directory, nsISimpleEnumerator **_retval); \
  nsresult EnumerateListAddresses(nsIAbDirectory *directory, nsISimpleEnumerator **_retval); \
  nsresult GetMailingListsFromDB(nsIAbDirectory *parentDir); \
  nsresult DeleteCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent); \
  nsresult EditCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent); \
  nsresult ContainsCard(nsIAbCard *card, bool *_retval); \
  nsresult DeleteMailList(nsIAbDirectory *aMailList, nsIAbDirectory *aParent); \
  nsresult EditMailList(nsIAbDirectory *mailList, nsIAbCard *listCard, bool aNotify); \
  nsresult ContainsMailList(nsIAbDirectory *mailList, bool *_retval); \
  nsresult DeleteCardFromMailList(nsIAbDirectory *mailList, nsIAbCard *card, bool aNotify); \
  nsresult GetCardFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& aUTF8Value, bool aCaseInsensitive, nsIAbCard **_retval); \
  nsresult GetCardsFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& uUTF8Value, bool aCaseInsensitive, nsISimpleEnumerator **_retval); \
  nsresult FindMailListbyUnicodeName(const char16_t * listName, bool *_retval); \
  nsresult GetCardCount(uint32_t *count); \
  nsresult GetNewRow(nsIMdbRow * * aNewRow); \
  nsresult GetNewListRow(nsIMdbRow * * aNewListRow); \
  nsresult AddCardRowToDB(nsIMdbRow * newRow); \
  nsresult AddLdifListMember(nsIMdbRow * row, const char * value); \
  nsresult AddFirstName(nsIMdbRow * row, const char * value); \
  nsresult AddLastName(nsIMdbRow * row, const char * value); \
  nsresult AddPhoneticFirstName(nsIMdbRow * row, const char * value); \
  nsresult AddPhoneticLastName(nsIMdbRow * row, const char * value); \
  nsresult AddDisplayName(nsIMdbRow * row, const char * value); \
  nsresult AddNickName(nsIMdbRow * row, const char * value); \
  nsresult AddPrimaryEmail(nsIMdbRow * row, const char * value); \
  nsresult Add2ndEmail(nsIMdbRow * row, const char * value); \
  nsresult AddWorkPhone(nsIMdbRow * row, const char * value); \
  nsresult AddHomePhone(nsIMdbRow * row, const char * value); \
  nsresult AddFaxNumber(nsIMdbRow * row, const char * value); \
  nsresult AddPagerNumber(nsIMdbRow * row, const char * value); \
  nsresult AddCellularNumber(nsIMdbRow * row, const char * value); \
  nsresult AddWorkPhoneType(nsIMdbRow * row, const char * value); \
  nsresult AddHomePhoneType(nsIMdbRow * row, const char * value); \
  nsresult AddFaxNumberType(nsIMdbRow * row, const char * value); \
  nsresult AddPagerNumberType(nsIMdbRow * row, const char * value); \
  nsresult AddCellularNumberType(nsIMdbRow * row, const char * value); \
  nsresult AddHomeAddress(nsIMdbRow * row, const char * value); \
  nsresult AddHomeAddress2(nsIMdbRow * row, const char * value); \
  nsresult AddHomeCity(nsIMdbRow * row, const char * value); \
  nsresult AddHomeState(nsIMdbRow * row, const char * value); \
  nsresult AddHomeZipCode(nsIMdbRow * row, const char * value); \
  nsresult AddHomeCountry(nsIMdbRow * row, const char * value); \
  nsresult AddWorkAddress(nsIMdbRow * row, const char * value); \
  nsresult AddWorkAddress2(nsIMdbRow * row, const char * value); \
  nsresult AddWorkCity(nsIMdbRow * row, const char * value); \
  nsresult AddWorkState(nsIMdbRow * row, const char * value); \
  nsresult AddWorkZipCode(nsIMdbRow * row, const char * value); \
  nsresult AddWorkCountry(nsIMdbRow * row, const char * value); \
  nsresult AddJobTitle(nsIMdbRow * row, const char * value); \
  nsresult AddDepartment(nsIMdbRow * row, const char * value); \
  nsresult AddCompany(nsIMdbRow * row, const char * value); \
  nsresult AddAimScreenName(nsIMdbRow * row, const char * value); \
  nsresult AddAnniversaryYear(nsIMdbRow * row, const char * value); \
  nsresult AddAnniversaryMonth(nsIMdbRow * row, const char * value); \
  nsresult AddAnniversaryDay(nsIMdbRow * row, const char * value); \
  nsresult AddSpouseName(nsIMdbRow * row, const char * value); \
  nsresult AddFamilyName(nsIMdbRow * row, const char * value); \
  nsresult AddDefaultAddress(nsIMdbRow * row, const char * value); \
  nsresult AddCategory(nsIMdbRow * row, const char * value); \
  nsresult AddWebPage1(nsIMdbRow * row, const char * value); \
  nsresult AddWebPage2(nsIMdbRow * row, const char * value); \
  nsresult AddBirthYear(nsIMdbRow * row, const char * value); \
  nsresult AddBirthMonth(nsIMdbRow * row, const char * value); \
  nsresult AddBirthDay(nsIMdbRow * row, const char * value); \
  nsresult AddCustom1(nsIMdbRow * row, const char * value); \
  nsresult AddCustom2(nsIMdbRow * row, const char * value); \
  nsresult AddCustom3(nsIMdbRow * row, const char * value); \
  nsresult AddCustom4(nsIMdbRow * row, const char * value); \
  nsresult AddNotes(nsIMdbRow * row, const char * value); \
  nsresult AddPreferMailFormat(nsIMdbRow * row, uint32_t value); \
  nsresult AddPopularityIndex(nsIMdbRow * row, uint32_t value); \
  nsresult AddListName(nsIMdbRow * row, const char * value); \
  nsresult AddListNickName(nsIMdbRow * row, const char * value); \
  nsresult AddListDescription(nsIMdbRow * row, const char * value); \
  nsresult AddListDirNode(nsIMdbRow * listRow); \
  nsresult SetCardValue(nsIAbCard *card, const char * name, const char16_t * value, bool notify); \
  nsresult GetCardValue(nsIAbCard *card, const char * name, char16_t * *_retval); \
  nsresult AddListCardColumnsToRow(nsIAbCard *aPCard, nsIMdbRow * aPListRow, uint32_t aPos, nsIAbCard **aPNewCard, bool aInMailingList, nsIAbDirectory *aParent, nsIAbDirectory *aRoot); \
  nsresult InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow * aCardRow); \
  nsresult SetListAddressTotal(nsIMdbRow * aListRow, uint32_t aTotal); \
  nsresult FindRowByCard(nsIAbCard *aCard, nsIMdbRow * * _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDRDATABASE(_to) \
  NS_IMETHOD GetDbPath(nsIFile **aDbPath) override { return _to GetDbPath(aDbPath); } \
  NS_IMETHOD SetDbPath(nsIFile *aDbPath) override { return _to SetDbPath(aDbPath); } \
  NS_IMETHOD Open(nsIFile *dbFile, bool create, bool upgrading, nsIAddrDatabase **_retval) override { return _to Open(dbFile, create, upgrading, _retval); } \
  NS_IMETHOD Close(bool forceCommit) override { return _to Close(forceCommit); } \
  NS_IMETHOD OpenMDB(nsIFile *dbName, bool create) override { return _to OpenMDB(dbName, create); } \
  NS_IMETHOD CloseMDB(bool commit) override { return _to CloseMDB(commit); } \
  NS_IMETHOD Commit(uint32_t commitType) override { return _to Commit(commitType); } \
  NS_IMETHOD ForceClosed(void) override { return _to ForceClosed(); } \
  NS_IMETHOD CreateNewCardAndAddToDB(nsIAbCard *aNewCard, bool aNotify, nsIAbDirectory *aParent) override { return _to CreateNewCardAndAddToDB(aNewCard, aNotify, aParent); } \
  NS_IMETHOD CreateNewListCardAndAddToDB(nsIAbDirectory *list, uint32_t listRowID, nsIAbCard *newCard, bool aNotify) override { return _to CreateNewListCardAndAddToDB(list, listRowID, newCard, aNotify); } \
  NS_IMETHOD CreateMailListAndAddToDB(nsIAbDirectory *aNewList, bool aNotify, nsIAbDirectory *aParent) override { return _to CreateMailListAndAddToDB(aNewList, aNotify, aParent); } \
  NS_IMETHOD EnumerateCards(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override { return _to EnumerateCards(directory, _retval); } \
  NS_IMETHOD EnumerateListAddresses(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override { return _to EnumerateListAddresses(directory, _retval); } \
  NS_IMETHOD GetMailingListsFromDB(nsIAbDirectory *parentDir) override { return _to GetMailingListsFromDB(parentDir); } \
  NS_IMETHOD DeleteCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override { return _to DeleteCard(aCard, aNotify, aParent); } \
  NS_IMETHOD EditCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override { return _to EditCard(aCard, aNotify, aParent); } \
  NS_IMETHOD ContainsCard(nsIAbCard *card, bool *_retval) override { return _to ContainsCard(card, _retval); } \
  NS_IMETHOD DeleteMailList(nsIAbDirectory *aMailList, nsIAbDirectory *aParent) override { return _to DeleteMailList(aMailList, aParent); } \
  NS_IMETHOD EditMailList(nsIAbDirectory *mailList, nsIAbCard *listCard, bool aNotify) override { return _to EditMailList(mailList, listCard, aNotify); } \
  NS_IMETHOD ContainsMailList(nsIAbDirectory *mailList, bool *_retval) override { return _to ContainsMailList(mailList, _retval); } \
  NS_IMETHOD DeleteCardFromMailList(nsIAbDirectory *mailList, nsIAbCard *card, bool aNotify) override { return _to DeleteCardFromMailList(mailList, card, aNotify); } \
  NS_IMETHOD GetCardFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& aUTF8Value, bool aCaseInsensitive, nsIAbCard **_retval) override { return _to GetCardFromAttribute(aDirectory, aName, aUTF8Value, aCaseInsensitive, _retval); } \
  NS_IMETHOD GetCardsFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& uUTF8Value, bool aCaseInsensitive, nsISimpleEnumerator **_retval) override { return _to GetCardsFromAttribute(aDirectory, aName, uUTF8Value, aCaseInsensitive, _retval); } \
  NS_IMETHOD FindMailListbyUnicodeName(const char16_t * listName, bool *_retval) override { return _to FindMailListbyUnicodeName(listName, _retval); } \
  NS_IMETHOD GetCardCount(uint32_t *count) override { return _to GetCardCount(count); } \
  NS_IMETHOD GetNewRow(nsIMdbRow * * aNewRow) override { return _to GetNewRow(aNewRow); } \
  NS_IMETHOD GetNewListRow(nsIMdbRow * * aNewListRow) override { return _to GetNewListRow(aNewListRow); } \
  NS_IMETHOD AddCardRowToDB(nsIMdbRow * newRow) override { return _to AddCardRowToDB(newRow); } \
  NS_IMETHOD AddLdifListMember(nsIMdbRow * row, const char * value) override { return _to AddLdifListMember(row, value); } \
  NS_IMETHOD AddFirstName(nsIMdbRow * row, const char * value) override { return _to AddFirstName(row, value); } \
  NS_IMETHOD AddLastName(nsIMdbRow * row, const char * value) override { return _to AddLastName(row, value); } \
  NS_IMETHOD AddPhoneticFirstName(nsIMdbRow * row, const char * value) override { return _to AddPhoneticFirstName(row, value); } \
  NS_IMETHOD AddPhoneticLastName(nsIMdbRow * row, const char * value) override { return _to AddPhoneticLastName(row, value); } \
  NS_IMETHOD AddDisplayName(nsIMdbRow * row, const char * value) override { return _to AddDisplayName(row, value); } \
  NS_IMETHOD AddNickName(nsIMdbRow * row, const char * value) override { return _to AddNickName(row, value); } \
  NS_IMETHOD AddPrimaryEmail(nsIMdbRow * row, const char * value) override { return _to AddPrimaryEmail(row, value); } \
  NS_IMETHOD Add2ndEmail(nsIMdbRow * row, const char * value) override { return _to Add2ndEmail(row, value); } \
  NS_IMETHOD AddWorkPhone(nsIMdbRow * row, const char * value) override { return _to AddWorkPhone(row, value); } \
  NS_IMETHOD AddHomePhone(nsIMdbRow * row, const char * value) override { return _to AddHomePhone(row, value); } \
  NS_IMETHOD AddFaxNumber(nsIMdbRow * row, const char * value) override { return _to AddFaxNumber(row, value); } \
  NS_IMETHOD AddPagerNumber(nsIMdbRow * row, const char * value) override { return _to AddPagerNumber(row, value); } \
  NS_IMETHOD AddCellularNumber(nsIMdbRow * row, const char * value) override { return _to AddCellularNumber(row, value); } \
  NS_IMETHOD AddWorkPhoneType(nsIMdbRow * row, const char * value) override { return _to AddWorkPhoneType(row, value); } \
  NS_IMETHOD AddHomePhoneType(nsIMdbRow * row, const char * value) override { return _to AddHomePhoneType(row, value); } \
  NS_IMETHOD AddFaxNumberType(nsIMdbRow * row, const char * value) override { return _to AddFaxNumberType(row, value); } \
  NS_IMETHOD AddPagerNumberType(nsIMdbRow * row, const char * value) override { return _to AddPagerNumberType(row, value); } \
  NS_IMETHOD AddCellularNumberType(nsIMdbRow * row, const char * value) override { return _to AddCellularNumberType(row, value); } \
  NS_IMETHOD AddHomeAddress(nsIMdbRow * row, const char * value) override { return _to AddHomeAddress(row, value); } \
  NS_IMETHOD AddHomeAddress2(nsIMdbRow * row, const char * value) override { return _to AddHomeAddress2(row, value); } \
  NS_IMETHOD AddHomeCity(nsIMdbRow * row, const char * value) override { return _to AddHomeCity(row, value); } \
  NS_IMETHOD AddHomeState(nsIMdbRow * row, const char * value) override { return _to AddHomeState(row, value); } \
  NS_IMETHOD AddHomeZipCode(nsIMdbRow * row, const char * value) override { return _to AddHomeZipCode(row, value); } \
  NS_IMETHOD AddHomeCountry(nsIMdbRow * row, const char * value) override { return _to AddHomeCountry(row, value); } \
  NS_IMETHOD AddWorkAddress(nsIMdbRow * row, const char * value) override { return _to AddWorkAddress(row, value); } \
  NS_IMETHOD AddWorkAddress2(nsIMdbRow * row, const char * value) override { return _to AddWorkAddress2(row, value); } \
  NS_IMETHOD AddWorkCity(nsIMdbRow * row, const char * value) override { return _to AddWorkCity(row, value); } \
  NS_IMETHOD AddWorkState(nsIMdbRow * row, const char * value) override { return _to AddWorkState(row, value); } \
  NS_IMETHOD AddWorkZipCode(nsIMdbRow * row, const char * value) override { return _to AddWorkZipCode(row, value); } \
  NS_IMETHOD AddWorkCountry(nsIMdbRow * row, const char * value) override { return _to AddWorkCountry(row, value); } \
  NS_IMETHOD AddJobTitle(nsIMdbRow * row, const char * value) override { return _to AddJobTitle(row, value); } \
  NS_IMETHOD AddDepartment(nsIMdbRow * row, const char * value) override { return _to AddDepartment(row, value); } \
  NS_IMETHOD AddCompany(nsIMdbRow * row, const char * value) override { return _to AddCompany(row, value); } \
  NS_IMETHOD AddAimScreenName(nsIMdbRow * row, const char * value) override { return _to AddAimScreenName(row, value); } \
  NS_IMETHOD AddAnniversaryYear(nsIMdbRow * row, const char * value) override { return _to AddAnniversaryYear(row, value); } \
  NS_IMETHOD AddAnniversaryMonth(nsIMdbRow * row, const char * value) override { return _to AddAnniversaryMonth(row, value); } \
  NS_IMETHOD AddAnniversaryDay(nsIMdbRow * row, const char * value) override { return _to AddAnniversaryDay(row, value); } \
  NS_IMETHOD AddSpouseName(nsIMdbRow * row, const char * value) override { return _to AddSpouseName(row, value); } \
  NS_IMETHOD AddFamilyName(nsIMdbRow * row, const char * value) override { return _to AddFamilyName(row, value); } \
  NS_IMETHOD AddDefaultAddress(nsIMdbRow * row, const char * value) override { return _to AddDefaultAddress(row, value); } \
  NS_IMETHOD AddCategory(nsIMdbRow * row, const char * value) override { return _to AddCategory(row, value); } \
  NS_IMETHOD AddWebPage1(nsIMdbRow * row, const char * value) override { return _to AddWebPage1(row, value); } \
  NS_IMETHOD AddWebPage2(nsIMdbRow * row, const char * value) override { return _to AddWebPage2(row, value); } \
  NS_IMETHOD AddBirthYear(nsIMdbRow * row, const char * value) override { return _to AddBirthYear(row, value); } \
  NS_IMETHOD AddBirthMonth(nsIMdbRow * row, const char * value) override { return _to AddBirthMonth(row, value); } \
  NS_IMETHOD AddBirthDay(nsIMdbRow * row, const char * value) override { return _to AddBirthDay(row, value); } \
  NS_IMETHOD AddCustom1(nsIMdbRow * row, const char * value) override { return _to AddCustom1(row, value); } \
  NS_IMETHOD AddCustom2(nsIMdbRow * row, const char * value) override { return _to AddCustom2(row, value); } \
  NS_IMETHOD AddCustom3(nsIMdbRow * row, const char * value) override { return _to AddCustom3(row, value); } \
  NS_IMETHOD AddCustom4(nsIMdbRow * row, const char * value) override { return _to AddCustom4(row, value); } \
  NS_IMETHOD AddNotes(nsIMdbRow * row, const char * value) override { return _to AddNotes(row, value); } \
  NS_IMETHOD AddPreferMailFormat(nsIMdbRow * row, uint32_t value) override { return _to AddPreferMailFormat(row, value); } \
  NS_IMETHOD AddPopularityIndex(nsIMdbRow * row, uint32_t value) override { return _to AddPopularityIndex(row, value); } \
  NS_IMETHOD AddListName(nsIMdbRow * row, const char * value) override { return _to AddListName(row, value); } \
  NS_IMETHOD AddListNickName(nsIMdbRow * row, const char * value) override { return _to AddListNickName(row, value); } \
  NS_IMETHOD AddListDescription(nsIMdbRow * row, const char * value) override { return _to AddListDescription(row, value); } \
  NS_IMETHOD AddListDirNode(nsIMdbRow * listRow) override { return _to AddListDirNode(listRow); } \
  NS_IMETHOD SetCardValue(nsIAbCard *card, const char * name, const char16_t * value, bool notify) override { return _to SetCardValue(card, name, value, notify); } \
  NS_IMETHOD GetCardValue(nsIAbCard *card, const char * name, char16_t * *_retval) override { return _to GetCardValue(card, name, _retval); } \
  NS_IMETHOD AddListCardColumnsToRow(nsIAbCard *aPCard, nsIMdbRow * aPListRow, uint32_t aPos, nsIAbCard **aPNewCard, bool aInMailingList, nsIAbDirectory *aParent, nsIAbDirectory *aRoot) override { return _to AddListCardColumnsToRow(aPCard, aPListRow, aPos, aPNewCard, aInMailingList, aParent, aRoot); } \
  NS_IMETHOD InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow * aCardRow) override { return _to InitCardFromRow(aNewCard, aCardRow); } \
  NS_IMETHOD SetListAddressTotal(nsIMdbRow * aListRow, uint32_t aTotal) override { return _to SetListAddressTotal(aListRow, aTotal); } \
  NS_IMETHOD FindRowByCard(nsIAbCard *aCard, nsIMdbRow * * _retval) override { return _to FindRowByCard(aCard, _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_NSIADDRDATABASE(_to) \
  NS_IMETHOD GetDbPath(nsIFile **aDbPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDbPath(aDbPath); } \
  NS_IMETHOD SetDbPath(nsIFile *aDbPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDbPath(aDbPath); } \
  NS_IMETHOD Open(nsIFile *dbFile, bool create, bool upgrading, nsIAddrDatabase **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(dbFile, create, upgrading, _retval); } \
  NS_IMETHOD Close(bool forceCommit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(forceCommit); } \
  NS_IMETHOD OpenMDB(nsIFile *dbName, bool create) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenMDB(dbName, create); } \
  NS_IMETHOD CloseMDB(bool commit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseMDB(commit); } \
  NS_IMETHOD Commit(uint32_t commitType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Commit(commitType); } \
  NS_IMETHOD ForceClosed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceClosed(); } \
  NS_IMETHOD CreateNewCardAndAddToDB(nsIAbCard *aNewCard, bool aNotify, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewCardAndAddToDB(aNewCard, aNotify, aParent); } \
  NS_IMETHOD CreateNewListCardAndAddToDB(nsIAbDirectory *list, uint32_t listRowID, nsIAbCard *newCard, bool aNotify) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewListCardAndAddToDB(list, listRowID, newCard, aNotify); } \
  NS_IMETHOD CreateMailListAndAddToDB(nsIAbDirectory *aNewList, bool aNotify, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateMailListAndAddToDB(aNewList, aNotify, aParent); } \
  NS_IMETHOD EnumerateCards(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCards(directory, _retval); } \
  NS_IMETHOD EnumerateListAddresses(nsIAbDirectory *directory, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateListAddresses(directory, _retval); } \
  NS_IMETHOD GetMailingListsFromDB(nsIAbDirectory *parentDir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMailingListsFromDB(parentDir); } \
  NS_IMETHOD DeleteCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCard(aCard, aNotify, aParent); } \
  NS_IMETHOD EditCard(nsIAbCard *aCard, bool aNotify, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EditCard(aCard, aNotify, aParent); } \
  NS_IMETHOD ContainsCard(nsIAbCard *card, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsCard(card, _retval); } \
  NS_IMETHOD DeleteMailList(nsIAbDirectory *aMailList, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMailList(aMailList, aParent); } \
  NS_IMETHOD EditMailList(nsIAbDirectory *mailList, nsIAbCard *listCard, bool aNotify) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EditMailList(mailList, listCard, aNotify); } \
  NS_IMETHOD ContainsMailList(nsIAbDirectory *mailList, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsMailList(mailList, _retval); } \
  NS_IMETHOD DeleteCardFromMailList(nsIAbDirectory *mailList, nsIAbCard *card, bool aNotify) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCardFromMailList(mailList, card, aNotify); } \
  NS_IMETHOD GetCardFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& aUTF8Value, bool aCaseInsensitive, nsIAbCard **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardFromAttribute(aDirectory, aName, aUTF8Value, aCaseInsensitive, _retval); } \
  NS_IMETHOD GetCardsFromAttribute(nsIAbDirectory *aDirectory, const char * aName, const nsACString& uUTF8Value, bool aCaseInsensitive, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardsFromAttribute(aDirectory, aName, uUTF8Value, aCaseInsensitive, _retval); } \
  NS_IMETHOD FindMailListbyUnicodeName(const char16_t * listName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindMailListbyUnicodeName(listName, _retval); } \
  NS_IMETHOD GetCardCount(uint32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardCount(count); } \
  NS_IMETHOD GetNewRow(nsIMdbRow * * aNewRow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewRow(aNewRow); } \
  NS_IMETHOD GetNewListRow(nsIMdbRow * * aNewListRow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewListRow(aNewListRow); } \
  NS_IMETHOD AddCardRowToDB(nsIMdbRow * newRow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCardRowToDB(newRow); } \
  NS_IMETHOD AddLdifListMember(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddLdifListMember(row, value); } \
  NS_IMETHOD AddFirstName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFirstName(row, value); } \
  NS_IMETHOD AddLastName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddLastName(row, value); } \
  NS_IMETHOD AddPhoneticFirstName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPhoneticFirstName(row, value); } \
  NS_IMETHOD AddPhoneticLastName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPhoneticLastName(row, value); } \
  NS_IMETHOD AddDisplayName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDisplayName(row, value); } \
  NS_IMETHOD AddNickName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNickName(row, value); } \
  NS_IMETHOD AddPrimaryEmail(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPrimaryEmail(row, value); } \
  NS_IMETHOD Add2ndEmail(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Add2ndEmail(row, value); } \
  NS_IMETHOD AddWorkPhone(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkPhone(row, value); } \
  NS_IMETHOD AddHomePhone(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomePhone(row, value); } \
  NS_IMETHOD AddFaxNumber(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFaxNumber(row, value); } \
  NS_IMETHOD AddPagerNumber(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPagerNumber(row, value); } \
  NS_IMETHOD AddCellularNumber(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCellularNumber(row, value); } \
  NS_IMETHOD AddWorkPhoneType(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkPhoneType(row, value); } \
  NS_IMETHOD AddHomePhoneType(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomePhoneType(row, value); } \
  NS_IMETHOD AddFaxNumberType(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFaxNumberType(row, value); } \
  NS_IMETHOD AddPagerNumberType(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPagerNumberType(row, value); } \
  NS_IMETHOD AddCellularNumberType(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCellularNumberType(row, value); } \
  NS_IMETHOD AddHomeAddress(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeAddress(row, value); } \
  NS_IMETHOD AddHomeAddress2(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeAddress2(row, value); } \
  NS_IMETHOD AddHomeCity(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeCity(row, value); } \
  NS_IMETHOD AddHomeState(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeState(row, value); } \
  NS_IMETHOD AddHomeZipCode(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeZipCode(row, value); } \
  NS_IMETHOD AddHomeCountry(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHomeCountry(row, value); } \
  NS_IMETHOD AddWorkAddress(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkAddress(row, value); } \
  NS_IMETHOD AddWorkAddress2(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkAddress2(row, value); } \
  NS_IMETHOD AddWorkCity(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkCity(row, value); } \
  NS_IMETHOD AddWorkState(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkState(row, value); } \
  NS_IMETHOD AddWorkZipCode(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkZipCode(row, value); } \
  NS_IMETHOD AddWorkCountry(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWorkCountry(row, value); } \
  NS_IMETHOD AddJobTitle(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddJobTitle(row, value); } \
  NS_IMETHOD AddDepartment(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDepartment(row, value); } \
  NS_IMETHOD AddCompany(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCompany(row, value); } \
  NS_IMETHOD AddAimScreenName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAimScreenName(row, value); } \
  NS_IMETHOD AddAnniversaryYear(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAnniversaryYear(row, value); } \
  NS_IMETHOD AddAnniversaryMonth(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAnniversaryMonth(row, value); } \
  NS_IMETHOD AddAnniversaryDay(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAnniversaryDay(row, value); } \
  NS_IMETHOD AddSpouseName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSpouseName(row, value); } \
  NS_IMETHOD AddFamilyName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFamilyName(row, value); } \
  NS_IMETHOD AddDefaultAddress(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDefaultAddress(row, value); } \
  NS_IMETHOD AddCategory(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCategory(row, value); } \
  NS_IMETHOD AddWebPage1(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWebPage1(row, value); } \
  NS_IMETHOD AddWebPage2(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWebPage2(row, value); } \
  NS_IMETHOD AddBirthYear(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBirthYear(row, value); } \
  NS_IMETHOD AddBirthMonth(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBirthMonth(row, value); } \
  NS_IMETHOD AddBirthDay(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBirthDay(row, value); } \
  NS_IMETHOD AddCustom1(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustom1(row, value); } \
  NS_IMETHOD AddCustom2(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustom2(row, value); } \
  NS_IMETHOD AddCustom3(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustom3(row, value); } \
  NS_IMETHOD AddCustom4(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustom4(row, value); } \
  NS_IMETHOD AddNotes(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNotes(row, value); } \
  NS_IMETHOD AddPreferMailFormat(nsIMdbRow * row, uint32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPreferMailFormat(row, value); } \
  NS_IMETHOD AddPopularityIndex(nsIMdbRow * row, uint32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPopularityIndex(row, value); } \
  NS_IMETHOD AddListName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListName(row, value); } \
  NS_IMETHOD AddListNickName(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListNickName(row, value); } \
  NS_IMETHOD AddListDescription(nsIMdbRow * row, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListDescription(row, value); } \
  NS_IMETHOD AddListDirNode(nsIMdbRow * listRow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListDirNode(listRow); } \
  NS_IMETHOD SetCardValue(nsIAbCard *card, const char * name, const char16_t * value, bool notify) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCardValue(card, name, value, notify); } \
  NS_IMETHOD GetCardValue(nsIAbCard *card, const char * name, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardValue(card, name, _retval); } \
  NS_IMETHOD AddListCardColumnsToRow(nsIAbCard *aPCard, nsIMdbRow * aPListRow, uint32_t aPos, nsIAbCard **aPNewCard, bool aInMailingList, nsIAbDirectory *aParent, nsIAbDirectory *aRoot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListCardColumnsToRow(aPCard, aPListRow, aPos, aPNewCard, aInMailingList, aParent, aRoot); } \
  NS_IMETHOD InitCardFromRow(nsIAbCard *aNewCard, nsIMdbRow * aCardRow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitCardFromRow(aNewCard, aCardRow); } \
  NS_IMETHOD SetListAddressTotal(nsIMdbRow * aListRow, uint32_t aTotal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListAddressTotal(aListRow, aTotal); } \
  NS_IMETHOD FindRowByCard(nsIAbCard *aCard, nsIMdbRow * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindRowByCard(aCard, _retval); } 


#endif /* __gen_nsIAddrDatabase_h__ */