xref: /trunk/main/shell/source/cmdmail/cmdmailmsg.hxx (revision 33bc51b9)
1ed2f6d3bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
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
10ed2f6d3bSAndrew Rist  *
11ed2f6d3bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12ed2f6d3bSAndrew Rist  *
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.
19ed2f6d3bSAndrew Rist  *
20ed2f6d3bSAndrew Rist  *************************************************************/
21ed2f6d3bSAndrew Rist 
22ed2f6d3bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _CMDMAILMSG_HXX_
25cdf0e10cSrcweir #define _CMDMAILMSG_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
28cdf0e10cSrcweir #include <com/sun/star/lang/IllegalArgumentException.hpp>
29cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SYS_SHELL_XSYSTEMSHELLEXECUTE_HPP_
32*33bc51b9SAriel Constenla-Haile #include <com/sun/star/system/XSimpleMailMessage2.hpp>
33cdf0e10cSrcweir #endif
34cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
35cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx>
36cdf0e10cSrcweir 
37cdf0e10cSrcweir //----------------------------------------------------------
38cdf0e10cSrcweir // class declaration
39cdf0e10cSrcweir //----------------------------------------------------------
40cdf0e10cSrcweir 
41cdf0e10cSrcweir class CmdMailMsg :
42cdf0e10cSrcweir 	public  cppu::WeakImplHelper2<
43*33bc51b9SAriel Constenla-Haile         ::com::sun::star::system::XSimpleMailMessage2,
44cdf0e10cSrcweir         ::com::sun::star::container::XNameAccess >
45cdf0e10cSrcweir {
46*33bc51b9SAriel Constenla-Haile     ::rtl::OUString                                   m_aBody;
47cdf0e10cSrcweir     ::rtl::OUString                                   m_aRecipient;
48cdf0e10cSrcweir     ::rtl::OUString                                   m_aOriginator;
49cdf0e10cSrcweir     ::rtl::OUString                                   m_aSubject;
50cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< rtl::OUString >  m_CcRecipients;
51cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< rtl::OUString >  m_BccRecipients;
52cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< rtl::OUString >  m_Attachments;
53*33bc51b9SAriel Constenla-Haile 
54cdf0e10cSrcweir     ::osl::Mutex m_aMutex;
55*33bc51b9SAriel Constenla-Haile 
56cdf0e10cSrcweir public:
57cdf0e10cSrcweir 
58cdf0e10cSrcweir     CmdMailMsg() {};
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     //------------------------------------------------
61cdf0e10cSrcweir     // XSimpleMailMessage
62cdf0e10cSrcweir     //------------------------------------------------
63cdf0e10cSrcweir 
64*33bc51b9SAriel Constenla-Haile     virtual void SAL_CALL setBody( const ::rtl::OUString& aBody )
65*33bc51b9SAriel Constenla-Haile         throw (::com::sun::star::uno::RuntimeException);
66*33bc51b9SAriel Constenla-Haile 
67*33bc51b9SAriel Constenla-Haile     virtual ::rtl::OUString SAL_CALL getBody(  )
68*33bc51b9SAriel Constenla-Haile         throw (::com::sun::star::uno::RuntimeException);
69*33bc51b9SAriel Constenla-Haile 
70cdf0e10cSrcweir     virtual void SAL_CALL setRecipient( const ::rtl::OUString& aRecipient )
71cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getRecipient(  )
74cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
75cdf0e10cSrcweir 
76cdf0e10cSrcweir     virtual void SAL_CALL setCcRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCcRecipient )
77cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
78cdf0e10cSrcweir 
79cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCcRecipient(  )
80cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
81cdf0e10cSrcweir 
82cdf0e10cSrcweir     virtual void SAL_CALL setBccRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aBccRecipient )
83cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
84cdf0e10cSrcweir 
85cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getBccRecipient(  )
86cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     virtual void SAL_CALL setOriginator( const ::rtl::OUString& aOriginator )
89cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
90cdf0e10cSrcweir 
91cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getOriginator(  )
92cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
93cdf0e10cSrcweir 
94cdf0e10cSrcweir     virtual void SAL_CALL setSubject( const ::rtl::OUString& aSubject )
95cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getSubject(  )
98cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
99cdf0e10cSrcweir 
100cdf0e10cSrcweir     virtual void SAL_CALL setAttachement( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aAttachement )
101cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
102cdf0e10cSrcweir 
103cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAttachement(  )
104cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
105*33bc51b9SAriel Constenla-Haile 
106*33bc51b9SAriel Constenla-Haile     //------------------------------------------------
107*33bc51b9SAriel Constenla-Haile     // XNameAccess
108*33bc51b9SAriel Constenla-Haile     //------------------------------------------------
109cdf0e10cSrcweir 
110cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
111cdf0e10cSrcweir         throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
112cdf0e10cSrcweir 
113cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(  )
114cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException) ;
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
117cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
118*33bc51b9SAriel Constenla-Haile 
119*33bc51b9SAriel Constenla-Haile     //------------------------------------------------
120*33bc51b9SAriel Constenla-Haile     // XElementAccess
121*33bc51b9SAriel Constenla-Haile     //------------------------------------------------
122cdf0e10cSrcweir 
123cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  )
124cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
125cdf0e10cSrcweir 
126cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  )
127cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
128cdf0e10cSrcweir 
129cdf0e10cSrcweir };
130cdf0e10cSrcweir 
131cdf0e10cSrcweir #endif
132