1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is the Feed Processor.
17 * The Initial Developer of the Original Code is Google Inc.
18 * Portions created by the Initial Developer are Copyright (C) 2006
19 * the Initial Developer. All Rights Reserved.
22 * Ben Goodger <beng@google.com>
23 * Robert Sayre <sayrer@gmail.com>
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 #include
"nsIFeedContainer.idl"
42 interface nsIFeedGenerator
;
45 * An nsIFeed represents a single Atom or RSS feed.
47 [scriptable
, uuid(3b8aae33
-80e2
-4efa
-99c8
-a6c5b99f76ea
)]
48 interface nsIFeed
: nsIFeedContainer
51 * Uses description, subtitle, and extensions
52 * to generate a summary.
54 attribute nsIFeedTextConstruct subtitle
;
56 // All content classifies as a "feed" - it is the transport.
57 const unsigned long TYPE_FEED
= 0;
58 const unsigned long TYPE_AUDIO
= 1;
59 const unsigned long TYPE_IMAGE
= 2;
60 const unsigned long TYPE_VIDEO
= 4;
63 * The type of feed. For example, a podcast would be TYPE_AUDIO.
65 readonly attribute
unsigned long type
;
68 * The total number of enclosures found in the feed.
70 attribute
long enclosureCount
;
73 * The items or entries in feed.
75 attribute nsIArray items
;
78 * No one really knows what cloud is for.
80 * It supposedly enables some sort of interaction with an XML-RPC or
83 attribute nsIWritablePropertyBag2 cloud
;
86 * Information about the software that produced the feed.
88 attribute nsIFeedGenerator generator
;
91 * An image url and some metadata (as defined by RSS2).
94 attribute nsIWritablePropertyBag2 image
;
97 * No one really knows what textInput is for.
100 * <http://www.cadenhead.org/workbench/news/2894/rss-joy-textinput>
103 attribute nsIWritablePropertyBag2 textInput
;
106 * Days to skip fetching. This field was supposed to designate
107 * intervals for feed fetching. It's not generally implemented. For
108 * example, if this array contained "Monday", aggregators should not
109 * fetch the feed on Mondays.
111 attribute nsIArray skipDays
;
114 * Hours to skip fetching. This field was supposed to designate
115 * intervals for feed fetching. It's not generally implemented. See
116 * <http://blogs.law.harvard.edu/tech/rss> for more information.
118 attribute nsIArray skipHours
;