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

#ifndef __gen_nsIMsgHeaderParser_h__
#define __gen_nsIMsgHeaderParser_h__


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

#ifndef __gen_nsrootidl_h__
#include "nsrootidl.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 */

// {932C53A5-F398-11d2-82B7-444553540002}
#define NS_MSGHEADERPARSER_CID \
        { 0x932c53a5, 0xf398, 0x11d2, \
        { 0x82, 0xb7, 0x44, 0x45, 0x53, 0x54, 0x0, 0x2 } }

/* starting interface:    nsIMsgHeaderParserResult */
#define NS_IMSGHEADERPARSERRESULT_IID_STR "8987735b-c239-11d3-98ad-001083010e9b"

#define NS_IMSGHEADERPARSERRESULT_IID \
  {0x8987735b, 0xc239, 0x11d3, \
    { 0x98, 0xad, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b }}

class NS_NO_VTABLE nsIMsgHeaderParserResult : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IMSGHEADERPARSERRESULT_IID)

  /* wstring getAddressAndName (out wstring address, out wstring name); */
  NS_IMETHOD GetAddressAndName(PRUnichar **address, PRUnichar **name, PRUnichar **_retval) = 0;

  /* readonly attribute unsigned long currentResultNumber; */
  NS_IMETHOD GetCurrentResultNumber(PRUint32 *aCurrentResultNumber) = 0;

  /* readonly attribute unsigned long totalNumberOfResults; */
  NS_IMETHOD GetTotalNumberOfResults(PRUint32 *aTotalNumberOfResults) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGHEADERPARSERRESULT \
  NS_IMETHOD GetAddressAndName(PRUnichar **address, PRUnichar **name, PRUnichar **_retval); \
  NS_IMETHOD GetCurrentResultNumber(PRUint32 *aCurrentResultNumber); \
  NS_IMETHOD GetTotalNumberOfResults(PRUint32 *aTotalNumberOfResults); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGHEADERPARSERRESULT(_to) \
  NS_IMETHOD GetAddressAndName(PRUnichar **address, PRUnichar **name, PRUnichar **_retval) { return _to ## GetAddressAndName(address, name, _retval); } \
  NS_IMETHOD GetCurrentResultNumber(PRUint32 *aCurrentResultNumber) { return _to ## GetCurrentResultNumber(aCurrentResultNumber); } \
  NS_IMETHOD GetTotalNumberOfResults(PRUint32 *aTotalNumberOfResults) { return _to ## GetTotalNumberOfResults(aTotalNumberOfResults); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGHEADERPARSERRESULT(_to) \
  NS_IMETHOD GetAddressAndName(PRUnichar **address, PRUnichar **name, PRUnichar **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetAddressAndName(address, name, _retval); } \
  NS_IMETHOD GetCurrentResultNumber(PRUint32 *aCurrentResultNumber) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetCurrentResultNumber(aCurrentResultNumber); } \
  NS_IMETHOD GetTotalNumberOfResults(PRUint32 *aTotalNumberOfResults) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetTotalNumberOfResults(aTotalNumberOfResults); } 

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

/* Header file */
class nsMsgHeaderParserResult : public nsIMsgHeaderParserResult
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGHEADERPARSERRESULT

  nsMsgHeaderParserResult();
  virtual ~nsMsgHeaderParserResult();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgHeaderParserResult, nsIMsgHeaderParserResult)

