/usr/include/thunderbird/nsISAXXMLReader.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISAXXMLReader.idl
*/
#ifndef __gen_nsISAXXMLReader_h__
#define __gen_nsISAXXMLReader_h__
#ifndef __gen_nsIStreamListener_h__
#include "nsIStreamListener.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInputStream; /* forward declaration */
class nsIRequestObserver; /* forward declaration */
class nsIURI; /* forward declaration */
class nsISAXContentHandler; /* forward declaration */
class nsISAXDTDHandler; /* forward declaration */
class nsISAXEntityResolver; /* forward declaration */
class nsISAXErrorHandler; /* forward declaration */
class nsISAXLexicalHandler; /* forward declaration */
class nsIMozSAXXMLDeclarationHandler; /* forward declaration */
/* starting interface: nsISAXXMLReader */
#define NS_ISAXXMLREADER_IID_STR "5b1de802-9091-454f-9972-5753c0d0c70e"
#define NS_ISAXXMLREADER_IID \
{0x5b1de802, 0x9091, 0x454f, \
{ 0x99, 0x72, 0x57, 0x53, 0xc0, 0xd0, 0xc7, 0x0e }}
class NS_NO_VTABLE nsISAXXMLReader : public nsIStreamListener {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAXXMLREADER_IID)
/* attribute nsIURI baseURI; */
NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) = 0;
NS_IMETHOD SetBaseURI(nsIURI *aBaseURI) = 0;
/* attribute nsISAXContentHandler contentHandler; */
NS_IMETHOD GetContentHandler(nsISAXContentHandler * *aContentHandler) = 0;
NS_IMETHOD SetContentHandler(nsISAXContentHandler *aContentHandler) = 0;
/* attribute nsISAXDTDHandler dtdHandler; */
NS_IMETHOD GetDtdHandler(nsISAXDTDHandler * *aDtdHandler) = 0;
NS_IMETHOD SetDtdHandler(nsISAXDTDHandler *aDtdHandler) = 0;
/* attribute nsISAXErrorHandler errorHandler; */
NS_IMETHOD GetErrorHandler(nsISAXErrorHandler * *aErrorHandler) = 0;
NS_IMETHOD SetErrorHandler(nsISAXErrorHandler *aErrorHandler) = 0;
/* attribute nsIMozSAXXMLDeclarationHandler declarationHandler; */
NS_IMETHOD GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler) = 0;
NS_IMETHOD SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler) = 0;
/* attribute nsISAXLexicalHandler lexicalHandler; */
NS_IMETHOD GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler) = 0;
NS_IMETHOD SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler) = 0;
/* void setFeature (in AString name, in boolean value); */
NS_IMETHOD SetFeature(const nsAString & name, bool value) = 0;
/* boolean getFeature (in AString name); */
NS_IMETHOD GetFeature(const nsAString & name, bool *_retval) = 0;
/* void setProperty (in AString name, in nsISupports value); */
NS_IMETHOD SetProperty(const nsAString & name, nsISupports *value) = 0;
/* boolean getProperty (in AString name); */
NS_IMETHOD GetProperty(const nsAString & name, bool *_retval) = 0;
/* void parseFromString (in AString str, in string contentType); */
NS_IMETHOD ParseFromString(const nsAString & str, const char * contentType) = 0;
/* void parseFromStream (in nsIInputStream stream, in string charset, in string contentType); */
NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType) = 0;
/* void parseAsync (in nsIRequestObserver observer); */
NS_IMETHOD ParseAsync(nsIRequestObserver *observer) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISAXXMLReader, NS_ISAXXMLREADER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISAXXMLREADER \
NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override; \
NS_IMETHOD SetBaseURI(nsIURI *aBaseURI) override; \
NS_IMETHOD GetContentHandler(nsISAXContentHandler * *aContentHandler) override; \
NS_IMETHOD SetContentHandler(nsISAXContentHandler *aContentHandler) override; \
NS_IMETHOD GetDtdHandler(nsISAXDTDHandler * *aDtdHandler) override; \
NS_IMETHOD SetDtdHandler(nsISAXDTDHandler *aDtdHandler) override; \
NS_IMETHOD GetErrorHandler(nsISAXErrorHandler * *aErrorHandler) override; \
NS_IMETHOD SetErrorHandler(nsISAXErrorHandler *aErrorHandler) override; \
NS_IMETHOD GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler) override; \
NS_IMETHOD SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler) override; \
NS_IMETHOD GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler) override; \
NS_IMETHOD SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler) override; \
NS_IMETHOD SetFeature(const nsAString & name, bool value) override; \
NS_IMETHOD GetFeature(const nsAString & name, bool *_retval) override; \
NS_IMETHOD SetProperty(const nsAString & name, nsISupports *value) override; \
NS_IMETHOD GetProperty(const nsAString & name, bool *_retval) override; \
NS_IMETHOD ParseFromString(const nsAString & str, const char * contentType) override; \
NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType) override; \
NS_IMETHOD ParseAsync(nsIRequestObserver *observer) 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_NSISAXXMLREADER \
NS_METHOD GetBaseURI(nsIURI * *aBaseURI); \
NS_METHOD SetBaseURI(nsIURI *aBaseURI); \
NS_METHOD GetContentHandler(nsISAXContentHandler * *aContentHandler); \
NS_METHOD SetContentHandler(nsISAXContentHandler *aContentHandler); \
NS_METHOD GetDtdHandler(nsISAXDTDHandler * *aDtdHandler); \
NS_METHOD SetDtdHandler(nsISAXDTDHandler *aDtdHandler); \
NS_METHOD GetErrorHandler(nsISAXErrorHandler * *aErrorHandler); \
NS_METHOD SetErrorHandler(nsISAXErrorHandler *aErrorHandler); \
NS_METHOD GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler); \
NS_METHOD SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler); \
NS_METHOD GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler); \
NS_METHOD SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler); \
NS_METHOD SetFeature(const nsAString & name, bool value); \
NS_METHOD GetFeature(const nsAString & name, bool *_retval); \
NS_METHOD SetProperty(const nsAString & name, nsISupports *value); \
NS_METHOD GetProperty(const nsAString & name, bool *_retval); \
NS_METHOD ParseFromString(const nsAString & str, const char * contentType); \
NS_METHOD ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType); \
NS_METHOD ParseAsync(nsIRequestObserver *observer);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISAXXMLREADER(_to) \
NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override { return _to GetBaseURI(aBaseURI); } \
NS_IMETHOD SetBaseURI(nsIURI *aBaseURI) override { return _to SetBaseURI(aBaseURI); } \
NS_IMETHOD GetContentHandler(nsISAXContentHandler * *aContentHandler) override { return _to GetContentHandler(aContentHandler); } \
NS_IMETHOD SetContentHandler(nsISAXContentHandler *aContentHandler) override { return _to SetContentHandler(aContentHandler); } \
NS_IMETHOD GetDtdHandler(nsISAXDTDHandler * *aDtdHandler) override { return _to GetDtdHandler(aDtdHandler); } \
NS_IMETHOD SetDtdHandler(nsISAXDTDHandler *aDtdHandler) override { return _to SetDtdHandler(aDtdHandler); } \
NS_IMETHOD GetErrorHandler(nsISAXErrorHandler * *aErrorHandler) override { return _to GetErrorHandler(aErrorHandler); } \
NS_IMETHOD SetErrorHandler(nsISAXErrorHandler *aErrorHandler) override { return _to SetErrorHandler(aErrorHandler); } \
NS_IMETHOD GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler) override { return _to GetDeclarationHandler(aDeclarationHandler); } \
NS_IMETHOD SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler) override { return _to SetDeclarationHandler(aDeclarationHandler); } \
NS_IMETHOD GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler) override { return _to GetLexicalHandler(aLexicalHandler); } \
NS_IMETHOD SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler) override { return _to SetLexicalHandler(aLexicalHandler); } \
NS_IMETHOD SetFeature(const nsAString & name, bool value) override { return _to SetFeature(name, value); } \
NS_IMETHOD GetFeature(const nsAString & name, bool *_retval) override { return _to GetFeature(name, _retval); } \
NS_IMETHOD SetProperty(const nsAString & name, nsISupports *value) override { return _to SetProperty(name, value); } \
NS_IMETHOD GetProperty(const nsAString & name, bool *_retval) override { return _to GetProperty(name, _retval); } \
NS_IMETHOD ParseFromString(const nsAString & str, const char * contentType) override { return _to ParseFromString(str, contentType); } \
NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType) override { return _to ParseFromStream(stream, charset, contentType); } \
NS_IMETHOD ParseAsync(nsIRequestObserver *observer) override { return _to ParseAsync(observer); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISAXXMLREADER(_to) \
NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseURI(aBaseURI); } \
NS_IMETHOD SetBaseURI(nsIURI *aBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBaseURI(aBaseURI); } \
NS_IMETHOD GetContentHandler(nsISAXContentHandler * *aContentHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentHandler(aContentHandler); } \
NS_IMETHOD SetContentHandler(nsISAXContentHandler *aContentHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentHandler(aContentHandler); } \
NS_IMETHOD GetDtdHandler(nsISAXDTDHandler * *aDtdHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDtdHandler(aDtdHandler); } \
NS_IMETHOD SetDtdHandler(nsISAXDTDHandler *aDtdHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDtdHandler(aDtdHandler); } \
NS_IMETHOD GetErrorHandler(nsISAXErrorHandler * *aErrorHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorHandler(aErrorHandler); } \
NS_IMETHOD SetErrorHandler(nsISAXErrorHandler *aErrorHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorHandler(aErrorHandler); } \
NS_IMETHOD GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeclarationHandler(aDeclarationHandler); } \
NS_IMETHOD SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDeclarationHandler(aDeclarationHandler); } \
NS_IMETHOD GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLexicalHandler(aLexicalHandler); } \
NS_IMETHOD SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLexicalHandler(aLexicalHandler); } \
NS_IMETHOD SetFeature(const nsAString & name, bool value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFeature(name, value); } \
NS_IMETHOD GetFeature(const nsAString & name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeature(name, _retval); } \
NS_IMETHOD SetProperty(const nsAString & name, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(name, value); } \
NS_IMETHOD GetProperty(const nsAString & name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(name, _retval); } \
NS_IMETHOD ParseFromString(const nsAString & str, const char * contentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromString(str, contentType); } \
NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromStream(stream, charset, contentType); } \
NS_IMETHOD ParseAsync(nsIRequestObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseAsync(observer); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSAXXMLReader : public nsISAXXMLReader
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISAXXMLREADER
nsSAXXMLReader();
private:
~nsSAXXMLReader();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSAXXMLReader, nsISAXXMLReader)
nsSAXXMLReader::nsSAXXMLReader()
{
/* member initializers and constructor code */
}
nsSAXXMLReader::~nsSAXXMLReader()
{
/* destructor code */
}
/* attribute nsIURI baseURI; */
NS_IMETHODIMP nsSAXXMLReader::GetBaseURI(nsIURI * *aBaseURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetBaseURI(nsIURI *aBaseURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISAXContentHandler contentHandler; */
NS_IMETHODIMP nsSAXXMLReader::GetContentHandler(nsISAXContentHandler * *aContentHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetContentHandler(nsISAXContentHandler *aContentHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISAXDTDHandler dtdHandler; */
NS_IMETHODIMP nsSAXXMLReader::GetDtdHandler(nsISAXDTDHandler * *aDtdHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetDtdHandler(nsISAXDTDHandler *aDtdHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISAXErrorHandler errorHandler; */
NS_IMETHODIMP nsSAXXMLReader::GetErrorHandler(nsISAXErrorHandler * *aErrorHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetErrorHandler(nsISAXErrorHandler *aErrorHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMozSAXXMLDeclarationHandler declarationHandler; */
NS_IMETHODIMP nsSAXXMLReader::GetDeclarationHandler(nsIMozSAXXMLDeclarationHandler * *aDeclarationHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetDeclarationHandler(nsIMozSAXXMLDeclarationHandler *aDeclarationHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISAXLexicalHandler lexicalHandler; */
NS_IMETHODIMP nsSAXXMLReader::GetLexicalHandler(nsISAXLexicalHandler * *aLexicalHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSAXXMLReader::SetLexicalHandler(nsISAXLexicalHandler *aLexicalHandler)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setFeature (in AString name, in boolean value); */
NS_IMETHODIMP nsSAXXMLReader::SetFeature(const nsAString & name, bool value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getFeature (in AString name); */
NS_IMETHODIMP nsSAXXMLReader::GetFeature(const nsAString & name, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setProperty (in AString name, in nsISupports value); */
NS_IMETHODIMP nsSAXXMLReader::SetProperty(const nsAString & name, nsISupports *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getProperty (in AString name); */
NS_IMETHODIMP nsSAXXMLReader::GetProperty(const nsAString & name, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void parseFromString (in AString str, in string contentType); */
NS_IMETHODIMP nsSAXXMLReader::ParseFromString(const nsAString & str, const char * contentType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void parseFromStream (in nsIInputStream stream, in string charset, in string contentType); */
NS_IMETHODIMP nsSAXXMLReader::ParseFromStream(nsIInputStream *stream, const char * charset, const char * contentType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void parseAsync (in nsIRequestObserver observer); */
NS_IMETHODIMP nsSAXXMLReader::ParseAsync(nsIRequestObserver *observer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsISAXXMLReader_h__ */
|