QtPass  1.2.3
Multi-platform GUI for pass, the standard unix password manager.
Go to the documentation of this file.
4 #include "enums.h"
7 #include <QDialog>
9 namespace Ui {
10 struct UserInfo;
12 class ConfigDialog;
13 } // namespace Ui
21 class MainWindow;
22 class QCloseEvent;
23 class ConfigDialog : public QDialog {
26 public:
27  explicit ConfigDialog(MainWindow *parent);
28  ~ConfigDialog();
30  void useSelection(bool useSelection);
31  void useAutoclear(bool useAutoclear);
33  QHash<QString, QString> getProfiles();
34  void wizard();
35  void genKey(QString, QDialog *);
36  bool hideOnClose();
37  void useTrayIcon(bool useTrayIdon);
38  void useGit(bool useGit);
39  void useOtp(bool useOtp);
40  void setPwgenPath(QString);
41  void usePwgen(bool usePwgen);
44  void useTemplate(bool useTemplate);
46 protected:
47  void closeEvent(QCloseEvent *event);
49 private slots:
50  void on_accepted();
51  void on_radioButtonNative_clicked();
52  void on_radioButtonPass_clicked();
53  void on_toolButtonGit_clicked();
54  void on_toolButtonGpg_clicked();
55  void on_toolButtonPwgen_clicked();
56  void on_toolButtonPass_clicked();
57  void on_toolButtonStore_clicked();
58  void on_comboBoxClipboard_activated(int);
59  void on_passwordCharTemplateSelector_activated(int);
60  void on_checkBoxSelection_clicked();
61  void on_checkBoxAutoclear_clicked();
62  void on_checkBoxAutoclearPanel_clicked();
63  void on_addButton_clicked();
64  void on_deleteButton_clicked();
65  void on_checkBoxUseTrayIcon_clicked();
66  void on_checkBoxUseGit_clicked();
67  void on_checkBoxUsePwgen_clicked();
68  void on_checkBoxUseTemplate_clicked();
70 private:
71  QScopedPointer<Ui::ConfigDialog> ui;
73  void setGitPath(QString);
74  void setProfiles(QHash<QString, QString>, QString);
75  void usePass(bool usePass);
77  void setGroupBoxState();
78  QString selectExecutable();
79  QString selectFolder();
80  // QMessageBox::critical with hack to avoid crashes with
81  // Qt 5.4.1 when QApplication::exec was not yet called
82  void criticalMessage(const QString &title, const QString &text);
84  MainWindow *mainWindow;
85 };
87 #endif // CONFIGDIALOG_H_
QHash< QString, QString > getProfiles()
ConfigDialog::getProfiles return profile list.
void setPasswordConfiguration(const PasswordConfiguration &config)
ConfigDialog::~ConfigDialog config destructor, makes sure the mainWindow knows about git...
bool hideOnClose()
ConfigDialog::hideOnClose return preference for hiding instead of closing (quitting) application...
void useOtp(bool useOtp)
ConfigDialog::useOtp set preference for using otp plugin.
Holds the Password configuration settings.
Definition: configdialog.h:9
ConfigDialog(MainWindow *parent)
ConfigDialog::ConfigDialog this sets up the configuration screen.
void useGit(bool useGit)
ConfigDialog::useGit set preference for using git.
void useAutoclearPanel(bool useAutoclearPanel)
ConfigDialog::useAutoclearPanel set the panel autoclear use from MainWindow.
void useAutoclear(bool useAutoclear)
ConfigDialog::useAutoclear set the clipboard autoclear use from MainWindow.
void genKey(QString, QDialog *)
ConfigDialog::genKey tunnel function to make MainWindow generate a gpg key pair.
void wizard()
ConfigDialog::wizard first-time use wizard.
void closeEvent(QCloseEvent *event)
ConfigDialog::closeEvent close this window.
void usePwgen(bool usePwgen)
ConfigDialog::usePwgen set preference for using pwgen (can be overruled buy empty pwgenPath)...
void useSelection(bool useSelection)
ConfigDialog::useSelection set the clipboard type use from MainWindow.
void useTemplate(bool useTemplate)
ConfigDialog::useTemplate set preference for using templates.
The ConfigDialog handles the configuration interface.
Definition: configdialog.h:23
Stores key info lines including validity, creation date and more.
Definition: userinfo.h:11
PasswordConfiguration getPasswordConfiguration()
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more...
Definition: mainwindow.h:38
void setPwgenPath(QString)
ConfigDialog::setPwgenPath set pwgen executable path. Enable or disable related options in the interf...
void useTrayIcon(bool useTrayIdon)
ConfigDialog::useTrayIcon set preference for using trayicon. Enable or disable related checkboxes acc...