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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
kgpgoptions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3  * Copyright (C) 2006,2007,2008,2009,2010,2011,2012,2013,2014
4  * Rolf Eike Beer <kde@opensource.sf-tec.de>
5  */
6 /***************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  ***************************************************************************/
14 
15 #ifndef KGPGOPTIONS_H
16 #define KGPGOPTIONS_H
17 
18 #include "ui_conf_gpg.h"
19 #include "ui_conf_ui2.h"
20 #include "ui_conf_servers.h"
21 #include "ui_conf_misc.h"
22 #include "ui_conf_decryption.h"
23 
24 #include "core/kgpgkey.h"
25 
26 #include <QPixmap>
27 #include <QStringListModel>
28 #include <QString>
29 
30 #include <KConfigDialog>
31 
32 class KFontChooser;
33 class KConfig;
34 
35 class Encryption;
36 class GpgServerModel;
37 class KGpgItemModel;
38 class KeyListProxyModel;
39 
40 class Decryption : public QWidget, public Ui::Decryption
41 {
42 public:
43  explicit Decryption( QWidget *parent = 0 )
44  : QWidget( parent)
45  {
46  setupUi(this);
47  }
48 };
49 
50 class MiscConf : public QWidget, public Ui::MiscConf
51 {
52 public:
53  explicit MiscConf( QWidget *parent = 0 )
54  : QWidget( parent )
55  {
56  setupUi( this );
57  }
58 };
59 
60 
61 class UIConf : public QWidget, public Ui::UIConf
62 {
63 public:
64  explicit UIConf( QWidget *parent = 0 )
65  : QWidget( parent )
66  {
67  setupUi( this );
68  }
69 };
70 
71 class ServerConf : public QWidget, public Ui::ServerConf
72 {
73 public:
74  explicit ServerConf( QWidget *parent = 0 )
75  : QWidget( parent )
76  {
77  setupUi( this );
78  }
79 };
80 
81 
82 class GPGConf : public QWidget, public Ui::GPGConf
83 {
84 public:
85  explicit GPGConf( QWidget *parent = 0 )
86  : QWidget( parent )
87  {
88  setupUi( this );
89  }
90 };
91 
92 
93 class kgpgOptions : public KConfigDialog
94 {
95  Q_OBJECT
96 
97 public:
98  explicit kgpgOptions(QWidget *parent = 0, KGpgItemModel *model = 0);
99  ~kgpgOptions();
100 
101 signals:
102  void updateDisplay();
103  void settingsUpdated();
104  void changeFont(QFont);
105  void homeChanged();
106  void refreshTrust(KgpgCore::KgpgKeyTrust, QColor);
107 
108 private slots:
109  void slotChangeHome();
110  void slotAddKeyServer();
111  void slotChangeEncryptTo();
112  void slotDelKeyServer();
113  void slotEditKeyServer();
114  void slotEditKeyServer(const QModelIndex &index);
115  void slotChangeKeyServerButtonEnable();
116  void slotDefaultKeyServer();
117  void updateWidgets();
118  void updateWidgetsDefault();
119  void updateSettings();
120  void listKeys();
121  void slotInstallDecrypt(const QString &mimetype);
122  void slotInstallSign(const QString &mimetype);
123  void slotRemoveMenu(const QString &menu);
124  void slotSystrayEnable();
125 
126 protected:
127  virtual bool hasChanged();
128  virtual bool isDefault();
129 
130 private:
131  QStringList names;
132  QStringList ids;
133  QString alwaysKeyID;
134  QString fileEncryptionKey;
135  QString gpgConfigPath;
136  QString keyServer;
137  QStringList serverList;
138  QString defaultKeyServer;
139  QStringList defaultServerList;
140  QString defaultConfigPath;
141  QString defaultHomePath;
142  QString defaultBinPath;
143  QPixmap pixkeySingle;
144  QPixmap pixkeyDouble;
145  QColor keyUltimate;
146  QColor keyGood;
147  QColor keyExpired;
148  QColor keyMarginal;
149  QColor keyBad;
150  QColor keyUnknown;
151  QColor keyRev;
152 
153  KConfig *m_config;
154 
155  Encryption * const m_page1;
156  Decryption * const m_page2;
157  UIConf * const m_page3;
158  GPGConf * const m_page4;
159  ServerConf * const m_page6;
160  MiscConf * const m_page7;
161 
162  GpgServerModel * const m_serverModel;
163  KFontChooser * const m_fontchooser;
164 
165  bool m_useagent;
166  bool m_defaultuseagent;
167  bool m_encrypttoalways;
168  bool m_defaultencrypttoalways;
169  bool m_showsystray;
170  int m_trayaction;
171  int m_mailUats;
172  int m_emailSortingIndex;
173  QString m_emailTemplate;
174 
175  KGpgItemModel * const m_model;
176  KeyListProxyModel * const m_combomodel;
177 
178  bool isValidKeyserver(const QString &);
179 };
180 
181 #endif // KGPGOPTIONS_H
Encryption
Definition: conf_encryption.h:23
KGpgItemModel
Definition: kgpgitemmodel.h:44
QModelIndex
QWidget
QWidget::setupUi
void setupUi(QWidget *widget)
ServerConf::ServerConf
ServerConf(QWidget *parent=0)
Definition: kgpgoptions.h:74
kgpgOptions::~kgpgOptions
~kgpgOptions()
Definition: kgpgoptions.cpp:136
kgpgOptions::isDefault
virtual bool isDefault()
Definition: kgpgoptions.cpp:568
QFont
MiscConf::MiscConf
MiscConf(QWidget *parent=0)
Definition: kgpgoptions.h:53
kgpgkey.h
kgpgOptions::settingsUpdated
void settingsUpdated()
Decryption::Decryption
Decryption(QWidget *parent=0)
Definition: kgpgoptions.h:43
GpgServerModel
model holding the configured GnuPG key servers
Definition: gpgservermodel.h:27
KConfigDialog
kgpgOptions::refreshTrust
void refreshTrust(KgpgCore::KgpgKeyTrust, QColor)
ServerConf
Definition: kgpgoptions.h:71
kgpgOptions::kgpgOptions
kgpgOptions(QWidget *parent=0, KGpgItemModel *model=0)
Definition: kgpgoptions.cpp:43
QString
QColor
QStringList
QPixmap
KeyListProxyModel
Definition: keylistproxymodel.h:30
MiscConf
Definition: kgpgoptions.h:50
UIConf
Definition: kgpgoptions.h:61
UIConf::UIConf
UIConf(QWidget *parent=0)
Definition: kgpgoptions.h:64
kgpgOptions::changeFont
void changeFont(QFont)
kgpgOptions::homeChanged
void homeChanged()
kgpgOptions
Definition: kgpgoptions.h:93
kgpgOptions::hasChanged
virtual bool hasChanged()
Definition: kgpgoptions.cpp:524
kgpgOptions::updateDisplay
void updateDisplay()
QObject::parent
QObject * parent() const
Decryption
Definition: kgpgoptions.h:40
GPGConf
Definition: kgpgoptions.h:82
GPGConf::GPGConf
GPGConf(QWidget *parent=0)
Definition: kgpgoptions.h:85
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

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