Adding MIME Basic Part interface

This commit is contained in:
spider%netscape.com 1998-10-31 00:47:25 +00:00
Родитель 12e1fbd5c6
Коммит 35768a4181
7 изменённых файлов: 91 добавлений и 0 удалений

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

@ -236,6 +236,10 @@
{ 0xa30f09f0, 0x703a, 0x11d2, \
{0x8d, 0xbc, 0x00, 0x80, 0x5f, 0x8a, 0x7a, 0xb6} }
//3d336b60-7059-11d2-8dbc-00805f8a7ab6
#define NS_MIME_BASIC_BODY_PART_CID \
{ 0x3d336b60, 0x7059 , 0x11d2, \
{0x8d, 0xbc, 0x00, 0x80, 0x5f, 0x8a, 0x7a, 0xb6} }
#endif

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

@ -56,6 +56,7 @@
#include "nsMessage.h"
#include "nsMIMEMessage.h"
#include "nsMIMEBodyPart.h"
#include "nsMIMEBasicBodyPart.h"
#include "nsXPFCSubject.h"
#include "nsXPFCCommand.h"
#include "nsXPFCCanvas.h"
@ -117,6 +118,7 @@ static NS_DEFINE_IID(kCMessageCID, NS_MESSAGE_CID);
static NS_DEFINE_IID(kCMIMEMessageCID, NS_MIME_MESSAGE_CID);
static NS_DEFINE_IID(kCMIMEServiceCID, NS_MIME_SERVICE_CID);
static NS_DEFINE_IID(kCMIMEBodyPartCID, NS_MIME_BODY_PART_CID);
static NS_DEFINE_IID(kCMIMEBasicBodyPartCID, NS_MIME_BASIC_BODY_PART_CID);
class nsxpfcFactory : public nsIFactory
{

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

@ -166,6 +166,8 @@ nsresult nsxpfcFactory::CreateInstance(nsISupports *aOuter,
inst = (nsISupports *)(nsIMIMEMessage*) new nsMIMEMessage();
} else if (mClassID.Equals(kCMIMEBodyPartCID)) {
inst = (nsISupports *)(nsIMIMEBodyPart*) new nsMIMEBodyPart();
} else if (mClassID.Equals(kCMIMEBasicBodyPartCID)) {
inst = (nsISupports *)(nsIMIMEBodyPart*) new nsMIMEBasicBodyPart();
}
if (inst == NULL) {

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

@ -19,6 +19,7 @@ PRIVATE_EXPORTS = \
nsMIMEMessage.h \
nsSMTPServerCallback.h \
nsMIMEBodyPart.h \
nsMIMEBasicBodyPart.h \
$(NULL)
MODULE = xpfc

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

@ -0,0 +1,38 @@
/* -*- 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 nsMIMEBasicBodyPart_h___
#define nsMIMEBasicBodyPart_h___
#include "nsMIMEBodyPart.h"
class nsMIMEBasicBodyPart : public nsMIMEBodyPart
{
public:
nsMIMEBasicBodyPart();
NS_DECL_ISUPPORTS
NS_IMETHOD Init() ;
protected:
~nsMIMEBasicBodyPart();
};
#endif /* nsMIMEBasicBodyPart_h___ */

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

@ -24,6 +24,7 @@ CPPSRCS = \
nsMIMEMessage.cpp \
nsSMTPServerCallback.cpp \
nsMIMEBodyPart.cpp \
nsMIMEBasicBodyPart.cpp \
$(NULL)
REQUIRES = xpcom raptor netlib msgsdk

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

@ -0,0 +1,43 @@
/* -*- 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.
*/
#include "nsMIMEBasicBodyPart.h"
#include "nsxpfcCIID.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kMIMEBodyPartIID, NS_IMIME_BODY_PART_IID);
nsMIMEBasicBodyPart :: nsMIMEBasicBodyPart() : nsMIMEBodyPart()
{
NS_INIT_REFCNT();
}
nsMIMEBasicBodyPart :: ~nsMIMEBasicBodyPart()
{
}
NS_IMPL_ADDREF(nsMIMEBasicBodyPart)
NS_IMPL_RELEASE(nsMIMEBasicBodyPart)
NS_IMPL_QUERY_INTERFACE(nsMIMEBasicBodyPart, kMIMEBodyPartIID)
nsresult nsMIMEBasicBodyPart::Init()
{
return (nsMIMEBodyPart::Init());
}