MessageCore::AttachmentPropertiesDialog Class
class MessageCore::AttachmentPropertiesDialogA dialog for editing attachment properties. More...
| Header: | #include <MessageCore/AttachmentPropertiesDialog> |
| CMake: | find_package(KPim6MessageCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageCore) |
Public Functions
| AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent = nullptr) | |
| AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly = false, QWidget *parent = nullptr) | |
| virtual | ~AttachmentPropertiesDialog() override |
| AttachmentPart::Ptr | attachmentPart() const |
| bool | isEncryptEnabled() const |
| bool | isSignEnabled() const |
| void | setEncryptEnabled(bool enabled) |
| void | setSignEnabled(bool enabled) |
Public Slots
| virtual void | accept() override |
| void | slotHelp() |
Detailed Description
Author: Constantin Berzan <exit3219@gmail.com>
Member Function Documentation
[explicit] AttachmentPropertiesDialog::AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent = nullptr)
Creates a new attachment properties dialog.
content The mime content that represents the attachment which properties to change. parent The parent object.
Note: This converts the KMime::Content to an AttachmentPart internally. Therefore, saving the changes to the KMime::Content is not supported, and the dialog is in readOnly mode.
[explicit] AttachmentPropertiesDialog::AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly = false, QWidget *parent = nullptr)
Creates a new attachment properties dialog.
part The attachment part which properties to change. readOnly Whether the dialog should be in read-only mode. parent The parent object.
[override virtual noexcept] AttachmentPropertiesDialog::~AttachmentPropertiesDialog()
Destroys the attachment properties dialog.
[override virtual slot] void AttachmentPropertiesDialog::accept()
AttachmentPart::Ptr AttachmentPropertiesDialog::attachmentPart() const
Returns the modified attachment.
bool AttachmentPropertiesDialog::isEncryptEnabled() const
Returns whether the encryption status of the attachment can be changed.
bool AttachmentPropertiesDialog::isSignEnabled() const
Returns whether the signature status of the attachment can be changed.
void AttachmentPropertiesDialog::setEncryptEnabled(bool enabled)
Sets whether the encryption status of the attachment can be changed.
See also isEncryptEnabled().
void AttachmentPropertiesDialog::setSignEnabled(bool enabled)
Sets whether the signature status of the attachment can be changed.
See also isSignEnabled().