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(55cf9123-343b-4012-9f99-11f114bc2f1b)]
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
00105 void fetchAlbumArtForAlbum(in nsIArray aMediaItems,
00106 in sbIAlbumArtListener aListener);
00107
00108
00109
00110 void shutdown();
00111 };
00112
00113
00114
00115
00116
00117
00118 %{C++
00119 #define SB_ALBUM_ART_FETCHER_CATEGORY "songbird-album-art-fetcher"
00120
00121 #define SB_FILEALBUMARTFETCHER_CONTRACTID \
00122 "@songbirdnest.com/Songbird/album-art/file-fetcher;1"
00123
00124 #define SB_METADATAALBUMARTFETCHER_CONTRACTID \
00125 "@songbirdnest.com/Songbird/album-art/metadata-fetcher;1"
00126
00127 #define SB_LASTFMALBUMARTFETCHER_CONTRACTID \
00128 "@songbirdnest.com/Songbird/album-art/lastfm-fetcher;1"
00129 %}C++
00130