xref: /trunk/main/offapi/com/sun/star/system/XMailClient.idl (revision 7670ab779549d7913098aa9e18e66c33b446cb8b)
1ae77b8caSAriel Constenla-Haile/**************************************************************
2ae77b8caSAriel Constenla-Haile *
3ae77b8caSAriel Constenla-Haile * Licensed to the Apache Software Foundation (ASF) under one
4ae77b8caSAriel Constenla-Haile * or more contributor license agreements.  See the NOTICE file
5ae77b8caSAriel Constenla-Haile * distributed with this work for additional information
6ae77b8caSAriel Constenla-Haile * regarding copyright ownership.  The ASF licenses this file
7ae77b8caSAriel Constenla-Haile * to you under the Apache License, Version 2.0 (the
8ae77b8caSAriel Constenla-Haile * "License"); you may not use this file except in compliance
9ae77b8caSAriel Constenla-Haile * with the License.  You may obtain a copy of the License at
10ae77b8caSAriel Constenla-Haile *
11ae77b8caSAriel Constenla-Haile *   http://www.apache.org/licenses/LICENSE-2.0
12ae77b8caSAriel Constenla-Haile *
13ae77b8caSAriel Constenla-Haile * Unless required by applicable law or agreed to in writing,
14ae77b8caSAriel Constenla-Haile * software distributed under the License is distributed on an
15ae77b8caSAriel Constenla-Haile * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16ae77b8caSAriel Constenla-Haile * KIND, either express or implied.  See the License for the
17ae77b8caSAriel Constenla-Haile * specific language governing permissions and limitations
18ae77b8caSAriel Constenla-Haile * under the License.
19ae77b8caSAriel Constenla-Haile *
20ae77b8caSAriel Constenla-Haile *************************************************************/
21ae77b8caSAriel Constenla-Haile
22ae77b8caSAriel Constenla-Haile#ifndef __com_sun_star_system_XMailClient_idl__
23ae77b8caSAriel Constenla-Haile#define __com_sun_star_system_XMailClient_idl__
24ae77b8caSAriel Constenla-Haile
25ae77b8caSAriel Constenla-Haile#include <com/sun/star/uno/XInterface.idl>
26ae77b8caSAriel Constenla-Haile#include <com/sun/star/lang/IllegalArgumentException.idl>
27ae77b8caSAriel Constenla-Haile#include <com/sun/star/system/XMailMessage.idl>
28ae77b8caSAriel Constenla-Haile#include <com/sun/star/system/MailClientFlags.idl>
29ae77b8caSAriel Constenla-Haile
30ae77b8caSAriel Constenla-Hailemodule com { module sun { module star { module system {
31ae77b8caSAriel Constenla-Haile
32ae77b8caSAriel Constenla-Haile/** Specifies an interface for creating and sending email messages
33ae77b8caSAriel Constenla-Haile    through a mail client.
34ae77b8caSAriel Constenla-Haile */
35ae77b8caSAriel Constenla-Haileinterface XMailClient
36ae77b8caSAriel Constenla-Haile{
37ae77b8caSAriel Constenla-Haile    /** Create a mail message object that implements the interface
38ae77b8caSAriel Constenla-Haile        <type>XMailMessage</type>.
39ae77b8caSAriel Constenla-Haile
40ae77b8caSAriel Constenla-Haile        @returns
41ae77b8caSAriel Constenla-Haile            An object that implements the <type>XMailMessage</type> interface.
42ae77b8caSAriel Constenla-Haile    */
43ae77b8caSAriel Constenla-Haile    XMailMessage createMailMessage();
44ae77b8caSAriel Constenla-Haile
45ae77b8caSAriel Constenla-Haile    /** Sends a given mail message object that implements the interface
46ae77b8caSAriel Constenla-Haile        <type>XMailMessage</type>.
47ae77b8caSAriel Constenla-Haile
48ae77b8caSAriel Constenla-Haile        @param xMailMessage
49ae77b8caSAriel Constenla-Haile            Specifies a configured mail object to be sent.
50ae77b8caSAriel Constenla-Haile
51ae77b8caSAriel Constenla-Haile        @param aFlag
52ae77b8caSAriel Constenla-Haile            Specifies different flags that control the send process.
53ae77b8caSAriel Constenla-Haile            <p>Possible flags are specified in <type>MailClientFlags</type>.</p>
54ae77b8caSAriel Constenla-Haile            <p>If the flag <const scope="com::sun::star::system">MailClientFlags::NO_USER_INTERFACE</const>
55ae77b8caSAriel Constenla-Haile            is specified, a recipient address must have been specified for the
56ae77b8caSAriel Constenla-Haile            given <type>XMailMessage</type>.</p>
57ae77b8caSAriel Constenla-Haile
58ae77b8caSAriel Constenla-Haile        @throws com::sun::star::lang::IllegalArgumentException
59ae77b8caSAriel Constenla-Haile            <ul>
60ae77b8caSAriel Constenla-Haile                <li>If invalid or excluding flags have been specified.</li>
61ae77b8caSAriel Constenla-Haile                <li>The flag <const scope="com::sun::star::system">MailClientFlags::NO_USER_INTERFACE</const>
62ae77b8caSAriel Constenla-Haile                is specified and no recipient address has been specified for the
63ae77b8caSAriel Constenla-Haile                given <type>XMailMessage</type> object.</li>
64ae77b8caSAriel Constenla-Haile                <li>The parameter <type>XMailMessage</type> is <NULL/>.</li>
65ae77b8caSAriel Constenla-Haile            </ul>
66ae77b8caSAriel Constenla-Haile
67ae77b8caSAriel Constenla-Haile        @throws com::sun::star::uno::Exception
68ae77b8caSAriel Constenla-Haile            if an error occurs while sending the mail.
69*7670ab77SJohn Bampton            <p>The <member scope="com::sun::star::uno">Exception::Message</member>
70ae77b8caSAriel Constenla-Haile            may contain an error description.</p>
71ae77b8caSAriel Constenla-Haile    */
72ae77b8caSAriel Constenla-Haile    void sendMailMessage( [in] XMailMessage xMailMessage,
73ae77b8caSAriel Constenla-Haile                          [in] long aFlag )
74ae77b8caSAriel Constenla-Haile        raises( ::com::sun::star::lang::IllegalArgumentException,
75ae77b8caSAriel Constenla-Haile                ::com::sun::star::uno::Exception );
76ae77b8caSAriel Constenla-Haile};
77ae77b8caSAriel Constenla-Haile
78ae77b8caSAriel Constenla-Haile}; }; }; };
79ae77b8caSAriel Constenla-Haile
80ae77b8caSAriel Constenla-Haile#endif
81