1999-05-13 04:11:12 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
1999-11-06 06:43:54 +03: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
|
|
|
*
|
1999-11-06 06:43:54 +03: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.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-05-13 04:11:12 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-05-13 04:11:12 +04:00
|
|
|
*/
|
1999-04-25 00:32:24 +04:00
|
|
|
|
1999-06-11 00:24:43 +04:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
1999-08-07 06:30:11 +04:00
|
|
|
/******************************************************************************
|
|
|
|
|
|
|
|
just stub the interfaces for now
|
1999-06-11 00:24:43 +04:00
|
|
|
|
|
|
|
interface nsIMsgHdr : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
interface nsIMsgDBHdr : nsIMsgHdr
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
this is commented out because it doesn't match nsIMessage.h, and I don't
|
|
|
|
want anyone to try to use it yet.
|
|
|
|
|
|
|
|
the problem is nsIMessage.h has interfaces that pass references to nsStrings.
|
|
|
|
|
|
|
|
but, you can't do that in idl.
|
1999-08-07 06:30:11 +04:00
|
|
|
*/
|
1999-06-11 00:24:43 +04:00
|
|
|
|
1999-05-13 04:11:12 +04:00
|
|
|
#include "nsISupports.idl"
|
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);
|
1999-05-13 04:11:12 +04:00
|
|
|
|
1999-08-07 06:30:11 +04:00
|
|
|
native nsMsgPriority(nsMsgPriority);
|
1999-05-13 04:11:12 +04:00
|
|
|
|
|
|
|
[scriptable, uuid(4e994f60-c317-11d2-8cc9-0060b0fc14a3)]
|
|
|
|
interface nsIMsgHdr : nsISupports
|
|
|
|
{
|
|
|
|
nsString GetProperty(in string propertyName);
|
|
|
|
void SetProperty(in string propertyName, in nsString propertyStr);
|
|
|
|
|
|
|
|
unsigned long GetUint32Property(in string propertyName);
|
|
|
|
void SetUint32Property(in string propertyName, in unsigned long propertyVal);
|
|
|
|
|
|
|
|
attribute unsigned short numReferences;
|
1999-08-07 06:30:11 +04:00
|
|
|
nsCString GetStringReference(in long refNum);
|
1999-05-13 04:11:12 +04:00
|
|
|
|
|
|
|
attribute long long date;
|
|
|
|
attribute string messageId;
|
|
|
|
attribute string references;
|
|
|
|
attribute string CCList;
|
|
|
|
attribute string recipients;
|
|
|
|
attribute boolean recipientsIsNewsgroup;
|
|
|
|
attribute string author;
|
|
|
|
|
|
|
|
void SetRecipientsArray(in string names,
|
|
|
|
in string addresses,
|
|
|
|
in unsigned long numaddresses);
|
|
|
|
|
|
|
|
void SetCCListArray(in string names,
|
|
|
|
in string addresses,
|
|
|
|
in unsigned long numAddresses);
|
|
|
|
|
|
|
|
readonly attribute string mime2EncodedAuthor;
|
|
|
|
readonly attribute string mime2EncodedSubject;
|
|
|
|
readonly attribute string mime2EncodedRecipients;
|
|
|
|
|
|
|
|
readonly attribute string authorCollationKey;
|
|
|
|
readonly attribute string subjectCollationKey;
|
|
|
|
readonly attribute string recipientsCollationKey;
|
|
|
|
|
|
|
|
attribute string messageKey;
|
|
|
|
attribute nsMsgKey threadID;
|
|
|
|
attribute unsigned long messageSize;
|
|
|
|
attribute unsigned long lineCount;
|
|
|
|
attribute nsMsgPriority priority;
|
|
|
|
readonly attribute unsigned long messageOffset;
|
|
|
|
readonly attribute unsigned long statusOffset;
|
|
|
|
readonly attribute string charSet;
|
1999-05-14 04:41:37 +04:00
|
|
|
|
|
|
|
void MarkRead(in boolean markRead);
|
1999-08-25 01:45:21 +04:00
|
|
|
void MarkFlagged(in boolean markFlagged);
|
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
|
|
|
|