nsMsgHeaderParserResult::nsMsgHeaderParserResult()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* wstring getAddressAndName (out wstring address, out wstring name); */
NS_IMETHODIMP nsMsgHeaderParserResult::GetAddressAndName(PRUnichar **address, PRUnichar **name, PRUnichar **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long currentResultNumber; */
NS_IMETHODIMP nsMsgHeaderParserResult::GetCurrentResultNumber(PRUint32 *aCurrentResultNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long totalNumberOfResults; */
NS_IMETHODIMP nsMsgHeaderParserResult::GetTotalNumberOfResults(PRUint32 *aTotalNumberOfResults)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIMsgHeaderParser */
#define NS_IMSGHEADERPARSER_IID_STR "10a88a11-729e-11d2-804a-006008128c4e"

#define NS_IMSGHEADERPARSER_IID \
  {0x10a88a11, 0x729e, 0x11d2, \
    { 0x80, 0x4a, 0x00, 0x60, 0x08, 0x12, 0x8c, 0x4e }}

class NS_NO_VTABLE nsIMsgHeaderParser : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IMSGHEADERPARSER_IID)

  /* nsISimpleEnumerator ParseHeadersWithEnumerator (in wstring line); */
  NS_IMETHOD ParseHeadersWithEnumerator(const PRUnichar *line, nsISimpleEnumerator **_retval) = 0;

  /* void ParseHeaderAddresses (in string charset, in string line, out string names, out string addresses, out PRUint32 numAddresses); */
  NS_IMETHOD ParseHeaderAddresses(const char *charset, const char *line, char **names, char **addresses, PRUint32 *numAddresses) = 0;

  /* void ExtractHeaderAddressMailboxes (in string charset, in string line, out string mailboxes); */
  NS_IMETHOD ExtractHeaderAddressMailboxes(const char *charset, const char *line, char **mailboxes) = 0;

  /* void ExtractHeaderAddressNames (in string charset, in string line, out string userNames); */
  NS_IMETHOD ExtractHeaderAddressNames(const char *charset, const char *line, char **userNames) = 0;

  /* void ExtractHeaderAddressName (in string charset, in string line, out string name); */
  NS_IMETHOD ExtractHeaderAddressName(const char *charset, const char *line, char **name) = 0;

  /* void ReformatHeaderAddresses (in string charset, in string line, out string reformattedAddress); */
  NS_IMETHOD ReformatHeaderAddresses(const char *charset, const char *line, char **reformattedAddress) = 0;

  /* void RemoveDuplicateAddresses (in string charset, in string addrs, in string other_addrs, in PRBool removeAliasesToMe, out string newAddress); */
  NS_IMETHOD RemoveDuplicateAddresses(const char *charset, const char *addrs, const char *other_addrs, PRBool removeAliasesToMe, char **newAddress) = 0;

  /* string MakeFullAddress (in string charset, in string name, in string addr); */
  NS_IMETHOD MakeFullAddress(const char *charset, const char *name, const char *addr, char **_retval) = 0;

  /* void UnquotePhraseOrAddr (in string charset, in string line, out string lineout); */
  NS_IMETHOD UnquotePhraseOrAddr(const char *charset, const char *line, char **lineout) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGHEADERPARSER \
  NS_IMETHOD ParseHeadersWithEnumerator(const PRUnichar *line, nsISimpleEnumerator **_retval); \
  NS_IMETHOD ParseHeaderAddresses(const char *charset, const char *line, char **names, char **addresses, PRUint32 *numAddresses); \
  NS_IMETHOD ExtractHeaderAddressMailboxes(const char *charset, const char *line, char **mailboxes); \
  NS_IMETHOD ExtractHeaderAddressNames(const char *charset, const char *line, char **userNames); \
  NS_IMETHOD ExtractHeaderAddressName(const char *charset, const char *line, char **name); \
  NS_IMETHOD ReformatHeaderAddresses(const char *charset, const char *line, char **reformattedAddress); \
  NS_IMETHOD RemoveDuplicateAddresses(const char *charset, const char *addrs, const char *other_addrs, PRBool removeAliasesToMe, char **newAddress); \
  NS_IMETHOD MakeFullAddress(const char *charset, const char *name, const char *addr, char **_retval); \
  NS_IMETHOD UnquotePhraseOrAddr(const char *charset, const char *line, char **lineout); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGHEADERPARSER(_to) \
  NS_IMETHOD ParseHeadersWithEnumerator(const PRUnichar *line, nsISimpleEnumerator **_retval) { return _to ## ParseHeadersWithEnumerator(line, _retval); } \
  NS_IMETHOD ParseHeaderAddresses(const char *charset, const char *line, char **names, char **addresses, PRUint32 *numAddresses) { return _to ## ParseHeaderAddresses(charset, line, names, addresses, numAddresses); } \
  NS_IMETHOD ExtractHeaderAddressMailboxes(const char *charset, const char *line, char **mailboxes) { return _to ## ExtractHeaderAddressMailboxes(charset, line, mailboxes); } \
  NS_IMETHOD ExtractHeaderAddressNames(const char *charset, const char *line, char **userNames) { return _to ## ExtractHeaderAddressNames(charset, line, userNames); } \
  NS_IMETHOD ExtractHeaderAddressName(const char *charset, const char *line, char **name) { return _to ## ExtractHeaderAddressName(charset, line, name); } \
  NS_IMETHOD ReformatHeaderAddresses(const char *charset, const char *line, char **reformattedAddress) { return _to ## ReformatHeaderAddresses(charset, line, reformattedAddress); } \
  NS_IMETHOD RemoveDuplicateAddresses(const char *charset, const char *addrs, const char *other_addrs, PRBool removeAliasesToMe, char **newAddress) { return _to ## RemoveDuplicateAddresses(charset, addrs, other_addrs, removeAliasesToMe, newAddress); } \
  NS_IMETHOD MakeFullAddress(const char *charset, const char *name, const char *addr, char **_retval) { return _to ## MakeFullAddress(charset, name, addr, _retval); } \
  NS_IMETHOD UnquotePhraseOrAddr(const char *charset, const char *line, char **lineout) { return _to ## UnquotePhraseOrAddr(charset, line, lineout); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGHEADERPARSER(_to) \
  NS_IMETHOD ParseHeadersWithEnumerator(const PRUnichar *line, nsISimpleEnumerator **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ParseHeadersWithEnumerator(line, _retval); } \
  NS_IMETHOD ParseHeaderAddresses(const char *charset, const char *line, char **names, char **addresses, PRUint32 *numAddresses) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ParseHeaderAddresses(charset, line, names, addresses, numAddresses); } \
  NS_IMETHOD ExtractHeaderAddressMailboxes(const char *charset, const char *line, char **mailboxes) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ExtractHeaderAddressMailboxes(charset, line, mailboxes); } \
  NS_IMETHOD ExtractHeaderAddressNames(const char *charset, const char *line, char **userNames) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ExtractHeaderAddressNames(charset, line, userNames); } \
  NS_IMETHOD ExtractHeaderAddressName(const char *charset, const char *line, char **name) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ExtractHeaderAddressName(charset, line, name); } \
  NS_IMETHOD ReformatHeaderAddresses(const char *charset, const char *line, char **reformattedAddress) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ReformatHeaderAddresses(charset, line, reformattedAddress); } \
  NS_IMETHOD RemoveDuplicateAddresses(const char *charset, const char *addrs, const char *other_addrs, PRBool removeAliasesToMe, char **newAddress) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveDuplicateAddresses(charset, addrs, other_addrs, removeAliasesToMe, newAddress); } \
  NS_IMETHOD MakeFullAddress(const char *charset, const char *name, const char *addr, char **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> MakeFullAddress(charset, name, addr, _retval); } \
  NS_IMETHOD UnquotePhraseOrAddr(const char *charset, const char *line, char **lineout) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> UnquotePhraseOrAddr(charset, line, lineout); } 

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

/* Header file */
class nsMsgHeaderParser : public nsIMsgHeaderParser
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGHEADERPARSER

  nsMsgHeaderParser();
  virtual ~nsMsgHeaderParser();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgHeaderParser, nsIMsgHeaderParser)

nsMsgHeaderParser::nsMsgHeaderParser()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* nsISimpleEnumerator ParseHeadersWithEnumerator (in wstring line); */
NS_IMETHODIMP nsMsgHeaderParser::ParseHeadersWithEnumerator(const PRUnichar *line, nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ParseHeaderAddresses (in string charset, in string line, out string names, out string addresses, out PRUint32 numAddresses); */
NS_IMETHODIMP nsMsgHeaderParser::ParseHeaderAddresses(const char *charset, const char *line, char **names, char **addresses, PRUint32 *numAddresses)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ExtractHeaderAddressMailboxes (in string charset, in string line, out string mailboxes); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressMailboxes(const char *charset, const char *line, char **mailboxes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ExtractHeaderAddressNames (in string charset, in string line, out string userNames); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressNames(const char *charset, const char *line, char **userNames)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ExtractHeaderAddressName (in string charset, in string line, out string name); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressName(const char *charset, const char *line, char **name)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ReformatHeaderAddresses (in string charset, in string line, out string reformattedAddress); */
NS_IMETHODIMP nsMsgHeaderParser::ReformatHeaderAddresses(const char *charset, const char *line, char **reformattedAddress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RemoveDuplicateAddresses (in string charset, in string addrs, in string other_addrs, in PRBool removeAliasesToMe, out string newAddress); */
NS_IMETHODIMP nsMsgHeaderParser::RemoveDuplicateAddresses(const char *charset, const char *addrs, const char *other_addrs, PRBool removeAliasesToMe, char **newAddress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string MakeFullAddress (in string charset, in string name, in string addr); */
NS_IMETHODIMP nsMsgHeaderParser::MakeFullAddress(const char *charset, const char *name, const char *addr, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void UnquotePhraseOrAddr (in string charset, in string line, out string lineout); */
NS_IMETHODIMP nsMsgHeaderParser::UnquotePhraseOrAddr(const char *charset, const char *line, char **lineout)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgHeaderParser_h__ */
