michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIFeedContainer.idl" michael@0: interface nsIArray; michael@0: michael@0: /** michael@0: * An nsIFeedEntry represents an Atom or RSS entry/item. Summary michael@0: * and/or full-text content may be available, but callers will have to michael@0: * check both. michael@0: */ michael@0: [scriptable, uuid(31bfd5b4-8ff5-4bfd-a8cb-b3dfbd4f0a5b)] michael@0: interface nsIFeedEntry : nsIFeedContainer { michael@0: michael@0: /** michael@0: * Uses description, subtitle, summary, content and extensions michael@0: * to generate a summary. michael@0: * michael@0: */ michael@0: attribute nsIFeedTextConstruct summary; michael@0: michael@0: /** michael@0: * The date the entry was published, in RFC822 form. Parsable by JS michael@0: * and mail code. michael@0: */ michael@0: attribute AString published; michael@0: michael@0: /** michael@0: * Uses atom:content and content:encoded to provide michael@0: * a 'full text' view of an entry. michael@0: * michael@0: */ michael@0: attribute nsIFeedTextConstruct content; michael@0: michael@0: /** michael@0: * Enclosures are podcasts, photocasts, etc. michael@0: */ michael@0: attribute nsIArray enclosures; michael@0: michael@0: /** michael@0: * Enclosures, etc. that might be displayed inline. michael@0: */ michael@0: attribute nsIArray mediaContent; michael@0: };