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...
 
bool hideOnClose ()
 ConfigDialog::hideOnClose return preference for hiding instead of closing (quitting) application. 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 23 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 19 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 94 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 554 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 342 of file configdialog.cpp.

+ Here is the call graph for this function:

◆ getPasswordConfiguration()

PasswordConfiguration ConfigDialog::getPasswordConfiguration ( )

Definition at line 653 of file configdialog.cpp.

◆ getProfiles()

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

ConfigDialog::getProfiles return profile list.

Returns

Definition at line 380 of file configdialog.cpp.

◆ hideOnClose()

bool ConfigDialog::hideOnClose ( )

ConfigDialog::hideOnClose return preference for hiding instead of closing (quitting) application.

Returns

Definition at line 520 of file configdialog.cpp.

◆ setPasswordConfiguration()

void ConfigDialog::setPasswordConfiguration ( const PasswordConfiguration config)

Definition at line 644 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 606 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 304 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 314 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 563 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 572 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 637 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 294 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 693 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 530 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 446 of file configdialog.cpp.

+ Here is the call graph for this function:

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