QtPass  1.2.1
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 "userinfo.h"
5 
6 #include <QDialog>
7 #include <QList>
8 
9 namespace Ui {
10 class UsersDialog;
11 }
12 
13 class QCloseEvent;
14 class QListWidgetItem;
15 
22 class UsersDialog : public QDialog {
23  Q_OBJECT
24 
25 public:
26  explicit UsersDialog(QWidget *parent = 0);
27  ~UsersDialog();
28  void setUsers(QList<UserInfo> *);
29 
30 protected:
31  void closeEvent(QCloseEvent *event);
32  void keyPressEvent(QKeyEvent *event);
33 
34 private slots:
35  void itemChange(QListWidgetItem *item);
36  void on_lineEdit_textChanged(const QString &filter);
37  void on_checkBox_clicked();
38 
39 private:
40  Ui::UsersDialog *ui;
41  QList<UserInfo> *userList;
42  void populateList(const QString &filter);
43 };
44 
45 #endif // USERSDIALOG_H_
Definition: configdialog.h:9
void closeEvent(QCloseEvent *event)
UsersDialog::closeEvent might have to store size and location if that is wanted.
UsersDialog(QWidget *parent=0)
UsersDialog::UsersDialog basic constructor.
Definition: usersdialog.cpp:10
void setUsers(QList< UserInfo > *)
UsersDialog::setUsers update all the users.
Definition: usersdialog.cpp:48
Handles listing and editing of GPG users.
Definition: usersdialog.h:22
void keyPressEvent(QKeyEvent *event)
UsersDialog::keyPressEvent clear the lineEdit when escape is pressed. No action for Enter currently...
~UsersDialog()
UsersDialog::~UsersDialog basic destructor.
Definition: usersdialog.cpp:27