QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
StoreWizardPage Class Reference

The folder the passwords live in: an existing store is used as-is, a folder without .gpg-id (or no folder) is initialised on Finish. The Git box lives here because its sensible default depends on the folder: on for a repository or a store still to be created, off for an existing store that is no repository. More...

#include <firstrunwizard.h>

Inheritance diagram for StoreWizardPage:
Collaboration diagram for StoreWizardPage:

Public Member Functions

 StoreWizardPage (FirstRunWizard *wizard)
 Build the page.
void initializePage () override
 Show the configured store path.
auto isComplete () const -> bool override
 Whether a path is given and, for a folder that is not a store yet, at least one key was ticked to encrypt it to.
auto validatePage () -> bool override
 Store the path and the Git choice.

Private Member Functions

auto recipients () const -> int
 How many keys are ticked on the key page.
void updateStatus ()
 After an edit: describe the folder (existing store with its entry count, empty folder, not a store yet, missing) and ask for a ticked key when it has to be initialised, then re-evaluate isComplete().

Private Attributes

FirstRunWizard * m_wizard
 Owner; its settings get the path and flag.
QLineEdit * m_path
 The store folder, in native separators.
QCheckBox * m_useGit
 Keep the store under Git; off without git.
QLabel * m_status
 What Finish will do with the folder.

Detailed Description

The folder the passwords live in: an existing store is used as-is, a folder without .gpg-id (or no folder) is initialised on Finish. The Git box lives here because its sensible default depends on the folder: on for a repository or a store still to be created, off for an existing store that is no repository.

Definition at line 219 of file firstrunwizard.h.

Constructor & Destructor Documentation

◆ StoreWizardPage()

StoreWizardPage::StoreWizardPage ( FirstRunWizard * wizard)
explicit

Build the page.

Parameters
wizardOwner.

Definition at line 367 of file firstrunwizard.cpp.

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

Member Function Documentation

◆ initializePage()

void StoreWizardPage::initializePage ( )
override

Show the configured store path.

Definition at line 387 of file firstrunwizard.cpp.

Here is the call graph for this function:

◆ isComplete()

auto StoreWizardPage::isComplete ( ) const -> bool
override

Whether a path is given and, for a folder that is not a store yet, at least one key was ticked to encrypt it to.

Returns
true when Finish can do its job.

Definition at line 452 of file firstrunwizard.cpp.

Here is the call graph for this function:

◆ recipients()

auto StoreWizardPage::recipients ( ) const -> int
private

How many keys are ticked on the key page.

Returns
The number of enabled entries in the wizard's key list.

Definition at line 419 of file firstrunwizard.cpp.

Here is the caller graph for this function:

◆ updateStatus()

void StoreWizardPage::updateStatus ( )
private

After an edit: describe the folder (existing store with its entry count, empty folder, not a store yet, missing) and ask for a ticked key when it has to be initialised, then re-evaluate isComplete().

Definition at line 427 of file firstrunwizard.cpp.

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

◆ validatePage()

auto StoreWizardPage::validatePage ( ) -> bool
override

Store the path and the Git choice.

Returns
Always true.

Definition at line 460 of file firstrunwizard.cpp.

Member Data Documentation

◆ m_path

QLineEdit* StoreWizardPage::m_path
private

The store folder, in native separators.

Definition at line 246 of file firstrunwizard.h.

◆ m_status

QLabel* StoreWizardPage::m_status
private

What Finish will do with the folder.

Definition at line 248 of file firstrunwizard.h.

◆ m_useGit

QCheckBox* StoreWizardPage::m_useGit
private

Keep the store under Git; off without git.

Definition at line 247 of file firstrunwizard.h.

◆ m_wizard

FirstRunWizard* StoreWizardPage::m_wizard
private

Owner; its settings get the path and flag.

Definition at line 245 of file firstrunwizard.h.


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