nsIFeedEntry.idl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "nsIFeedContainer.idl"
  6. interface nsIArray;
  7. /**
  8. * An nsIFeedEntry represents an Atom or RSS entry/item. Summary
  9. * and/or full-text content may be available, but callers will have to
  10. * check both.
  11. */
  12. [scriptable, uuid(31bfd5b4-8ff5-4bfd-a8cb-b3dfbd4f0a5b)]
  13. interface nsIFeedEntry : nsIFeedContainer {
  14. /**
  15. * Uses description, subtitle, summary, content and extensions
  16. * to generate a summary.
  17. *
  18. */
  19. attribute nsIFeedTextConstruct summary;
  20. /**
  21. * The date the entry was published, in RFC822 form. Parsable by JS
  22. * and mail code.
  23. */
  24. attribute AString published;
  25. /**
  26. * Uses atom:content and content:encoded to provide
  27. * a 'full text' view of an entry.
  28. *
  29. */
  30. attribute nsIFeedTextConstruct content;
  31. /**
  32. * Enclosures are podcasts, photocasts, etc.
  33. */
  34. attribute nsIArray enclosures;
  35. /**
  36. * Enclosures, etc. that might be displayed inline.
  37. */
  38. attribute nsIArray mediaContent;
  39. };