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 
22cdf0e10cSrcweir #ifndef _CMDMAILMSG_HXX_
23cdf0e10cSrcweir #define _CMDMAILMSG_HXX_
24cdf0e10cSrcweir 
25*ae77b8caSAriel Constenla-Haile #include <cppuhelper/implbase1.hxx>
26*ae77b8caSAriel Constenla-Haile #include <cppuhelper/basemutex.hxx>
27cdf0e10cSrcweir 
28*ae77b8caSAriel Constenla-Haile #include <com/sun/star/system/XMailMessage.hpp>
29cdf0e10cSrcweir 
30*ae77b8caSAriel Constenla-Haile namespace shell
31cdf0e10cSrcweir {
32*ae77b8caSAriel Constenla-Haile     typedef cppu::WeakImplHelper1<
33*ae77b8caSAriel Constenla-Haile             com::sun::star::system::XMailMessage > CmdMailMsg_Base;
34cdf0e10cSrcweir 
35*ae77b8caSAriel Constenla-Haile     class CmdMailMsg : protected cppu::BaseMutex,
36*ae77b8caSAriel Constenla-Haile                        public  CmdMailMsg_Base
37*ae77b8caSAriel Constenla-Haile     {
38*ae77b8caSAriel Constenla-Haile     private:
39*ae77b8caSAriel Constenla-Haile         ::rtl::OUString                                   m_aBody;
40*ae77b8caSAriel Constenla-Haile         ::rtl::OUString                                   m_aRecipient;
41*ae77b8caSAriel Constenla-Haile         ::rtl::OUString                                   m_aOriginator;
42*ae77b8caSAriel Constenla-Haile         ::rtl::OUString                                   m_aSubject;
43*ae77b8caSAriel Constenla-Haile         ::com::sun::star::uno::Sequence< rtl::OUString >  m_CcRecipients;
44*ae77b8caSAriel Constenla-Haile         ::com::sun::star::uno::Sequence< rtl::OUString >  m_BccRecipients;
45*ae77b8caSAriel Constenla-Haile         ::com::sun::star::uno::Sequence< rtl::OUString >  m_Attachments;
46cdf0e10cSrcweir 
47*ae77b8caSAriel Constenla-Haile     public:
48*ae77b8caSAriel Constenla-Haile         CmdMailMsg();
4933bc51b9SAriel Constenla-Haile 
50*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setBody( const ::rtl::OUString& aBody )
51*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
5233bc51b9SAriel Constenla-Haile 
53*ae77b8caSAriel Constenla-Haile         virtual ::rtl::OUString SAL_CALL getBody(  )
54*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
55cdf0e10cSrcweir 
56*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setRecipient( const ::rtl::OUString& aRecipient )
57*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
58cdf0e10cSrcweir 
59*ae77b8caSAriel Constenla-Haile         virtual ::rtl::OUString SAL_CALL getRecipient(  )
60*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
61cdf0e10cSrcweir 
62*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setCcRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCcRecipient )
63*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
64cdf0e10cSrcweir 
65*ae77b8caSAriel Constenla-Haile         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCcRecipient(  )
66*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
67cdf0e10cSrcweir 
68*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setBccRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aBccRecipient )
69*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
70cdf0e10cSrcweir 
71*ae77b8caSAriel Constenla-Haile         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getBccRecipient(  )
72*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
73cdf0e10cSrcweir 
74*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setOriginator( const ::rtl::OUString& aOriginator )
75*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
76cdf0e10cSrcweir 
77*ae77b8caSAriel Constenla-Haile         virtual ::rtl::OUString SAL_CALL getOriginator(  )
78*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
79cdf0e10cSrcweir 
80*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setSubject( const ::rtl::OUString& aSubject )
81*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
82cdf0e10cSrcweir 
83*ae77b8caSAriel Constenla-Haile         virtual ::rtl::OUString SAL_CALL getSubject(  )
84*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
85cdf0e10cSrcweir 
86*ae77b8caSAriel Constenla-Haile         virtual void SAL_CALL setAttachement( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aAttachement )
87*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
8833bc51b9SAriel Constenla-Haile 
89*ae77b8caSAriel Constenla-Haile         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAttachement(  )
90*ae77b8caSAriel Constenla-Haile             throw (::com::sun::star::uno::RuntimeException);
91cdf0e10cSrcweir 
92*ae77b8caSAriel Constenla-Haile     };
93*ae77b8caSAriel Constenla-Haile }
94cdf0e10cSrcweir 
95*ae77b8caSAriel Constenla-Haile #endif
96