aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-08 17:16:07 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-08 17:16:07 +0000
commit9e08044e7c503cd8f79f4fb86fa2751652a2637b (patch)
tree6dbc7b3fa0c47fce919e9ccd50cef590c28d594a /verifynotification.h
parentminor changes in verify-method and some doxygen documenation (diff)
downloadgpg4usb-9e08044e7c503cd8f79f4fb86fa2751652a2637b.tar.gz
gpg4usb-9e08044e7c503cd8f79f4fb86fa2751652a2637b.zip
only use private keys to sign and print adequate message, if no private key is checked. removed hideImportAction and added parameter to showImportAction.
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@527 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifynotification.h')
-rw-r--r--verifynotification.h108
1 files changed, 68 insertions, 40 deletions
diff --git a/verifynotification.h b/verifynotification.h
index 641d43e..c8cdd4c 100644
--- a/verifynotification.h
+++ b/verifynotification.h
@@ -1,3 +1,24 @@
+/*
+ * verifynotification.h
+ *
+ * Copyright 2008 gpg4usb-team <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
#ifndef VERIFYNOTIFICATION_H
#define VERIFYNOTIFICATION_H
@@ -11,6 +32,10 @@ class QHBoxLayout;
class QMenu;
class QPushButton;
+/**
+ * @details Enumeration for the status of Verifylabel
+ *
+ */
typedef enum
{
VERIFY_ERROR_OK = 0,
@@ -18,44 +43,40 @@ typedef enum
VERIFY_ERROR_CRITICAL = 2,
} verify_label_status;
+/**
+ * @brief Class for handling the verifylabel shown at buttom of a textedit-page
+ *
+ */
class VerifyNotification : public QWidget
{
Q_OBJECT
public:
+ /**
+ * @brief
+ *
+ * @param ctx The GPGme-Context
+ * @param parent The parent widget
+ */
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
- */
+ /**
+ * @details Set the text and background-color of verify notification.
+ *
+ * @param text The text to be set.
+ * @param verifyLabelStatus The status of label to set the specified color.
+ */
void setVerifyLabel(QString text, verify_label_status verifyLabelStatus);
- /****************************************************************************************
- * 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: setVerifyDetailText
- * Description: set the text of verify-detail dialog
- * Parameters: QString containing the text
- * Return Values: none
- * Change on members: verifyDetailText changes to text
- */
+ /**
+ * @details Show the import from keyserver-action in detailsmenu.
+ * @param visible show the action, if visible is true, otherwise hide it.
+ */
+ void showImportAction(bool visible);
+
+ /**
+ * @details Set the text of verify-detail dialog.
+ *
+ * @param text The text to be set.
+ */
void setVerifyDetailText(QString text);
/****************************************************************************************
@@ -63,24 +84,31 @@ public:
* Description: List holding the keys in signature, which are not in the keylist
*/
QStringList *keysNotInList;
- // set text shown in verifydetails dialog
signals:
public slots:
// import missing key from keyserver
+ /**
+ * @brief
+ *
+ */
void importFromKeyserver();
// show verify details
+ /**
+ * @brief
+ *
+ */
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;
+ QMenu *detailMenu; // Menu for te Button in verfiyNotification /**< TODO */
+ QAction *importFromKeyserverAct; /**< TODO */
+ QAction *showVerifyDetailsAct; /**< TODO */
+ QString *verifyDetailText; // Text showed in VerifiyNotification /**< TODO */
+ QPushButton *detailsButton; // Button shown in verifynotification /**< TODO */
+ QLabel *verifyLabel; // Label holding the text shown in verifyNotification /**< TODO */
+ GpgME::Context *mCtx; /**< TODO */
+ QHBoxLayout *notificationWidgetLayout; /**< TODO */
};
#endif // VERIFYNOTIFICATION_H