Struct xpcom::interfaces::nsIFeed [] [src]

#[repr(C)]
pub struct nsIFeed { /* fields omitted */ }

interface nsIFeed : nsIFeedContainer

/**
 * An nsIFeed represents a single Atom or RSS feed.
 */

Methods

impl nsIFeed
[src]

[src]

Cast this nsIFeed to one of its base interfaces.

impl nsIFeed
[src]

TYPE_FEED: i64 = 0

TYPE_AUDIO: i64 = 1

TYPE_IMAGE: i64 = 2

TYPE_VIDEO: i64 = 4

[src]

/**
  * Uses description, subtitle, and extensions
  * to generate a summary.
  */

attribute nsIFeedTextConstruct subtitle;

[src]

/**
  * Uses description, subtitle, and extensions
  * to generate a summary.
  */

attribute nsIFeedTextConstruct subtitle;

[src]

/**
  * The type of feed. For example, a podcast would be TYPE_AUDIO.
  */

readonly attribute unsigned long type;

[src]

/**
  * The total number of enclosures found in the feed.
  */

attribute long enclosureCount;

[src]

/**
  * The total number of enclosures found in the feed.
  */

attribute long enclosureCount;

[src]

/**
  * The items or entries in feed.
  */

attribute nsIArray items;

[src]

/**
  * The items or entries in feed.
  */

attribute nsIArray items;

[src]

/**
  * No one really knows what cloud is for.
  *
  * It supposedly enables some sort of interaction with an XML-RPC or
  * SOAP service.
  */

attribute nsIWritablePropertyBag2 cloud;

[src]

/**
  * No one really knows what cloud is for.
  *
  * It supposedly enables some sort of interaction with an XML-RPC or
  * SOAP service.
  */

attribute nsIWritablePropertyBag2 cloud;

[src]

/**
  * Information about the software that produced the feed.
  */

attribute nsIFeedGenerator generator;

[src]

/**
  * Information about the software that produced the feed.
  */

attribute nsIFeedGenerator generator;

[src]

/**
  * An image url and some metadata (as defined by RSS2).
  *
  */

attribute nsIWritablePropertyBag2 image;

[src]

/**
  * An image url and some metadata (as defined by RSS2).
  *
  */

attribute nsIWritablePropertyBag2 image;

[src]

/**
  * No one really knows what textInput is for.
  *
  * See
  * <http://www.cadenhead.org/workbench/news/2894/rss-joy-textinput>
  * for more details.
  */

attribute nsIWritablePropertyBag2 textInput;

[src]

/**
  * No one really knows what textInput is for.
  *
  * See
  * <http://www.cadenhead.org/workbench/news/2894/rss-joy-textinput>
  * for more details.
  */

attribute nsIWritablePropertyBag2 textInput;

[src]

/**
  * Days to skip fetching. This field was supposed to designate
  * intervals for feed fetching. It's not generally implemented. For
  * example, if this array contained "Monday", aggregators should not
  * fetch the feed on Mondays.
  */

attribute nsIArray skipDays;

[src]

/**
  * Days to skip fetching. This field was supposed to designate
  * intervals for feed fetching. It's not generally implemented. For
  * example, if this array contained "Monday", aggregators should not
  * fetch the feed on Mondays.
  */

attribute nsIArray skipDays;

[src]

/**
  * Hours to skip fetching. This field was supposed to designate
  * intervals for feed fetching. It's not generally implemented. See
  * <http://blogs.law.harvard.edu/tech/rss> for more information.
  */

attribute nsIArray skipHours;

[src]

/**
  * Hours to skip fetching. This field was supposed to designate
  * intervals for feed fetching. It's not generally implemented. See
  * <http://blogs.law.harvard.edu/tech/rss> for more information.
  */

attribute nsIArray skipHours;

Methods from Deref<Target = nsIFeedContainer>

[src]

Cast this nsIFeedContainer to one of its base interfaces.

[src]

/**
  * Many feeds contain an ID distinct from their URI, and
  * entries have standard fields for this in all major formats.
  */

attribute AString id;

[src]

/**
  * Many feeds contain an ID distinct from their URI, and
  * entries have standard fields for this in all major formats.
  */

attribute AString id;

[src]

/**
  * The fields found in the document. Common Atom
  * and RSS fields are normalized. This includes some namespaced
  * extensions such as dc:subject and content:encoded.
  * Consumers can avoid normalization by checking the feed type
  * and accessing specific fields.
  *
  * Common namespaces are accessed using prefixes, like get("dc:subject");.
  * See nsIFeedResult::registerExtensionPrefix.
  */

attribute nsIWritablePropertyBag2 fields;

[src]

/**
  * The fields found in the document. Common Atom
  * and RSS fields are normalized. This includes some namespaced
  * extensions such as dc:subject and content:encoded.
  * Consumers can avoid normalization by checking the feed type
  * and accessing specific fields.
  *
  * Common namespaces are accessed using prefixes, like get("dc:subject");.
  * See nsIFeedResult::registerExtensionPrefix.
  */

attribute nsIWritablePropertyBag2 fields;

[src]

/**
   * Sometimes there's no title, or the title contains markup, so take
   * care in decoding the attribute.
   */

attribute nsIFeedTextConstruct title;

[src]

/**
   * Sometimes there's no title, or the title contains markup, so take
   * care in decoding the attribute.
   */

attribute nsIFeedTextConstruct title;

/**
  * Returns the primary link for the feed or entry.
  */

attribute nsIURI link;

/**
  * Returns the primary link for the feed or entry.
  */

attribute nsIURI link;

/**
  * Returns all links for a feed or entry.
  */

attribute nsIArray links;

/**
  * Returns all links for a feed or entry.
  */

attribute nsIArray links;

[src]

/**
  * Returns the categories found in a feed or entry.
  */

attribute nsIArray categories;

[src]

/**
  * Returns the categories found in a feed or entry.
  */

attribute nsIArray categories;

[src]

/**
   * The rights or license associated with a feed or entry.
   */

attribute nsIFeedTextConstruct rights;

[src]

/**
   * The rights or license associated with a feed or entry.
   */

attribute nsIFeedTextConstruct rights;

[src]

/**
   * A list of nsIFeedPersons that authored the feed.
   */

attribute nsIArray authors;

[src]

/**
   * A list of nsIFeedPersons that authored the feed.
   */

attribute nsIArray authors;

[src]

/**
   * A list of nsIFeedPersons that contributed to the feed.
   */

attribute nsIArray contributors;

[src]

/**
   * A list of nsIFeedPersons that contributed to the feed.
   */

attribute nsIArray contributors;

[src]

/**
   * The date the feed was updated, in RFC822 form. Parsable by JS
   * and mail code.
   */

attribute AString updated;

[src]

/**
   * The date the feed was updated, in RFC822 form. Parsable by JS
   * and mail code.
   */

attribute AString updated;

[src]

/**
  * Syncs a container's fields with its convenience attributes.
  */

void normalize ();

Trait Implementations

impl XpCom for nsIFeed
[src]

IID: nsIID = nsID(998944307, 32994, 20218, [153, 200, 166, 197, 185, 159, 118, 234])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIFeed
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFeed
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.