1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include "smplmailmsg.hxx"
24 using com::sun::star::uno::RuntimeException
;
25 using com::sun::star::uno::Sequence
;
26 using com::sun::star::lang::IllegalArgumentException
;
30 CSmplMailMsg::CSmplMailMsg( )
34 void SAL_CALL
CSmplMailMsg::setBody( const OUString
& aBody
)
39 OUString SAL_CALL
CSmplMailMsg::getBody( )
44 void SAL_CALL
CSmplMailMsg::setRecipient( const OUString
& aRecipient
)
46 m_aRecipient
= aRecipient
;
49 OUString SAL_CALL
CSmplMailMsg::getRecipient( )
54 void SAL_CALL
CSmplMailMsg::setCcRecipient( const Sequence
< OUString
>& aCcRecipient
)
56 m_CcRecipients
= aCcRecipient
;
59 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getCcRecipient( )
61 return m_CcRecipients
;
64 void SAL_CALL
CSmplMailMsg::setBccRecipient( const Sequence
< OUString
>& aBccRecipient
)
66 m_BccRecipients
= aBccRecipient
;
69 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getBccRecipient( )
71 return m_BccRecipients
;
74 void SAL_CALL
CSmplMailMsg::setOriginator( const OUString
& aOriginator
)
76 m_aOriginator
= aOriginator
;
79 OUString SAL_CALL
CSmplMailMsg::getOriginator( )
84 void SAL_CALL
CSmplMailMsg::setSubject( const OUString
& aSubject
)
86 m_aSubject
= aSubject
;
89 OUString SAL_CALL
CSmplMailMsg::getSubject( )
94 void SAL_CALL
CSmplMailMsg::setAttachement( const Sequence
< OUString
>& aAttachement
)
96 m_Attachements
= aAttachement
;
99 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getAttachement( )
101 return m_Attachements
;
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */