Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / system / XSimpleMailClient.idl
blob4fdf47401c6b87b76c51f64689ddacdc7d679537
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_system_XSimpleMailClient_idl__
21 #define __com_sun_star_system_XSimpleMailClient_idl__
23 #include <com/sun/star/uno/RuntimeException.idl>
24 #include <com/sun/star/uno/XInterface.idl>
25 #include <com/sun/star/lang/IllegalArgumentException.idl>
26 #include <com/sun/star/system/XSimpleMailMessage.idl>
27 #include <com/sun/star/system/SimpleMailClientFlags.idl>
30 module com { module sun { module star { module system {
32 /** Specifies an interface for creating and sending email messages.
35 published interface XSimpleMailClient: com::sun::star::uno::XInterface
37 /** Create a simple mail message object that implements the interface
38 XSimpleMailMessage.
39 @returns
40 An object that implements the XSimpleMailMessage interface.
42 XSimpleMailMessage createSimpleMailMessage( );
44 /** Sends a given simple mail message object that implements the interface
45 XSimpleMailMessage.
47 @param xSimpleMailMessage
48 Specifies a configured mail object to be sent.
50 @param aFlag
51 Specifies different flags that control the send process
52 if the flag NO_USER_INTERFACE is specified. A recipient
53 address must have been specified for the given xMailMessage object.
55 @throws com::sun::star::lang::IllegalArgumentException
56 <ul>
57 <li>If invalid or excluding flags have been specified.</li>
58 <li>The flag NO_USER_INTERFACE is specified and no recipient
59 address has been specified for the given xSimpleMailMessage object.</li>
60 <li>The parameter xSimpleMailMessage is NULL.</li>
61 </ul>
63 @throws com::sun::star::uno::Exception
64 if an error occurs while sending the mail.
65 <p>The Message member of the exception may contain an error description.</p>
67 @see com::sun::star::system::XSimpleMailMessage
68 @see com::sun::star::system::SimpleMailClientFlags
70 void sendSimpleMailMessage( [in] XSimpleMailMessage xSimpleMailMessage, [in] long aFlag )
71 raises( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::Exception );
75 }; }; }; };
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */