QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
ConfigDialog Class Reference

The ConfigDialog handles the configuration interface. More...

#include <configdialog.h>

Inheritance diagram for ConfigDialog:
Collaboration diagram for ConfigDialog:

Public Member Functions

 ConfigDialog (MainWindow *parent)
 ConfigDialog::ConfigDialog this sets up the configuration screen.
 ~ConfigDialog () override
 ConfigDialog::~ConfigDialog config destructor, makes sure the mainWindow knows about git, gpg and pass executables.
void useSelection (bool useSelection)
 ConfigDialog::useSelection set the clipboard type use from MainWindow.
void useAutoclear (bool useAutoclear)
 ConfigDialog::useAutoclear set the clipboard autoclear use from MainWindow.
void useAutoclearPanel (bool useAutoclearPanel)
 ConfigDialog::useAutoclearPanel set the panel autoclear use from MainWindow.
auto getProfiles () -> QHash< QString, QHash< QString, QString > >
 ConfigDialog::getProfiles return profile list.
void wizard ()
 ConfigDialog::wizard first-time use wizard.
void genKey (const QString &, QDialog *)
 ConfigDialog::genKey tunnel function to make MainWindow generate a gpg key pair.
void useTrayIcon (bool useSystray)
 ConfigDialog::useTrayIcon set preference for using trayicon. Enable or disable related checkboxes accordingly.
void useGit (bool useGit)
 ConfigDialog::useGit set preference for using git.
void useOtp (bool useOtp)
 ConfigDialog::useOtp set preference for using otp plugin.
void useQrencode (bool useQrencode)
 ConfigDialog::useQrencode set preference for using qrencode plugin.
void setPwgenPath (const QString &)
 ConfigDialog::setPwgenPath set pwgen executable path. Enable or disable related options in the interface.
void usePwgen (bool usePwgen)
 ConfigDialog::usePwgen set preference for using pwgen (can be overruled by empty pwgenPath). enable or disable related options in the interface via ConfigDialog::on_checkBoxUsePwgen_clicked.
void setPasswordConfiguration (const PasswordConfiguration &config)
auto getPasswordConfiguration () -> PasswordConfiguration
void useTemplate (bool useTemplate)
 ConfigDialog::useTemplate set preference for using templates.

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 ConfigDialog::closeEvent close this window.

Detailed Description

The ConfigDialog handles the configuration interface.

Configuration dialog providing UI and accessors for application settings.

Presents controls for profiles, generation tools (pwgen/pass), GPG/git/OTP/qrencode integration, template handling, tray icon and autoclear options, and exposes methods to read and update those settings. Also overrides closeEvent to perform dialog-close handling.

This class should also take the handling from the MainWindow class.

Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 34 of file configdialog.h.

Constructor & Destructor Documentation

◆ ConfigDialog()

ConfigDialog::ConfigDialog ( MainWindow * parent)
explicit

ConfigDialog::ConfigDialog this sets up the configuration screen.

Parameters
parent
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 29 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~ConfigDialog()

ConfigDialog::~ConfigDialog ( )
override

ConfigDialog::~ConfigDialog config destructor, makes sure the mainWindow knows about git, gpg and pass executables.

Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 152 of file configdialog.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ closeEvent()

void ConfigDialog::closeEvent ( QCloseEvent * event)
overrideprotected

ConfigDialog::closeEvent close this window.

Parameters
event
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 874 of file configdialog.cpp.

Here is the call graph for this function:

◆ genKey()

void ConfigDialog::genKey ( const QString & batch,
QDialog * dialog )

ConfigDialog::genKey tunnel function to make MainWindow generate a gpg key pair.

Todo
refactor the process to not be entangled so much.
Parameters
batch
dialog
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 530 of file configdialog.cpp.

◆ getPasswordConfiguration()

auto ConfigDialog::getPasswordConfiguration ( ) -> PasswordConfiguration

◆ getProfiles()

auto ConfigDialog::getProfiles ( ) -> QHash< QString, QHash< QString, QString > >

ConfigDialog::getProfiles return profile list.

Returns
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 570 of file configdialog.cpp.

◆ setPasswordConfiguration()

void ConfigDialog::setPasswordConfiguration ( const PasswordConfiguration & config)
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 978 of file configdialog.cpp.

Here is the caller graph for this function:

◆ setPwgenPath()

void ConfigDialog::setPwgenPath ( const QString & pwgen)

ConfigDialog::setPwgenPath set pwgen executable path. Enable or disable related options in the interface.

Parameters
pwgen
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 939 of file configdialog.cpp.

Here is the caller graph for this function:

◆ useAutoclear()

void ConfigDialog::useAutoclear ( bool useAutoclear)

ConfigDialog::useAutoclear set the clipboard autoclear use from MainWindow.

Parameters
useAutoclear
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 492 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useAutoclearPanel()

void ConfigDialog::useAutoclearPanel ( bool useAutoclearPanel)

ConfigDialog::useAutoclearPanel set the panel autoclear use from MainWindow.

Parameters
useAutoclearPanel
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 502 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useGit()

void ConfigDialog::useGit ( bool useGit)

ConfigDialog::useGit set preference for using git.

Parameters
useGit
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 888 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useOtp()

void ConfigDialog::useOtp ( bool useOtp)

ConfigDialog::useOtp set preference for using otp plugin.

Parameters
useOtp
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 897 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usePwgen()

void ConfigDialog::usePwgen ( bool usePwgen)

ConfigDialog::usePwgen set preference for using pwgen (can be overruled by empty pwgenPath). enable or disable related options in the interface via ConfigDialog::on_checkBoxUsePwgen_clicked.

Parameters
usePwgen
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 970 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useQrencode()

void ConfigDialog::useQrencode ( bool useQrencode)

ConfigDialog::useQrencode set preference for using qrencode plugin.

Parameters
useQrencode
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 905 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useSelection()

void ConfigDialog::useSelection ( bool useSelection)

ConfigDialog::useSelection set the clipboard type use from MainWindow.

Parameters
useSelection
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 482 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useTemplate()

void ConfigDialog::useTemplate ( bool useTemplate)

ConfigDialog::useTemplate set preference for using templates.

Parameters
useTemplate
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 1032 of file configdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ useTrayIcon()

void ConfigDialog::useTrayIcon ( bool useSystray)

ConfigDialog::useTrayIcon set preference for using trayicon. Enable or disable related checkboxes accordingly.

Parameters
useSystray
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 847 of file configdialog.cpp.

Here is the caller graph for this function:

◆ wizard()

void ConfigDialog::wizard ( )

ConfigDialog::wizard first-time use wizard.

Todo
make this thing more reliable.
Examples
/home/annejan/Projects/QtPass/src/configdialog.cpp.

Definition at line 683 of file configdialog.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: