gecko-dev/xpfc/msg/inc/nsMIMEMessage.h

64 lines
1.8 KiB
C
Raw Normal View History

1998-10-30 19:09:57 +00:00
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsMIMEMessage_h___
#define nsMIMEMessage_h___
#include "nsMessage.h"
1998-11-02 19:41:29 +00:00
#include "nsIMimeMessage.h"
1998-10-31 01:28:10 +00:00
#include "nsIMIMEBodyPart.h"
#include "mime.h"
1998-10-30 19:09:57 +00:00
class nsMIMEMessage : public nsMessage,
public nsIMIMEMessage
{
public:
nsMIMEMessage();
NS_DECL_ISUPPORTS
NS_IMETHOD Init() ;
1998-10-30 21:46:38 +00:00
NS_IMETHOD AddHeader(nsString& aHeaderName, nsString& aHeaderValue);
NS_IMETHOD RemoveHeader(nsString& aHeaderName);
NS_IMETHOD GetHeader(nsString& aHeaderName, nsString& aHeaderValue);
NS_IMETHOD AddAttachment(nsString& aAttachment, nsMIMEEncoding aMIMEEncoding = nsMIMEEncoding_default);
NS_IMETHOD AddText(nsString& aText, nsMIMEEncoding aMIMEEncoding = nsMIMEEncoding_default);
1998-10-31 01:28:10 +00:00
NS_IMETHOD SetBody(nsString& aBody);
1998-10-30 21:46:38 +00:00
NS_IMETHOD AddBodyPart(nsIMIMEBodyPart& aBodyPart);
1998-10-30 22:01:36 +00:00
NS_IMETHOD GetBodyType(nsMIMEBodyType& aBodyType) ;
1998-10-31 02:04:30 +00:00
NS_IMETHOD Encode();
1998-10-30 22:01:36 +00:00
1998-10-30 19:09:57 +00:00
protected:
~nsMIMEMessage();
1998-10-30 22:01:36 +00:00
private:
nsMIMEBodyType mBodyType;
1998-10-31 01:28:10 +00:00
nsIMIMEBodyPart * mBodyPart;
public:
mime_message_t * mMimeMessageT;
1998-10-31 02:04:30 +00:00
nsmail_outputstream_t * mMimeMessageStreamT;
1998-10-30 22:01:36 +00:00
1998-10-30 19:09:57 +00:00
};
#endif /* nsMIMEMessage_h___ */