certmanager/lib
keyapprovaldialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef __KLEO_KEYAPPROVALDIALOG_H__
00038 #define __KLEO_KEYAPPROVALDIALOG_H__
00039
00040 #include <kleo/enum.h>
00041
00042 #include <kdialogbase.h>
00043 #include <kdepimmacros.h>
00044
00045 #include <kpgpkey.h>
00046 #include <gpgmepp/key.h>
00047
00048 #include <vector>
00049
00050 namespace GpgME {
00051 class Key;
00052 }
00053
00054 class QStringList;
00055
00056 namespace Kleo {
00057
00058 class KDE_EXPORT KeyApprovalDialog : public KDialogBase {
00059 Q_OBJECT
00060 public:
00061 struct Item {
00062 Item() : pref( UnknownPreference ) {}
00063 Item( const QString & a, const std::vector<GpgME::Key> & k,
00064 EncryptionPreference p=UnknownPreference )
00065 : address( a ), keys( k ), pref( p ) {}
00066 QString address;
00067 std::vector<GpgME::Key> keys;
00068 EncryptionPreference pref;
00069 };
00070
00071 KeyApprovalDialog( const std::vector<Item> & recipients,
00072 const std::vector<GpgME::Key> & sender,
00073 QWidget * parent=0, const char * name=0,
00074 bool modal=true );
00075 ~KeyApprovalDialog();
00076
00077 std::vector<Item> items() const;
00078 std::vector<GpgME::Key> senderKeys() const;
00079
00080 bool preferencesChanged() const;
00081
00082 private slots:
00083 void slotPrefsChanged();
00084
00085 private:
00086 class Private;
00087 Private * d;
00088 };
00089
00090 }
00091
00092 #endif // __KLEO_KEYAPPROVALDIALOG_H__
|