• 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
keyinfodialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3  * Copyright (C) 2007 Jimmy Gilles <jimmygilles@gmail.com>
4  * Copyright (C) 2008,2014 Rolf Eike Beer <kde@opensource.sf-tec.de>
5  * Copyright (C) 2011 Philip G. Lee <rocketman768@gmail.com>
6  */
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef KGPGKEYINFODIALOG_H
18 #define KGPGKEYINFODIALOG_H
19 
20 #include <QString>
21 #include <QLabel>
22 #include <QColor>
23 
24 #include <KDialog>
25 
26 #include "ui_kgpgKeyInfo.h"
27 
28 class QCheckBox;
29 class QGroupBox;
30 
31 class KPushButton;
32 class KUrlLabel;
33 class KComboBox;
34 
35 class KGpgItemModel;
36 class KGpgKeyNode;
37 class KGpgChangeKey;
38 class KGpgChangePass;
39 
40 class KgpgTrustLabel : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
45  explicit KgpgTrustLabel(QWidget *parent = 0, const QString &text = QString(), const QColor &color = QColor());
46 
47  void setText(const QString &text);
48  void setColor(const QColor &color);
49 
50  QString text() const;
51  QColor color() const;
52 
53 private:
54  void change();
55 
56  QLabel *m_text_w;
57  QLabel *m_color_w;
58 
59  QString m_text;
60  QColor m_color;
61 };
62 
63 class KgpgKeyInfo : public KDialog, public Ui::kgpgKeyInfo
64 {
65  Q_OBJECT
66 
67  KgpgKeyInfo(); // = delete C++0x
68  Q_DISABLE_COPY(KgpgKeyInfo)
69 public:
70  KgpgKeyInfo(KGpgKeyNode *node, KGpgItemModel *model, QWidget *parent);
71  ~KgpgKeyInfo();
72 
73  KGpgChangeKey *keychange;
74 
75 signals:
76  void keyNeedsRefresh(KGpgKeyNode *node);
77 
78 protected slots:
79  void slotButtonClicked(int button);
80 
81 private:
82  void reloadKey();
83  void reloadNode();
84  void displayKey();
85  void setControlEnable(const bool b);
86 
87 private slots:
88  void slotOpenUrl(const QString &url) const;
89 
90  void slotChangeDate();
91 
92  void slotDisableKey(const bool ison);
93 
94  void slotChangePass();
95  void slotInfoPasswordChanged(int result);
96 
97  void slotChangeTrust(const int newtrust);
98 
99  void slotLoadPhoto(const QString &uid);
100 
101  void slotApplied(int result);
102 
103  void slotKeyExpanded();
104 
105 private:
106  KGpgKeyNode *m_node;
107  KGpgItemModel *m_model;
108 
109  KgpgTrustLabel *m_trust;
110 
111  bool m_keywaschanged;
112  bool m_closewhendone;
113 };
114 
115 #endif // KGPGKEYINFODIALOG_H
KGpgItemModel
Definition: kgpgitemmodel.h:44
QWidget
KgpgTrustLabel::color
QColor color() const
Definition: keyinfodialog.cpp:89
KDialog
KGpgChangePass
set a new passphrase for a key pair
Definition: kgpgchangepass.h:24
KgpgKeyInfo
Definition: keyinfodialog.h:63
KgpgTrustLabel::setText
void setText(const QString &text)
Definition: keyinfodialog.cpp:72
KGpgKeyNode
A public key with or without corresponding secret key.
Definition: KGpgKeyNode.h:33
KgpgKeyInfo::slotButtonClicked
void slotButtonClicked(int button)
Definition: keyinfodialog.cpp:335
KgpgTrustLabel::text
QString text() const
Definition: keyinfodialog.cpp:84
KgpgKeyInfo::~KgpgKeyInfo
~KgpgKeyInfo()
Definition: keyinfodialog.cpp:148
QGroupBox
QCheckBox
KgpgTrustLabel
Definition: keyinfodialog.h:40
QString
QColor
KGpgChangeKey
A class for changing several properties of a key at once.
Definition: kgpgchangekey.h:44
KgpgKeyInfo::keyNeedsRefresh
void keyNeedsRefresh(KGpgKeyNode *node)
KgpgTrustLabel::KgpgTrustLabel
KgpgTrustLabel(QWidget *parent=0, const QString &text=QString(), const QColor &color=QColor())
Definition: keyinfodialog.cpp:49
KgpgTrustLabel::setColor
void setColor(const QColor &color)
Definition: keyinfodialog.cpp:78
QLabel
QObject::parent
QObject * parent() const
KgpgKeyInfo::keychange
KGpgChangeKey * keychange
Definition: keyinfodialog.h:73
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