2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
1999-05-13 00:11:12 +00:00
|
|
|
*
|
2001-09-28 20:14:13 +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-05-13 00:11:12 +00:00
|
|
|
*
|
2001-09-28 20:14:13 +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-05-13 00:11:12 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2001-09-28 20:14:13 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 03:43:54 +00:00
|
|
|
*
|
2001-09-28 20:14:13 +00:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the NPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the NPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-04-24 20:32:24 +00:00
|
|
|
|
1999-06-10 20:24:43 +00:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2000-01-04 22:41:21 +00:00
|
|
|
%{C++
|
|
|
|
#include "MailNewsTypes.h"
|
|
|
|
%}
|
1999-08-07 02:30:11 +00:00
|
|
|
|
|
|
|
#include "MailNewsTypes2.idl"
|
1999-05-13 00:11:12 +00:00
|
|
|
|
|
|
|
[ptr] native nsString(nsString);
|
1999-08-07 02:30:11 +00:00
|
|
|
[ptr] native nsCString(nsCString);
|
2000-01-04 22:41:21 +00:00
|
|
|
[ref] native nsStringRef(nsString);
|
|
|
|
[ref] native nsCStringRef(nsCString);
|
2001-03-17 01:59:34 +00:00
|
|
|
[ptr] native octetPtr(PRUint8);
|
|
|
|
|
|
|
|
interface nsIMsgFolder;
|
1999-05-13 00:11:12 +00:00
|
|
|
|
|
|
|
[scriptable, uuid(4e994f60-c317-11d2-8cc9-0060b0fc14a3)]
|
|
|
|
interface nsIMsgHdr : nsISupports
|
|
|
|
{
|
2000-01-11 22:49:29 +00:00
|
|
|
/* general property routines - I think this can retrieve any
|
|
|
|
header in the db */
|
2000-01-05 02:02:50 +00:00
|
|
|
[noscript] void getProperty(in string propertyName, in nsStringRef propertyValue);
|
|
|
|
[noscript] void setProperty(in string propertyName, in nsStringRef propertyStr);
|
2002-08-07 14:16:35 +00:00
|
|
|
void setStringProperty(in string propertyName, in string propertyValue);
|
|
|
|
string getStringProperty(in string propertyName);
|
2000-01-05 02:02:50 +00:00
|
|
|
unsigned long getUint32Property(in string propertyName);
|
|
|
|
void setUint32Property(in string propertyName,
|
2000-01-04 22:41:21 +00:00
|
|
|
in unsigned long propertyVal);
|
2001-03-17 01:59:34 +00:00
|
|
|
|
|
|
|
// accessors, to make our JS cleaner
|
|
|
|
readonly attribute boolean isRead;
|
|
|
|
readonly attribute boolean isFlagged;
|
|
|
|
|
2000-01-04 22:41:21 +00:00
|
|
|
// Mark message routines
|
2000-01-05 02:02:50 +00:00
|
|
|
void markRead(in boolean read);
|
|
|
|
void markFlagged(in boolean flagged);
|
2001-04-06 03:43:00 +00:00
|
|
|
void markHasAttachments(in boolean hasAttachments);
|
2000-01-04 22:41:21 +00:00
|
|
|
|
2000-05-01 23:19:46 +00:00
|
|
|
attribute nsMsgPriorityValue priority;
|
2000-01-05 02:02:50 +00:00
|
|
|
void setPriorityString(in string priority);
|
|
|
|
|
|
|
|
/* flag handling routines */
|
|
|
|
attribute unsigned long flags;
|
|
|
|
unsigned long OrFlags(in unsigned long flags);
|
|
|
|
unsigned long AndFlags(in unsigned long flags);
|
|
|
|
|
2000-01-11 22:49:29 +00:00
|
|
|
/* various threading stuff */
|
2000-01-05 02:02:50 +00:00
|
|
|
attribute nsMsgKey threadId;
|
|
|
|
attribute nsMsgKey messageKey;
|
|
|
|
attribute nsMsgKey threadParent;
|
|
|
|
|
2000-01-11 22:49:29 +00:00
|
|
|
/* meta information about the message, learned from reading the message */
|
2000-01-05 02:02:50 +00:00
|
|
|
attribute unsigned long messageSize;
|
|
|
|
attribute unsigned long lineCount;
|
2000-01-11 22:49:29 +00:00
|
|
|
attribute unsigned long statusOffset;
|
2000-12-06 19:35:43 +00:00
|
|
|
attribute unsigned long messageOffset;
|
2000-12-09 01:15:16 +00:00
|
|
|
attribute unsigned long offlineMessageSize;
|
2000-01-11 22:49:29 +00:00
|
|
|
/* common headers */
|
|
|
|
attribute PRTime date;
|
|
|
|
attribute string messageId;
|
|
|
|
attribute string ccList;
|
2000-01-08 09:55:37 +00:00
|
|
|
attribute string author;
|
|
|
|
attribute string subject;
|
|
|
|
attribute string recipients;
|
|
|
|
|
2000-01-05 02:02:50 +00:00
|
|
|
/* anything below here still has to be fixed */
|
|
|
|
void setReferences(in string references);
|
2000-01-11 22:49:29 +00:00
|
|
|
readonly attribute unsigned short numReferences;
|
|
|
|
[noscript] void getStringReference(in long refNum, in nsCStringRef ref);
|
2000-01-05 02:02:50 +00:00
|
|
|
|
|
|
|
void setRecipientsArray(in string names, in string addresses,
|
|
|
|
in unsigned long numAddresses);
|
|
|
|
void setCCListArray(in string names, in string addresses,
|
|
|
|
in unsigned long numAddresses);
|
|
|
|
|
2000-03-24 08:10:59 +00:00
|
|
|
readonly attribute wstring mime2DecodedAuthor;
|
|
|
|
readonly attribute wstring mime2DecodedSubject;
|
|
|
|
readonly attribute wstring mime2DecodedRecipients;
|
|
|
|
|
2001-03-17 01:59:34 +00:00
|
|
|
[noscript] void getAuthorCollationKey(out octetPtr key, out unsigned long len);
|
|
|
|
[noscript] void getSubjectCollationKey(out octetPtr key, out unsigned long len);
|
|
|
|
[noscript] void getRecipientsCollationKey(out octetPtr key, out unsigned long len);
|
2000-03-24 08:10:59 +00:00
|
|
|
|
2000-06-11 22:08:08 +00:00
|
|
|
attribute string Charset;
|
2001-10-23 22:06:03 +00:00
|
|
|
attribute nsMsgLabelValue label;
|
2001-03-17 01:59:34 +00:00
|
|
|
readonly attribute nsIMsgFolder folder;
|
1999-05-13 00:11:12 +00:00
|
|
|
};
|
|
|
|
|
2000-01-04 22:41:21 +00:00
|
|
|
[scriptable, uuid(B5212A60-F93F-11d2-951C-006097222B83)]
|
1999-05-13 00:11:12 +00:00
|
|
|
interface nsIMsgDBHdr : nsIMsgHdr
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
1999-08-07 02:30:11 +00:00
|
|
|
/* *******************************************************************************/
|
1999-06-10 20:24:43 +00:00
|
|
|
|