QtPass  1.2.3
Multi-platform GUI for pass, the standard unix password manager.
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. More...
 
 ~ConfigDialog ()
 ConfigDialog::~ConfigDialog config destructor, makes sure the mainWindow knows about git, gpg and pass executables. More...
 
void useSelection (bool useSelection)
 ConfigDialog::useSelection set the clipboard type use from MainWindow. More...
 
void useAutoclear (bool useAutoclear)
 ConfigDialog::useAutoclear set the clipboard autoclear use from MainWindow. More...
 
void useAutoclearPanel (bool useAutoclearPanel)
 ConfigDialog::useAutoclearPanel set the panel autoclear use from MainWindow. More...
 
QHash< QString, QString > getProfiles ()
 ConfigDialog::getProfiles return profile list. More...
 
void wizard ()
 ConfigDialog::wizard first-time use wizard. More...
 
void genKey (QString, QDialog *)
 ConfigDialog::genKey tunnel function to make MainWindow generate a gpg key pair. More...
 
void useTrayIcon (bool useTrayIdon)
 ConfigDialog::useTrayIcon set preference for using trayicon. Enable or disable related checkboxes accordingly. More...
 
void useGit (bool useGit)
 ConfigDialog::useGit set preference for using git. More...
 
void useOtp (bool useOtp)
 ConfigDialog::useOtp set preference for using otp plugin. More...
 
void setPwgenPath (QString)
 ConfigDialog::setPwgenPath set pwgen executable path. Enable or disable related options in the interface. More...
 
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. More...
 
void setPasswordConfiguration (const PasswordConfiguration &config)
 
PasswordConfiguration getPasswordConfiguration ()
 
void useTemplate (bool useTemplate)
 ConfigDialog::useTemplate set preference for using templates. More...
 

Protected Member Functions

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

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 25 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 125 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 668 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 439 of file configdialog.cpp.

+ Here is the call graph for this function:

◆ getPasswordConfiguration()

PasswordConfiguration ConfigDialog::getPasswordConfiguration ( )

Definition at line 767 of file configdialog.cpp.

◆ getProfiles()

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

ConfigDialog::getProfiles return profile list.

Returns

Definition at line 477 of file configdialog.cpp.

◆ setPasswordConfiguration()

void ConfigDialog::setPasswordConfiguration ( const PasswordConfiguration config)

Definition at line 758 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 720 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 401 of file configdialog.cpp.

+ 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 411 of file configdialog.cpp.

+ 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 677 of file configdialog.cpp.

+ 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 686 of file configdialog.cpp.

+ 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 751 of file configdialog.cpp.

+ 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 391 of file configdialog.cpp.

+ 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 811 of file configdialog.cpp.

+ 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 641 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 559 of file configdialog.cpp.

+ Here is the call graph for this function:

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