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

The secret keys gpg knows; a new pair can be generated here. The enabled ones become the recipients of a store that still has to be initialised. More...

#include <firstrunwizard.h>

Inheritance diagram for KeyWizardPage:
Collaboration diagram for KeyWizardPage:

Public Member Functions

 KeyWizardPage (FirstRunWizard *wizard)
 Build the page.
void initializePage () override
 List the secret keys for the gpg chosen on the previous page.
auto isComplete () const -> bool override
 Always passable: an existing store needs no recipient choice here (and its key may not be imported yet); the store page insists on a ticked key when it has to initialise.
auto validatePage () -> bool override
 Remember which keys are enabled.

Private Member Functions

void reload ()
 List the secret keys of the chosen gpg into the wizard and the widget, ticking every usable key and greying out expired or invalid ones.
void generate ()
 Run KeygenDialog on a private ImitatePass built from the wizard's settings, so the chosen gpg is used and nothing is saved, then reload().

Private Attributes

FirstRunWizard * m_wizard
 Owner; holds the key list this page fills.
QListWidget * m_list
 One checkable row per secret key.
QPushButton * m_generate
 Opens KeygenDialog.
QLabel * m_status
 Says so when gpg has no secret key yet.

Detailed Description

The secret keys gpg knows; a new pair can be generated here. The enabled ones become the recipients of a store that still has to be initialised.

Definition at line 165 of file firstrunwizard.h.

Constructor & Destructor Documentation

◆ KeyWizardPage()

KeyWizardPage::KeyWizardPage ( FirstRunWizard * wizard)
explicit

Build the page.

Parameters
wizardOwner.

Definition at line 291 of file firstrunwizard.cpp.

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

Member Function Documentation

◆ generate()

void KeyWizardPage::generate ( )
private

Run KeygenDialog on a private ImitatePass built from the wizard's settings, so the chosen gpg is used and nothing is saved, then reload().

Definition at line 345 of file firstrunwizard.cpp.

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

◆ initializePage()

void KeyWizardPage::initializePage ( )
override

List the secret keys for the gpg chosen on the previous page.

Definition at line 312 of file firstrunwizard.cpp.

Here is the call graph for this function:

◆ isComplete()

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

Always passable: an existing store needs no recipient choice here (and its key may not be imported yet); the store page insists on a ticked key when it has to initialise.

Returns
true.

Definition at line 356 of file firstrunwizard.cpp.

◆ reload()

void KeyWizardPage::reload ( )
private

List the secret keys of the chosen gpg into the wizard and the widget, ticking every usable key and greying out expired or invalid ones.

Definition at line 314 of file firstrunwizard.cpp.

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

◆ validatePage()

auto KeyWizardPage::validatePage ( ) -> bool
override

Remember which keys are enabled.

Returns
Always true.

Definition at line 358 of file firstrunwizard.cpp.

Member Data Documentation

◆ m_generate

QPushButton* KeyWizardPage::m_generate
private

Opens KeygenDialog.

Definition at line 194 of file firstrunwizard.h.

◆ m_list

QListWidget* KeyWizardPage::m_list
private

One checkable row per secret key.

Definition at line 193 of file firstrunwizard.h.

◆ m_status

QLabel* KeyWizardPage::m_status
private

Says so when gpg has no secret key yet.

Definition at line 195 of file firstrunwizard.h.

◆ m_wizard

FirstRunWizard* KeyWizardPage::m_wizard
private

Owner; holds the key list this page fills.

Definition at line 192 of file firstrunwizard.h.


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