aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.h
blob: 54e0e2223726005683fe5106cde9bf51baf94a8d (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
#ifndef VERIFYNOTIFICATION_H
#define VERIFYNOTIFICATION_H

#include <QLabel>
#include <QHBoxLayout>
#include <QMenu>
#include <QPushButton>

#include <QWidget>

#include "keyserverimportdialog.h"
#include "context.h"
#include <gpgme.h>


class VerifyNotification : public QWidget
{
    Q_OBJECT
public:
    explicit VerifyNotification(GpgME::Context *ctx,QWidget *parent = 0 );
    void setVerifyLabel(QString text);
    void addImportAction();
    void removeImportAction();
    QStringList *keysNotInList;
    void setVerifyDetailText(QString text);

signals:

public slots:
    void importFromKeyserver();
    void showVerifyDetails();

private:
    QMenu *detailMenu;
    QLabel *verifyLabel;
    GpgME::Context *mCtx;
    QHBoxLayout *notificationWidgetLayout;
    QAction *importFromKeyserverAct;
    QAction *showVerifyDetailsAct;
    QString *verifyDetailText;
};
#endif // VERIFYNOTIFICATION_H