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 .
20 #include <osl/diagnose.h>
23 #include "smplmailmsg.hxx"
26 // namespace directives
29 using com::sun::star::uno::Reference
;
30 using com::sun::star::uno::RuntimeException
;
31 using com::sun::star::uno::Sequence
;
32 using com::sun::star::lang::XServiceInfo
;
33 using com::sun::star::lang::IllegalArgumentException
;
42 CSmplMailMsg::CSmplMailMsg( )
46 void SAL_CALL
CSmplMailMsg::setBody( const ::rtl::OUString
& aBody
)
47 throw (RuntimeException
)
52 ::rtl::OUString SAL_CALL
CSmplMailMsg::getBody( )
53 throw (RuntimeException
)
60 void SAL_CALL
CSmplMailMsg::setRecipient( const OUString
& aRecipient
)
61 throw (RuntimeException
)
63 m_aRecipient
= aRecipient
;
68 OUString SAL_CALL
CSmplMailMsg::getRecipient( )
69 throw (RuntimeException
)
76 void SAL_CALL
CSmplMailMsg::setCcRecipient( const Sequence
< OUString
>& aCcRecipient
)
77 throw (RuntimeException
)
79 m_CcRecipients
= aCcRecipient
;
84 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getCcRecipient( )
85 throw (RuntimeException
)
87 return m_CcRecipients
;
92 void SAL_CALL
CSmplMailMsg::setBccRecipient( const Sequence
< OUString
>& aBccRecipient
)
93 throw (RuntimeException
)
95 m_BccRecipients
= aBccRecipient
;
100 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getBccRecipient( )
101 throw (RuntimeException
)
103 return m_BccRecipients
;
108 void SAL_CALL
CSmplMailMsg::setOriginator( const OUString
& aOriginator
)
109 throw (RuntimeException
)
111 m_aOriginator
= aOriginator
;
116 OUString SAL_CALL
CSmplMailMsg::getOriginator( )
117 throw (RuntimeException
)
119 return m_aOriginator
;
124 void SAL_CALL
CSmplMailMsg::setSubject( const OUString
& aSubject
)
125 throw (RuntimeException
)
127 m_aSubject
= aSubject
;
132 OUString SAL_CALL
CSmplMailMsg::getSubject( )
133 throw (RuntimeException
)
140 void SAL_CALL
CSmplMailMsg::setAttachement( const Sequence
< OUString
>& aAttachement
)
141 throw (IllegalArgumentException
, RuntimeException
)
143 m_Attachements
= aAttachement
;
148 Sequence
< OUString
> SAL_CALL
CSmplMailMsg::getAttachement( )
149 throw (RuntimeException
)
151 return m_Attachements
;
154 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */