LibreOffice Module shell (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSmplMailClient Class Reference

#include <smplmailclient.hxx>

Inheritance diagram for CSmplMailClient:
[legend]
Collaboration diagram for CSmplMailClient:
[legend]

Public Member Functions

virtual css::uno::Reference< css::system::XSimpleMailMessage > SAL_CALL createSimpleMailMessage () override
 
virtual void SAL_CALL sendSimpleMailMessage (const css::uno::Reference< css::system::XSimpleMailMessage > &xSimpleMailMessage, sal_Int32 aFlag) override
 

Private Member Functions

void validateParameter (const css::uno::Reference< css::system::XSimpleMailMessage > &xSimpleMailMessage, sal_Int32 aFlag)
 
void assembleCommandLine (const css::uno::Reference< css::system::XSimpleMailMessage > &xSimpleMailMessage, sal_Int32 aFlag, std::vector< OUString > &rCommandArgs)
 Assemble a command line for SendDoc.exe out of the members of the supplied SimpleMailMessage. More...
 
OUString CopyAttachment (const OUString &sOrigAttachURL, OUString &sUserVisibleName, bool &nodelete)
 
void ReleaseAttachments ()
 

Private Attributes

std::vector< std::unique_ptr< utl::TempFileNamed > > maAttachmentFiles
 

Detailed Description

Definition at line 31 of file smplmailclient.hxx.

Member Function Documentation

◆ assembleCommandLine()

void CSmplMailClient::assembleCommandLine ( const css::uno::Reference< css::system::XSimpleMailMessage > &  xSimpleMailMessage,
sal_Int32  aFlag,
std::vector< OUString > &  rCommandArgs 
)
private

Assemble a command line for SendDoc.exe out of the members of the supplied SimpleMailMessage.

Parameters
xSimpleMailMessage[in] the mail message.
aFlags[in] different flags to be used with the simple mail service.
rCommandArgs[in|out] a buffer for the command line arguments. The buffer is assumed to be empty.
Exceptions
css::lang::IllegalArgumentExceptionif an invalid file URL has been detected in the attachment list.

Definition at line 247 of file smplmailclient.cxx.

References CopyAttachment(), err, from, sDisplayName, and to.

Referenced by sendSimpleMailMessage().

◆ CopyAttachment()

OUString CSmplMailClient::CopyAttachment ( const OUString &  sOrigAttachURL,
OUString &  sUserVisibleName,
bool &  nodelete 
)
private

◆ createSimpleMailMessage()

Reference< XSimpleMailMessage > SAL_CALL CSmplMailClient::createSimpleMailMessage ( )
overridevirtual

Definition at line 148 of file smplmailclient.cxx.

◆ ReleaseAttachments()

void CSmplMailClient::ReleaseAttachments ( )
private

Definition at line 220 of file smplmailclient.cxx.

References maAttachmentFiles.

Referenced by sendSimpleMailMessage().

◆ sendSimpleMailMessage()

void SAL_CALL CSmplMailClient::sendSimpleMailMessage ( const css::uno::Reference< css::system::XSimpleMailMessage > &  xSimpleMailMessage,
sal_Int32  aFlag 
)
overridevirtual

◆ validateParameter()

void CSmplMailClient::validateParameter ( const css::uno::Reference< css::system::XSimpleMailMessage > &  xSimpleMailMessage,
sal_Int32  aFlag 
)
private

Definition at line 362 of file smplmailclient.cxx.

Referenced by sendSimpleMailMessage().

Member Data Documentation

◆ maAttachmentFiles

std::vector< std::unique_ptr<utl::TempFileNamed> > CSmplMailClient::maAttachmentFiles
private

Definition at line 45 of file smplmailclient.hxx.

Referenced by CopyAttachment(), and ReleaseAttachments().


The documentation for this class was generated from the following files: