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