Changes for the XP-COM interface of libmime.

This commit is contained in:
rhp%netscape.com 1999-01-28 21:09:22 +00:00
Родитель df5a94e153
Коммит 07ea11d994
1 изменённых файлов: 25 добавлений и 3 удалений

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

@ -14,8 +14,30 @@
{ 0x88, 0x9, 0x0, 0x80, 0x5f, 0x5a, 0x1f, 0xb8 } };
class nsRFC822toHTMLStreamConverter : public nsIStreamConverter {
public:
private:
void *tagData;
public:
nsRFC822toHTMLStreamConverter();
virtual ~nsRFC822toHTMLStreamConverter();
/* this macro defines QueryInterface, AddRef and Release for this class */
NS_DECL_ISUPPORTS
/* Inherited methods for nsIStreamConverter */
NS_IMETHOD SetOutputStream(class nsIOutputStream *);
NS_IMETHOD SetOutputListener(class nsIStreamListener *);
/* Inherited methods for nsIStreamListener */
NS_IMETHOD OnStartBinding(class nsIURL *,const char *);
NS_IMETHOD OnProgress(class nsIURL *,unsigned int,unsigned int);
NS_IMETHOD OnStatus(class nsIURL *,const unsigned short *);
NS_IMETHOD OnStopBinding(class nsIURL *,unsigned int,const unsigned short *);
NS_IMETHOD GetBindInfo(class nsIURL *,struct nsStreamBindingInfo *);
NS_IMETHOD OnDataAvailable(class nsIURL *,class nsIInputStream *,unsigned int);
};
/* this function will be used by the factory to generate an RFC822 - HTML Converter....*/
extern nsresult NS_NewRFC822HTMLConverter(nsIStreamConverter** aInstancePtrResult);
#endif /* nsRFC822toHTMLStreamConverter_h_ */