• 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
selectpublickeydialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3  * Copyright (C) 2007,2008,2009,2010,2011,2012,2013
4  * Rolf Eike Beer <kde@opensource.sf-tec.de>
5  */
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef SELECTPUBLICKEYDIALOG_H
17 #define SELECTPUBLICKEYDIALOG_H
18 
19 #include "core/kgpgkey.h"
20 
21 #include <KDialog>
22 #include <KShortcut>
23 #include <KUrl>
24 #include <KVBox>
25 #include <QKeySequence>
26 
27 class QCheckBox;
28 class QTableView;
29 
30 class KLineEdit;
31 class KHBox;
32 
33 class SelectKeyProxyModel;
34 class KGpgItemModel;
35 
39 class KgpgSelectPublicKeyDlg : public KDialog
40 {
41  Q_OBJECT
42 
43 public:
44  /* TODO: the goDefaultKey shortcut should be stored in a way it can be accessed from everywhere. So we don't have to pass it as an argument.
45  */
46 
47  KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *model, const KShortcut &goDefaultKey = KShortcut(QKeySequence(Qt::CTRL + Qt::Key_Home)), const bool hideasciioption = false, const KUrl::List &files = KUrl::List());
48 
49  QStringList selectedKeys() const;
50  QString getCustomOptions() const;
51  bool getSymmetric() const;
52  bool getUntrusted() const;
53  bool getHideId() const;
54  bool getArmor() const;
58  const KUrl::List &getFiles() const;
59 
60  KVBox *optionsbox;
61 
62 private slots:
63  void slotOk();
64  void slotSelectionChanged();
65  void slotSymmetric(const bool state);
66  void slotUntrusted(const bool state);
67  void slotGotoDefaultKey();
68 
69 private:
70  QCheckBox *m_cbarmor;
71  QCheckBox *m_cbuntrusted;
72  QCheckBox *m_cbhideid;
73  QCheckBox *m_cbsymmetric;
74 
75  KHBox *m_searchbar;
76  KLineEdit *m_customoptions;
77  QTableView *m_keyslist;
78  KLineEdit *m_searchlineedit;
79  SelectKeyProxyModel *iproxy;
80  KGpgItemModel *imodel;
81  const KUrl::List m_files;
82 
83  bool m_hideasciioption;
84 };
85 
86 #endif // SELECTPUBLICKEYDIALOG_H
KGpgItemModel
Definition: kgpgitemmodel.h:44
QWidget
KgpgSelectPublicKeyDlg
shows a dialog to select a public key for encryption
Definition: selectpublickeydialog.h:39
KgpgSelectPublicKeyDlg::selectedKeys
QStringList selectedKeys() const
Definition: selectpublickeydialog.cpp:156
KgpgSelectPublicKeyDlg::getFiles
const KUrl::List & getFiles() const
return the files passed in the constructor
Definition: selectpublickeydialog.cpp:198
SelectKeyProxyModel
filter model to select a public key for encryption
Definition: selectkeyproxymodel.h:30
KgpgSelectPublicKeyDlg::KgpgSelectPublicKeyDlg
KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *model, const KShortcut &goDefaultKey=KShortcut(QKeySequence(Qt::CTRL+Qt::Key_Home)), const bool hideasciioption=false, const KUrl::List &files=KUrl::List())
Definition: selectpublickeydialog.cpp:38
kgpgkey.h
KDialog
KgpgSelectPublicKeyDlg::getCustomOptions
QString getCustomOptions() const
Definition: selectpublickeydialog.cpp:181
KgpgSelectPublicKeyDlg::getHideId
bool getHideId() const
Definition: selectpublickeydialog.cpp:203
QCheckBox
KgpgSelectPublicKeyDlg::getArmor
bool getArmor() const
Definition: selectpublickeydialog.cpp:193
QString
QStringList
QTableView
KgpgSelectPublicKeyDlg::optionsbox
KVBox * optionsbox
Definition: selectpublickeydialog.h:60
QKeySequence
KgpgSelectPublicKeyDlg::getSymmetric
bool getSymmetric() const
Definition: selectpublickeydialog.cpp:176
KgpgSelectPublicKeyDlg::getUntrusted
bool getUntrusted() const
Definition: selectpublickeydialog.cpp:188
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