Struct xpcom::interfaces::nsIFeedContainer
[−]
[src]
#[repr(C)]pub struct nsIFeedContainer { /* fields omitted */ }
interface nsIFeedContainer : nsIFeedElementBase
/**
* A shared base for feeds and items, which are pretty similar,
* but they have some divergent attributes and require
* different convenience methods.
*/
Methods
impl nsIFeedContainer
[src]
pub fn coerce<T: nsIFeedContainerCoerce>(&self) -> &T
[src]
Cast this nsIFeedContainer
to one of its base interfaces.
impl nsIFeedContainer
[src]
pub unsafe fn GetId(&self, aId: &mut nsAString) -> nsresult
[src]
/**
* Many feeds contain an ID distinct from their URI, and
* entries have standard fields for this in all major formats.
*/
attribute AString id;
pub unsafe fn SetId(&self, aId: &nsAString) -> nsresult
[src]
/**
* Many feeds contain an ID distinct from their URI, and
* entries have standard fields for this in all major formats.
*/
attribute AString id;
pub unsafe fn GetFields(
&self,
aFields: *mut *const nsIWritablePropertyBag2
) -> nsresult
[src]
&self,
aFields: *mut *const nsIWritablePropertyBag2
) -> nsresult
/**
* 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;
pub unsafe fn SetFields(
&self,
aFields: *const nsIWritablePropertyBag2
) -> nsresult
[src]
&self,
aFields: *const nsIWritablePropertyBag2
) -> nsresult
/**
* 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;
pub unsafe fn GetTitle(
&self,
aTitle: *mut *const nsIFeedTextConstruct
) -> nsresult
[src]
&self,
aTitle: *mut *const nsIFeedTextConstruct
) -> nsresult
/**
* Sometimes there's no title, or the title contains markup, so take
* care in decoding the attribute.
*/
attribute nsIFeedTextConstruct title;
pub unsafe fn SetTitle(&self, aTitle: *const nsIFeedTextConstruct) -> nsresult
[src]
/**
* Sometimes there's no title, or the title contains markup, so take
* care in decoding the attribute.
*/
attribute nsIFeedTextConstruct title;
pub unsafe fn GetLink(&self, aLink: *mut *const nsIURI) -> nsresult
[src]
/**
* Returns the primary link for the feed or entry.
*/
attribute nsIURI link;
pub unsafe fn SetLink(&self, aLink: *const nsIURI) -> nsresult
[src]
/**
* Returns the primary link for the feed or entry.
*/
attribute nsIURI link;
pub unsafe fn GetLinks(&self, aLinks: *mut *const nsIArray) -> nsresult
[src]
/**
* Returns all links for a feed or entry.
*/
attribute nsIArray links;
pub unsafe fn SetLinks(&self, aLinks: *const nsIArray) -> nsresult
[src]
/**
* Returns all links for a feed or entry.
*/
attribute nsIArray links;
pub unsafe fn GetCategories(
&self,
aCategories: *mut *const nsIArray
) -> nsresult
[src]
&self,
aCategories: *mut *const nsIArray
) -> nsresult
/**
* Returns the categories found in a feed or entry.
*/
attribute nsIArray categories;
pub unsafe fn SetCategories(&self, aCategories: *const nsIArray) -> nsresult
[src]
/**
* Returns the categories found in a feed or entry.
*/
attribute nsIArray categories;
pub unsafe fn GetRights(
&self,
aRights: *mut *const nsIFeedTextConstruct
) -> nsresult
[src]
&self,
aRights: *mut *const nsIFeedTextConstruct
) -> nsresult
/**
* The rights or license associated with a feed or entry.
*/
attribute nsIFeedTextConstruct rights;
pub unsafe fn SetRights(&self, aRights: *const nsIFeedTextConstruct) -> nsresult
[src]
/**
* The rights or license associated with a feed or entry.
*/
attribute nsIFeedTextConstruct rights;
pub unsafe fn GetAuthors(&self, aAuthors: *mut *const nsIArray) -> nsresult
[src]
/**
* A list of nsIFeedPersons that authored the feed.
*/
attribute nsIArray authors;
pub unsafe fn SetAuthors(&self, aAuthors: *const nsIArray) -> nsresult
[src]
/**
* A list of nsIFeedPersons that authored the feed.
*/
attribute nsIArray authors;
pub unsafe fn GetContributors(
&self,
aContributors: *mut *const nsIArray
) -> nsresult
[src]
&self,
aContributors: *mut *const nsIArray
) -> nsresult
/**
* A list of nsIFeedPersons that contributed to the feed.
*/
attribute nsIArray contributors;
pub unsafe fn SetContributors(&self, aContributors: *const nsIArray) -> nsresult
[src]
/**
* A list of nsIFeedPersons that contributed to the feed.
*/
attribute nsIArray contributors;
pub unsafe fn GetUpdated(&self, aUpdated: &mut nsAString) -> nsresult
[src]
/**
* The date the feed was updated, in RFC822 form. Parsable by JS
* and mail code.
*/
attribute AString updated;
pub unsafe fn SetUpdated(&self, aUpdated: &nsAString) -> nsresult
[src]
/**
* The date the feed was updated, in RFC822 form. Parsable by JS
* and mail code.
*/
attribute AString updated;
pub unsafe fn Normalize(&self) -> nsresult
[src]
/**
* Syncs a container's fields with its convenience attributes.
*/
void normalize ();
Methods from Deref<Target = nsIFeedElementBase>
pub fn coerce<T: nsIFeedElementBaseCoerce>(&self) -> &T
[src]
Cast this nsIFeedElementBase
to one of its base interfaces.
pub unsafe fn GetAttributes(
&self,
aAttributes: *mut *const nsISAXAttributes
) -> nsresult
[src]
&self,
aAttributes: *mut *const nsISAXAttributes
) -> nsresult
/**
* The attributes found on the element. Most interfaces provide convenience
* accessors for their standard fields, so this useful only when looking for
* an extension.
*/
attribute nsISAXAttributes attributes;
pub unsafe fn SetAttributes(
&self,
aAttributes: *const nsISAXAttributes
) -> nsresult
[src]
&self,
aAttributes: *const nsISAXAttributes
) -> nsresult
/**
* The attributes found on the element. Most interfaces provide convenience
* accessors for their standard fields, so this useful only when looking for
* an extension.
*/
attribute nsISAXAttributes attributes;
pub unsafe fn GetBaseURI(&self, aBaseURI: *mut *const nsIURI) -> nsresult
[src]
/**
* The baseURI for the Entry or Feed.
*/
attribute nsIURI baseURI;
pub unsafe fn SetBaseURI(&self, aBaseURI: *const nsIURI) -> nsresult
[src]
/**
* The baseURI for the Entry or Feed.
*/
attribute nsIURI baseURI;
Trait Implementations
impl XpCom for nsIFeedContainer
[src]
const IID: nsIID
IID: nsIID = nsID(1467620172, 46036, 19574, [156, 248, 117, 62, 102, 6, 17, 79])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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 nsIFeedContainer
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIFeedContainer
[src]
type Target = nsIFeedElementBase
The resulting type after dereferencing.
fn deref(&self) -> &nsIFeedElementBase
[src]
Dereferences the value.