sbIMetadataHandler.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
31 #include "nsISupports.idl"
32 #include "nsIChannel.idl"
33 #include "sbIPropertyArray.idl"
34 
44 [scriptable, uuid(068500d6-0678-46f5-b69d-49dc02453a40)]
46 {
51  const PRUint32 METADATA_IMAGE_TYPE_OTHER = 0x00;
52  const PRUint32 METADATA_IMAGE_TYPE_FILEICON = 0x01;
53  const PRUint32 METADATA_IMAGE_TYPE_OTHERFILEICON = 0x02;
54  const PRUint32 METADATA_IMAGE_TYPE_FRONTCOVER = 0x03;
55  const PRUint32 METADATA_IMAGE_TYPE_BACKCOVER = 0x04;
56  const PRUint32 METADATA_IMAGE_TYPE_LEAFLETPAGE = 0x05;
57  const PRUint32 METADATA_IMAGE_TYPE_MEDIA = 0x06;
58  const PRUint32 METADATA_IMAGE_TYPE_LEADARTIST = 0x07;
59  const PRUint32 METADATA_IMAGE_TYPE_ARTIST = 0x08;
60  const PRUint32 METADATA_IMAGE_TYPE_CONDUCTOR = 0x09;
61  const PRUint32 METADATA_IMAGE_TYPE_BAND = 0x0A;
62  const PRUint32 METADATA_IMAGE_TYPE_COMPOSER = 0x0B;
63  const PRUint32 METADATA_IMAGE_TYPE_LYRICIST = 0x0C;
65  const PRUint32 METADATA_IMAGE_TYPE_DURINGRECORDING = 0x0E;
68  const PRUint32 METADATA_IMAGE_TYPE_COLOUREDFISH = 0x11;
69  const PRUint32 METADATA_IMAGE_TYPE_ILLUSTRATION = 0x12;
70  const PRUint32 METADATA_IMAGE_TYPE_BANDLOGO = 0x13;
71  const PRUint32 METADATA_IMAGE_TYPE_PUBLISHERLOGO = 0x14;
72 
76  readonly attribute ACString contractID;
77 
87 
97  readonly attribute PRBool completed;
98 
105  readonly attribute PRBool requiresMainThread;
106 
120  attribute nsIChannel channel;
121 
138  PRInt32 vote( in AString aUrl );
139 
149  PRInt32 read();
150 
165  PRInt32 write();
166 
184  void getImageData(in PRInt32 aType,
185  out AUTF8String aMimeType,
186  out unsigned long aDataLen,
187  [array,retval,size_is(aDataLen)] out octet aData);
188 
202  void setImageData(in PRInt32 aType, in AString aUrl);
203 
215  void onChannelData( in nsISupports aChannel );
216 
220  void close();
221 };
const PRUint32 METADATA_IMAGE_TYPE_LYRICIST
attribute sbIMutablePropertyArray props
An array of metadata properties.
attribute nsIChannel channel
The object's nsIChannel.
inArray array
const PRUint32 METADATA_IMAGE_TYPE_OTHERFILEICON
const PRUint32 METADATA_IMAGE_TYPE_LEADARTIST
const PRUint32 METADATA_IMAGE_TYPE_DURINGPERFORMANCE
const PRUint32 METADATA_IMAGE_TYPE_MOVIESCREENCAPTURE
const PRUint32 METADATA_IMAGE_TYPE_FILEICON
const PRUint32 METADATA_IMAGE_TYPE_ARTIST
void onChannelData(in nsISupports aChannel)
Be thou informst that one's sbIMetadataChannel has just received data.
const PRUint32 METADATA_IMAGE_TYPE_BACKCOVER
const PRUint32 METADATA_IMAGE_TYPE_DURINGRECORDING
var uuid
readonly attribute PRBool requiresMainThread
Whether or not this handler MUST be run on the main thread.
void setImageData(in PRInt32 aType, in AString aUrl)
const PRUint32 METADATA_IMAGE_TYPE_OTHER
Constant for the type of image in the metadata, these are pulled from the taglib/attachedpictureframe...
An interface to carry around arrays of nsIProperty instances Note that implementations of the interfa...
Definition of the sbIPropertyArray interface.
PRInt32 read()
Start the read operation.
PRInt32 write()
Start the write operation.
const PRUint32 METADATA_IMAGE_TYPE_LEAFLETPAGE
const PRUint32 METADATA_IMAGE_TYPE_MEDIA
const PRUint32 METADATA_IMAGE_TYPE_FRONTCOVER
const PRUint32 METADATA_IMAGE_TYPE_PUBLISHERLOGO
const PRUint32 METADATA_IMAGE_TYPE_COMPOSER
const PRUint32 METADATA_IMAGE_TYPE_CONDUCTOR
const nsIChannel
void close()
Close down the internals of the handler, stop any asynchronous operations, free any allocations...
An object capable of manipulating the metadata tags for a media file.
const PRUint32 METADATA_IMAGE_TYPE_RECORDINGLOCATION
readonly attribute PRBool completed
Whether or not the object has completed its read/write operation.
void getImageData(in PRInt32 aType, out AUTF8String aMimeType, out unsigned long aDataLen, [array, retval, size_is(aDataLen)] out octet aData)
const PRUint32 METADATA_IMAGE_TYPE_ILLUSTRATION
const PRUint32 METADATA_IMAGE_TYPE_BAND
const PRUint32 METADATA_IMAGE_TYPE_COLOUREDFISH
PRInt32 vote(in AString aUrl)
Vote to be the handler returned for the given url.
const PRUint32 METADATA_IMAGE_TYPE_BANDLOGO
readonly attribute ACString contractID
The Contract ID for the metadata handler.
_updateTextAndScrollDataForFrame aData