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

nsIAbCard

nsIAbPreferMailFormat

Macros

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAbCard.idl
 */

#ifndef __gen_nsIAbCard_h__
#define __gen_nsIAbCard_h__


#ifndef __gen_nsIAbItem_h__
#include "nsIAbItem.h"
#endif

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

class nsIVariant; /* forward declaration */


/* starting interface:    nsIAbPreferMailFormat */
#define NS_IABPREFERMAILFORMAT_IID_STR "97448252-f189-11d4-a422-001083003d0c"

#define NS_IABPREFERMAILFORMAT_IID \
  {0x97448252, 0xf189, 0x11d4, \
    { 0xa4, 0x22, 0x00, 0x10, 0x83, 0x00, 0x3d, 0x0c }}

class NS_NO_VTABLE nsIAbPreferMailFormat {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABPREFERMAILFORMAT_IID)

  enum {
    unknown = 0U,
    plaintext = 1U,
    html = 2U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbPreferMailFormat, NS_IABPREFERMAILFORMAT_IID)

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

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

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

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

/* Header file */
class nsAbPreferMailFormat : public nsIAbPreferMailFormat
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIABPREFERMAILFORMAT

  nsAbPreferMailFormat();

private:
  ~nsAbPreferMailFormat();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAbPreferMailFormat, nsIAbPreferMailFormat)

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

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

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


/* starting interface:    nsIAbCard */
#define NS_IABCARD_IID_STR "9bddf024-5178-4097-894e-d84b4ddde101"

#define NS_IABCARD_IID \
  {0x9bddf024, 0x5178, 0x4097, \
    { 0x89, 0x4e, 0xd8, 0x4b, 0x4d, 0xdd, 0xe1, 0x01 }}

