00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #include "nsISupports.idl"
00038
00039
00047 interface nsIArray;
00048 interface nsIDOMWindow;
00049 interface sbIAlbumArtListener;
00050 interface sbIMediaItem;
00051
00052 [scriptable, uuid(cb90f244-e008-47c5-a3a1-519e01eb91a7)]
00053 interface sbIAlbumArtFetcher : nsISupports
00054 {
00058 readonly attribute AString shortName;
00059
00064 readonly attribute AString name;
00065
00069 readonly attribute AString description;
00070
00074 readonly attribute boolean isLocal;
00075
00079 attribute boolean isEnabled;
00080
00089 attribute PRInt32 priority;
00090
00094 attribute nsIArray albumArtSourceList;
00095
00103 void fetchAlbumArtForAlbum(in nsIArray aMediaItems,
00104 in sbIAlbumArtListener aListener);
00105
00106
00112 void fetchAlbumArtForTrack(in sbIMediaItem aMediaItem,
00113 in sbIAlbumArtListener aListener);
00114
00115
00116
00117 void shutdown();
00118 };
00119
00120
00121
00122
00123
00124
00125 %{C++
00126 #define SB_ALBUM_ART_FETCHER_CATEGORY "songbird-album-art-fetcher"
00127
00128 #define SB_FILEALBUMARTFETCHER_CONTRACTID \
00129 "@songbirdnest.com/Songbird/album-art/file-fetcher;1"
00130
00131 #define SB_METADATAALBUMARTFETCHER_CONTRACTID \
00132 "@songbirdnest.com/Songbird/album-art/metadata-fetcher;1"
00133
00134 #define SB_LASTFMALBUMARTFETCHER_CONTRACTID \
00135 "@songbirdnest.com/Songbird/album-art/lastfm-fetcher;1"
00136 %}C++
00137