3#ifndef SRC_CONFIGDIALOG_H_
4#define SRC_CONFIGDIALOG_H_
25class QTableWidgetItem;
44 auto getProfiles() -> QHash<QString, QHash<QString, QString>>;
46 void genKey(
const QString &, QDialog *);
62 void on_autodetectButton_clicked();
63 void on_radioButtonNative_clicked();
64 void on_radioButtonPass_clicked();
65 void on_toolButtonGit_clicked();
66 void on_toolButtonGpg_clicked();
67 void on_pushButtonGenerateKey_clicked();
68 void on_toolButtonPwgen_clicked();
69 void on_toolButtonPass_clicked();
70 void on_toolButtonStore_clicked();
71 void on_comboBoxClipboard_activated(
int);
72 void on_passwordCharTemplateSelector_activated(
int);
73 void on_checkBoxSelection_clicked();
74 void on_checkBoxAutoclear_clicked();
75 void on_checkBoxAutoclearPanel_clicked();
76 void on_addButton_clicked();
77 void on_deleteButton_clicked();
78 void on_checkBoxUseTrayIcon_clicked();
79 void on_checkBoxUseGit_clicked();
80 void on_checkBoxUsePwgen_clicked();
81 void on_checkBoxUseTemplate_clicked();
82 void onProfileTableItemChanged(QTableWidgetItem *item);
85 QScopedPointer<Ui::ConfigDialog> ui;
87 auto getSecretKeys() -> QStringList;
89 void setGitPath(
const QString &);
90 void setProfiles(QHash<QString, QHash<QString, QString>>,
const QString &);
91 void usePass(
bool usePass);
93 void setGroupBoxState();
94 auto selectExecutable() -> QString;
95 auto selectFolder() -> QString;
98 void criticalMessage(
const QString &title,
const QString &text);
100 auto isPassOtpAvailable() -> bool;
101 auto isQrencodeAvailable() -> bool;
102 void validate(QTableWidgetItem *item =
nullptr);
104 auto checkGpgExistence() -> bool;
105 auto checkSecretKeys() -> bool;
106 auto checkPasswordStore() -> bool;
107 void handleGpgIdFile();
The ConfigDialog handles the configuration interface.
void setPasswordConfiguration(const PasswordConfiguration &config)
auto getProfiles() -> QHash< QString, QHash< QString, QString > >
ConfigDialog::getProfiles return profile list.
~ConfigDialog() override
ConfigDialog::~ConfigDialog config destructor, makes sure the mainWindow knows about git,...
void useOtp(bool useOtp)
ConfigDialog::useOtp set preference for using otp plugin.
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 useQrencode(bool useQrencode)
ConfigDialog::useQrencode set preference for using qrencode plugin.
void useTemplate(bool useTemplate)
ConfigDialog::useTemplate set preference for using templates.
ConfigDialog(MainWindow *parent)
ConfigDialog::ConfigDialog this sets up the configuration screen.
void setPwgenPath(const QString &)
ConfigDialog::setPwgenPath set pwgen executable path. Enable or disable related options in the interf...
auto getPasswordConfiguration() -> PasswordConfiguration
void useTrayIcon(bool useSystray)
ConfigDialog::useTrayIcon set preference for using trayicon. Enable or disable related checkboxes acc...
void usePwgen(bool usePwgen)
ConfigDialog::usePwgen set preference for using pwgen (can be overruled by empty pwgenPath)....
void wizard()
ConfigDialog::wizard first-time use wizard.
void closeEvent(QCloseEvent *event) override
ConfigDialog::closeEvent close this window.
void useSelection(bool useSelection)
ConfigDialog::useSelection set the clipboard type use from MainWindow.
void genKey(const QString &, QDialog *)
ConfigDialog::genKey tunnel function to make MainWindow generate a gpg key pair.
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more,...
Holds the Password configuration settings.
Stores key info lines including validity, creation date and more.