sbIAlbumArtService.idl
Go to the documentation of this file.
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 :miv */
3 /*
4 //
5 // BEGIN SONGBIRD GPL
6 //
7 // This file is part of the Songbird web player.
8 //
9 // Copyright(c) 2005-2008 POTI, Inc.
10 // http://songbirdnest.com
11 //
12 // This file may be licensed under the terms of of the
13 // GNU General Public License Version 2 (the "GPL").
14 //
15 // Software distributed under the License is distributed
16 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
17 // express or implied. See the GPL for the specific language
18 // governing rights and limitations.
19 //
20 // You should have received a copy of the GPL along with this
21 // program. If not, go to http://www.gnu.org/licenses/gpl.html
22 // or write to the Free Software Foundation, Inc.,
23 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 // END SONGBIRD GPL
26 //
27 */
28 
29 //------------------------------------------------------------------------------
30 //------------------------------------------------------------------------------
31 //
32 // Interface description for the album art service interface.
33 //
34 //------------------------------------------------------------------------------
35 //------------------------------------------------------------------------------
36 
37 #include "nsISupports.idl"
38 
39 interface nsIArray;
40 interface nsIURI;
41 
42 
50 [scriptable, uuid(dcb6dd07-36a2-44e6-9ee2-8b22577204bf)]
52 {
64  nsIArray getFetcherList(in unsigned long type,
65  [optional] in boolean includeDisabled);
66 
67 
80  boolean imageIsValidAlbumArt
81  (in AUTF8String aMimeType,
82  [const, array, size_is(aDataLen)] in octet aData,
83  in unsigned long aDataLen);
84 
85 
98  nsIURI cacheImage(in AUTF8String aMimeType,
99  [const, array, size_is(aDataLen)] in octet aData,
100  in unsigned long aDataLen);
101 
102 
116  void cacheTemporaryData(in AString aKey, in nsISupports aData);
117 
118 
127  nsISupports retrieveTemporaryData(in AString aKey);
128 };
129 
130 
131 //
132 // C++ defs.
133 //
134 
135 %{C++
136 #define SB_ALBUMARTSERVICE_CONTRACTID \
137  "@songbirdnest.com/Songbird/album-art-service;1"
138 %}C++
139 
nsISupports retrieveTemporaryData(in AString aKey)
Get data previously placed into the temporary cache.
inArray array
void cacheTemporaryData(in AString aKey, in nsISupports aData)
Add arbitrary data to a temporary cache.
nsIArray getFetcherList(in unsigned long type, [optional] in boolean includeDisabled)
boolean imageIsValidAlbumArt(in AUTF8String aMimeType, [const, array, size_is(aDataLen)] in octet aData, in unsigned long aDataLen)
Determine whether the image specified by aData and aDataLen of type specified by aMimeType is a valid...
nsIURI cacheImage(in AUTF8String aMimeType, [const, array, size_is(aDataLen)] in octet aData, in unsigned long aDataLen)
Write the album art image specified by aData and aDataLen of type specified by aMimeType to a cache f...
var uuid
function C(H)
Interface for the album art service. Instantiate as a component service.
_updateTextAndScrollDataForFrame aData