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 // MARKER(update_precomp.py): autogen include statement, do not remove 23*ae77b8caSAriel Constenla-Haile #include "precompiled_shell.hxx" 24*ae77b8caSAriel Constenla-Haile 25*ae77b8caSAriel Constenla-Haile #include "sysmailmsg.hxx" 26*ae77b8caSAriel Constenla-Haile 27*ae77b8caSAriel Constenla-Haile using com::sun::star::lang::IllegalArgumentException; 28*ae77b8caSAriel Constenla-Haile using com::sun::star::uno::RuntimeException; 29*ae77b8caSAriel Constenla-Haile using com::sun::star::uno::Sequence; 30*ae77b8caSAriel Constenla-Haile using rtl::OUString; 31*ae77b8caSAriel Constenla-Haile using osl::MutexGuard; 32*ae77b8caSAriel Constenla-Haile 33*ae77b8caSAriel Constenla-Haile namespace shell 34*ae77b8caSAriel Constenla-Haile { 35*ae77b8caSAriel Constenla-Haile WinSysMailMsg()36*ae77b8caSAriel Constenla-HaileWinSysMailMsg::WinSysMailMsg( ) 37*ae77b8caSAriel Constenla-Haile : WinSysMailMsg_Base() 38*ae77b8caSAriel Constenla-Haile { 39*ae77b8caSAriel Constenla-Haile } 40*ae77b8caSAriel Constenla-Haile setBody(const OUString & aBody)41*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setBody( const OUString& aBody ) 42*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 43*ae77b8caSAriel Constenla-Haile { 44*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 45*ae77b8caSAriel Constenla-Haile m_aBody = aBody; 46*ae77b8caSAriel Constenla-Haile } 47*ae77b8caSAriel Constenla-Haile getBody()48*ae77b8caSAriel Constenla-HaileOUString SAL_CALL WinSysMailMsg::getBody( ) 49*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 50*ae77b8caSAriel Constenla-Haile { 51*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 52*ae77b8caSAriel Constenla-Haile return m_aBody; 53*ae77b8caSAriel Constenla-Haile } 54*ae77b8caSAriel Constenla-Haile setRecipient(const OUString & aRecipient)55*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setRecipient( const OUString& aRecipient ) 56*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 57*ae77b8caSAriel Constenla-Haile { 58*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 59*ae77b8caSAriel Constenla-Haile m_aRecipient = aRecipient; 60*ae77b8caSAriel Constenla-Haile } 61*ae77b8caSAriel Constenla-Haile getRecipient()62*ae77b8caSAriel Constenla-HaileOUString SAL_CALL WinSysMailMsg::getRecipient( ) 63*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 64*ae77b8caSAriel Constenla-Haile { 65*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 66*ae77b8caSAriel Constenla-Haile return m_aRecipient; 67*ae77b8caSAriel Constenla-Haile } 68*ae77b8caSAriel Constenla-Haile setCcRecipient(const Sequence<OUString> & aCcRecipient)69*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setCcRecipient( const Sequence< OUString >& aCcRecipient ) 70*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 71*ae77b8caSAriel Constenla-Haile { 72*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 73*ae77b8caSAriel Constenla-Haile m_CcRecipients = aCcRecipient; 74*ae77b8caSAriel Constenla-Haile } 75*ae77b8caSAriel Constenla-Haile getCcRecipient()76*ae77b8caSAriel Constenla-HaileSequence< OUString > SAL_CALL WinSysMailMsg::getCcRecipient( ) 77*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 78*ae77b8caSAriel Constenla-Haile { 79*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 80*ae77b8caSAriel Constenla-Haile return m_CcRecipients; 81*ae77b8caSAriel Constenla-Haile } 82*ae77b8caSAriel Constenla-Haile setBccRecipient(const Sequence<OUString> & aBccRecipient)83*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setBccRecipient( const Sequence< OUString >& aBccRecipient ) 84*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 85*ae77b8caSAriel Constenla-Haile { 86*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 87*ae77b8caSAriel Constenla-Haile m_BccRecipients = aBccRecipient; 88*ae77b8caSAriel Constenla-Haile } 89*ae77b8caSAriel Constenla-Haile getBccRecipient()90*ae77b8caSAriel Constenla-HaileSequence< OUString > SAL_CALL WinSysMailMsg::getBccRecipient( ) 91*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 92*ae77b8caSAriel Constenla-Haile { 93*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 94*ae77b8caSAriel Constenla-Haile return m_BccRecipients; 95*ae77b8caSAriel Constenla-Haile } 96*ae77b8caSAriel Constenla-Haile setOriginator(const OUString & aOriginator)97*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setOriginator( const OUString& aOriginator ) 98*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 99*ae77b8caSAriel Constenla-Haile { 100*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 101*ae77b8caSAriel Constenla-Haile m_aOriginator = aOriginator; 102*ae77b8caSAriel Constenla-Haile } 103*ae77b8caSAriel Constenla-Haile getOriginator()104*ae77b8caSAriel Constenla-HaileOUString SAL_CALL WinSysMailMsg::getOriginator( ) 105*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 106*ae77b8caSAriel Constenla-Haile { 107*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 108*ae77b8caSAriel Constenla-Haile return m_aOriginator; 109*ae77b8caSAriel Constenla-Haile } 110*ae77b8caSAriel Constenla-Haile setSubject(const OUString & aSubject)111*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setSubject( const OUString& aSubject ) 112*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 113*ae77b8caSAriel Constenla-Haile { 114*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 115*ae77b8caSAriel Constenla-Haile m_aSubject = aSubject; 116*ae77b8caSAriel Constenla-Haile } 117*ae77b8caSAriel Constenla-Haile getSubject()118*ae77b8caSAriel Constenla-HaileOUString SAL_CALL WinSysMailMsg::getSubject( ) 119*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 120*ae77b8caSAriel Constenla-Haile { 121*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 122*ae77b8caSAriel Constenla-Haile return m_aSubject; 123*ae77b8caSAriel Constenla-Haile } 124*ae77b8caSAriel Constenla-Haile setAttachement(const Sequence<OUString> & aAttachement)125*ae77b8caSAriel Constenla-Hailevoid SAL_CALL WinSysMailMsg::setAttachement( const Sequence< OUString >& aAttachement ) 126*ae77b8caSAriel Constenla-Haile throw (IllegalArgumentException, RuntimeException) 127*ae77b8caSAriel Constenla-Haile { 128*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 129*ae77b8caSAriel Constenla-Haile m_Attachements = aAttachement; 130*ae77b8caSAriel Constenla-Haile } 131*ae77b8caSAriel Constenla-Haile getAttachement()132*ae77b8caSAriel Constenla-HaileSequence< OUString > SAL_CALL WinSysMailMsg::getAttachement( ) 133*ae77b8caSAriel Constenla-Haile throw (RuntimeException) 134*ae77b8caSAriel Constenla-Haile { 135*ae77b8caSAriel Constenla-Haile MutexGuard aGuard( m_aMutex ); 136*ae77b8caSAriel Constenla-Haile return m_Attachements; 137*ae77b8caSAriel Constenla-Haile } 138*ae77b8caSAriel Constenla-Haile 139*ae77b8caSAriel Constenla-Haile } 140