keyapprovaldialog.h
00001
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
00044
#include <kpgpkey.h>
00045
#include <gpgmepp/key.h>
00046
00047
#include <vector>
00048
00049
namespace GpgME {
00050
class Key;
00051 }
00052
00053
class QStringList;
00054
00055
namespace Kleo {
00056
00057
class KeyApprovalDialog :
public KDialogBase {
00058 Q_OBJECT
00059
public:
00060
struct Item {
00061 Item() : pref( UnknownPreference ) {}
00062 Item(
const QString & a,
const std::vector<GpgME::Key> & k,
00063 EncryptionPreference p=UnknownPreference )
00064 : address( a ), keys( k ), pref( p ) {}
00065
QString address;
00066 std::vector<GpgME::Key> keys;
00067 EncryptionPreference pref;
00068 };
00069
00070 KeyApprovalDialog(
const std::vector<Item> & recipients,
00071
const std::vector<GpgME::Key> & sender,
00072
QWidget * parent=0,
const char * name=0,
00073
bool modal=
true );
00074 ~KeyApprovalDialog();
00075
00076 std::vector<Item> items() const;
00077 std::vector<GpgME::Key> senderKeys() const;
00078
00079
bool preferencesChanged() const;
00080
00081 private slots:
00082
void slotPrefsChanged();
00083
00084 private:
00085 class Private;
00086 Private * d;
00087 };
00088
00089 }
00090
00091 #endif
This file is part of the documentation for certmanager Library Version 3.3.0.