1ed2f6d3bSAndrew Rist /**************************************************************
2*ae77b8caSAriel Constenla-Haile  *
3ed2f6d3bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4ed2f6d3bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5ed2f6d3bSAndrew Rist  * distributed with this work for additional information
6ed2f6d3bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7ed2f6d3bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8ed2f6d3bSAndrew Rist  * "License"); you may not use this file except in compliance
9ed2f6d3bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ae77b8caSAriel Constenla-Haile  *
11ed2f6d3bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ae77b8caSAriel Constenla-Haile  *
13ed2f6d3bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14ed2f6d3bSAndrew Rist  * software distributed under the License is distributed on an
15ed2f6d3bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16ed2f6d3bSAndrew Rist  * KIND, either express or implied.  See the License for the
17ed2f6d3bSAndrew Rist  * specific language governing permissions and limitations
18ed2f6d3bSAndrew Rist  * under the License.
19*ae77b8caSAriel Constenla-Haile  *
20ed2f6d3bSAndrew Rist  *************************************************************/
21ed2f6d3bSAndrew Rist 
22*ae77b8caSAriel Constenla-Haile #ifndef _SYSMAILCLIENT_HXX_
23*ae77b8caSAriel Constenla-Haile #define _SYSMAILCLIENT_HXX_
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #include <cppuhelper/compbase1.hxx>
26cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
27*ae77b8caSAriel Constenla-Haile #include <com/sun/star/system/XMailClient.hpp>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir namespace css = ::com::sun::star;
30cdf0e10cSrcweir 
31*ae77b8caSAriel Constenla-Haile namespace shell
32cdf0e10cSrcweir {
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);
40cdf0e10cSrcweir 
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);
43cdf0e10cSrcweir 
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 }
49cdf0e10cSrcweir 
50*ae77b8caSAriel Constenla-Haile #endif
51