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

68 строки
1.9 KiB
C
Исходник Обычный вид История

1998-10-30 22:09:57 +03: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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
1998-10-30 22:09:57 +03:00
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
1998-10-30 22:09:57 +03:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1998-10-30 22:09:57 +03:00
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1998-10-30 22:09:57 +03:00
*/
#ifndef nsMIMEMessage_h___
#define nsMIMEMessage_h___
#include "nsMessage.h"
1998-11-02 22:41:29 +03:00
#include "nsIMimeMessage.h"
1998-10-31 04:28:10 +03:00
#include "nsIMIMEBodyPart.h"
#include "mime.h"
1998-10-30 22:09:57 +03:00
class nsMIMEMessage : public nsMessage,
public nsIMIMEMessage
{
public:
nsMIMEMessage();
NS_DECL_ISUPPORTS
NS_IMETHOD Init() ;
1998-10-31 00:46:38 +03: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 04:28:10 +03:00
NS_IMETHOD SetBody(nsString& aBody);
1998-10-31 00:46:38 +03:00
NS_IMETHOD AddBodyPart(nsIMIMEBodyPart& aBodyPart);
1998-10-31 01:01:36 +03:00
NS_IMETHOD GetBodyType(nsMIMEBodyType& aBodyType) ;
1998-10-31 05:04:30 +03:00
NS_IMETHOD Encode();
1998-10-31 01:01:36 +03:00
1998-10-30 22:09:57 +03:00
protected:
~nsMIMEMessage();
1998-10-31 01:01:36 +03:00
private:
nsMIMEBodyType mBodyType;
1998-10-31 04:28:10 +03:00
nsIMIMEBodyPart * mBodyPart;
public:
mime_message_t * mMimeMessageT;
1998-10-31 05:04:30 +03:00
nsmail_outputstream_t * mMimeMessageStreamT;
1998-10-31 01:01:36 +03:00
1998-10-30 22:09:57 +03:00
};
#endif /* nsMIMEMessage_h___ */