summaryrefslogtreecommitdiffstats
path: root/usersdialog.h
diff options
context:
space:
mode:
authorReimar Döffinger <brouwer@annejan.com>2015-04-04 12:49:46 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2015-04-11 21:08:45 +0200
commit68ca586712048a7daa40d5aa4705cc51ee34e333 (patch)
treed53179603d0a3e5fd56ebd1e7e456b82b1bcc39b /usersdialog.h
parentd7233142cef390f75f17a77c5d554c20b4f42eb5 (diff)
User edit dialog for modifying .gpg-id added.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'usersdialog.h')
-rw-r--r--usersdialog.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/usersdialog.h b/usersdialog.h
new file mode 100644
index 00000000..54fadfa8
--- /dev/null
+++ b/usersdialog.h
@@ -0,0 +1,38 @@
+#ifndef USERSDIALOG_H
+#define USERSDIALOG_H
+
+//#include <QAbstractListModel>
+#include <QDialog>
+#include <QList>
+#include <QStandardItemModel>
+
+namespace Ui {
+class UsersDialog;
+}
+
+class QListWidgetItem;
+
+struct UserInfo {
+ UserInfo() : enabled(false) {}
+ QString name;
+ QString key_id;
+ bool enabled;
+};
+
+class UsersDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit UsersDialog(QWidget *parent = 0);
+ ~UsersDialog();
+ void setUsers(QList<UserInfo> *);
+
+private slots:
+ void itemChange(QListWidgetItem *);
+
+private:
+ Ui::UsersDialog *ui;
+};
+
+#endif // USERSDIALOG_H