class NS_NO_VTABLE nsIAbCard : public nsIAbItem {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABCARD_IID)

  /* attribute AUTF8String directoryId; */
  NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) = 0;
  NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) = 0;

  /* attribute AUTF8String localId; */
  NS_IMETHOD GetLocalId(nsACString & aLocalId) = 0;
  NS_IMETHOD SetLocalId(const nsACString & aLocalId) = 0;

  /* readonly attribute nsISimpleEnumerator properties; */
  NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) = 0;

  /* nsIVariant getProperty (in AUTF8String name, in nsIVariant defaultValue); */
  NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval) = 0;

  /* AString getPropertyAsAString (in string name); */
  NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval) = 0;

  /* AUTF8String getPropertyAsAUTF8String (in string name); */
  NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval) = 0;

  /* unsigned long getPropertyAsUint32 (in string name); */
  NS_IMETHOD GetPropertyAsUint32(const char * name, uint32_t *_retval) = 0;

  /* boolean getPropertyAsBool (in string name); */
  NS_IMETHOD GetPropertyAsBool(const char * name, bool *_retval) = 0;

  /* void setProperty (in AUTF8String name, in nsIVariant value); */
  NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) = 0;

  /* void setPropertyAsAString (in string name, in AString value); */
  NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) = 0;

  /* void setPropertyAsAUTF8String (in string name, in AUTF8String value); */
  NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) = 0;

  /* void setPropertyAsUint32 (in string name, in unsigned long value); */
  NS_IMETHOD SetPropertyAsUint32(const char * name, uint32_t value) = 0;

  /* void setPropertyAsBool (in string name, in boolean value); */
  NS_IMETHOD SetPropertyAsBool(const char * name, bool value) = 0;

  /* void deleteProperty (in AUTF8String name); */
  NS_IMETHOD DeleteProperty(const nsACString & name) = 0;

  /* attribute AString firstName; */
  NS_IMETHOD GetFirstName(nsAString & aFirstName) = 0;
  NS_IMETHOD SetFirstName(const nsAString & aFirstName) = 0;

  /* attribute AString lastName; */
  NS_IMETHOD GetLastName(nsAString & aLastName) = 0;
  NS_IMETHOD SetLastName(const nsAString & aLastName) = 0;

  /* attribute AString displayName; */
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) = 0;
  NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) = 0;

  /* attribute AString primaryEmail; */
  NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) = 0;
  NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) = 0;

  /* boolean hasEmailAddress (in AUTF8String aEmailAddress); */
  NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, bool *_retval) = 0;

  /* AUTF8String translateTo (in AUTF8String aType); */
  NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval) = 0;

  /* AString generatePhoneticName (in boolean aLastNameFirst); */
  NS_IMETHOD GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval) = 0;

  /* AString generateChatName (); */
  NS_IMETHOD GenerateChatName(nsAString & _retval) = 0;

  /* void copy (in nsIAbCard aSrcCard); */
  NS_IMETHOD Copy(nsIAbCard *aSrcCard) = 0;

  /* boolean equals (in nsIAbCard aCard); */
  NS_IMETHOD Equals(nsIAbCard *aCard, bool *_retval) = 0;

  /* attribute boolean isMailList; */
  NS_IMETHOD GetIsMailList(bool *aIsMailList) = 0;
  NS_IMETHOD SetIsMailList(bool aIsMailList) = 0;

  /* attribute string mailListURI; */
  NS_IMETHOD GetMailListURI(char * *aMailListURI) = 0;
  NS_IMETHOD SetMailListURI(const char * aMailListURI) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbCard, NS_IABCARD_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABCARD \
  NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) override; \
  NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) override; \
  NS_IMETHOD GetLocalId(nsACString & aLocalId) override; \
  NS_IMETHOD SetLocalId(const nsACString & aLocalId) override; \
  NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) override; \
  NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval) override; \
  NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval) override; \
  NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval) override; \
  NS_IMETHOD GetPropertyAsUint32(const char * name, uint32_t *_retval) override; \
  NS_IMETHOD GetPropertyAsBool(const char * name, bool *_retval) override; \
  NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) override; \
  NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) override; \
  NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) override; \
  NS_IMETHOD SetPropertyAsUint32(const char * name, uint32_t value) override; \
  NS_IMETHOD SetPropertyAsBool(const char * name, bool value) override; \
  NS_IMETHOD DeleteProperty(const nsACString & name) override; \
  NS_IMETHOD GetFirstName(nsAString & aFirstName) override; \
  NS_IMETHOD SetFirstName(const nsAString & aFirstName) override; \
  NS_IMETHOD GetLastName(nsAString & aLastName) override; \
  NS_IMETHOD SetLastName(const nsAString & aLastName) override; \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) override; \
  NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) override; \
  NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) override; \
  NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) override; \
  NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, bool *_retval) override; \
  NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval) override; \
  NS_IMETHOD GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval) override; \
  NS_IMETHOD GenerateChatName(nsAString & _retval) override; \
  NS_IMETHOD Copy(nsIAbCard *aSrcCard) override; \
  NS_IMETHOD Equals(nsIAbCard *aCard, bool *_retval) override; \
  NS_IMETHOD GetIsMailList(bool *aIsMailList) override; \
  NS_IMETHOD SetIsMailList(bool aIsMailList) override; \
  NS_IMETHOD GetMailListURI(char * *aMailListURI) override; \
  NS_IMETHOD SetMailListURI(const char * aMailListURI) 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_NSIABCARD \
  nsresult GetDirectoryId(nsACString & aDirectoryId); \
  nsresult SetDirectoryId(const nsACString & aDirectoryId); \
  nsresult GetLocalId(nsACString & aLocalId); \
  nsresult SetLocalId(const nsACString & aLocalId); \
  nsresult GetProperties(nsISimpleEnumerator * *aProperties); \
  nsresult GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval); \
  nsresult GetPropertyAsAString(const char * name, nsAString & _retval); \
  nsresult GetPropertyAsAUTF8String(const char * name, nsACString & _retval); \
  nsresult GetPropertyAsUint32(const char * name, uint32_t *_retval); \
  nsresult GetPropertyAsBool(const char * name, bool *_retval); \
  nsresult SetProperty(const nsACString & name, nsIVariant *value); \
  nsresult SetPropertyAsAString(const char * name, const nsAString & value); \
  nsresult SetPropertyAsAUTF8String(const char * name, const nsACString & value); \
  nsresult SetPropertyAsUint32(const char * name, uint32_t value); \
  nsresult SetPropertyAsBool(const char * name, bool value); \
  nsresult DeleteProperty(const nsACString & name); \
  nsresult GetFirstName(nsAString & aFirstName); \
  nsresult SetFirstName(const nsAString & aFirstName); \
  nsresult GetLastName(nsAString & aLastName); \
  nsresult SetLastName(const nsAString & aLastName); \
  nsresult GetDisplayName(nsAString & aDisplayName); \
  nsresult SetDisplayName(const nsAString & aDisplayName); \
  nsresult GetPrimaryEmail(nsAString & aPrimaryEmail); \
  nsresult SetPrimaryEmail(const nsAString & aPrimaryEmail); \
  nsresult HasEmailAddress(const nsACString & aEmailAddress, bool *_retval); \
  nsresult TranslateTo(const nsACString & aType, nsACString & _retval); \
  nsresult GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval); \
  nsresult GenerateChatName(nsAString & _retval); \
  nsresult Copy(nsIAbCard *aSrcCard); \
  nsresult Equals(nsIAbCard *aCard, bool *_retval); \
  nsresult GetIsMailList(bool *aIsMailList); \
  nsresult SetIsMailList(bool aIsMailList); \
  nsresult GetMailListURI(char * *aMailListURI); \
  nsresult SetMailListURI(const char * aMailListURI); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABCARD(_to) \
  NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) override { return _to GetDirectoryId(aDirectoryId); } \
  NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) override { return _to SetDirectoryId(aDirectoryId); } \
  NS_IMETHOD GetLocalId(nsACString & aLocalId) override { return _to GetLocalId(aLocalId); } \
  NS_IMETHOD SetLocalId(const nsACString & aLocalId) override { return _to SetLocalId(aLocalId); } \
  NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) override { return _to GetProperties(aProperties); } \
  NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval) override { return _to GetProperty(name, defaultValue, _retval); } \
  NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval) override { return _to GetPropertyAsAString(name, _retval); } \
  NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval) override { return _to GetPropertyAsAUTF8String(name, _retval); } \
  NS_IMETHOD GetPropertyAsUint32(const char * name, uint32_t *_retval) override { return _to GetPropertyAsUint32(name, _retval); } \
  NS_IMETHOD GetPropertyAsBool(const char * name, bool *_retval) override { return _to GetPropertyAsBool(name, _retval); } \
  NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) override { return _to SetProperty(name, value); } \
  NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) override { return _to SetPropertyAsAString(name, value); } \
  NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) override { return _to SetPropertyAsAUTF8String(name, value); } \
  NS_IMETHOD SetPropertyAsUint32(const char * name, uint32_t value) override { return _to SetPropertyAsUint32(name, value); } \
  NS_IMETHOD SetPropertyAsBool(const char * name, bool value) override { return _to SetPropertyAsBool(name, value); } \
  NS_IMETHOD DeleteProperty(const nsACString & name) override { return _to DeleteProperty(name); } \
  NS_IMETHOD GetFirstName(nsAString & aFirstName) override { return _to GetFirstName(aFirstName); } \
  NS_IMETHOD SetFirstName(const nsAString & aFirstName) override { return _to SetFirstName(aFirstName); } \
  NS_IMETHOD GetLastName(nsAString & aLastName) override { return _to GetLastName(aLastName); } \
  NS_IMETHOD SetLastName(const nsAString & aLastName) override { return _to SetLastName(aLastName); } \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) override { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) override { return _to SetDisplayName(aDisplayName); } \
  NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) override { return _to GetPrimaryEmail(aPrimaryEmail); } \
  NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) override { return _to SetPrimaryEmail(aPrimaryEmail); } \
  NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, bool *_retval) override { return _to HasEmailAddress(aEmailAddress, _retval); } \
  NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval) override { return _to TranslateTo(aType, _retval); } \
  NS_IMETHOD GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval) override { return _to GeneratePhoneticName(aLastNameFirst, _retval); } \
  NS_IMETHOD GenerateChatName(nsAString & _retval) override { return _to GenerateChatName(_retval); } \
  NS_IMETHOD Copy(nsIAbCard *aSrcCard) override { return _to Copy(aSrcCard); } \
  NS_IMETHOD Equals(nsIAbCard *aCard, bool *_retval) override { return _to Equals(aCard, _retval); } \
  NS_IMETHOD GetIsMailList(bool *aIsMailList) override { return _to GetIsMailList(aIsMailList); } \
  NS_IMETHOD SetIsMailList(bool aIsMailList) override { return _to SetIsMailList(aIsMailList); } \
  NS_IMETHOD GetMailListURI(char * *aMailListURI) override { return _to GetMailListURI(aMailListURI); } \
  NS_IMETHOD SetMailListURI(const char * aMailListURI) override { return _to SetMailListURI(aMailListURI); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABCARD(_to) \
  NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectoryId(aDirectoryId); } \
  NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectoryId(aDirectoryId); } \
  NS_IMETHOD GetLocalId(nsACString & aLocalId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalId(aLocalId); } \
  NS_IMETHOD SetLocalId(const nsACString & aLocalId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalId(aLocalId); } \
  NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperties(aProperties); } \
  NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(name, defaultValue, _retval); } \
  NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(name, _retval); } \
  NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(name, _retval); } \
  NS_IMETHOD GetPropertyAsUint32(const char * name, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(name, _retval); } \
  NS_IMETHOD GetPropertyAsBool(const char * name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(name, _retval); } \
  NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(name, value); } \
  NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAString(name, value); } \
  NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAUTF8String(name, value); } \
  NS_IMETHOD SetPropertyAsUint32(const char * name, uint32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint32(name, value); } \
  NS_IMETHOD SetPropertyAsBool(const char * name, bool value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsBool(name, value); } \
  NS_IMETHOD DeleteProperty(const nsACString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProperty(name); } \
  NS_IMETHOD GetFirstName(nsAString & aFirstName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstName(aFirstName); } \
  NS_IMETHOD SetFirstName(const nsAString & aFirstName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFirstName(aFirstName); } \
  NS_IMETHOD GetLastName(nsAString & aLastName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastName(aLastName); } \
  NS_IMETHOD SetLastName(const nsAString & aLastName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastName(aLastName); } \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayName(aDisplayName); } \
  NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryEmail(aPrimaryEmail); } \
  NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimaryEmail(aPrimaryEmail); } \
  NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEmailAddress(aEmailAddress, _retval); } \
  NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateTo(aType, _retval); } \
  NS_IMETHOD GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GeneratePhoneticName(aLastNameFirst, _retval); } \
  NS_IMETHOD GenerateChatName(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateChatName(_retval); } \
  NS_IMETHOD Copy(nsIAbCard *aSrcCard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Copy(aSrcCard); } \
  NS_IMETHOD Equals(nsIAbCard *aCard, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aCard, _retval); } \
  NS_IMETHOD GetIsMailList(bool *aIsMailList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMailList(aIsMailList); } \
  NS_IMETHOD SetIsMailList(bool aIsMailList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMailList(aIsMailList); } \
  NS_IMETHOD GetMailListURI(char * *aMailListURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMailListURI(aMailListURI); } \
  NS_IMETHOD SetMailListURI(const char * aMailListURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMailListURI(aMailListURI); } 

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

