/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAbCard.idl
 */

#ifndef __gen_nsIAbCard_h__
#define __gen_nsIAbCard_h__


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

#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 NS_SCRIPTABLE nsIAbPreferMailFormat {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABPREFERMAILFORMAT_IID)

  enum { unknown = 0U };

  enum { plaintext = 1U };

  enum { 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 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_ISUPPORTS1(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 "5d6712d1-995c-42f4-91d7-e5539203af80"

#define NS_IABCARD_IID \
  {0x5d6712d1, 0x995c, 0x42f4, \
    { 0x91, 0xd7, 0xe5, 0x53, 0x92, 0x03, 0xaf, 0x80 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIAbCard : public nsIAbItem {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABCARD_IID)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* attribute string mailListURI; */
  NS_SCRIPTABLE NS_IMETHOD GetMailListURI(char * *aMailListURI) = 0;
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId); \
  NS_SCRIPTABLE NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId); \
  NS_SCRIPTABLE NS_IMETHOD GetLocalId(nsACString & aLocalId); \
  NS_SCRIPTABLE NS_IMETHOD SetLocalId(const nsACString & aLocalId); \
  NS_SCRIPTABLE NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties); \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const char * name, PRUint32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const char * name, PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value); \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value); \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value); \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsUint32(const char * name, PRUint32 value); \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsBool(const char * name, PRBool value); \
  NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsACString & name); \
  NS_SCRIPTABLE NS_IMETHOD GetFirstName(nsAString & aFirstName); \
  NS_SCRIPTABLE NS_IMETHOD SetFirstName(const nsAString & aFirstName); \
  NS_SCRIPTABLE NS_IMETHOD GetLastName(nsAString & aLastName); \
  NS_SCRIPTABLE NS_IMETHOD SetLastName(const nsAString & aLastName); \
  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName); \
  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName); \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail); \
  NS_SCRIPTABLE NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail); \
  NS_SCRIPTABLE NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GeneratePhoneticName(PRBool aLastNameFirst, nsAString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Copy(nsIAbCard *aSrcCard); \
  NS_SCRIPTABLE NS_IMETHOD Equals(nsIAbCard *aCard, PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetIsMailList(PRBool *aIsMailList); \
  NS_SCRIPTABLE NS_IMETHOD SetIsMailList(PRBool aIsMailList); \
  NS_SCRIPTABLE NS_IMETHOD GetMailListURI(char * *aMailListURI); \
  NS_SCRIPTABLE NS_IMETHOD 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_SCRIPTABLE NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) { return _to GetDirectoryId(aDirectoryId); } \
  NS_SCRIPTABLE NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) { return _to SetDirectoryId(aDirectoryId); } \
  NS_SCRIPTABLE NS_IMETHOD GetLocalId(nsACString & aLocalId) { return _to GetLocalId(aLocalId); } \
  NS_SCRIPTABLE NS_IMETHOD SetLocalId(const nsACString & aLocalId) { return _to SetLocalId(aLocalId); } \
  NS_SCRIPTABLE NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) { return _to GetProperties(aProperties); } \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval NS_OUTPARAM) { return _to GetProperty(name, defaultValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval NS_OUTPARAM) { return _to GetPropertyAsAString(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval NS_OUTPARAM) { return _to GetPropertyAsAUTF8String(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const char * name, PRUint32 *_retval NS_OUTPARAM) { return _to GetPropertyAsUint32(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const char * name, PRBool *_retval NS_OUTPARAM) { return _to GetPropertyAsBool(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) { return _to SetProperty(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) { return _to SetPropertyAsAString(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) { return _to SetPropertyAsAUTF8String(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsUint32(const char * name, PRUint32 value) { return _to SetPropertyAsUint32(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsBool(const char * name, PRBool value) { return _to SetPropertyAsBool(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsACString & name) { return _to DeleteProperty(name); } \
  NS_SCRIPTABLE NS_IMETHOD GetFirstName(nsAString & aFirstName) { return _to GetFirstName(aFirstName); } \
  NS_SCRIPTABLE NS_IMETHOD SetFirstName(const nsAString & aFirstName) { return _to SetFirstName(aFirstName); } \
  NS_SCRIPTABLE NS_IMETHOD GetLastName(nsAString & aLastName) { return _to GetLastName(aLastName); } \
  NS_SCRIPTABLE NS_IMETHOD SetLastName(const nsAString & aLastName) { return _to SetLastName(aLastName); } \
  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return _to SetDisplayName(aDisplayName); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) { return _to GetPrimaryEmail(aPrimaryEmail); } \
  NS_SCRIPTABLE NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) { return _to SetPrimaryEmail(aPrimaryEmail); } \
  NS_SCRIPTABLE NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, PRBool *_retval NS_OUTPARAM) { return _to HasEmailAddress(aEmailAddress, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval NS_OUTPARAM) { return _to TranslateTo(aType, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GeneratePhoneticName(PRBool aLastNameFirst, nsAString & _retval NS_OUTPARAM) { return _to GeneratePhoneticName(aLastNameFirst, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Copy(nsIAbCard *aSrcCard) { return _to Copy(aSrcCard); } \
  NS_SCRIPTABLE NS_IMETHOD Equals(nsIAbCard *aCard, PRBool *_retval NS_OUTPARAM) { return _to Equals(aCard, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsMailList(PRBool *aIsMailList) { return _to GetIsMailList(aIsMailList); } \
  NS_SCRIPTABLE NS_IMETHOD SetIsMailList(PRBool aIsMailList) { return _to SetIsMailList(aIsMailList); } \
  NS_SCRIPTABLE NS_IMETHOD GetMailListURI(char * *aMailListURI) { return _to GetMailListURI(aMailListURI); } \
  NS_SCRIPTABLE NS_IMETHOD SetMailListURI(const char * aMailListURI) { 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_SCRIPTABLE NS_IMETHOD GetDirectoryId(nsACString & aDirectoryId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectoryId(aDirectoryId); } \
  NS_SCRIPTABLE NS_IMETHOD SetDirectoryId(const nsACString & aDirectoryId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectoryId(aDirectoryId); } \
  NS_SCRIPTABLE NS_IMETHOD GetLocalId(nsACString & aLocalId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalId(aLocalId); } \
  NS_SCRIPTABLE NS_IMETHOD SetLocalId(const nsACString & aLocalId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalId(aLocalId); } \
  NS_SCRIPTABLE NS_IMETHOD GetProperties(nsISimpleEnumerator * *aProperties) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperties(aProperties); } \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const nsACString & name, nsIVariant *defaultValue, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(name, defaultValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const char * name, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const char * name, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const char * name, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const char * name, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsACString & name, nsIVariant *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAString(const char * name, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAString(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsAUTF8String(const char * name, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAUTF8String(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsUint32(const char * name, PRUint32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint32(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetPropertyAsBool(const char * name, PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsBool(name, value); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsACString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProperty(name); } \
  NS_SCRIPTABLE NS_IMETHOD GetFirstName(nsAString & aFirstName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstName(aFirstName); } \
  NS_SCRIPTABLE NS_IMETHOD SetFirstName(const nsAString & aFirstName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFirstName(aFirstName); } \
  NS_SCRIPTABLE NS_IMETHOD GetLastName(nsAString & aLastName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastName(aLastName); } \
  NS_SCRIPTABLE NS_IMETHOD SetLastName(const nsAString & aLastName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastName(aLastName); } \
  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayName(aDisplayName); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryEmail(nsAString & aPrimaryEmail) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryEmail(aPrimaryEmail); } \
  NS_SCRIPTABLE NS_IMETHOD SetPrimaryEmail(const nsAString & aPrimaryEmail) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimaryEmail(aPrimaryEmail); } \
  NS_SCRIPTABLE NS_IMETHOD HasEmailAddress(const nsACString & aEmailAddress, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEmailAddress(aEmailAddress, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD TranslateTo(const nsACString & aType, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateTo(aType, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GeneratePhoneticName(PRBool aLastNameFirst, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GeneratePhoneticName(aLastNameFirst, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Copy(nsIAbCard *aSrcCard) { return !_to ? NS_ERROR_NULL_POINTER : _to->Copy(aSrcCard); } \
  NS_SCRIPTABLE NS_IMETHOD Equals(nsIAbCard *aCard, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aCard, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsMailList(PRBool *aIsMailList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMailList(aIsMailList); } \
  NS_SCRIPTABLE NS_IMETHOD SetIsMailList(PRBool aIsMailList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMailList(aIsMailList); } \
  NS_SCRIPTABLE NS_IMETHOD GetMailListURI(char * *aMailListURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMailListURI(aMailListURI); } \
  NS_SCRIPTABLE NS_IMETHOD SetMailListURI(const char * aMailListURI) { 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_ISUPPORTS1(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 NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

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

/* boolean getPropertyAsBool (in string name); */
NS_IMETHODIMP nsAbCard::GetPropertyAsBool(const char * name, PRBool *_retval NS_OUTPARAM)
{
    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, PRUint32 value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPropertyAsBool (in string name, in boolean value); */
NS_IMETHODIMP nsAbCard::SetPropertyAsBool(const char * name, PRBool 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, PRBool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* AString generatePhoneticName (in boolean aLastNameFirst); */
NS_IMETHODIMP nsAbCard::GeneratePhoneticName(PRBool aLastNameFirst, nsAString & _retval NS_OUTPARAM)
{
    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, PRBool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean isMailList; */
NS_IMETHODIMP nsAbCard::GetIsMailList(PRBool *aIsMailList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbCard::SetIsMailList(PRBool 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 kAllowRemoteContentProperty "AllowRemoteContent"
#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 kAnniversaryYearProperty    "AnniversaryYear"
#define kAnniversaryMonthProperty   "AnniversaryMonth"
#define kAnniversaryDayProperty     "AnniversaryDay"
#define kBirthYearProperty          "BirthYear"
#define kBirthMonthProperty         "BirthMonth"
#define kBirthDayProperty           "BirthDay"

#endif /* __gen_nsIAbCard_h__ */
