Post necko landing cleanup...this file is obsolete...it is now an idl file.

This commit is contained in:
mscott%netscape.com 1999-08-02 21:44:15 +00:00
parent 57f9b18615
commit a783d4ac73

View File

@ -1,74 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// This class allows you to output
#ifndef _nsIMimeEmitter_h_
#define _nsIMimeEmitter_h_
#include "prtypes.h"
#include "nsIStreamListener.h"
#include "nsIOutputStream.h"
#include "nsIURI.h"
typedef enum {
MicroHeaders = 0,
NormalHeaders,
AllHeaders
} HeaderDisplayTypes;
// {D01D7B59-DCCD-11d2-A411-00805F613C79}
#define NS_IMIME_EMITTER_IID \
{ 0xd01d7b59, 0xdccd, 0x11d2, \
{ 0xa4, 0x11, 0x0, 0x80, 0x5f, 0x61, 0x3c, 0x79 } }
class nsIMimeEmitter : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IMIME_EMITTER_IID; return iid; }
// These will be called to start and stop the total operation
NS_IMETHOD Initialize(nsIURI *url) = 0;
NS_IMETHOD Complete() = 0;
// Set the output stream/listener for processed data.
NS_IMETHOD SetOutputStream(nsIOutputStream *outStream) = 0;
NS_IMETHOD SetOutputListener(nsIStreamListener *listener) = 0;
// Header handling routines.
NS_IMETHOD StartHeader(PRBool rootMailHeader, PRBool headerOnly, const char *msgID,
const char *outCharset) = 0;
NS_IMETHOD AddHeaderField(const char *field, const char *value) = 0;
NS_IMETHOD EndHeader() = 0;
// Attachment handling routines
NS_IMETHOD StartAttachment(const char *name, const char *contentType, const char *url) = 0;
NS_IMETHOD AddAttachmentField(const char *field, const char *value) = 0;
NS_IMETHOD EndAttachment() = 0;
// Body handling routines
NS_IMETHOD StartBody(PRBool bodyOnly, const char *msgID, const char *outCharset) = 0;
NS_IMETHOD WriteBody(const char *buf, PRUint32 size, PRUint32 *amountWritten) = 0;
NS_IMETHOD EndBody() = 0;
// Generic write routine. This is necessary for output that
// libmime needs to pass through without any particular parsing
// involved (i.e. decoded images, HTML Body Text, etc...
NS_IMETHOD Write(const char *buf, PRUint32 size, PRUint32 *amountWritten) = 0;
NS_IMETHOD UtilityWrite(const char *buf) = 0;
};
#endif /* _nsIMimeEmitter_h_ */