Adding MIME Basic Part interface
This commit is contained in:
Родитель
41de8f4e42
Коммит
fb824f745e
|
@ -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) {
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
#
|
||||
# CONFIDENTIAL AND PROPRIETARY SOURCE CODE OF
|
||||
# NETSCAPE COMMUNICATIONS CORPORATION
|
||||
# Copyright (C) 1996 Netscape Communications Corporation. All Rights
|
||||
# Reserved. Use of this Source Code is subject to the terms of the
|
||||
# applicable license agreement from Netscape Communications Corporation.
|
||||
# The copyright notice(s) in this Source Code does not indicate actual or
|
||||
# intended publication of this Source Code.
|
||||
#
|
||||
GDEPTH = ../../..
|
||||
|
||||
EXPORTS = \
|
||||
$(NULL)
|
||||
|
||||
PRIVATE_EXPORTS = \
|
||||
nsSMTPService.h \
|
||||
nsMIMEService.h \
|
||||
nsMessage.h \
|
||||
nsMIMEMessage.h \
|
||||
nsSMTPServerCallback.h \
|
||||
nsMIMEBodyPart.h \
|
||||
$(NULL)
|
||||
|
||||
MODULE = xpfc
|
||||
|
||||
REQUIRES = raptor
|
|
@ -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___ */
|
|
@ -1,30 +0,0 @@
|
|||
#
|
||||
# CONFIDENTIAL AND PROPRIETARY SOURCE CODE OF
|
||||
# NETSCAPE COMMUNICATIONS CORPORATION
|
||||
# Copyright (C) 1996 Netscape Communications Corporation. All Rights
|
||||
# Reserved. Use of this Source Code is subject to the terms of the
|
||||
# applicable license agreement from Netscape Communications Corporation.
|
||||
# The copyright notice(s) in this Source Code does not indicate actual or
|
||||
# intended publication of this Source Code.
|
||||
#
|
||||
GDEPTH = ../../..
|
||||
|
||||
EXPORTS = \
|
||||
$(NULL)
|
||||
|
||||
PRIVATE_EXPORTS = \
|
||||
$(NULL)
|
||||
|
||||
MODULE = xpfc
|
||||
|
||||
CPPSRCS = \
|
||||
nsSMTPService.cpp \
|
||||
nsMIMEService.cpp \
|
||||
nsMessage.cpp \
|
||||
nsMIMEMessage.cpp \
|
||||
nsSMTPServerCallback.cpp \
|
||||
nsMIMEBodyPart.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());
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче