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

kgpg

keysmanager.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           listkeys.h  -  description
00003                              -------------------
00004     begin                : Thu Jul 4 2002
00005     copyright          : (C) 2002 by Jean-Baptiste Mardelle
00006     email                : bj@altern.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KEYSMANAGER_H
00019 #define KEYSMANAGER_H
00020 
00021 #include <QClipboard>
00022 
00023 #include <KToggleAction>
00024 #include <KXmlGuiWindow>
00025 #include <KDialog>
00026 #include <KUrl>
00027 
00028 #include "kgpgkey.h"
00029 #include "ui_adduid.h"
00030 #include "kgpginterface.h"
00031 #include "kgpgitemmodel.h"
00032 #include "kgpgitemnode.h"
00033 
00034 class QEvent;
00035 
00036 class KSelectAction;
00037 class KPassivePopup;
00038 class KStatusBar;
00039 class KMenu;
00040 class KLineEdit;
00041 
00042 class KgpgInterface;
00043 class KeyServer;
00044 class KgpgEditor;
00045 class KeyServer;
00046 class KeyListProxyModel;
00047 class KeyTreeView;
00048 class KGpgDelUid;
00049 class KGpgAddPhoto;
00050 class KGpgAddUid;
00051 class KGpgGenerateKey;
00052 class KGpgDelKey;
00053 
00054 class AddUid : public QWidget, public Ui::AddUid
00055 {
00056 public:
00057   AddUid( QWidget *parent ) : QWidget( parent ) {
00058     setupUi( this );
00059   }
00060 };
00061 
00062 class KeysManager : public KXmlGuiWindow
00063 {
00064     Q_OBJECT
00065 
00066 public:
00067     KeysManager(QWidget *parent = 0);
00068     ~KeysManager();
00069 
00070     KGpgItemModel *getModel();
00071 
00072     KgpgEditor *s_kgpgEditor;
00073 
00074     void saveToggleOpts(void);
00075 
00076 private:
00077     KToggleAction *sTrust;
00078     KToggleAction *sCreat;
00079     KToggleAction *sExpi;
00080     KToggleAction *sSize;
00081     KToggleAction *hPublic;
00082     KToggleAction *longId;
00083     KSelectAction *photoProps;
00084     KSelectAction *trustProps;
00085 
00086 signals:
00087     void readAgainOptions();
00088     void certificate(QString);
00089     void closeAsked();
00090     void fontChanged(QFont);
00091     void encryptFiles(KUrl::List);
00092 
00093 public slots:
00094     void slotGenerateKey();
00095     void refreshkey();
00096     void readAllOptions();
00097     void showKeyInfo(const QString &keyID);
00098     void findKey();
00099     void findFirstKey();
00100     void findNextKey();
00101     void slotSetDefaultKey(const QString &newID);
00102     void showKeyManager();
00103     bool importRemoteKey(const QString &keyIDs);
00104     void showKeyServer();
00105     void showOptions();
00106     void slotOpenEditor();
00107 
00108 protected:
00109     bool eventFilter(QObject *, QEvent *e);
00110 
00111 private slots:
00112     void statusBarTimeout();
00113     void changeMessage(const QString &msg, const int nb, const bool keep = false);
00114 
00115     void slotGenerateKeyProcess();
00116     void slotGenerateKeyDone(int res);
00117 
00118     void slotShowTrust();
00119     void slotShowSize();
00120     void slotShowCreation();
00121     void slotShowExpiration();
00122 
00123     void slotAddUidFin(int res);
00124     void slotDelPhotoFinished(int res);
00125     void quitApp();
00126     void slotToggleSecret(bool);
00127     void slotShowLongId(bool);
00128     void slotSetTrustFilter(int);
00129     void slotGotoDefaultKey();
00130     void slotDelUid();
00131     void slotDelUidDone(int);
00132     void slotPrimUid();
00133     void slotAddUid();
00134     void slotAddUidEnable(const QString &name);
00135     void slotUpdatePhoto();
00136     void slotDeletePhoto();
00137     void slotAddPhoto();
00138     void slotAddPhotoFinished(int res);
00139     void slotSetPhotoSize(int size);
00140     void slotShowPhoto();
00141     void slotrevoke(const QString &keyID, const QString &revokeUrl, const int reason, const QString &description);
00142     void revokeWidget();
00143     void doFilePrint(const QString &url);
00144     void doPrint(const QString &txt);
00145     void checkList();
00146     void signLoop();
00147     void slotManpage();
00148     void slotTip();
00149     void slotProcessExportMail(const QString &keys);
00150     void slotProcessExportClip(const QString &keys);
00151     void readOptions();
00152     void slotSetDefKey();
00153     void confirmdeletekey();
00154     void deleteseckey();
00155     void signkey();
00156     void signuid();
00157     void delsignkey();
00158     void preimportsignkey();
00159     void importsignkey(const QStringList &importKeyId);
00160     void importallsignkey();
00161     void importfinished();
00162     void signatureResult(int success, const QString &keyId, KgpgInterface*);
00163     void delsignatureResult(bool);
00164     void defaultAction(const QModelIndex &);
00165     void defaultAction(KGpgNode *);
00166     void slotDefaultAction();
00167     void showProperties(KGpgNode *);
00168     void keyproperties();
00169     void slotexport();
00170     void slotexportsec();
00171 
00172     void slotMenu(const QPoint &);
00173 
00174     void slotPreImportKey();
00175     void slotedit();
00176     void addToKAB();
00177     void editGroup();
00178     void createNewGroup();
00179     void deleteGroup();
00180     void slotImportRevoke(const QString &url);
00181     void slotImportRevokeTxt(const QString &revokeText);
00182     void refreshKeyFromServer();
00183     void slotregenerate();
00184     void secretKeyDeleted(int);
00185     void getMissingSigs(QStringList *missingKeys, KGpgExpandableNode *nd);
00186     void slotEditDone(int exitcode);
00187     void importRemoteFinished(QList<int>, QStringList, bool, QString, KgpgInterface *iface);
00188     void slotRefreshKeys(KgpgInterface *iface, const QStringList &keys);
00189     void slotDelKeyDone(int ret);
00190 
00191 private:
00192     KGpgItemModel *imodel;
00193     KeyListProxyModel *iproxy;
00194     KeyTreeView *iview;
00195 
00196     KGpgDelUid *m_deluid;
00197     KGpgAddPhoto *m_addphoto;
00198     KGpgAddUid *m_adduid;
00199     KGpgGenerateKey *m_genkey;
00200     KGpgDelKey *m_delkey;
00201 
00202     QString globalkeyID;
00203     QString searchString;
00204 
00205     QList<KGpgNode *> signList;
00206     QList<KGpgKeyNode *> refreshList;
00207 
00208     QClipboard::Mode m_clipboardmode;
00209     QTimer *m_statusbartimer;
00210 
00211     KMenu *m_popuppub;          // popup on a public key
00212     KMenu *m_popupsec;          // popup on a secret key
00213     KMenu *m_popupgroup;        // popup on a group
00214     KMenu *m_popupout;          // popup there is no key or when the user don't right-click on a key
00215     KMenu *m_popupsig;          // popup on a signature
00216     KMenu *m_popupphoto;        // popup on a photo
00217     KMenu *m_popupuid;          // popup on an user id
00218     KMenu *m_popuporphan;       // popup on an orphan key
00219 
00220     KPassivePopup *pop;
00221     KStatusBar *m_statusbar;
00222 
00223     KLineEdit *m_listviewsearch;
00224     KDialog *addUidWidget;
00225 
00226     QAction *importSignatureKey;
00227     QAction *importAllSignKeys;
00228     QAction *signKey;
00229     QAction *signUid;
00230     QAction *refreshKey;
00231     QAction *editKey;
00232     QAction *setPrimUid;
00233     QAction *delUid;
00234     QAction *delSignKey;
00235     QAction *deleteKey;
00236     QAction *editCurrentGroup;
00237     QAction *delGroup;
00238     QAction *setDefaultKey;
00239 
00240     KeyServer *kServer;
00241     KgpgInterface *revKeyProcess;
00242 
00243     bool continueSearch;
00244     bool globalisLocal;
00245     bool showTipOfDay;
00246     bool m_isterminal;
00247     bool m_signuids;
00248 
00249     int keyCount;
00250     int globalChecked;
00251 
00252     long searchOptions;
00253 
00254     KGpgKeyNode *terminalkey; // the key currently edited in a terminal
00255     KGpgKeyNode *delkey;    // key currently deleted
00256     KGpgKeyNodeList m_delkeys;
00257 };
00258 
00259 #endif // KEYSMANAGER_H

kgpg

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal