MailCommon::RedirectDialog Class
class MailCommon::RedirectDialogA dialog to request information about message redirection from the user. More...
| Header: | #include <MailCommon/RedirectDialog> |
| CMake: | find_package(KPim6MailCommon REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MailCommon) |
| Inherits: | QDialog |
Public Types
| enum | SendMode { SendNow, SendLater } |
Public Functions
| RedirectDialog(MailCommon::RedirectDialog::SendMode mode = SendNow, QWidget *parent = nullptr) | |
| virtual | ~RedirectDialog() override |
| QString | bcc() const |
| QString | cc() const |
| int | identity() const |
| MailCommon::RedirectDialog::SendMode | sendMode() const |
| QString | to() const |
| int | transportId() const |
Reimplemented Protected Functions
| virtual void | accept() override |
Detailed Description
The dialog is used to collect redirect addresses when manually redirecting messages. Only Redirect-To is supported so far.
Author: Andreas Gungl <a.gungl@gmx.de>
Member Type Documentation
enum RedirectDialog::SendMode
Describes the send mode.
| Constant | Value | Description |
|---|---|---|
MailCommon::RedirectDialog::SendNow | 0 | Send the message immediately |
MailCommon::RedirectDialog::SendLater | 1 | Queue the message to send it later |
Member Function Documentation
[explicit] RedirectDialog::RedirectDialog(MailCommon::RedirectDialog::SendMode mode = SendNow, QWidget *parent = nullptr)
Creates a new redirect dialog.
mode The preferred send mode. parent The parent widget.
[override virtual noexcept] RedirectDialog::~RedirectDialog()
Destroys the redirect dialog.
[override virtual protected] void RedirectDialog::accept()
Reimplements: QDialog::accept().
Accepts the dialog and stores the user's settings.
QString RedirectDialog::bcc() const
Returns the BCC addresses for the redirection.
QString RedirectDialog::cc() const
Returns the CC addresses for the redirection.
int RedirectDialog::identity() const
Returns the identity ID selected in the dialog.
MailCommon::RedirectDialog::SendMode RedirectDialog::sendMode() const
Returns the send mode.
QString RedirectDialog::to() const
Returns the addresses for the redirection.
int RedirectDialog::transportId() const
Returns the transport ID selected in the dialog.