sbIMediaPageManager.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2010 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
25 #include "nsISupports.idl"
26 
27 interface sbILibraryConstraint;
28 interface sbIMediaList;
29 interface sbIMediaPageInfo;
30 interface sbIMediaListMatch;
31 interface nsISimpleEnumerator;
32 
38 [scriptable, uuid(ec133090-2fde-11df-9aae-0800200c9a66)]
40 {
49  sbIMediaPageInfo registerPage(in AString aName, in AString aURL, in AString aIcon, in sbIMediaListMatch aMatch);
50 
56  void unregisterPage(in sbIMediaPageInfo aPageInfo);
57 
67  [optional] in sbILibraryConstraint aConstraint);
68 
90  [optional] in sbILibraryConstraint aConstraint,
91  [optional] in AString aType);
92 
100  void setPage(in sbIMediaList aList, in sbIMediaPageInfo aPageInfo,
101  [optional] in AString aType);
102 };
103 
104 
109 [scriptable, uuid(4817835e-1dd2-11b2-ab1e-81bb1e02f99b)]
111 {
115  readonly attribute AString contentTitle;
116 
120  readonly attribute AString contentUrl;
121 
125  readonly attribute AString contentIcon;
126 
130  readonly attribute sbIMediaListMatch matchInterface;
131 };
132 
133 
145 [scriptable, function, uuid(802efbaa-1dd2-11b2-96d5-b6792a2b14bf)]
147 {
154  PRBool match(in sbIMediaList aList,
155  [optional] in sbILibraryConstraint aConstraint);
156 };
157 
sbIMediaPageInfo registerPage(in AString aName, in AString aURL, in AString aIcon, in sbIMediaListMatch aMatch)
Register a medialist page.
This interface is used to describe a medialist page.
sbIMediaPageInfo getPage(in sbIMediaList aList, [optional] in sbILibraryConstraint aConstraint, [optional] in AString aType)
Get the active page for a medialist.
readonly attribute AString contentTitle
The localized name of the page.
readonly attribute AString contentIcon
The chrome URL to the icon representing the page.
nsISimpleEnumerator getAvailablePages([optional] in sbIMediaList aList, [optional] in sbILibraryConstraint aConstraint)
Get the list of available pages. The list parameter is optional, if not specified, the entire list of registered pages is returned.
var uuid
A brief description of the contents of this interface.
void setPage(in sbIMediaList aList, in sbIMediaPageInfo aPageInfo, [optional] in AString aType)
Set the active page for a medialist.
The medialist page manager, used to register, unregister, enumerate, set and retrieve page/medialists...
PRBool match(in sbIMediaList aList, [optional] in sbILibraryConstraint aConstraint)
Callback method used to perform the test on the medialist.
void unregisterPage(in sbIMediaPageInfo aPageInfo)
Unregister a medialist page.
readonly attribute AString contentUrl
The chrome URL to the page. Must be unique.
_updateCookies aName
readonly attribute sbIMediaListMatch matchInterface
The interface used to match medialists.
This interface is used to provide a generic test on medialists. Note that instead of providing an obj...