xref: /AOO41X/main/shell/source/win32/sysmail/sysmailclient.hxx (revision 47148b3bc50811ceb41802e4cc50a5db21535900)
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 _SYSMAILCLIENT_HXX_
23*ae77b8caSAriel Constenla-Haile #define _SYSMAILCLIENT_HXX_
24*ae77b8caSAriel Constenla-Haile 
25*ae77b8caSAriel Constenla-Haile #include <cppuhelper/compbase1.hxx>
26*ae77b8caSAriel Constenla-Haile #include <com/sun/star/lang/XServiceInfo.hpp>
27*ae77b8caSAriel Constenla-Haile #include <com/sun/star/system/XMailClient.hpp>
28*ae77b8caSAriel Constenla-Haile 
29*ae77b8caSAriel Constenla-Haile namespace css = ::com::sun::star;
30*ae77b8caSAriel Constenla-Haile 
31*ae77b8caSAriel Constenla-Haile namespace shell
32*ae77b8caSAriel Constenla-Haile {
33*ae77b8caSAriel Constenla-Haile     typedef cppu::WeakImplHelper1<css::system::XMailClient> WinSysMailClient_Base;
34*ae77b8caSAriel Constenla-Haile 
35*ae77b8caSAriel Constenla-Haile     class WinSysMailClient : public WinSysMailClient_Base
36*ae77b8caSAriel Constenla-Haile     {
37*ae77b8caSAriel Constenla-Haile     public:
38*ae77b8caSAriel Constenla-Haile         virtual css::uno::Reference<css::system::XMailMessage> SAL_CALL createMailMessage()
39*ae77b8caSAriel Constenla-Haile             throw (css::uno::RuntimeException);
40*ae77b8caSAriel Constenla-Haile 
41*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL sendMailMessage(const css::uno::Reference<css::system::XMailMessage>& xMailMessage, sal_Int32 aFlag)
42*ae77b8caSAriel Constenla-Haile             throw (css::lang::IllegalArgumentException, css::uno::Exception, css::uno::RuntimeException);
43*ae77b8caSAriel Constenla-Haile 
44*ae77b8caSAriel Constenla-Haile     private:
45*ae77b8caSAriel Constenla-Haile         void validateParameter(const css::uno::Reference<css::system::XMailMessage>& xMailMessage, sal_Int32 aFlag);
46*ae77b8caSAriel Constenla-Haile         void assembleCommandLine(const css::uno::Reference<css::system::XMailMessage>& xMailMessage, sal_Int32 aFlag, std::vector<rtl::OUString>& rCommandArgs);
47*ae77b8caSAriel Constenla-Haile     };
48*ae77b8caSAriel Constenla-Haile }
49*ae77b8caSAriel Constenla-Haile 
50*ae77b8caSAriel Constenla-Haile #endif
51