blob: 05a7b324cf299a1ae3511cd92f88e10f5c01f450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/***************************************************************************
kgpgoptions.h - description
-------------------
begin : Mon Jul 8 2002
copyright : (C) 2002 by Jean-Baptiste Mardelle
email : bj@altern.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KGPGOPTIONS_H
#define KGPGOPTIONS_H
#include <kconfigdialog.h>
#define GoodColor 0
#define BadColor 1
#define UnknownColor 2
#define RevColor 3
class KConfig;
class Encryption;
class Decryption;
class UIConf;
class GPGConf;
class ServerConf;
class ColorsConf;
class MiscConf;
class KFontChooser;
class KConfig;
class KSimpleConfig;
class kgpgOptions : public KConfigDialog
{
Q_OBJECT
public:
kgpgOptions(QWidget *parent=0, const char *name=0);
~kgpgOptions();
QStringList names,ids;
Encryption *page1;
Decryption *page2;
UIConf *page3;
GPGConf *page4;
ServerConf *page6;
MiscConf *page7;
KFontChooser *kfc;
private:
KConfig *config;
QString alwaysKeyID,alwaysKeyName;
bool firstDisplay;
QPixmap pixkeySingle,pixkeyDouble;
QString fileEncryptionKey;
QString gpgConfigPath;
QString keyServer,defaultServerList;
QString defaultKeyServer;
QFont startFont;
bool useAgent;
bool defaultUseAgent;
bool encryptToAlways;
bool defaultEncryptToAlways;
QStringList serverList;
QString defaultConfigPath,defaultHomePath;
QColor keyGood,keyBad,keyUnknown,keyRev;
private:
bool hasChanged();
bool isDefault();
private slots:
void checkAdditionalState(bool);
void slotAddKeyServer();
void slotDelKeyServer();
void slotDefaultKeyServer();
void updateWidgets();
void updateWidgetsDefault();
void updateSettings();
void insertAlwaysKey();
void insertFileKey();
void listkey();
QString namecode(QString kid);
QString idcode(QString kname);
void slotInstallDecrypt(QString mimetype);
void slotInstallSign(QString mimetype);
void slotRemoveMenu(QString menu);
void slotChangeHome();
signals:
void updateDisplay();
void settingsUpdated();
void changeFont(QFont);
void homeChanged();
void refreshTrust(int, QColor);
void installShredder();
void reloadKeyList();
};
#endif // KGPGOPTIONS_H
|