/usr/include/thunderbird-11.0.1/nsIMsgHeaderParser.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/mime/public/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 */
#define NS_MAILNEWS_MIME_HEADER_PARSER_CONTRACTID \
"@mozilla.org/messenger/headerparser;1"
/* starting interface: nsIMsgHeaderParser */
#define NS_IMSGHEADERPARSER_IID_STR "a67d4d96-e5cb-458d-9311-794d5d1a9832"
#define NS_IMSGHEADERPARSER_IID \
{0xa67d4d96, 0xe5cb, 0x458d, \
{ 0x93, 0x11, 0x79, 0x4d, 0x5d, 0x1a, 0x98, 0x32 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgHeaderParser : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGHEADERPARSER_IID)
/* void parseHeadersWithArray (in wstring aLine, [array, size_is (count)] out wstring aEmailAddresses, [array, size_is (count)] out wstring aNames, [array, size_is (count)] out wstring aFullNames, [retval] out unsigned long count); */
NS_SCRIPTABLE NS_IMETHOD ParseHeadersWithArray(const PRUnichar * aLine, PRUnichar * **aEmailAddresses NS_OUTPARAM, PRUnichar * **aNames NS_OUTPARAM, PRUnichar * **aFullNames NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) = 0;
/* [noscript] void parseHeaderAddresses (in string aLine, out string aNames, out string aAddresses, out PRUint32 aNumAddresses); */
NS_IMETHOD ParseHeaderAddresses(const char * aLine, char * *aNames NS_OUTPARAM, char * *aAddresses NS_OUTPARAM, PRUint32 *aNumAddresses NS_OUTPARAM) = 0;
/* ACString extractHeaderAddressMailboxes (in ACString aLine); */
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressMailboxes(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) = 0;
/* AUTF8String extractHeaderAddressNames (in AUTF8String aLine); */
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressNames(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) = 0;
/* AUTF8String extractHeaderAddressName (in AUTF8String aLine); */
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressName(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) = 0;
/* [noscript] string reformatHeaderAddresses (in string aLine); */
NS_IMETHOD ReformatHeaderAddresses(const char * aLine, char * *_retval NS_OUTPARAM) = 0;
/* AUTF8String removeDuplicateAddresses (in AUTF8String aAddrs, in AUTF8String aOtherAddrs); */
NS_SCRIPTABLE NS_IMETHOD RemoveDuplicateAddresses(const nsACString & aAddrs, const nsACString & aOtherAddrs, nsACString & _retval NS_OUTPARAM) = 0;
/* AString makeFullAddress (in AString aName, in AString aAddress); */
NS_SCRIPTABLE NS_IMETHOD MakeFullAddress(const nsAString & aName, const nsAString & aAddress, nsAString & _retval NS_OUTPARAM) = 0;
/* [noscript] string makeFullAddressString (in string aName, in string aAddress); */
NS_IMETHOD MakeFullAddressString(const char * aName, const char * aAddress, char * *_retval NS_OUTPARAM) = 0;
/* [noscript] string unquotePhraseOrAddr (in string line, in boolean preserveIntegrity); */
NS_IMETHOD UnquotePhraseOrAddr(const char * line, bool preserveIntegrity, char * *_retval NS_OUTPARAM) = 0;
/* wstring unquotePhraseOrAddrWString (in wstring line, in boolean preserveIntegrity); */
NS_SCRIPTABLE NS_IMETHOD UnquotePhraseOrAddrWString(const PRUnichar * line, bool preserveIntegrity, PRUnichar * *_retval NS_OUTPARAM) = 0;
/* wstring reformatUnquotedAddresses (in wstring line); */
NS_SCRIPTABLE NS_IMETHOD ReformatUnquotedAddresses(const PRUnichar * line, PRUnichar * *_retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgHeaderParser, NS_IMSGHEADERPARSER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGHEADERPARSER \
NS_SCRIPTABLE NS_IMETHOD ParseHeadersWithArray(const PRUnichar * aLine, PRUnichar * **aEmailAddresses NS_OUTPARAM, PRUnichar * **aNames NS_OUTPARAM, PRUnichar * **aFullNames NS_OUTPARAM, PRUint32 *count NS_OUTPARAM); \
NS_IMETHOD ParseHeaderAddresses(const char * aLine, char * *aNames NS_OUTPARAM, char * *aAddresses NS_OUTPARAM, PRUint32 *aNumAddresses NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressMailboxes(const nsACString & aLine, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressNames(const nsACString & aLine, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressName(const nsACString & aLine, nsACString & _retval NS_OUTPARAM); \
NS_IMETHOD ReformatHeaderAddresses(const char * aLine, char * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RemoveDuplicateAddresses(const nsACString & aAddrs, const nsACString & aOtherAddrs, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MakeFullAddress(const nsAString & aName, const nsAString & aAddress, nsAString & _retval NS_OUTPARAM); \
NS_IMETHOD MakeFullAddressString(const char * aName, const char * aAddress, char * *_retval NS_OUTPARAM); \
NS_IMETHOD UnquotePhraseOrAddr(const char * line, bool preserveIntegrity, char * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD UnquotePhraseOrAddrWString(const PRUnichar * line, bool preserveIntegrity, PRUnichar * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ReformatUnquotedAddresses(const PRUnichar * line, PRUnichar * *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGHEADERPARSER(_to) \
NS_SCRIPTABLE NS_IMETHOD ParseHeadersWithArray(const PRUnichar * aLine, PRUnichar * **aEmailAddresses NS_OUTPARAM, PRUnichar * **aNames NS_OUTPARAM, PRUnichar * **aFullNames NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return _to ParseHeadersWithArray(aLine, aEmailAddresses, aNames, aFullNames, count); } \
NS_IMETHOD ParseHeaderAddresses(const char * aLine, char * *aNames NS_OUTPARAM, char * *aAddresses NS_OUTPARAM, PRUint32 *aNumAddresses NS_OUTPARAM) { return _to ParseHeaderAddresses(aLine, aNames, aAddresses, aNumAddresses); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressMailboxes(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return _to ExtractHeaderAddressMailboxes(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressNames(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return _to ExtractHeaderAddressNames(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressName(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return _to ExtractHeaderAddressName(aLine, _retval); } \
NS_IMETHOD ReformatHeaderAddresses(const char * aLine, char * *_retval NS_OUTPARAM) { return _to ReformatHeaderAddresses(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveDuplicateAddresses(const nsACString & aAddrs, const nsACString & aOtherAddrs, nsACString & _retval NS_OUTPARAM) { return _to RemoveDuplicateAddresses(aAddrs, aOtherAddrs, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MakeFullAddress(const nsAString & aName, const nsAString & aAddress, nsAString & _retval NS_OUTPARAM) { return _to MakeFullAddress(aName, aAddress, _retval); } \
NS_IMETHOD MakeFullAddressString(const char * aName, const char * aAddress, char * *_retval NS_OUTPARAM) { return _to MakeFullAddressString(aName, aAddress, _retval); } \
NS_IMETHOD UnquotePhraseOrAddr(const char * line, bool preserveIntegrity, char * *_retval NS_OUTPARAM) { return _to UnquotePhraseOrAddr(line, preserveIntegrity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UnquotePhraseOrAddrWString(const PRUnichar * line, bool preserveIntegrity, PRUnichar * *_retval NS_OUTPARAM) { return _to UnquotePhraseOrAddrWString(line, preserveIntegrity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ReformatUnquotedAddresses(const PRUnichar * line, PRUnichar * *_retval NS_OUTPARAM) { return _to ReformatUnquotedAddresses(line, _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_NSIMSGHEADERPARSER(_to) \
NS_SCRIPTABLE NS_IMETHOD ParseHeadersWithArray(const PRUnichar * aLine, PRUnichar * **aEmailAddresses NS_OUTPARAM, PRUnichar * **aNames NS_OUTPARAM, PRUnichar * **aFullNames NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseHeadersWithArray(aLine, aEmailAddresses, aNames, aFullNames, count); } \
NS_IMETHOD ParseHeaderAddresses(const char * aLine, char * *aNames NS_OUTPARAM, char * *aAddresses NS_OUTPARAM, PRUint32 *aNumAddresses NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseHeaderAddresses(aLine, aNames, aAddresses, aNumAddresses); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressMailboxes(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtractHeaderAddressMailboxes(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressNames(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtractHeaderAddressNames(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExtractHeaderAddressName(const nsACString & aLine, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtractHeaderAddressName(aLine, _retval); } \
NS_IMETHOD ReformatHeaderAddresses(const char * aLine, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReformatHeaderAddresses(aLine, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveDuplicateAddresses(const nsACString & aAddrs, const nsACString & aOtherAddrs, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDuplicateAddresses(aAddrs, aOtherAddrs, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MakeFullAddress(const nsAString & aName, const nsAString & aAddress, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeFullAddress(aName, aAddress, _retval); } \
NS_IMETHOD MakeFullAddressString(const char * aName, const char * aAddress, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeFullAddressString(aName, aAddress, _retval); } \
NS_IMETHOD UnquotePhraseOrAddr(const char * line, bool preserveIntegrity, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnquotePhraseOrAddr(line, preserveIntegrity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UnquotePhraseOrAddrWString(const PRUnichar * line, bool preserveIntegrity, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnquotePhraseOrAddrWString(line, preserveIntegrity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ReformatUnquotedAddresses(const PRUnichar * line, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReformatUnquotedAddresses(line, _retval); }
#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();
private:
~nsMsgHeaderParser();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgHeaderParser, nsIMsgHeaderParser)
nsMsgHeaderParser::nsMsgHeaderParser()
{
/* member initializers and constructor code */
}
nsMsgHeaderParser::~nsMsgHeaderParser()
{
/* destructor code */
}
/* void parseHeadersWithArray (in wstring aLine, [array, size_is (count)] out wstring aEmailAddresses, [array, size_is (count)] out wstring aNames, [array, size_is (count)] out wstring aFullNames, [retval] out unsigned long count); */
NS_IMETHODIMP nsMsgHeaderParser::ParseHeadersWithArray(const PRUnichar * aLine, PRUnichar * **aEmailAddresses NS_OUTPARAM, PRUnichar * **aNames NS_OUTPARAM, PRUnichar * **aFullNames NS_OUTPARAM, PRUint32 *count NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void parseHeaderAddresses (in string aLine, out string aNames, out string aAddresses, out PRUint32 aNumAddresses); */
NS_IMETHODIMP nsMsgHeaderParser::ParseHeaderAddresses(const char * aLine, char * *aNames NS_OUTPARAM, char * *aAddresses NS_OUTPARAM, PRUint32 *aNumAddresses NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString extractHeaderAddressMailboxes (in ACString aLine); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressMailboxes(const nsACString & aLine, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String extractHeaderAddressNames (in AUTF8String aLine); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressNames(const nsACString & aLine, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String extractHeaderAddressName (in AUTF8String aLine); */
NS_IMETHODIMP nsMsgHeaderParser::ExtractHeaderAddressName(const nsACString & aLine, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] string reformatHeaderAddresses (in string aLine); */
NS_IMETHODIMP nsMsgHeaderParser::ReformatHeaderAddresses(const char * aLine, char * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String removeDuplicateAddresses (in AUTF8String aAddrs, in AUTF8String aOtherAddrs); */
NS_IMETHODIMP nsMsgHeaderParser::RemoveDuplicateAddresses(const nsACString & aAddrs, const nsACString & aOtherAddrs, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString makeFullAddress (in AString aName, in AString aAddress); */
NS_IMETHODIMP nsMsgHeaderParser::MakeFullAddress(const nsAString & aName, const nsAString & aAddress, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] string makeFullAddressString (in string aName, in string aAddress); */
NS_IMETHODIMP nsMsgHeaderParser::MakeFullAddressString(const char * aName, const char * aAddress, char * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] string unquotePhraseOrAddr (in string line, in boolean preserveIntegrity); */
NS_IMETHODIMP nsMsgHeaderParser::UnquotePhraseOrAddr(const char * line, bool preserveIntegrity, char * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring unquotePhraseOrAddrWString (in wstring line, in boolean preserveIntegrity); */
NS_IMETHODIMP nsMsgHeaderParser::UnquotePhraseOrAddrWString(const PRUnichar * line, bool preserveIntegrity, PRUnichar * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring reformatUnquotedAddresses (in wstring line); */
NS_IMETHODIMP nsMsgHeaderParser::ReformatUnquotedAddresses(const PRUnichar * line, PRUnichar * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgHeaderParser_h__ */
|