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 <tdepimmacros.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 TQStringList;
00055
00056 namespace Kleo {
00057
00058 class KDE_EXPORT KeyApprovalDialog : public KDialogBase {
00059 Q_OBJECT
00060
00061 public:
00062 struct Item {
00063 Item() : pref( UnknownPreference ) {}
00064 Item( const TQString & a, const std::vector<GpgME::Key> & k,
00065 EncryptionPreference p=UnknownPreference )
00066 : address( a ), keys( k ), pref( p ) {}
00067 TQString address;
00068 std::vector<GpgME::Key> keys;
00069 EncryptionPreference pref;
00070 };
00071
00072 KeyApprovalDialog( const std::vector<Item> & recipients,
00073 const std::vector<GpgME::Key> & sender,
00074 TQWidget * parent=0, const char * name=0,
00075 bool modal=true );
00076 ~KeyApprovalDialog();
00077
00078 std::vector<Item> items() const;
00079 std::vector<GpgME::Key> senderKeys() const;
00080
00081 bool preferencesChanged() const;
00082
00083 private slots:
00084 void slotPrefsChanged();
00085
00086 private:
00087 class Private;
00088 Private * d;
00089 };
00090
00091 }
00092
00093 #endif // __KLEO_KEYAPPROVALDIALOG_H__
|