1999-04-24 20:35:34 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* 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/
|
1999-04-24 20:35:34 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00: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.
|
1999-04-24 20:35:34 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-04-24 20:35:34 +00:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-04-24 20:35:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/********************************************************************************************************
|
|
|
|
|
|
|
|
Interface for representing Messenger folders.
|
|
|
|
|
|
|
|
*********************************************************************************************************/
|
|
|
|
|
|
|
|
#ifndef nsMessage_h__
|
|
|
|
#define nsMessage_h__
|
|
|
|
|
|
|
|
#include "msgCore.h"
|
|
|
|
#include "nsIMessage.h" /* include the interface we are going to support */
|
|
|
|
#include "nsRDFResource.h"
|
1999-07-29 02:05:03 +00:00
|
|
|
#include "nsIMsgHdr.h"
|
1999-05-04 22:34:35 +00:00
|
|
|
#include "nsCOMPtr.h"
|
2000-02-08 05:59:20 +00:00
|
|
|
#include "nsWeakPtr.h"
|
1999-04-24 20:35:34 +00:00
|
|
|
|
1999-05-18 23:55:39 +00:00
|
|
|
class NS_MSG_BASE nsMessage: public nsRDFResource, public nsIDBMessage
|
1999-04-24 20:35:34 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsMessage(void);
|
|
|
|
virtual ~nsMessage(void);
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
1999-09-09 06:02:05 +00:00
|
|
|
NS_DECL_NSIMESSAGE
|
|
|
|
NS_DECL_NSIDBMESSAGE
|
2000-01-08 09:55:37 +00:00
|
|
|
NS_DECL_NSIMSGHDR
|
|
|
|
|
1999-09-21 20:03:37 +00:00
|
|
|
NS_IMETHOD Init(const char *aURI);
|
1999-04-24 20:35:34 +00:00
|
|
|
|
|
|
|
protected:
|
1999-05-04 22:34:35 +00:00
|
|
|
nsCOMPtr<nsIMsgDBHdr> mMsgHdr;
|
1999-04-24 20:35:34 +00:00
|
|
|
|
2000-02-08 05:59:20 +00:00
|
|
|
private:
|
|
|
|
nsWeakPtr mFolder;
|
2000-03-24 08:10:59 +00:00
|
|
|
nsMsgKey mMsgKey;
|
2000-08-16 23:45:58 +00:00
|
|
|
|
|
|
|
// could be combined into bitfield
|
2000-03-24 08:10:59 +00:00
|
|
|
PRBool mMsgKeyValid;
|
2000-08-16 23:45:58 +00:00
|
|
|
PRUint32 mMessageType;
|
1999-04-24 20:35:34 +00:00
|
|
|
};
|
|
|
|
|
1999-04-26 22:31:42 +00:00
|
|
|
#endif //nsMessage_h__
|
|
|
|
|