2001-09-29 00:14:13 +04: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 04:11:12 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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 04:11:12 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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 04:11:12 +04:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2001-09-29 00:14:13 +04: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 06:43:54 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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-25 00:32:24 +04:00
|
|
|
|
1999-06-11 00:24:43 +04:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2000-01-05 01:41:21 +03:00
|
|
|
%{C++
|
|
|
|
#include "MailNewsTypes.h"
|
|
|
|
%}
|
1999-08-07 06:30:11 +04:00
|
|
|
|
|
|
|
#include "MailNewsTypes2.idl"
|
1999-05-13 04:11:12 +04:00
|
|
|
|
|
|
|
[ptr] native nsString(nsString);
|
1999-08-07 06:30:11 +04:00
|
|
|
[ptr] native nsCString(nsCString);
|
2000-01-05 01:41:21 +03:00
|
|
|
[ref] native nsStringRef(nsString);
|
|
|
|
[ref] native nsCStringRef(nsCString);
|
2001-03-17 04:59:34 +03:00
|
|
|
[ptr] native octetPtr(PRUint8);
|
|
|
|
|
|
|
|
interface nsIMsgFolder;
|
1999-05-13 04:11:12 +04:00
|
|
|
|
|
|
|
[scriptable, uuid(4e994f60-c317-11d2-8cc9-0060b0fc14a3)]
|
|
|
|
interface nsIMsgHdr : nsISupports
|
|
|
|
{
|
2000-01-12 01:49:29 +03:00
|
|
|
/* general property routines - I think this can retrieve any
|
|
|
|
header in the db */
|
2000-01-05 05:02:50 +03:00
|
|
|
[noscript] void getProperty(in string propertyName, in nsStringRef propertyValue);
|
|
|
|
[noscript] void setProperty(in string propertyName, in nsStringRef propertyStr);
|
2000-01-05 01:41:21 +03:00
|
|
|
|
2000-01-05 05:02:50 +03:00
|
|
|
unsigned long getUint32Property(in string propertyName);
|
|
|
|
void setUint32Property(in string propertyName,
|
2000-01-05 01:41:21 +03:00
|
|
|
in unsigned long propertyVal);
|
2001-03-17 04:59:34 +03:00
|
|
|
|
|
|
|
// accessors, to make our JS cleaner
|
|
|
|
readonly attribute boolean isRead;
|
|
|
|
readonly attribute boolean isFlagged;
|
|
|
|
|
2000-01-05 01:41:21 +03:00
|
|
|
// Mark message routines
|
2000-01-05 05:02:50 +03:00
|
|
|
void markRead(in boolean read);
|
|
|
|
void markFlagged(in boolean flagged);
|
2001-04-06 07:43:00 +04:00
|
|
|
void markHasAttachments(in boolean hasAttachments);
|
2000-01-05 01:41:21 +03:00
|
|
|
|
2000-05-02 03:19:46 +04:00
|
|
|
attribute nsMsgPriorityValue priority;
|
2000-01-05 05:02:50 +03: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-12 01:49:29 +03:00
|
|
|
/* various threading stuff */
|
2000-01-05 05:02:50 +03:00
|
|
|
attribute nsMsgKey threadId;
|
|
|
|
attribute nsMsgKey messageKey;
|
|
|
|
attribute nsMsgKey threadParent;
|
|
|
|
|
2000-01-12 01:49:29 +03:00
|
|
|
/* meta information about the message, learned from reading the message */
|
2000-01-05 05:02:50 +03:00
|
|
|
attribute unsigned long messageSize;
|
|
|
|
attribute unsigned long lineCount;
|
2000-01-12 01:49:29 +03:00
|
|
|
attribute unsigned long statusOffset;
|
2000-12-06 22:35:43 +03:00
|
|
|
attribute unsigned long messageOffset;
|
2000-12-09 04:15:16 +03:00
|
|
|
attribute unsigned long offlineMessageSize;
|
2000-01-12 01:49:29 +03:00
|
|
|
/* common headers */
|
|
|
|
attribute PRTime date;
|
|
|
|
attribute string messageId;
|
|
|
|
attribute string ccList;
|
2000-01-08 12:55:37 +03:00
|
|
|
attribute string author;
|
|
|
|
attribute string subject;
|
|
|
|
attribute string recipients;
|
|
|
|
|
2000-01-05 05:02:50 +03:00
|
|
|
/* anything below here still has to be fixed */
|
|
|
|
void setReferences(in string references);
|
2000-01-12 01:49:29 +03:00
|
|
|
readonly attribute unsigned short numReferences;
|
|
|
|
[noscript] void getStringReference(in long refNum, in nsCStringRef ref);
|
2000-01-05 05:02:50 +03: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 11:10:59 +03:00
|
|
|
readonly attribute wstring mime2DecodedAuthor;
|
|
|
|
readonly attribute wstring mime2DecodedSubject;
|
|
|
|
readonly attribute wstring mime2DecodedRecipients;
|
|
|
|
|
2001-03-17 04:59:34 +03: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 11:10:59 +03:00
|
|
|
|
2000-06-12 02:08:08 +04:00
|
|
|
attribute string Charset;
|
2001-10-24 02:06:03 +04:00
|
|
|
attribute nsMsgLabelValue label;
|
2001-03-17 04:59:34 +03:00
|
|
|
readonly attribute nsIMsgFolder folder;
|
1999-05-13 04:11:12 +04:00
|
|
|
};
|
|
|
|
|
2000-01-05 01:41:21 +03:00
|
|
|
[scriptable, uuid(B5212A60-F93F-11d2-951C-006097222B83)]
|
1999-05-13 04:11:12 +04:00
|
|
|
interface nsIMsgDBHdr : nsIMsgHdr
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
1999-08-07 06:30:11 +04:00
|
|
|
/* *******************************************************************************/
|
1999-06-11 00:24:43 +04:00
|
|
|
|