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

kgpg

kgpgoptions.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kgpgoptions.h  -  description
00003                              -------------------
00004     begin                : Mon Jul 8 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 #ifndef KGPGOPTIONS_H
00018 #define KGPGOPTIONS_H
00019 
00020 #include <QPixmap>
00021 
00022 #include <KConfigDialog>
00023 
00024 
00025 #include "ui_conf_gpg.h"
00026 #include "ui_conf_ui2.h"
00027 #include "ui_conf_servers.h"
00028 #include "ui_conf_misc.h"
00029 #include "ui_conf_decryption.h"
00030 
00031 class KConfig;
00032 class KFontChooser;
00033 class KConfig;
00034 
00035 class Encryption;
00036 
00037 class Decryption : public QWidget, public Ui::Decryption
00038 {
00039 public:
00040   Decryption( QWidget *parent=0 ) : QWidget( parent) {
00041     setupUi(this);
00042   }
00043 };
00044 
00045 class MiscConf : public QWidget, public Ui::MiscConf
00046 {
00047 public:
00048   MiscConf( QWidget *parent=0 ) : QWidget( parent ) {
00049     setupUi( this );
00050   }
00051 };
00052 
00053 
00054 class UIConf : public QWidget, public Ui::UIConf
00055 {
00056 public:
00057   UIConf( QWidget *parent=0 ) : QWidget( parent ) {
00058     setupUi( this );
00059   }
00060 };
00061 
00062 class ServerConf : public QWidget, public Ui::ServerConf
00063 {
00064 public:
00065   ServerConf( QWidget *parent=0 ) : QWidget( parent ) {
00066     setupUi( this );
00067   }
00068 };
00069 
00070 
00071 class GPGConf : public QWidget, public Ui::GPGConf
00072 {
00073 public:
00074   GPGConf( QWidget *parent=0 ) : QWidget( parent ) {
00075     setupUi( this );
00076   }
00077 };
00078 
00079 
00080 class kgpgOptions : public KConfigDialog
00081 {
00082     Q_OBJECT
00083 
00084 public:
00085     enum KeyColors
00086     {
00087         GoodColor = 0,
00088         BadColor = 1,
00089         UnknownColor = 2,
00090         RevColor = 3,
00091         UltimateColor = 4,
00092         MarginalColor = 5,
00093         ExpiredColor = 6
00094     };
00095 
00096     explicit kgpgOptions(QWidget *parent = 0, const char *name = 0);
00097     ~kgpgOptions();
00098 
00099 signals:
00100     void updateDisplay();
00101     void settingsUpdated();
00102     void changeFont(QFont);
00103     void homeChanged();
00104     void refreshTrust(int, QColor);
00105 
00106 private slots:
00107     void slotChangeHome();
00108     void slotAddKeyServer();
00109     void slotDelKeyServer();
00110     void slotEditKeyServer();
00111     void slotDefaultKeyServer();
00112     void updateWidgets();
00113     void updateWidgetsDefault();
00114     void updateSettings();
00115     void listKeys();
00116     void slotInstallDecrypt(const QString &mimetype);
00117     void slotInstallSign(const QString &mimetype);
00118     void slotRemoveMenu(const QString &menu);
00119 
00120 private:
00121     bool hasChanged();
00122     bool isDefault();
00123     bool isValidKeyserver(const QString &);
00124 
00125 private:
00126     QStringList serverList;
00127     QStringList names;
00128     QStringList ids;
00129     QString alwaysKeyID;
00130     QString alwaysKeyName;
00131     QString fileEncryptionKey;
00132     QString gpgConfigPath;
00133     QString gpgBinPath;
00134     QString keyServer;
00135     QString defaultServerList;
00136     QString defaultKeyServer;
00137     QString defaultConfigPath;
00138     QString defaultHomePath;
00139     QString defaultBinPath;
00140     QPixmap pixkeySingle;
00141     QPixmap pixkeyDouble;
00142     QColor keyUltimate;
00143     QColor keyGood;
00144     QColor keyExpired;
00145     QColor keyMarginal;
00146     QColor keyBad;
00147     QColor keyUnknown;
00148     QColor keyRev;
00149 
00150     KFontChooser *m_fontchooser;
00151     KConfig *m_config;
00152 
00153     Encryption *m_page1;
00154     Decryption *m_page2;
00155     UIConf *m_page3;
00156     GPGConf *m_page4;
00157     ServerConf *m_page6;
00158     MiscConf *m_page7;
00159 
00160     bool m_useagent;
00161     bool m_defaultuseagent;
00162     bool m_encrypttoalways;
00163     bool m_defaultencrypttoalways;
00164     bool m_showsystray;
00165 };
00166 
00167 #endif // KGPGOPTIONS_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
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
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