nsIFeedResult.idl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. interface nsIFeedContainer;
  7. interface nsIProperties;
  8. interface nsIURI;
  9. /**
  10. * The nsIFeedResult interface provides access to HTTP and parsing
  11. * metadata for a feed or entry.
  12. */
  13. [scriptable, uuid(7a180b78-0f46-4569-8c22-f3d720ea1c57)]
  14. interface nsIFeedResult : nsISupports {
  15. /**
  16. * The Feed parser will set the bozo bit when a feed triggers a fatal
  17. * error during XML parsing. There may be entries and feed metadata
  18. * that were parsed before the error. Thanks to Tim Bray for
  19. * suggesting this terminology.
  20. * <http://www.tbray.org/ongoing/When/200x/2004/01/11/PostelPilgrim>
  21. */
  22. attribute boolean bozo;
  23. /**
  24. * The parsed feed or entry.
  25. *
  26. * Will be null if a non-feed is processed.
  27. */
  28. attribute nsIFeedContainer doc;
  29. /**
  30. * The address from which the feed was fetched.
  31. */
  32. attribute nsIURI uri;
  33. /**
  34. * Feed Version:
  35. * atom, rss2, rss09, rss091, rss091userland, rss092, rss1, atom03,
  36. * atomEntry, rssItem
  37. *
  38. * Will be null if a non-feed is processed.
  39. */
  40. attribute AString version;
  41. /**
  42. * An XSLT stylesheet available to transform the source of the
  43. * feed. Some feeds include this information in a processing
  44. * instruction. It's generally intended for clients with specific
  45. * feed capabilities.
  46. */
  47. attribute nsIURI stylesheet;
  48. /**
  49. * HTTP response headers that accompanied the feed.
  50. */
  51. attribute nsIProperties headers;
  52. /**
  53. * Registers a prefix used to access an extension in the feed/entry
  54. */
  55. void registerExtensionPrefix(in AString aNamespace, in AString aPrefix);
  56. };