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
00034 #include "nsISupports.idl"
00035
00036 #include "nsIArray.idl"
00037 #include "nsIWebProgressListener.idl"
00038
00045 [scriptable, uuid(5770099E-503B-4b76-B1A6-0BC53F53D2BF)]
00046 interface sbIPlaylistReaderListener : nsIWebProgressListener
00047 {
00054 attribute AString originalURL;
00055
00062 attribute AString serviceGuid;
00063
00070 attribute AString destinationURL;
00071
00078 attribute AString destinationTable;
00079
00086 attribute AString readableName;
00087
00094 attribute AString playlistType;
00095
00102 attribute AString description;
00103
00110 attribute PRBool appendOrReplace;
00111 };
00112
00119 [scriptable, uuid(43005B48-8138-424d-AA12-FE604BA3A3E8)]
00120 interface sbIPlaylistReader : nsISupports
00121 {
00128 attribute AString originalURL;
00129
00136 PRBool read(in AString aURL,
00137 in AString aGUID,
00138 in AString aDestTable,
00139 in PRBool aReplace,
00140 out PRInt32 aErrorCode);
00141
00148 PRInt32 vote(in AString aURL);
00149
00156 AString name();
00157
00164 AString description();
00165
00172 void supportedMIMETypes(out PRUint32 aMIMECount,
00173 [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00174
00181 void supportedFileExtensions(out PRUint32 aExtCount,
00182 [array, size_is (aExtCount), retval] out wstring aExts);
00183 };
00184
00191 [scriptable, uuid(18032AD6-CB1F-403d-B3F5-7FE8EB579C28)]
00192 interface sbIPlaylistReaderManager : nsISupports
00193 {
00200 attribute AString originalURL;
00201
00208 PRInt32 autoLoad(in AString aURL,
00209 in AString aGUID,
00210 in AString aReadableName,
00211 in AString aPlaylistType,
00212 in AString aDescription,
00213 in AString aContentType,
00214 in sbIPlaylistReaderListener aPlaylistReaderListener);
00215
00222 PRInt32 loadPlaylist(in AString aURL,
00223 in AString aGUID,
00224 in AString aUniqueName,
00225 in AString aReadableName,
00226 in AString aPlaylistType,
00227 in AString aDescription,
00228 in AString aContentType,
00229 in PRBool aAppendOrReplace,
00230 in sbIPlaylistReaderListener aPlaylistReaderListener);
00231
00238 PRInt32 read(in AString aFile,
00239 in AString aGUID,
00240 in AString aName,
00241 in AString aReadableName,
00242 in AString aContentType,
00243 in PRBool aAppendOrReplace);
00244
00251 void supportedMIMETypes(out PRUint32 aMIMECount,
00252 [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00253
00260 void supportedFileExtensions(out PRUint32 aExtCount,
00261 [array, size_is (aExtCount), retval] out wstring aExts);
00262 };