1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_mail_XMailMessage_idl__
25*b1cdbd2cSJim Jagielski#define __com_sun_star_mail_XMailMessage_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_uno_XInterface_idl__
28*b1cdbd2cSJim Jagielski#include <com/sun/star/uno/XInterface.idl>
29*b1cdbd2cSJim Jagielski#endif
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_mail_MailAttachment_idl__
32*b1cdbd2cSJim Jagielski#include <com/sun/star/mail/MailAttachment.idl>
33*b1cdbd2cSJim Jagielski#endif
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_datatransfer_XTransferable_idl__
36*b1cdbd2cSJim Jagielski#include <com/sun/star/datatransfer/XTransferable.idl>
37*b1cdbd2cSJim Jagielski#endif
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module mail {
40*b1cdbd2cSJim Jagielski
41*b1cdbd2cSJim Jagielski/**
42*b1cdbd2cSJim Jagielski   Represents a mail message.
43*b1cdbd2cSJim Jagielski
44*b1cdbd2cSJim Jagielski   @see com::sun::star::mail::XMailServer
45*b1cdbd2cSJim Jagielski
46*b1cdbd2cSJim Jagielski   @since OpenOffice 2.0
47*b1cdbd2cSJim Jagielski */
48*b1cdbd2cSJim Jagielskiinterface XMailMessage: ::com::sun::star::uno::XInterface {
49*b1cdbd2cSJim Jagielski
50*b1cdbd2cSJim Jagielski     /**
51*b1cdbd2cSJim Jagielski        The display name of the sender of this mail message.
52*b1cdbd2cSJim Jagielski    */
53*b1cdbd2cSJim Jagielski    [attribute, readonly] string SenderName;
54*b1cdbd2cSJim Jagielski    /**
55*b1cdbd2cSJim Jagielski        The e-mail address of the sender of this mail message.
56*b1cdbd2cSJim Jagielski        The e-mail address has to conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>.
57*b1cdbd2cSJim Jagielski    */
58*b1cdbd2cSJim Jagielski    [attribute, readonly] string SenderAddress;
59*b1cdbd2cSJim Jagielski
60*b1cdbd2cSJim Jagielski    /**
61*b1cdbd2cSJim Jagielski        The e-mail address where replies on this mail message should be sent to.
62*b1cdbd2cSJim Jagielski        If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
63*b1cdbd2cSJim Jagielski        sending the mail message later will fail.
64*b1cdbd2cSJim Jagielski        If no ReplyToAddress is set replies go to the SenderAddress.
65*b1cdbd2cSJim Jagielski    */
66*b1cdbd2cSJim Jagielski    [attribute] string ReplyToAddress;
67*b1cdbd2cSJim Jagielski
68*b1cdbd2cSJim Jagielski    /**
69*b1cdbd2cSJim Jagielski        Add an recipients e-mail address to the list of recipients of this mail message.
70*b1cdbd2cSJim Jagielski        If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
71*b1cdbd2cSJim Jagielski        sending the mail message will fail.
72*b1cdbd2cSJim Jagielski
73*b1cdbd2cSJim Jagielski        @param sRecipientAddress
74*b1cdbd2cSJim Jagielski        [in] the e-mail address of the recipient.
75*b1cdbd2cSJim Jagielski    */
76*b1cdbd2cSJim Jagielski    void addRecipient([in] string sRecipientAddress);
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski    /**
79*b1cdbd2cSJim Jagielski        Add an Cc recipients e-mail address to the list of recipients of this mail message.
80*b1cdbd2cSJim Jagielski        If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
81*b1cdbd2cSJim Jagielski        sending the mail message will fail.
82*b1cdbd2cSJim Jagielski
83*b1cdbd2cSJim Jagielski        @param sRecipientAddress
84*b1cdbd2cSJim Jagielski        [in] the e-mail address of the Cc recipient.
85*b1cdbd2cSJim Jagielski    */
86*b1cdbd2cSJim Jagielski    void addCcRecipient([in] string sRecipientAddress);
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski    /**
89*b1cdbd2cSJim Jagielski        Add an Bcc recipients e-mail address to the list of recipients of this mail message.
90*b1cdbd2cSJim Jagielski        If the e-mail address doesn't conform to <a href="http://www.ietf.org/rfc/rfc822.txt">RFC&nbsp;822</a>
91*b1cdbd2cSJim Jagielski        sending the mail message will fail.
92*b1cdbd2cSJim Jagielski
93*b1cdbd2cSJim Jagielski        @param sRecipientAddress
94*b1cdbd2cSJim Jagielski        [in] the e-mail address of the Bcc recipient.
95*b1cdbd2cSJim Jagielski    */
96*b1cdbd2cSJim Jagielski    void addBccRecipient([in] string sRecipientAddress);
97*b1cdbd2cSJim Jagielski
98*b1cdbd2cSJim Jagielski    /**
99*b1cdbd2cSJim Jagielski        Return a sequence of the e-mail addresses of all recipients of
100*b1cdbd2cSJim Jagielski        this mail message.
101*b1cdbd2cSJim Jagielski    */
102*b1cdbd2cSJim Jagielski    sequence<string> getRecipients();
103*b1cdbd2cSJim Jagielski
104*b1cdbd2cSJim Jagielski    /**
105*b1cdbd2cSJim Jagielski        Return a sequence of the e-mail addresses of all the Cc recipients
106*b1cdbd2cSJim Jagielski        of this mail message.
107*b1cdbd2cSJim Jagielski    */
108*b1cdbd2cSJim Jagielski    sequence<string> getCcRecipients();
109*b1cdbd2cSJim Jagielski
110*b1cdbd2cSJim Jagielski    /**
111*b1cdbd2cSJim Jagielski        Return a sequence of the e-mail addresses of all the Bcc recipients
112*b1cdbd2cSJim Jagielski        of this mail message.
113*b1cdbd2cSJim Jagielski    */
114*b1cdbd2cSJim Jagielski    sequence<string> getBccRecipients();
115*b1cdbd2cSJim Jagielski
116*b1cdbd2cSJim Jagielski    /**
117*b1cdbd2cSJim Jagielski        The subject of a mail message.
118*b1cdbd2cSJim Jagielski    */
119*b1cdbd2cSJim Jagielski    [attribute] string Subject;
120*b1cdbd2cSJim Jagielski
121*b1cdbd2cSJim Jagielski    /**
122*b1cdbd2cSJim Jagielski        The body of the mail message.
123*b1cdbd2cSJim Jagielski        It is expected that the transferable delivers the data as
124*b1cdbd2cSJim Jagielski        a string. Although a transferable may support multiple
125*b1cdbd2cSJim Jagielski        data flavors only the first data flavor supplied will be
126*b1cdbd2cSJim Jagielski        used to retrieve the data and it is expected that the data
127*b1cdbd2cSJim Jagielski        will be provided as a string.
128*b1cdbd2cSJim Jagielski
129*b1cdbd2cSJim Jagielski        @see com::sun::star::datatransfer::XTransferable
130*b1cdbd2cSJim Jagielski    */
131*b1cdbd2cSJim Jagielski    [attribute] com::sun::star::datatransfer::XTransferable Body;
132*b1cdbd2cSJim Jagielski
133*b1cdbd2cSJim Jagielski    /**
134*b1cdbd2cSJim Jagielski        Add a file attachment to a mail message.
135*b1cdbd2cSJim Jagielski
136*b1cdbd2cSJim Jagielski        param aMailAttachment
137*b1cdbd2cSJim Jagielski        [in] specifies a file which should be attached to this mail message.
138*b1cdbd2cSJim Jagielski
139*b1cdbd2cSJim Jagielski        @see com::sun::star::mail::MailAttachment
140*b1cdbd2cSJim Jagielski    */
141*b1cdbd2cSJim Jagielski    void addAttachment([in] MailAttachment aMailAttachment);
142*b1cdbd2cSJim Jagielski
143*b1cdbd2cSJim Jagielski    /**
144*b1cdbd2cSJim Jagielski        Return a sequence of <type>MailAttachment</type>'s that will
145*b1cdbd2cSJim Jagielski        be attached to this mail message.
146*b1cdbd2cSJim Jagielski
147*b1cdbd2cSJim Jagielski        @see com::sun::star::mail::MailAttachment
148*b1cdbd2cSJim Jagielski    */
149*b1cdbd2cSJim Jagielski    sequence<MailAttachment> getAttachments();
150*b1cdbd2cSJim Jagielski};
151*b1cdbd2cSJim Jagielski
152*b1cdbd2cSJim Jagielski}; }; }; };
153*b1cdbd2cSJim Jagielski
154*b1cdbd2cSJim Jagielski#endif
155