gecko-dev/mailnews/base/public/nsIMsgHdr.idl

108 строки
3.1 KiB
Plaintext
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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/
*
* 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.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
1999-04-25 00:32:24 +04:00
#include "nsISupports.idl"
/******************************************************************************
just stub the interfaces for now
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.
*/
#include "nsISupports.idl"
#include "MailNewsTypes2.idl"
[ptr] native nsString(nsString);
[ptr] native nsCString(nsCString);
native nsMsgPriority(nsMsgPriority);
[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;
nsCString GetStringReference(in long refNum);
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);
};
interface nsIMsgDBHdr : nsIMsgHdr
{
};
/* *******************************************************************************/