1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: smplmailmsg.cxx,v $
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 //------------------------------------------------------------------------
36 //------------------------------------------------------------------------
37 #include <osl/diagnose.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
;
56 //------------------------------------------------------------------------
58 //------------------------------------------------------------------------
60 CSmplMailMsg::CSmplMailMsg( )
64 //------------------------------------------------
66 //------------------------------------------------
68 void SAL_CALL
CSmplMailMsg::setRecipient( const ::rtl::OUString
& aRecipient
)
69 throw (RuntimeException
)
71 m_aRecipient
= aRecipient
;
74 //------------------------------------------------
76 //------------------------------------------------
78 ::rtl::OUString SAL_CALL
CSmplMailMsg::getRecipient( )
79 throw (RuntimeException
)
84 //------------------------------------------------
86 //------------------------------------------------
88 void SAL_CALL
CSmplMailMsg::setCcRecipient( const Sequence
< OUString
>& aCcRecipient
)
89 throw (RuntimeException
)
91 m_CcRecipients
= aCcRecipient
;
94 //------------------------------------------------
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
)
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
;