Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / mail / XMailMessage.idl
bloba93b096263de95722b89d328c94032485caa6692
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XMailMessage.idl,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_mail_XMailMessage_idl__
32 #define __com_sun_star_mail_XMailMessage_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
38 #ifndef __com_sun_star_mail_MailAttachment_idl__
39 #include <com/sun/star/mail/MailAttachment.idl>
40 #endif
42 #ifndef __com_sun_star_datatransfer_XTransferable_idl__
43 #include <com/sun/star/datatransfer/XTransferable.idl>
44 #endif
46 module com { module sun { module star { module mail {
48 /**
49 Represents a mail message.
51 @see com::sun::star::mail::XMailServer
53 @since OOo 2.0.0
55 interface XMailMessage: ::com::sun::star::uno::XInterface {
57 /**
58 The display name of the sender of this mail message.
59 */
60 [attribute, readonly] string SenderName;
61 /**
62 The e-mail address of the sender of this mail message.
63 The e-mail address has to conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>.
64 */
65 [attribute, readonly] string SenderAddress;
67 /**
68 The e-mail address where replies on this mail message should be sent to.
69 If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
70 sending the mail message later will fail.
71 If no ReplyToAddress is set replies go to the SenderAddress.
73 [attribute] string ReplyToAddress;
75 /**
76 Add an recipients e-mail address to the list of recipients of this mail message.
77 If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
78 sending the mail message will fail.
80 @param sRecipientAddress
81 [in] the e-mail address of the recipient.
83 void addRecipient([in] string sRecipientAddress);
85 /**
86 Add an Cc recipients e-mail address to the list of recipients of this mail message.
87 If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
88 sending the mail message will fail.
90 @param sRecipientAddress
91 [in] the e-mail address of the Cc recipient.
93 void addCcRecipient([in] string sRecipientAddress);
95 /**
96 Add an Bcc recipients e-mail address to the list of recipients of this mail message.
97 If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
98 sending the mail message will fail.
100 @param sRecipientAddress
101 [in] the e-mail address of the Bcc recipient.
103 void addBccRecipient([in] string sRecipientAddress);
106 Return a sequence of the e-mail addresses of all recipients of
107 this mail message.
109 sequence<string> getRecipients();
112 Return a sequence of the e-mail addresses of all the Cc recipients
113 of this mail message.
115 sequence<string> getCcRecipients();
118 Return a sequence of the e-mail addresses of all the Bcc recipients
119 of this mail message.
121 sequence<string> getBccRecipients();
124 The subject of a mail message.
126 [attribute] string Subject;
129 The body of the mail message.
130 It is expected that the transferable delivers the data as
131 a string. Although a transferable may support multiple
132 data flavors only the first data flavor supplied will be
133 used to retrieve the data and it is expected that the data
134 will be provided as a string.
136 @see com::sun::star::datatransfer::XTransferable
138 [attribute] com::sun::star::datatransfer::XTransferable Body;
141 Add a file attachment to a mail message.
143 param aMailAttachment
144 [in] specifies a file which should be attached to this mail message.
146 @see com::sun::star::mail::MailAttachment
148 void addAttachment([in] MailAttachment aMailAttachment);
151 Return a sequence of <type>MailAttachment</type>'s that will
152 be attached to this mail message.
154 @see com::sun::star::mail::MailAttachment
156 sequence<MailAttachment> getAttachments();
159 }; }; }; };
161 #endif