/* Header file */
class nsAbCard : public nsIAbCard
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIABCARD

  nsAbCard();

private:
  ~nsAbCard();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAbCard, nsIAbCard)

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

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

/* attribute AUTF8String directoryId; */
NS_IMETHODIMP nsAbCard::GetDirectoryId(nsACString & aDirectoryId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetDirectoryId(const nsACString & aDirectoryId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String localId; */
NS_IMETHODIMP nsAbCard::GetLocalId(nsACString & aLocalId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetLocalId(const nsACString & aLocalId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator properties; */
NS_IMETHODIMP nsAbCard::GetProperties(nsISimpleEnumerator * *aProperties)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIVariant getProperty (in AUTF8String name, in nsIVariant defaultValue); */
NS_IMETHODIMP nsAbCard::GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getPropertyAsAString (in string name); */
NS_IMETHODIMP nsAbCard::GetPropertyAsAString(const char * name, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String getPropertyAsAUTF8String (in string name); */
NS_IMETHODIMP nsAbCard::GetPropertyAsAUTF8String(const char * name, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getPropertyAsUint32 (in string name); */
NS_IMETHODIMP nsAbCard::GetPropertyAsUint32(const char * name, uint32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean getPropertyAsBool (in string name); */
NS_IMETHODIMP nsAbCard::GetPropertyAsBool(const char * name, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setProperty (in AUTF8String name, in nsIVariant value); */
NS_IMETHODIMP nsAbCard::SetProperty(const nsACString & name, nsIVariant *value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPropertyAsAString (in string name, in AString value); */
NS_IMETHODIMP nsAbCard::SetPropertyAsAString(const char * name, const nsAString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPropertyAsAUTF8String (in string name, in AUTF8String value); */
NS_IMETHODIMP nsAbCard::SetPropertyAsAUTF8String(const char * name, const nsACString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPropertyAsUint32 (in string name, in unsigned long value); */
NS_IMETHODIMP nsAbCard::SetPropertyAsUint32(const char * name, uint32_t value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPropertyAsBool (in string name, in boolean value); */
NS_IMETHODIMP nsAbCard::SetPropertyAsBool(const char * name, bool value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteProperty (in AUTF8String name); */
NS_IMETHODIMP nsAbCard::DeleteProperty(const nsACString & name)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString firstName; */
NS_IMETHODIMP nsAbCard::GetFirstName(nsAString & aFirstName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetFirstName(const nsAString & aFirstName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString lastName; */
NS_IMETHODIMP nsAbCard::GetLastName(nsAString & aLastName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetLastName(const nsAString & aLastName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString displayName; */
NS_IMETHODIMP nsAbCard::GetDisplayName(nsAString & aDisplayName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetDisplayName(const nsAString & aDisplayName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString primaryEmail; */
NS_IMETHODIMP nsAbCard::GetPrimaryEmail(nsAString & aPrimaryEmail)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetPrimaryEmail(const nsAString & aPrimaryEmail)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean hasEmailAddress (in AUTF8String aEmailAddress); */
NS_IMETHODIMP nsAbCard::HasEmailAddress(const nsACString & aEmailAddress, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String translateTo (in AUTF8String aType); */
NS_IMETHODIMP nsAbCard::TranslateTo(const nsACString & aType, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString generatePhoneticName (in boolean aLastNameFirst); */
NS_IMETHODIMP nsAbCard::GeneratePhoneticName(bool aLastNameFirst, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString generateChatName (); */
NS_IMETHODIMP nsAbCard::GenerateChatName(nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void copy (in nsIAbCard aSrcCard); */
NS_IMETHODIMP nsAbCard::Copy(nsIAbCard *aSrcCard)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean equals (in nsIAbCard aCard); */
NS_IMETHODIMP nsAbCard::Equals(nsIAbCard *aCard, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean isMailList; */
NS_IMETHODIMP nsAbCard::GetIsMailList(bool *aIsMailList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetIsMailList(bool aIsMailList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string mailListURI; */
NS_IMETHODIMP nsAbCard::GetMailListURI(char * *aMailListURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetMailListURI(const char * aMailListURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// A nice list of properties for the benefit of C++ clients
#define kFirstNameProperty          "FirstName"
#define kLastNameProperty           "LastName"
#define kDisplayNameProperty        "DisplayName"
#define kNicknameProperty           "NickName"
#define kPriEmailProperty           "PrimaryEmail"
#define kPreferMailFormatProperty   "PreferMailFormat"
#define kLastModifiedDateProperty   "LastModifiedDate"
#define kPopularityIndexProperty    "PopularityIndex"
#define kPhoneticFirstNameProperty  "PhoneticFirstName"
#define kPhoneticLastNameProperty   "PhoneticLastName"
#define kSpouseNameProperty         "SpouseName"
#define kFamilyNameProperty         "FamilyName"
#define k2ndEmailProperty           "SecondEmail"
#define kHomeAddressProperty        "HomeAddress"
#define kHomeAddress2Property       "HomeAddress2"
#define kHomeCityProperty           "HomeCity"
#define kHomeStateProperty          "HomeState"
#define kHomeZipCodeProperty        "HomeZipCode"
#define kHomeCountryProperty        "HomeCountry"
#define kHomeWebPageProperty        "WebPage2"
#define kWorkAddressProperty        "WorkAddress"
#define kWorkAddress2Property       "WorkAddress2"
#define kWorkCityProperty           "WorkCity"
#define kWorkStateProperty          "WorkState"
#define kWorkZipCodeProperty        "WorkZipCode"
#define kWorkCountryProperty        "WorkCountry"
#define kWorkWebPageProperty        "WebPage1"
#define kHomePhoneProperty          "HomePhone"
#define kHomePhoneTypeProperty      "HomePhoneType"
#define kWorkPhoneProperty          "WorkPhone"
#define kWorkPhoneTypeProperty      "WorkPhoneType"
#define kFaxProperty                "FaxNumber"
#define kFaxTypeProperty            "FaxNumberType"
#define kPagerTypeProperty          "PagerNumberType"
#define kPagerProperty              "PagerNumber"
#define kCellularProperty           "CellularNumber"
#define kCellularTypeProperty       "CellularNumberType"
#define kJobTitleProperty           "JobTitle"
#define kDepartmentProperty         "Department"
#define kCompanyProperty            "Company"
#define kScreenNameProperty         "_AimScreenName"
#define kCustom1Property            "Custom1"
#define kCustom2Property            "Custom2"
#define kCustom3Property            "Custom3"
#define kCustom4Property            "Custom4"
#define kNotesProperty              "Notes"
#define kGtalkProperty              "_GoogleTalk"
#define kAIMProperty                "_AimScreenName"
#define kYahooProperty              "_Yahoo"
#define kSkypeProperty              "_Skype"
#define kQQProperty                 "_QQ"
#define kMSNProperty                "_MSN"
#define kICQProperty                "_ICQ"
#define kXMPPProperty               "_JabberId"
#define kIRCProperty                "_IRC"
#define kAnniversaryYearProperty    "AnniversaryYear"
#define kAnniversaryMonthProperty   "AnniversaryMonth"
#define kAnniversaryDayProperty     "AnniversaryDay"
#define kBirthYearProperty          "BirthYear"
#define kBirthMonthProperty         "BirthMonth"
#define kBirthDayProperty           "BirthDay"

#endif /* __gen_nsIAbCard_h__ */