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 #ifndef INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILMSG_HXX
21 #define INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILMSG_HXX
23 #include <cppuhelper/implbase2.hxx>
24 #include <com/sun/star/lang/IllegalArgumentException.hpp>
25 #include <com/sun/star/container/XNameAccess.hpp>
27 #include <com/sun/star/system/XSimpleMailMessage2.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
29 #include <com/sun/star/uno/Reference.hxx>
36 public cppu::WeakImplHelper2
<
37 ::com::sun::star::system::XSimpleMailMessage2
,
38 ::com::sun::star::container::XNameAccess
>
41 OUString m_aRecipient
;
42 OUString m_aOriginator
;
44 ::com::sun::star::uno::Sequence
< OUString
> m_CcRecipients
;
45 ::com::sun::star::uno::Sequence
< OUString
> m_BccRecipients
;
46 ::com::sun::star::uno::Sequence
< OUString
> m_Attachments
;
48 ::osl::Mutex m_aMutex
;
58 virtual void SAL_CALL
setBody( const OUString
& aBody
)
59 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
61 virtual OUString SAL_CALL
getBody( )
62 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
64 virtual void SAL_CALL
setRecipient( const OUString
& aRecipient
)
65 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
67 virtual OUString SAL_CALL
getRecipient( )
68 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
70 virtual void SAL_CALL
setCcRecipient( const ::com::sun::star::uno::Sequence
< OUString
>& aCcRecipient
)
71 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
73 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getCcRecipient( )
74 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
76 virtual void SAL_CALL
setBccRecipient( const ::com::sun::star::uno::Sequence
< OUString
>& aBccRecipient
)
77 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
79 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getBccRecipient( )
80 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
82 virtual void SAL_CALL
setOriginator( const OUString
& aOriginator
)
83 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
85 virtual OUString SAL_CALL
getOriginator( )
86 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
88 virtual void SAL_CALL
setSubject( const OUString
& aSubject
)
89 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
91 virtual OUString SAL_CALL
getSubject( )
92 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
94 virtual void SAL_CALL
setAttachement( const ::com::sun::star::uno::Sequence
< OUString
>& aAttachement
)
95 throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
97 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getAttachement( )
98 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
104 virtual ::com::sun::star::uno::Any SAL_CALL
getByName( const OUString
& aName
)
105 throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
107 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getElementNames( )
108 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
110 virtual sal_Bool SAL_CALL
hasByName( const OUString
& aName
)
111 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
117 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType( )
118 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
120 virtual sal_Bool SAL_CALL
hasElements( )
121 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */