QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
usersdialog.h
Go to the documentation of this file.
1 #ifndef USERSDIALOG_H_
2 #define USERSDIALOG_H_
3 
4 #include "datahelpers.h"
5 #include <QCloseEvent>
6 #include <QDateTime>
7 #include <QDialog>
8 #include <QList>
9 #include <QStandardItemModel>
10 
11 namespace Ui {
12 class UsersDialog;
13 }
14 
15 class QListWidgetItem;
16 
23 class UsersDialog : public QDialog {
24  Q_OBJECT
25 
26 public:
27  explicit UsersDialog(QWidget *parent = 0);
28  ~UsersDialog();
29  void setUsers(QList<UserInfo> *);
30 
31 protected:
32  void closeEvent(QCloseEvent *event);
33  void keyPressEvent(QKeyEvent *event);
34 
35 private slots:
36  void itemChange(QListWidgetItem *item);
37  void on_lineEdit_textChanged(const QString &filter);
38  void on_checkBox_clicked();
39 
40 private:
41  Ui::UsersDialog *ui;
42  QList<UserInfo> *userList;
43  void populateList(const QString &filter);
44 };
45 
46 #endif // USERSDIALOG_H_
Handles listing and editing of GPG users.
Definition: usersdialog.h:23