QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
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 ()
 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.
 
QHash< QString, QHash< QString, QString > > getProfiles ()
 ConfigDialog::getProfiles return profile list.
 
void wizard ()
 ConfigDialog::wizard first-time use wizard.
 
void genKey (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::useOtp set preference for using otp plugin.
 
void setPwgenPath (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 buy empty pwgenPath). enable or disable related options in the interface via ConfigDialog::on_checkBoxUsePwgen_clicked.
 
void setPasswordConfiguration (const PasswordConfiguration &config)
 
PasswordConfiguration getPasswordConfiguration ()
 
void useTemplate (bool useTemplate)
 ConfigDialog::useTemplate set preference for using templates.
 

Protected Member Functions

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

Detailed Description

The ConfigDialog handles the configuration interface.

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

Definition at line 24 of file configdialog.h.

Constructor & Destructor Documentation

◆ ConfigDialog()

ConfigDialog::ConfigDialog ( MainWindow parent)
explicit

ConfigDialog::ConfigDialog this sets up the configuration screen.

Parameters
parent

Definition at line 26 of file configdialog.cpp.

+ Here is the call graph for this function:

◆ ~ConfigDialog()

ConfigDialog::~ConfigDialog ( )

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

Definition at line 137 of file configdialog.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ closeEvent()

void ConfigDialog::closeEvent ( QCloseEvent *  event)
protected

ConfigDialog::closeEvent close this window.

Parameters
event

Definition at line 720 of file configdialog.cpp.

◆ genKey()

void ConfigDialog::genKey ( 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

Definition at line 455 of file configdialog.cpp.

+ Here is the call graph for this function:

◆ getPasswordConfiguration()

PasswordConfiguration ConfigDialog::getPasswordConfiguration ( )

Definition at line 827 of file configdialog.cpp.

◆ getProfiles()

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

ConfigDialog::getProfiles return profile list.

Returns

Definition at line 496 of file configdialog.cpp.

◆ setPasswordConfiguration()

void ConfigDialog::setPasswordConfiguration ( const PasswordConfiguration config)

Definition at line 818 of file configdialog.cpp.

+ Here is the caller graph for this function:

◆ setPwgenPath()

void ConfigDialog::setPwgenPath ( QString  pwgen)

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

Parameters
pwgen

Definition at line 780 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

Definition at line 417 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

Definition at line 427 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

Definition at line 729 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

Definition at line 738 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 buy empty pwgenPath). enable or disable related options in the interface via ConfigDialog::on_checkBoxUsePwgen_clicked.

Parameters
usePwgen

Definition at line 811 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::useOtp set preference for using otp plugin.

Parameters
useOtp

Definition at line 746 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

Definition at line 407 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

Definition at line 871 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

Definition at line 693 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.

Definition at line 594 of file configdialog.cpp.

+ Here is the call graph for this function:

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