gecko-dev/mailnews/compose/public/nsIMsgCompFields.idl

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

1999-02-11 03:43:57 +03:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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-02-11 03:43:57 +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-02-11 03:43:57 +03:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1999-02-11 03:43:57 +03:00
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1999-02-11 03:43:57 +03:00
*/
#include "nsISupports.idl"
#include "nsIMsgRecipientArray.idl"
1999-02-11 03:43:57 +03:00
1999-06-11 02:03:28 +04:00
[scriptable, uuid(3E89CAE3-BD2D-11d2-8293-000000000000)]
1999-02-11 03:43:57 +03:00
interface nsIMsgCompFields : nsISupports {
void Copy(in nsIMsgCompFields pMsgCompFields);
void SetHeader(in long header, in wstring value);
wstring GetHeader(in long header);
1999-02-11 03:43:57 +03:00
void SetBoolHeader(in long header, in boolean bValue);
1999-02-11 03:43:57 +03:00
boolean GetBoolHeader(in long header);
/* Convenience routines to get and set header's value... */
void SetFrom(in wstring value);
wstring GetFrom();
1999-02-11 03:43:57 +03:00
void SetReplyTo(in wstring value);
wstring GetReplyTo();
1999-02-11 03:43:57 +03:00
void SetTo(in wstring value);
wstring GetTo();
1999-02-11 03:43:57 +03:00
void SetCc(in wstring value);
wstring GetCc();
1999-02-11 03:43:57 +03:00
void SetBcc(in wstring value);
wstring GetBcc();
1999-02-11 03:43:57 +03:00
void SetFcc(in wstring value);
wstring GetFcc();
1999-02-11 03:43:57 +03:00
void SetFcc2(in wstring value);
wstring GetFcc2();
void SetNewsFcc(in wstring value);
wstring GetNewsFcc();
1999-02-11 03:43:57 +03:00
void SetNewsBcc(in wstring value);
wstring GetNewsBcc();
1999-02-11 03:43:57 +03:00
void SetNewsgroups(in wstring value);
wstring GetNewsgroups();
1999-02-11 03:43:57 +03:00
void SetNewshost(in wstring value);
wstring GetNewshost();
void SetFollowupTo(in wstring value);
wstring GetFollowupTo();
1999-02-11 03:43:57 +03:00
void SetSubject(in wstring value);
wstring GetSubject();
1999-02-11 03:43:57 +03:00
void SetAttachments(in wstring value);
wstring GetAttachments();
1999-02-11 03:43:57 +03:00
void SetOrganization(in wstring value);
wstring GetOrganization();
1999-02-11 03:43:57 +03:00
void SetReferences(in wstring value);
wstring GetReferences();
1999-02-11 03:43:57 +03:00
void SetOtherRandomHeaders(in wstring value);
wstring GetOtherRandomHeaders();
1999-02-11 03:43:57 +03:00
void SetNewspostUrl(in wstring value);
wstring GetNewspostUrl();
1999-02-11 03:43:57 +03:00
void SetDefaultBody(in wstring value);
wstring GetDefaultBody();
1999-02-11 03:43:57 +03:00
void SetPriority(in wstring value);
wstring GetPriority();
1999-02-11 03:43:57 +03:00
void SetMessageEncoding(in wstring value);
wstring GetMessageEncoding();
1999-02-11 03:43:57 +03:00
void SetCharacterSet(in wstring value);
wstring GetCharacterSet();
1999-02-11 03:43:57 +03:00
void SetMessageId(in wstring value);
wstring GetMessageId();
1999-02-11 03:43:57 +03:00
void SetHTMLPart(in wstring value);
wstring GetHTMLPart();
1999-02-11 03:43:57 +03:00
void SetTemplateName(in wstring value);
wstring GetTemplateName();
1999-02-11 03:43:57 +03:00
void SetDraftId(in wstring value);
wstring GetDraftId();
void SetReturnReceipt(in boolean value);
1999-02-11 03:43:57 +03:00
boolean GetReturnReceipt();
void SetAttachVCard(in boolean value);
1999-02-11 03:43:57 +03:00
boolean GetAttachVCard();
1999-02-17 22:43:26 +03:00
void SetBody(in wstring value);
wstring GetBody();
1999-06-25 03:54:34 +04:00
void SetUUEncodeAttachments(in boolean value);
1999-06-25 03:54:34 +04:00
boolean GetUUEncodeAttachments();
void SetUseMultipartAlternativeFlag(in boolean value);
boolean GetUseMultipartAlternativeFlag();
void SetTheForcePlainText(in boolean value);
1999-06-25 03:54:34 +04:00
boolean GetTheForcePlainText();
/* some utility functions */
nsIMsgRecipientArray SplitRecipients(in wstring recipients, in boolean emailAddressOnly);
void ConvertBodyToPlainText();
1999-02-11 03:43:57 +03:00
};