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 "nsIStreamListener.idl"
00033 #include "sbIMetadataHandler.idl"
00034
00035 interface nsIChannel;
00036
00048 [uuid(6CB7F8A0-29ED-424b-AEF6-B491A8784AF4)]
00049 interface sbIMetadataChannel : nsIStreamListener
00050 {
00055 attribute PRUInt64 pos;
00059 readonly attribute PRUInt64 buf;
00063 readonly attribute PRUInt64 size;
00068 readonly attribute PRBool seekable;
00072 readonly attribute PRBool completed;
00085 void open( in nsIChannel aChannel, in sbIMetadataHandler aHandler );
00089 void close();
00094 void skip( in PRUint64 aDistance );
00101 PRUint32 read( in charPtr aBuffer, in PRUint32 aSize );
00106 char readChar();
00111 PRInt32 readInt32();
00116 PRInt64 readInt64();
00117 };