QtPass  1.2.3
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 QKeyEvent;
15 class QListWidgetItem;
16 
23 class UsersDialog : public QDialog {
24  Q_OBJECT
25 
26 public:
27  explicit UsersDialog(QString dir, QWidget *parent = nullptr);
28  ~UsersDialog();
29 
30 public slots:
31  void accept();
32 
33 protected:
34  void closeEvent(QCloseEvent *event);
35  void keyPressEvent(QKeyEvent *event);
36 
37 private slots:
38  void itemChange(QListWidgetItem *item);
39  void on_lineEdit_textChanged(const QString &filter);
40  void on_checkBox_clicked();
41 
42 private:
43  Ui::UsersDialog *ui;
44  QList<UserInfo> m_userList;
45  QString m_dir;
46 
47  void populateList(const QString &filter = QString());
48 };
49 
50 #endif // USERSDIALOG_H_
UsersDialog(QString dir, QWidget *parent=nullptr)
UsersDialog::UsersDialog basic constructor.
Definition: usersdialog.cpp:17
Definition: configdialog.h:9
void closeEvent(QCloseEvent *event)
UsersDialog::closeEvent might have to store size and location if that is wanted.
Definition: usersdialog.cpp:96
Handles listing and editing of GPG users.
Definition: usersdialog.h:23
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:81
void accept()
Definition: usersdialog.cpp:85