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

kgpg

  • sources
  • kde-4.12
  • kdeutils
  • kgpg
kgpgoptions.h
Go to the documentation of this file.
1 /***************************************************************************
2  kgpgoptions.h - description
3  -------------------
4  begin : Mon Jul 8 2002
5  copyright : (C) 2002 by Jean-Baptiste Mardelle
6  email : bj@altern.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef KGPGOPTIONS_H
18 #define KGPGOPTIONS_H
19 
20 #include "ui_conf_gpg.h"
21 #include "ui_conf_ui2.h"
22 #include "ui_conf_servers.h"
23 #include "ui_conf_misc.h"
24 #include "ui_conf_decryption.h"
25 
26 #include "core/kgpgkey.h"
27 
28 #include <QPixmap>
29 #include <QString>
30 
31 #include <KConfigDialog>
32 
33 class KFontChooser;
34 class KConfig;
35 
36 class Encryption;
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(QListWidgetItem *);
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; // Server stored in GnuPG config
137  QStringList serverList; // Servers stored in kgpgrc
138  QString defaultKeyServer; // Default keyserver
139  QStringList defaultServerList; // Default list of servers including the default key server;
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  KFontChooser * const m_fontchooser;
163 
164  bool m_useagent;
165  bool m_defaultuseagent;
166  bool m_encrypttoalways;
167  bool m_defaultencrypttoalways;
168  bool m_showsystray;
169  int m_trayaction;
170  int m_mailUats;
171  int m_emailSortingIndex;
172  QString m_emailTemplate;
173 
174  KGpgItemModel * const m_model;
175  KeyListProxyModel * const m_combomodel;
176 
177  bool isValidKeyserver(const QString &);
178 };
179 
180 #endif // KGPGOPTIONS_H
Encryption
Definition: conf_encryption.h:23
KGpgItemModel
Definition: kgpgitemmodel.h:44
ServerConf::ServerConf
ServerConf(QWidget *parent=0)
Definition: kgpgoptions.h:74
kgpgOptions::~kgpgOptions
~kgpgOptions()
Definition: kgpgoptions.cpp:128
kgpgOptions::isDefault
virtual bool isDefault()
Definition: kgpgoptions.cpp:616
QWidget
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
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:42
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:562
kgpgOptions::updateDisplay
void updateDisplay()
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:51 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
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • 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