update dev300-m58
[ooovba.git] / shell / source / win32 / simplemail / smplmailmsg.cxx
blob4f95443ab4c282eeb752610f8173aa4b5e227926
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: smplmailmsg.cxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_shell.hxx"
34 //------------------------------------------------------------------------
35 // includes
36 //------------------------------------------------------------------------
37 #include <osl/diagnose.h>
39 #include <osl/file.h>
40 #include "smplmailmsg.hxx"
42 //------------------------------------------------------------------------
43 // namespace directives
44 //------------------------------------------------------------------------
46 using com::sun::star::uno::Reference;
47 using com::sun::star::uno::RuntimeException;
48 using com::sun::star::uno::Sequence;
49 using com::sun::star::lang::XServiceInfo;
50 using com::sun::star::lang::IllegalArgumentException;
51 using rtl::OUString;
52 using osl::Mutex;
54 using namespace cppu;
56 //------------------------------------------------------------------------
57 // helper functions
58 //------------------------------------------------------------------------
60 CSmplMailMsg::CSmplMailMsg( )
64 //------------------------------------------------
65 //
66 //------------------------------------------------
68 void SAL_CALL CSmplMailMsg::setRecipient( const ::rtl::OUString& aRecipient )
69 throw (RuntimeException)
71 m_aRecipient = aRecipient;
74 //------------------------------------------------
75 //
76 //------------------------------------------------
78 ::rtl::OUString SAL_CALL CSmplMailMsg::getRecipient( )
79 throw (RuntimeException)
81 return m_aRecipient;
84 //------------------------------------------------
85 //
86 //------------------------------------------------
88 void SAL_CALL CSmplMailMsg::setCcRecipient( const Sequence< OUString >& aCcRecipient )
89 throw (RuntimeException)
91 m_CcRecipients = aCcRecipient;
94 //------------------------------------------------
95 //
96 //------------------------------------------------
98 Sequence< OUString > SAL_CALL CSmplMailMsg::getCcRecipient( )
99 throw (RuntimeException)
101 return m_CcRecipients;
104 //------------------------------------------------
106 //------------------------------------------------
108 void SAL_CALL CSmplMailMsg::setBccRecipient( const Sequence< OUString >& aBccRecipient )
109 throw (RuntimeException)
111 m_BccRecipients = aBccRecipient;
114 //------------------------------------------------
116 //------------------------------------------------
118 Sequence< OUString > SAL_CALL CSmplMailMsg::getBccRecipient( )
119 throw (RuntimeException)
121 return m_BccRecipients;
124 //------------------------------------------------
126 //------------------------------------------------
128 void SAL_CALL CSmplMailMsg::setOriginator( const OUString& aOriginator )
129 throw (RuntimeException)
131 m_aOriginator = aOriginator;
134 //------------------------------------------------
136 //------------------------------------------------
138 OUString SAL_CALL CSmplMailMsg::getOriginator( )
139 throw (RuntimeException)
141 return m_aOriginator;
144 //------------------------------------------------
146 //------------------------------------------------
148 void SAL_CALL CSmplMailMsg::setSubject( const OUString& aSubject )
149 throw (RuntimeException)
151 m_aSubject = aSubject;
154 //------------------------------------------------
156 //------------------------------------------------
158 OUString SAL_CALL CSmplMailMsg::getSubject( )
159 throw (RuntimeException)
161 return m_aSubject;
164 //------------------------------------------------
166 //------------------------------------------------
168 void SAL_CALL CSmplMailMsg::setAttachement( const Sequence< ::rtl::OUString >& aAttachement )
169 throw (IllegalArgumentException, RuntimeException)
171 m_Attachements = aAttachement;
174 //------------------------------------------------
176 //------------------------------------------------
178 Sequence< OUString > SAL_CALL CSmplMailMsg::getAttachement( )
179 throw (RuntimeException)
181 return m_Attachements;