QtPass 1.7.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)
 Construct a ConfigDialog associated with the given main window.
void useSelection (bool useSelection)
 Enable or disable clipboard selection mode.
void useAutoclear (bool useAutoclear)
 Enable or disable autoclear of the clipboard.
void useAutoclearPanel (bool useAutoclearPanel)
 Enable or disable autoclear of the panel.
auto getProfiles () -> QHash< QString, QHash< QString, QString > >
 Return all configured profiles.
void wizard ()
 Run the first-time setup wizard.
void genKey (const QString &batch, QDialog *dialog)
 Start GPG key generation.
void useTrayIcon (bool useSystray)
 Show or hide the system tray icon.
void useGit (bool useGit)
 Enable or disable git integration.
void useOtp (bool useOtp)
 Enable or disable OTP support.
void useGrepSearch (bool useGrepSearch)
 Enable or disable grep content search.
void useQrencode (bool useQrencode)
 Enable or disable QR code display.
void setPwgenPath (const QString &path)
 Set the path to the pwgen executable.
void usePwgen (bool usePwgen)
 Enable or disable pwgen-based password generation.
void setPasswordConfiguration (const PasswordConfiguration &config)
 Apply a password configuration to the dialog controls.
auto getPasswordConfiguration () -> PasswordConfiguration
 Read the current password configuration from the dialog controls.
void useTemplate (bool useTemplate)
 Enable or disable password file templating.

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 Save settings and clean up on close.

Detailed Description

The ConfigDialog handles the configuration interface.

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.

Definition at line 29 of file configdialog.h.

Constructor & Destructor Documentation

◆ ConfigDialog()

ConfigDialog::ConfigDialog ( MainWindow * parent)
explicit

Construct a ConfigDialog associated with the given main window.

Parameters
parentThe application's MainWindow.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ closeEvent()

void ConfigDialog::closeEvent ( QCloseEvent * event)
overrideprotected

Save settings and clean up on close.

Parameters
eventThe close event.

◆ genKey()

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

Start GPG key generation.

Parameters
batchGPG batch parameter string.
dialogParent dialog to return to after generation.

◆ getPasswordConfiguration()

auto ConfigDialog::getPasswordConfiguration ( ) -> PasswordConfiguration

Read the current password configuration from the dialog controls.

Returns
Current PasswordConfiguration.

◆ getProfiles()

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

Return all configured profiles.

Returns
Hash of profile name to key-value settings map.

◆ setPasswordConfiguration()

void ConfigDialog::setPasswordConfiguration ( const PasswordConfiguration & config)

Apply a password configuration to the dialog controls.

Parameters
configConfiguration to display.

◆ setPwgenPath()

void ConfigDialog::setPwgenPath ( const QString & path)

Set the path to the pwgen executable.

Parameters
pathPath to pwgen.

◆ useAutoclear()

void ConfigDialog::useAutoclear ( bool useAutoclear)

Enable or disable autoclear of the clipboard.

Parameters
useAutocleartrue to enable autoclear.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useAutoclearPanel()

void ConfigDialog::useAutoclearPanel ( bool useAutoclearPanel)

Enable or disable autoclear of the panel.

Parameters
useAutoclearPaneltrue to enable panel autoclear.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useGit()

void ConfigDialog::useGit ( bool useGit)

Enable or disable git integration.

Parameters
useGittrue to enable git.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useGrepSearch()

void ConfigDialog::useGrepSearch ( bool useGrepSearch)

Enable or disable grep content search.

Parameters
useGrepSearchtrue to enable grep search.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useOtp()

void ConfigDialog::useOtp ( bool useOtp)

Enable or disable OTP support.

Parameters
useOtptrue to enable OTP.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usePwgen()

void ConfigDialog::usePwgen ( bool usePwgen)

Enable or disable pwgen-based password generation.

Parameters
usePwgentrue to use pwgen.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useQrencode()

void ConfigDialog::useQrencode ( bool useQrencode)

Enable or disable QR code display.

Parameters
useQrencodetrue to enable qrencode.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useSelection()

void ConfigDialog::useSelection ( bool useSelection)

Enable or disable clipboard selection mode.

Parameters
useSelectiontrue to enable selection mode.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useTemplate()

void ConfigDialog::useTemplate ( bool useTemplate)

Enable or disable password file templating.

Parameters
useTemplatetrue to enable the template.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useTrayIcon()

void ConfigDialog::useTrayIcon ( bool useSystray)

Show or hide the system tray icon.

Parameters
useSystraytrue to enable the tray icon.

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