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
00031 #include "nsISupports.idl"
00032 #include "nsIChannel.idl"
00033 #include "sbIMetadataValues.idl"
00034
00044 [scriptable, uuid(919FF2D3-616D-4035-A52F-08C239F334EE)]
00045 interface sbIMetadataHandler : nsISupports
00046 {
00053 attribute sbIMetadataValues values;
00054
00064 readonly attribute PRBool completed;
00065
00079 attribute nsIChannel channel;
00080
00097 PRInt32 vote( in AString aUrl );
00098
00105 void supportedMIMETypes(out PRUint32 nMIMECount, [array, size_is (nMIMECount), retval] out wstring aMIMETypes);
00106
00113 void supportedFileExtensions(out PRUint32 nExtCount, [array, size_is (nExtCount), retval] out wstring aExts);
00114
00124 PRInt32 read();
00125
00141 PRInt32 write();
00142
00153 void onChannelData( in nsISupports aChannel );
00154
00158 void close();
00159 };