changed stream converter progid root and provided more in depth usage notes

This commit is contained in:
valeski%netscape.com 1999-07-22 23:59:32 +00:00
Родитель ae0fedcc08
Коммит 604537e15a
1 изменённых файлов: 20 добавлений и 1 удалений

Просмотреть файл

@ -2,6 +2,10 @@
#include "nsIInputStream.idl"
#include "nsIURI.idl"
////////////////////////////////////////////////////////////////////////////
// STREAM CONVERTER USERS
////////////////////////////////////////////////////////////////////////////
// There are three ways to use a stream converter:
// 1. SYNCRONOUS. Stream to Stream.
// You can supply the service with a stream of type X
@ -21,6 +25,21 @@
// return converted data to you via the nsIStreamListener you passed
// in by calling its OnDataAvailable() method.
////////////////////////////////////////////////////////////////////////////
// STREAM CONVERTER SUPPLIERS
////////////////////////////////////////////////////////////////////////////
// Registering a stream converter.
// Stream converter registration is a two step process. First of all the stream
// converter implementation must register itself with the component manager using
// a progid in the format below. Second, the stream converter must add the progid
// to the registry.
//
// Stream converter progid format (the stream converter root key is defined in this
// file):
//
// Software/Netscape/streamconv/?from=FROM_MIME_TYPE?to=TO_MIME_TYPE
[scriptable, uuid(46484B30-3BD2-11d3-A16C-0050041CAF44)]
interface nsIStreamConverter : nsIStreamListener {
@ -51,6 +70,6 @@ interface nsIStreamConverter : nsIStreamListener {
%{C++
#define NS_ISTREAMCONVERTER_KEY "component://netscape/strmconv/"
#define NS_ISTREAMCONVERTER_KEY "Software/Netscape/streamconv/"
%}