|
MT Showcase SDK
|
Email message. More...
#include <EmailServiceAPI.hpp>
Public Types | |
| enum | RecipientType { To, Cc, Bcc } |
| Recipient type for emails. More... | |
Public Member Functions | |
| void | setSender (const EmailAddress &address) |
| Set sender email address. More... | |
| const EmailAddress & | sender () const |
| Address of the email sender. | |
| void | setSubject (const QString &subject) |
| Set email subject. More... | |
| const QString & | subject () const |
| Subject of the email. | |
| void | setContent (const QString &content) |
| Set email content text. | |
| void | addContent (const QString &content) |
| Add text to email content. | |
| const QString & | content () const |
| Text content of the email. | |
| void | addRecipient (const EmailAddress &recipient, RecipientType type=RecipientType::To) |
| Add a recipient to email. More... | |
| const QList< EmailAddress > | recipients (RecipientType type=RecipientType::To) const |
| List of email recipients of given type. More... | |
| void | addAttachment (const QString &filename, std::unique_ptr< QIODevice > data, const QString &contentType="application/octet-stream") |
| Add file attachment to email. More... | |
Email message.
| void Showcase::EmailMessage::addAttachment | ( | const QString & | filename, |
| std::unique_ptr< QIODevice > | data, | ||
| const QString & | contentType = "application/octet-stream" |
||
| ) |
Add file attachment to email.
| filename | filename of the attachment that appears in the email |
| data | data to attach |
| contentType | content type for the attachment |
| void Showcase::EmailMessage::addRecipient | ( | const EmailAddress & | recipient, |
| EmailMessage::RecipientType | type = RecipientType::To |
||
| ) |
Add a recipient to email.
| recipient | email address of the recipient |
| type | recipient type |
| const QList< EmailAddress > Showcase::EmailMessage::recipients | ( | EmailMessage::RecipientType | type = RecipientType::To | ) | const |
List of email recipients of given type.
| type | type of recipients to get |
| void Showcase::EmailMessage::setSender | ( | const EmailAddress & | address | ) |
Set sender email address.
| address | address of the email |
| void Showcase::EmailMessage::setSubject | ( | const QString & | subject | ) |
Set email subject.
| subject | subject of the email |