#ifndef VERIFYNOTIFICATION_H #define VERIFYNOTIFICATION_H #include #include #include #include #include #include "keyserverimportdialog.h" #include "context.h" #include class VerifyNotification : public QWidget { Q_OBJECT public: explicit VerifyNotification(GpgME::Context *ctx,QWidget *parent = 0 ); // set the text of verifynotification /**************************************************************************************** * Name: setVerifyLabel * Description: set the text of verify notification * Parameters: none * Return Values: none * Change on members: none */ void setVerifyLabel(QString text); /**************************************************************************************** * Name: showImportAction * Description: show the action in detailsmenu * Parameters: none * Return Values: none * Change on members: none */ void showImportAction(); /**************************************************************************************** * Name: hideImportAction * Description: hide the action in detailsmenu * Parameters: none * Return Values: none * Change on members: none */ void hideImportAction(); /**************************************************************************************** * Name: addVerifyLabel * Description: add the Label labeled "text" to verifylabellist * Parameters: QString containing the text and * status string (should be "ok","warning", or "critical") * Return Values: none * Change on members: Label is added to verifyList */ void addVerifyLabel(QString text, QString status); /**************************************************************************************** * Name: keysNotInList * Description: List holding the keys in signature, which are not in the keylist */ QStringList *keysNotInList; QWidget *verifyLabelList; QVBoxLayout *verifyLabelListLayout; signals: public slots: /**************************************************************************************** * Name: importFromKeyserver * Description: import signaturekey missing in keylist from keyserver * Parameters: none * Return Values: none * Change on members: none */ void importFromKeyserver(); /**************************************************************************************** * Name: showVerifyDetails * Description: show verify details dialog * Parameters: none * Return Values: none * Change on members: none */ void showVerifyDetails(); private: QMenu *detailMenu; // Menu for te Button in verfiyNotification QAction *importFromKeyserverAct; QAction *showVerifyDetailsAct; QString *verifyDetailText; // Text showed in VerifiyNotification QPushButton *detailsButton; // Button shown in verifynotification QLabel *verifyLabel; // Label holding the text shown in verifyNotification GpgME::Context *mCtx; QHBoxLayout *notificationWidgetLayout; }; #endif // VERIFYNOTIFICATION_H