From 66e880472a5c01a316be1c455d0d1208ea1554ed Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Tue, 27 Jul 1999 03:25:57 +0000 Subject: [PATCH] this dir is not in any builds. removed the unwanted AsyncConvertSTream method. now we support one sync conversion method, and one async git-svn-id: svn://10.0.0.236/trunk@41232 18797224-902f-48f8-a5cc-f745e15eee43 --- .../streamconv/public/nsIStreamConverter.idl | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/mozilla/netwerk/streamconv/public/nsIStreamConverter.idl b/mozilla/netwerk/streamconv/public/nsIStreamConverter.idl index e06d945ee9a..66535787b88 100644 --- a/mozilla/netwerk/streamconv/public/nsIStreamConverter.idl +++ b/mozilla/netwerk/streamconv/public/nsIStreamConverter.idl @@ -6,17 +6,12 @@ // STREAM CONVERTER USERS //////////////////////////////////////////////////////////////////////////// -// There are three ways to use a stream converter: +// There are currently two ways to use a stream converter: // 1. SYNCRONOUS. Stream to Stream. // You can supply the service with a stream of type X // and it will convert it to your desired output type and return // a converted stream to you. // -// 2. ASYNCRONOUS. Stream to nsIStreamListener -// You can supply the service with a stream of type X -// and it will convert it to your desired output type and return -// converted data to you via the nsIStreamListener you passed in -// by calling its nsIStreamListener::OnDataAvailable() method. // // 3. ASYNCRONOUS. nsIStreamListener to nsIStreamListener // You can supply data directly to the converter by calling it's @@ -51,14 +46,7 @@ interface nsIStreamConverter : nsIStreamListener { in wstring aFromType, in wstring aToType); - // ASYNCRONOUS VERSIONS - - // Converts aFromStream of type aFromType, to type aToType pushing the converted - // data out to the caller via aListener::OnDataAvailable(). - void AsyncConvertStream(in nsIInputStream aFromStream, - in wstring aFromType, - in wstring aToType, - in nsIStreamListener aListener); + // ASYNCRONOUS VERSION // Converts data arriving via the converter's nsIStreamListener::OnDataAvailable() method // from type aFromType to aToType pushing the converted data out to the caller via @@ -67,3 +55,7 @@ interface nsIStreamConverter : nsIStreamListener { in wstring aToType, in nsIStreamListener aListener); }; + +%{C++ +#define NS_ISTREAMCONVERTER_KEY "Software/Netscape/streamconv/" +%} \ No newline at end of file