• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • pim API Reference
  • KDE Home
  • Contact Us
 

kmail/src

  • kde-4.x
  • pim
  • kmail
  • src
  • configuredialog
configuresecuritypage.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2019 Montel Laurent <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef CONFIGURESECURITYPAGE_H
19 #define CONFIGURESECURITYPAGE_H
20 
21 #include "kmail_export.h"
22 #include "configuredialog_p.h"
23 #include "ui_securitypagegeneraltab.h"
24 #include "ui_securitypagemdntab.h"
25 #include "ui_composercryptoconfiguration.h"
26 #include "ui_warningconfiguration.h"
27 #include "ui_smimeconfiguration.h"
28 
29 #include <KCMultiDialog>
30 
31 namespace QGpgME {
32 class CryptoConfig;
33 }
34 
35 class SecurityPageGeneralTab : public ConfigModuleTab
36 {
37  Q_OBJECT
38 public:
39  explicit SecurityPageGeneralTab(QWidget *parent = nullptr);
40  Q_REQUIRED_RESULT QString helpAnchor() const;
41 
42  void save() override;
43 
44 private:
45  void doLoadOther() override;
46 
47 private:
48  void slotLinkClicked(const QString &link);
49  Ui_SecurityPageGeneralTab mSGTab;
50 };
51 
52 class SecurityPageMDNTab : public ConfigModuleTab
53 {
54  Q_OBJECT
55 public:
56  explicit SecurityPageMDNTab(QWidget *parent = nullptr);
57  QString helpAnchor() const;
58 
59  void save() override;
60 
61 private:
62  void doLoadOther() override;
63 
64 private:
65  void slotLinkClicked(const QString &link);
66  QButtonGroup *mMDNGroup = nullptr;
67  QButtonGroup *mOrigQuoteGroup = nullptr;
68  Ui_SecurityPageMDNTab mUi;
69 };
70 
71 class SecurityPageComposerCryptoTab : public ConfigModuleTab
72 {
73  Q_OBJECT
74 public:
75  explicit SecurityPageComposerCryptoTab(QWidget *parent = nullptr);
76  ~SecurityPageComposerCryptoTab() override;
77 
78  QString helpAnchor() const;
79 
80  void save() override;
81 
82 private:
83  void doLoadFromGlobalSettings() override;
84  void doLoadOther() override;
85 
86 private:
87  Ui::ComposerCryptoConfiguration *mWidget = nullptr;
88 };
89 
90 class SecurityPageWarningTab : public ConfigModuleTab
91 {
92  Q_OBJECT
93 public:
94  explicit SecurityPageWarningTab(QWidget *parent = nullptr);
95  ~SecurityPageWarningTab() override;
96 
97  QString helpAnchor() const;
98 
99  void save() override;
100 
101 private:
102  void slotReenableAllWarningsClicked();
103  void slotConfigureGnupg();
104  void doLoadFromGlobalSettings() override;
105  void doLoadOther() override;
106 
107 private:
108  Ui::WarningConfiguration *mWidget = nullptr;
109 };
110 
111 class SecurityPageSMimeTab : public ConfigModuleTab
112 {
113  Q_OBJECT
114 public:
115  explicit SecurityPageSMimeTab(QWidget *parent = nullptr);
116  ~SecurityPageSMimeTab() override;
117 
118  QString helpAnchor() const;
119 
120  void save() override;
121 
122 private Q_SLOTS:
123  void slotUpdateHTTPActions();
124 
125 private:
126  void doLoadOther() override;
127 
128 private:
129  Ui::SMimeConfiguration *mWidget = nullptr;
130  QGpgME::CryptoConfig *mConfig = nullptr;
131 };
132 
133 class GpgSettingsDialog : public KCMultiDialog
134 {
135  Q_OBJECT
136 public:
137  explicit GpgSettingsDialog(QWidget *parent = nullptr);
138  ~GpgSettingsDialog();
139 private:
140  void readConfig();
141  void saveConfig();
142 };
143 
144 class KMAIL_EXPORT SecurityPage : public ConfigModuleWithTabs
145 {
146  Q_OBJECT
147 public:
148  explicit SecurityPage(QWidget *parent = nullptr);
149 
150  QString helpAnchor() const override;
151 
152  typedef SecurityPageGeneralTab ReadingTab;
153  typedef SecurityPageMDNTab MDNTab;
154  typedef SecurityPageComposerCryptoTab ComposerCryptoTab;
155  typedef SecurityPageWarningTab WarningTab;
156  typedef SecurityPageSMimeTab SMimeTab;
157 };
158 
159 #endif // CONFIGURESECURITYPAGE_H
QWidget
ConfigModule::helpAnchor
virtual QString helpAnchor() const =0
Should return the help anchor for this page or tab.
ConfigModuleTab
Definition: configuredialog_p.h:17
SecurityPageSMimeTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:384
SecurityPageComposerCryptoTab::SecurityPageComposerCryptoTab
SecurityPageComposerCryptoTab(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:220
SecurityPageMDNTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:157
SecurityPage::ReadingTab
SecurityPageGeneralTab ReadingTab
Definition: configuresecuritypage.h:152
GpgSettingsDialog::~GpgSettingsDialog
~GpgSettingsDialog()
Definition: configuresecuritypage.cpp:686
SecurityPageGeneralTab
Definition: configuresecuritypage.h:35
SecurityPageSMimeTab::save
void save() override
Definition: configuresecuritypage.cpp:608
GpgSettingsDialog
Definition: configuresecuritypage.h:133
QButtonGroup
SecurityPageWarningTab::SecurityPageWarningTab
SecurityPageWarningTab(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:275
SecurityPageSMimeTab
Definition: configuresecuritypage.h:111
SecurityPageMDNTab::save
void save() override
Definition: configuresecuritypage.cpp:208
SecurityPageComposerCryptoTab
Definition: configuresecuritypage.h:71
SecurityPageGeneralTab::save
void save() override
Definition: configuresecuritypage.cpp:126
SecurityPage::WarningTab
SecurityPageWarningTab WarningTab
Definition: configuresecuritypage.h:155
configuredialog_p.h
GpgSettingsDialog::GpgSettingsDialog
GpgSettingsDialog(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:680
QString
SecurityPageMDNTab::SecurityPageMDNTab
SecurityPageMDNTab(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:162
SecurityPage::SMimeTab
SecurityPageSMimeTab SMimeTab
Definition: configuresecuritypage.h:156
SecurityPageComposerCryptoTab::~SecurityPageComposerCryptoTab
~SecurityPageComposerCryptoTab() override
Definition: configuresecuritypage.cpp:232
SecurityPageSMimeTab::~SecurityPageSMimeTab
~SecurityPageSMimeTab() override
Definition: configuresecuritypage.cpp:440
SecurityPageWarningTab::save
void save() override
Definition: configuresecuritypage.cpp:346
SecurityPageGeneralTab::SecurityPageGeneralTab
SecurityPageGeneralTab(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:83
SecurityPageComposerCryptoTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:215
SecurityPage
Definition: configuresecuritypage.h:144
SecurityPageWarningTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:270
SecurityPage::ComposerCryptoTab
SecurityPageComposerCryptoTab ComposerCryptoTab
Definition: configuresecuritypage.h:154
SecurityPageWarningTab::~SecurityPageWarningTab
~SecurityPageWarningTab() override
Definition: configuresecuritypage.cpp:295
SecurityPageMDNTab
Definition: configuresecuritypage.h:52
SecurityPageGeneralTab::helpAnchor
Q_REQUIRED_RESULT QString helpAnchor() const
Definition: configuresecuritypage.cpp:78
SecurityPageWarningTab
Definition: configuresecuritypage.h:90
KCMultiDialog
ConfigModuleWithTabs
Definition: configuredialog_p.h:65
SecurityPageComposerCryptoTab::save
void save() override
Definition: configuresecuritypage.cpp:250
QObject::parent
QObject * parent() const
SecurityPage::MDNTab
SecurityPageMDNTab MDNTab
Definition: configuresecuritypage.h:153
SecurityPageSMimeTab::SecurityPageSMimeTab
SecurityPageSMimeTab(QWidget *parent=nullptr)
Definition: configuresecuritypage.cpp:389
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 03:26:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail/src

Skip menu "kmail/src"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

pim API Reference

Skip menu "pim API Reference"
  • akonadi-calendar-tools
  •   konsolekalendar
  • akregator
  •   src
  • kalarmcal
  •   src
  •     lib
  • kdepim-runtime
  •   agents
  •   src
  • kleopatra
  •   src
  • kmailtransport
  • knotes
  • kontact
  • kontactinterface
  • kpimtextedit
  • ksmtp
  • ktnef
  • libkgapi
  • libkleo
  •   src
  •     src
  •     src

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal