1*ae77b8caSAriel Constenla-Haile/**************************************************************
2*ae77b8caSAriel Constenla-Haile *
3*ae77b8caSAriel Constenla-Haile * Licensed to the Apache Software Foundation (ASF) under one
4*ae77b8caSAriel Constenla-Haile * or more contributor license agreements.  See the NOTICE file
5*ae77b8caSAriel Constenla-Haile * distributed with this work for additional information
6*ae77b8caSAriel Constenla-Haile * regarding copyright ownership.  The ASF licenses this file
7*ae77b8caSAriel Constenla-Haile * to you under the Apache License, Version 2.0 (the
8*ae77b8caSAriel Constenla-Haile * "License"); you may not use this file except in compliance
9*ae77b8caSAriel Constenla-Haile * with the License.  You may obtain a copy of the License at
10*ae77b8caSAriel Constenla-Haile *
11*ae77b8caSAriel Constenla-Haile *   http://www.apache.org/licenses/LICENSE-2.0
12*ae77b8caSAriel Constenla-Haile *
13*ae77b8caSAriel Constenla-Haile * Unless required by applicable law or agreed to in writing,
14*ae77b8caSAriel Constenla-Haile * software distributed under the License is distributed on an
15*ae77b8caSAriel Constenla-Haile * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ae77b8caSAriel Constenla-Haile * KIND, either express or implied.  See the License for the
17*ae77b8caSAriel Constenla-Haile * specific language governing permissions and limitations
18*ae77b8caSAriel Constenla-Haile * under the License.
19*ae77b8caSAriel Constenla-Haile *
20*ae77b8caSAriel Constenla-Haile *************************************************************/
21*ae77b8caSAriel Constenla-Haile
22*ae77b8caSAriel Constenla-Haile#ifndef __com_sun_star_system_XMailMessage_idl__
23*ae77b8caSAriel Constenla-Haile#define __com_sun_star_system_XMailMessage_idl__
24*ae77b8caSAriel Constenla-Haile
25*ae77b8caSAriel Constenla-Haile#include <com/sun/star/uno/XInterface.idl>
26*ae77b8caSAriel Constenla-Haile#include <com/sun/star/lang/IllegalArgumentException.idl>
27*ae77b8caSAriel Constenla-Haile
28*ae77b8caSAriel Constenla-Hailemodule com { module sun { module star { module system {
29*ae77b8caSAriel Constenla-Haile
30*ae77b8caSAriel Constenla-Haile/** This interface lets a client set or get the information of a mail message.
31*ae77b8caSAriel Constenla-Haile*/
32*ae77b8caSAriel Constenla-Haileinterface XMailMessage
33*ae77b8caSAriel Constenla-Haile{
34*ae77b8caSAriel Constenla-Haile    /** The recipient of the mail message.
35*ae77b8caSAriel Constenla-Haile    */
36*ae77b8caSAriel Constenla-Haile    [attribute] string Recipient;
37*ae77b8caSAriel Constenla-Haile
38*ae77b8caSAriel Constenla-Haile    /** The email address of the originator of the mail.
39*ae77b8caSAriel Constenla-Haile    */
40*ae77b8caSAriel Constenla-Haile    [attribute] string Originator;
41*ae77b8caSAriel Constenla-Haile
42*ae77b8caSAriel Constenla-Haile    /** The subject of the mail message.
43*ae77b8caSAriel Constenla-Haile    */
44*ae77b8caSAriel Constenla-Haile    [attribute] string Subject;
45*ae77b8caSAriel Constenla-Haile
46*ae77b8caSAriel Constenla-Haile    /** The body of the mail message.
47*ae77b8caSAriel Constenla-Haile     */
48*ae77b8caSAriel Constenla-Haile    [attribute] string Body;
49*ae77b8caSAriel Constenla-Haile
50*ae77b8caSAriel Constenla-Haile    /** A sequence with the email addresses of one or more bcc recipients.
51*ae77b8caSAriel Constenla-Haile    */
52*ae77b8caSAriel Constenla-Haile    [attribute] sequence< string > BccRecipient;
53*ae77b8caSAriel Constenla-Haile
54*ae77b8caSAriel Constenla-Haile    /** A sequence with the email addresses of one or more cc recipients.
55*ae77b8caSAriel Constenla-Haile    */
56*ae77b8caSAriel Constenla-Haile    [attribute] sequence< string > CcRecipient;
57*ae77b8caSAriel Constenla-Haile
58*ae77b8caSAriel Constenla-Haile    /** A sequence of file URLs specifying the files that should be attached to
59*ae77b8caSAriel Constenla-Haile        the mail.
60*ae77b8caSAriel Constenla-Haile        <p>The file URLs must be conform to
61*ae77b8caSAriel Constenla-Haile        <a href="http://www.w3.org/Addressing/rfc1738.txt" target="_blank">Rfc1738</a>.</p>
62*ae77b8caSAriel Constenla-Haile
63*ae77b8caSAriel Constenla-Haile        @throws ::com::sun::star::lang::IllegalArgumentException
64*ae77b8caSAriel Constenla-Haile        if at least one of the given file URLs is invalid (doesn't conform to
65*ae77b8caSAriel Constenla-Haile        <a href="http://www.w3.org/Addressing/rfc1738.txt" target="_blank">Rfc1738</a>).
66*ae77b8caSAriel Constenla-Haile    */
67*ae77b8caSAriel Constenla-Haile    [attribute] sequence< string > Attachement
68*ae77b8caSAriel Constenla-Haile    {
69*ae77b8caSAriel Constenla-Haile        set raises (::com::sun::star::lang::IllegalArgumentException);
70*ae77b8caSAriel Constenla-Haile    };
71*ae77b8caSAriel Constenla-Haile};
72*ae77b8caSAriel Constenla-Haile
73*ae77b8caSAriel Constenla-Haile}; }; }; };
74*ae77b8caSAriel Constenla-Haile
75*ae77b8caSAriel Constenla-Haile#endif
76