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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • configuredialog
configuresecuritypage.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
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 
19 #ifndef CONFIGURESECURITYPAGE_H
20 #define CONFIGURESECURITYPAGE_H
21 
22 #include "kmail_export.h"
23 #include "configuredialog_p.h"
24 #include "ui_securitypagegeneraltab.h"
25 #include "ui_securitypagemdntab.h"
26 #include "ui_composercryptoconfiguration.h"
27 #include "ui_warningconfiguration.h"
28 #include "ui_smimeconfiguration.h"
29 
30 class QButtonGroup;
31 namespace MessageViewer {
32 class AdBlockSettingWidget;
33 }
34 
35 class SecurityPageGeneralTab : public ConfigModuleTab {
36  Q_OBJECT
37 public:
38  explicit SecurityPageGeneralTab( QWidget * parent=0 );
39  QString helpAnchor() const;
40 
41  void save();
42 
43 private:
44  //virtual void doLoadFromGlobalSettings();
45  void doLoadOther();
46  //FIXME virtual void doResetToDefaultsOther();
47 
48 private:
49  Ui_SecurityPageGeneralTab mSGTab;
50 
51 private slots:
52  void slotLinkClicked( const QString & link );
53 };
54 
55 class SecurityPageMDNTab : public ConfigModuleTab {
56  Q_OBJECT
57 public:
58  explicit SecurityPageMDNTab( QWidget * parent=0 );
59  QString helpAnchor() const;
60 
61  void save();
62 
63 private:
64  void doLoadOther();
65 
66 private:
67  QButtonGroup *mMDNGroup;
68  QButtonGroup *mOrigQuoteGroup;
69  Ui_SecurityPageMDNTab mUi;
70 
71 private slots:
72  void slotLinkClicked( const QString & link );
73 };
74 
75 class SecurityPageComposerCryptoTab : public ConfigModuleTab {
76  Q_OBJECT
77 public:
78  explicit SecurityPageComposerCryptoTab( QWidget * parent=0 );
79  ~SecurityPageComposerCryptoTab();
80 
81  QString helpAnchor() const;
82 
83  void save();
84 
85 private:
86  void doLoadFromGlobalSettings();
87  void doLoadOther();
88  //FIXME virtual void doResetToDefaultsOther();
89 
90 private:
91  Ui::ComposerCryptoConfiguration* mWidget;
92 };
93 
94 class SecurityPageWarningTab : public ConfigModuleTab {
95  Q_OBJECT
96 public:
97  explicit SecurityPageWarningTab( QWidget * parent=0 );
98  ~SecurityPageWarningTab();
99 
100  QString helpAnchor() const;
101 
102  void save();
103 
104 private Q_SLOTS:
105  void slotReenableAllWarningsClicked();
106  void slotConfigureGnupg();
107 
108 private:
109  void doLoadFromGlobalSettings();
110  void doLoadOther();
111  //FIXME virtual void doResetToDefaultsOther();
112 
113 private:
114  Ui::WarningConfiguration* mWidget;
115 };
116 
117 class SecurityPageSMimeTab : public ConfigModuleTab {
118  Q_OBJECT
119 public:
120  explicit SecurityPageSMimeTab( QWidget * parent=0 );
121  ~SecurityPageSMimeTab();
122 
123  QString helpAnchor() const;
124 
125  void save();
126 
127 private slots:
128  void slotUpdateHTTPActions();
129 
130 private:
131  //virtual void doLoadFromGlobalSettings();
132  void doLoadOther();
133  //FIXME virtual void doResetToDefaultsOther();
134 
135 private:
136  Ui::SMimeConfiguration* mWidget;
137  Kleo::CryptoConfig* mConfig;
138 };
139 
140 #ifndef KDEPIM_NO_WEBKIT
141 class SecurityPageAdBlockTab : public ConfigModuleTab {
142  Q_OBJECT
143 public:
144  explicit SecurityPageAdBlockTab( QWidget * parent=0 );
145  ~SecurityPageAdBlockTab();
146 
147  QString helpAnchor() const;
148 
149  void save();
150 
151 private:
152  void doLoadFromGlobalSettings();
153  void doLoadOther();
154  void doResetToDefaultsOther();
155 
156 private:
157  MessageViewer::AdBlockSettingWidget *mWidget;
158 };
159 #endif
160 
161 
162 class KMAIL_EXPORT SecurityPage : public ConfigModuleWithTabs {
163  Q_OBJECT
164 public:
165  explicit SecurityPage( const KComponentData &instance, QWidget *parent=0 );
166 
167  QString helpAnchor() const;
168 
169  typedef SecurityPageGeneralTab GeneralTab;
170  typedef SecurityPageMDNTab MDNTab;
171  typedef SecurityPageComposerCryptoTab ComposerCryptoTab;
172  typedef SecurityPageWarningTab WarningTab;
173  typedef SecurityPageSMimeTab SMimeTab;
174 
175 private:
176  GeneralTab *mGeneralTab;
177  ComposerCryptoTab *mComposerCryptoTab;
178  WarningTab *mWarningTab;
179  SMimeTab *mSMimeTab;
180 #ifndef KDEPIM_NO_WEBKIT
181  SecurityPageAdBlockTab *mSAdBlockTab;
182 #endif
183 };
184 
185 
186 
187 #endif // CONFIGURESECURITYPAGE_H
QWidget
ConfigModule::helpAnchor
virtual QString helpAnchor() const =0
Should return the help anchor for this page or tab.
SecurityPageWarningTab::save
void save()
Definition: configuresecuritypage.cpp:394
SecurityPageWarningTab::SecurityPageWarningTab
SecurityPageWarningTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:324
ConfigModuleTab
Definition: configuredialog_p.h:19
kmail_export.h
SecurityPageMDNTab::save
void save()
Definition: configuresecuritypage.cpp:251
SecurityPageSMimeTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:425
SecurityPageAdBlockTab
Definition: configuresecuritypage.h:141
SecurityPageMDNTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:202
SecurityPageMDNTab::SecurityPageMDNTab
SecurityPageMDNTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:207
SecurityPageGeneralTab
Definition: configuresecuritypage.h:35
SecurityPageGeneralTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:80
SecurityPageAdBlockTab::SecurityPageAdBlockTab
SecurityPageAdBlockTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:165
QButtonGroup
SecurityPageWarningTab::~SecurityPageWarningTab
~SecurityPageWarningTab()
Definition: configuresecuritypage.cpp:340
SecurityPage::GeneralTab
SecurityPageGeneralTab GeneralTab
Definition: configuresecuritypage.h:169
SecurityPageSMimeTab
Definition: configuresecuritypage.h:117
SecurityPageComposerCryptoTab
Definition: configuresecuritypage.h:75
SecurityPage::WarningTab
SecurityPageWarningTab WarningTab
Definition: configuresecuritypage.h:172
configuredialog_p.h
SecurityPageAdBlockTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:159
SecurityPageSMimeTab::SecurityPageSMimeTab
SecurityPageSMimeTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:430
QString
SecurityPage::SMimeTab
SecurityPageSMimeTab SMimeTab
Definition: configuresecuritypage.h:173
SecurityPageGeneralTab::save
void save()
Definition: configuresecuritypage.cpp:129
SecurityPageGeneralTab::SecurityPageGeneralTab
SecurityPageGeneralTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:85
SecurityPageComposerCryptoTab::SecurityPageComposerCryptoTab
SecurityPageComposerCryptoTab(QWidget *parent=0)
Definition: configuresecuritypage.cpp:263
SecurityPageAdBlockTab::save
void save()
Definition: configuresecuritypage.cpp:181
KMAIL_EXPORT
#define KMAIL_EXPORT
Definition: kmail_export.h:35
SecurityPageComposerCryptoTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:258
SecurityPage
Definition: configuresecuritypage.h:162
SecurityPageWarningTab::helpAnchor
QString helpAnchor() const
Definition: configuresecuritypage.cpp:319
SecurityPage::ComposerCryptoTab
SecurityPageComposerCryptoTab ComposerCryptoTab
Definition: configuresecuritypage.h:171
SecurityPageMDNTab
Definition: configuresecuritypage.h:55
SecurityPageComposerCryptoTab::save
void save()
Definition: configuresecuritypage.cpp:296
SecurityPageWarningTab
Definition: configuresecuritypage.h:94
SecurityPageAdBlockTab::~SecurityPageAdBlockTab
~SecurityPageAdBlockTab()
Definition: configuresecuritypage.cpp:177
ConfigModuleWithTabs
Definition: configuredialog_p.h:54
SecurityPageSMimeTab::~SecurityPageSMimeTab
~SecurityPageSMimeTab()
Definition: configuresecuritypage.cpp:483
QObject::parent
QObject * parent() const
SecurityPage::MDNTab
SecurityPageMDNTab MDNTab
Definition: configuresecuritypage.h:170
SecurityPageSMimeTab::save
void save()
Definition: configuresecuritypage.cpp:647
SecurityPageComposerCryptoTab::~SecurityPageComposerCryptoTab
~SecurityPageComposerCryptoTab()
Definition: configuresecuritypage.cpp:277
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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