From a8b91edb14eed30e0cdff7a93572ed48ef7be04e Mon Sep 17 00:00:00 2001 From: "spider%netscape.com" Date: Fri, 30 Oct 1998 00:50:04 +0000 Subject: [PATCH] Adding MIME interface git-svn-id: svn://10.0.0.236/trunk@13697 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfc/msg/inc/nsMIMEService.h | 38 +++++++++++++++++++++ mozilla/xpfc/msg/public/nsIMimeService.h | 39 ++++++++++++++++++++++ mozilla/xpfc/msg/src/nsMIMEService.cpp | 42 ++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 mozilla/xpfc/msg/inc/nsMIMEService.h create mode 100644 mozilla/xpfc/msg/public/nsIMimeService.h create mode 100644 mozilla/xpfc/msg/src/nsMIMEService.cpp diff --git a/mozilla/xpfc/msg/inc/nsMIMEService.h b/mozilla/xpfc/msg/inc/nsMIMEService.h new file mode 100644 index 00000000000..8bc9f4df25b --- /dev/null +++ b/mozilla/xpfc/msg/inc/nsMIMEService.h @@ -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 nsMIMEService_h___ +#define nsMIMEService_h___ + +#include "nsIMIMEService.h" + +class nsMIMEService : public nsIMIMEService +{ +public: + nsMIMEService(); + + NS_DECL_ISUPPORTS + + NS_IMETHOD Init() ; + +protected: + ~nsMIMEService(); + +}; + +#endif /* nsMIMEService_h___ */ diff --git a/mozilla/xpfc/msg/public/nsIMimeService.h b/mozilla/xpfc/msg/public/nsIMimeService.h new file mode 100644 index 00000000000..319f369c003 --- /dev/null +++ b/mozilla/xpfc/msg/public/nsIMimeService.h @@ -0,0 +1,39 @@ +/* -*- 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 nsIMIMEService_h___ +#define nsIMIMEService_h___ + +#include "nsISupports.h" +#include "nsString.h" + +//08d3c0f0-6f90-11d2-8dbc-00805f8a7ab6 +#define NS_IMIME_SERVICE_IID \ +{ 0x08d3c0f0, 0x6f90, 0x11d2, \ +{ 0x8d, 0xbc, 0x00, 0x80, 0x5f, 0x8a, 0x7a, 0xb6 } } + +class nsIMIMEService : public nsISupports +{ + +public: + + NS_IMETHOD Init() = 0; + +}; + +#endif /* nsIMIMEService_h___ */ diff --git a/mozilla/xpfc/msg/src/nsMIMEService.cpp b/mozilla/xpfc/msg/src/nsMIMEService.cpp new file mode 100644 index 00000000000..9ea515f6006 --- /dev/null +++ b/mozilla/xpfc/msg/src/nsMIMEService.cpp @@ -0,0 +1,42 @@ +/* -*- 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 "nsMIMEService.h" +#include "nsxpfcCIID.h" + +static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); +static NS_DEFINE_IID(kMIMEServiceIID, NS_IMIME_SERVICE_IID); + +nsMIMEService :: nsMIMEService() +{ + NS_INIT_REFCNT(); +} + +nsMIMEService :: ~nsMIMEService() +{ +} + +NS_IMPL_ADDREF(nsMIMEService) +NS_IMPL_RELEASE(nsMIMEService) +NS_IMPL_QUERY_INTERFACE(nsMIMEService, kMIMEServiceIID) + +nsresult nsMIMEService::Init() +{ + return NS_OK; +} +