1ed2f6d3bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3ed2f6d3bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4ed2f6d3bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5ed2f6d3bSAndrew Rist * distributed with this work for additional information 6ed2f6d3bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7ed2f6d3bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8ed2f6d3bSAndrew Rist * "License"); you may not use this file except in compliance 9ed2f6d3bSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11ed2f6d3bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13ed2f6d3bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14ed2f6d3bSAndrew Rist * software distributed under the License is distributed on an 15ed2f6d3bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16ed2f6d3bSAndrew Rist * KIND, either express or implied. See the License for the 17ed2f6d3bSAndrew Rist * specific language governing permissions and limitations 18ed2f6d3bSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20ed2f6d3bSAndrew Rist *************************************************************/ 21ed2f6d3bSAndrew Rist 22cdf0e10cSrcweir #ifndef _CMDMAILMSG_HXX_ 23cdf0e10cSrcweir #define _CMDMAILMSG_HXX_ 24cdf0e10cSrcweir 25*ae77b8caSAriel Constenla-Haile #include <cppuhelper/implbase1.hxx> 26*ae77b8caSAriel Constenla-Haile #include <cppuhelper/basemutex.hxx> 27cdf0e10cSrcweir 28*ae77b8caSAriel Constenla-Haile #include <com/sun/star/system/XMailMessage.hpp> 29cdf0e10cSrcweir 30*ae77b8caSAriel Constenla-Haile namespace shell 31cdf0e10cSrcweir { 32*ae77b8caSAriel Constenla-Haile typedef cppu::WeakImplHelper1< 33*ae77b8caSAriel Constenla-Haile com::sun::star::system::XMailMessage > CmdMailMsg_Base; 34*ae77b8caSAriel Constenla-Haile 35*ae77b8caSAriel Constenla-Haile class CmdMailMsg : protected cppu::BaseMutex, 36*ae77b8caSAriel Constenla-Haile public CmdMailMsg_Base 37*ae77b8caSAriel Constenla-Haile { 38*ae77b8caSAriel Constenla-Haile private: 3933bc51b9SAriel Constenla-Haile ::rtl::OUString m_aBody; 40cdf0e10cSrcweir ::rtl::OUString m_aRecipient; 41cdf0e10cSrcweir ::rtl::OUString m_aOriginator; 42cdf0e10cSrcweir ::rtl::OUString m_aSubject; 43cdf0e10cSrcweir ::com::sun::star::uno::Sequence< rtl::OUString > m_CcRecipients; 44cdf0e10cSrcweir ::com::sun::star::uno::Sequence< rtl::OUString > m_BccRecipients; 45cdf0e10cSrcweir ::com::sun::star::uno::Sequence< rtl::OUString > m_Attachments; 46cdf0e10cSrcweir 47cdf0e10cSrcweir public: 48*ae77b8caSAriel Constenla-Haile CmdMailMsg(); 49cdf0e10cSrcweir 5033bc51b9SAriel Constenla-Haile virtual void SAL_CALL setBody( const ::rtl::OUString& aBody ) 5133bc51b9SAriel Constenla-Haile throw (::com::sun::star::uno::RuntimeException); 5233bc51b9SAriel Constenla-Haile 5333bc51b9SAriel Constenla-Haile virtual ::rtl::OUString SAL_CALL getBody( ) 5433bc51b9SAriel Constenla-Haile throw (::com::sun::star::uno::RuntimeException); 5533bc51b9SAriel Constenla-Haile 56cdf0e10cSrcweir virtual void SAL_CALL setRecipient( const ::rtl::OUString& aRecipient ) 57cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getRecipient( ) 60cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 61cdf0e10cSrcweir 62cdf0e10cSrcweir virtual void SAL_CALL setCcRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCcRecipient ) 63cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 64cdf0e10cSrcweir 65cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCcRecipient( ) 66cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 67cdf0e10cSrcweir 68cdf0e10cSrcweir virtual void SAL_CALL setBccRecipient( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aBccRecipient ) 69cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 70cdf0e10cSrcweir 71cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getBccRecipient( ) 72cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 73cdf0e10cSrcweir 74cdf0e10cSrcweir virtual void SAL_CALL setOriginator( const ::rtl::OUString& aOriginator ) 75cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 76cdf0e10cSrcweir 77cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getOriginator( ) 78cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 79cdf0e10cSrcweir 80cdf0e10cSrcweir virtual void SAL_CALL setSubject( const ::rtl::OUString& aSubject ) 81cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 82cdf0e10cSrcweir 83cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getSubject( ) 84cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 85cdf0e10cSrcweir 86cdf0e10cSrcweir virtual void SAL_CALL setAttachement( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aAttachement ) 87cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); 88cdf0e10cSrcweir 89cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAttachement( ) 90cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 91cdf0e10cSrcweir 92cdf0e10cSrcweir }; 93*ae77b8caSAriel Constenla-Haile } 94cdf0e10cSrcweir 95cdf0e10cSrcweir #endif 96