Messagelib

attachmentpropertiesdialog.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  Based on KMail code by various authors (kmmsgpartdlg).
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef MESSAGECORE_ATTACHMENTPROPERTIESDIALOG_H
10 #define MESSAGECORE_ATTACHMENTPROPERTIESDIALOG_H
11 
12 #include "messagecore_export.h"
13 
14 #include "attachmentpart.h"
15 
16 #include <QDialog>
17 
18 namespace MessageCore {
24 class MESSAGECORE_EXPORT AttachmentPropertiesDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
36  explicit AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly = false, QWidget *parent = nullptr);
37 
48  explicit AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent = nullptr);
49 
53  ~AttachmentPropertiesDialog() override;
54 
58  Q_REQUIRED_RESULT AttachmentPart::Ptr attachmentPart() const;
59 
63  void setEncryptEnabled(bool enabled);
64 
68  Q_REQUIRED_RESULT bool isEncryptEnabled() const;
69 
73  void setSignEnabled(bool enabled);
74 
78  Q_REQUIRED_RESULT bool isSignEnabled() const;
79 
80 public Q_SLOTS:
81  void accept() override;
82  void slotHelp();
83 
84 private:
85  //@cond PRIVATE
86  class Private;
87  Private *const d;
88  //@endcond
89 };
90 }
91 
92 #endif
A dialog for editing attachment properties.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Sep 17 2020 23:12:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.