Diff for /protozilla/ipc/public/nsIPipeFilterListener.idl between versions 1.2 and 1.3

version 1.2, 2002/04/20 01:01:00 version 1.3, 2002/05/11 07:03:23
Line 45 Line 45
   
 %}  %}
   
/* nsIPipeFilterListener is a mime-aware filter for nsIStreamListener/* nsIPipeFilterListener is a filter for nsIStreamListener
  */   */
   
 %{C++  
 class nsOutputFileStream;  
 %}  
   
 [ptr] native nsOutputFileStream(nsOutputFileStream);  
   
 [scriptable, uuid(8431e1b0-7ab1-11d4-8f02-006008948af5)]  [scriptable, uuid(8431e1b0-7ab1-11d4-8f02-006008948af5)]
 interface nsIPipeFilterListener : nsIStreamListener  interface nsIPipeFilterListener : nsIStreamListener
 {  {
   attribute nsIStreamListener streamListener;  
   
   attribute nsISupports ctxt;  
   
   [noscript] attribute nsOutputFileStream outputFileStream;  
   
   /**    /**
   * The MIME type of the channel's content if available.    * contains the matched start delimiter up to the end of the line,
   *    * including the trailing linebreak
   * NOTE: the content type can often be wrongly specified (e.g., wrong file 
   * extension, wrong MIME type, wrong document type stored on a server, etc.), 
   * and the caller most likely wants to verify with the actual data.  
    */     */
  attribute ACString contentType;  readonly attribute ACString startLine;
   
   /**    /**
   * The character set of the channel's content if available and if applicable.   * contains the matched end delimiter up to the end of the line,
   * This attribute only applies to textual data.   * including preceding and trailing linebreak
    */     */
  attribute ACString contentCharset;  readonly attribute ACString endLine;
   
   /**    /**
   * The length of the data associated with the channel if available.  A value   * Initializes filtering stream
   * of -1 indicates that the content length is unknown. 
    */     */
   attribute long contentLength;  
   
  /**  void init(in nsIStreamListener listener, in nsISupports ctxt,
   * MIME filtering for multipart stuff:            in string startDelimiter, in string endDelimiter,
   *  Display first part (should be non-multipart or multipart/alternative)            in unsigned long skipCount,
   *  Each message/rfc822 is treated as a plain text (.eml) attachment            in boolean keepDelimiters, in boolean mimeMultipart,
   *  For display, each message/rfc822 item is emitted with its first            in nsIStreamListener tailListener);
   *  "atomic" item, so that the subject headers etc. are displayed. 
   *  Attempt to display all text/ or image/ items inline, if not marked 
   *  as attachment (also display them as attachments) 
   *  No. of attachments =  no. of "atomic" items - 1       (i.e., firstitem) 
   *                      + no. of message/rfc822 items 
   *  For display, multipart/mixed should not be nested, unless 
   *    there is an intervening message/rfc822 wrapper 
   */ 
 
  /** 
   * Starts filtering stream 
   */ 
   
   void start(in string startDelimiter, in unsigned long startSkip,  
              in string endDelimiter, in unsigned long endSkip,  
              in boolean keepDelimiters, in boolean mimeHeadersOnly,  
              in boolean keepFirstPart);  
   
     void write(in string buf, in unsigned long count,
                in nsIRequest request, in nsISupports ctxt);
 };  };
   
   

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>