LibreOffice Module shell (master) 1
|
#include <smplmailclient.hxx>
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 |
Definition at line 31 of file smplmailclient.hxx.
|
private |
Assemble a command line for SendDoc.exe out of the members of the supplied SimpleMailMessage.
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. |
css::lang::IllegalArgumentException | if 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().
|
private |
Definition at line 182 of file smplmailclient.cxx.
References INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::LAST_SEGMENT, maAttachmentFiles, INetURLObject::NONE, INetURLObject::WasEncoded, and INetURLObject::WithCharset.
Referenced by assembleCommandLine().
|
overridevirtual |
Definition at line 148 of file smplmailclient.cxx.
|
private |
Definition at line 220 of file smplmailclient.cxx.
References maAttachmentFiles.
Referenced by sendSimpleMailMessage().
|
overridevirtual |
Definition at line 344 of file smplmailclient.cxx.
References assembleCommandLine(), Exception, ReleaseAttachments(), and validateParameter().
|
private |
Definition at line 362 of file smplmailclient.cxx.
Referenced by sendSimpleMailMessage().
|
private |
Definition at line 45 of file smplmailclient.hxx.
Referenced by CopyAttachment(), and ReleaseAttachments().