Search for usage in LXR

Kleo::DefaultKeyGenerationJob Class Reference

#include <defaultkeygenerationjob.h>

Inherits QGpgME::Job.


void result (const GpgME::KeyGenerationResult &result, const QByteArray &pubkeyData, const QString &auditLogAsHtml, const GpgME::Error &auditLogError)

Public Slots

void slotCancel () override

Public Member Functions

 DefaultKeyGenerationJob (QObject *parent=nullptr)
QString auditLogAsHtml () const override
GpgME::Error auditLogError () const override
void setPassphrase (const QString &passphrase)
GpgME::Error start (const QString &email, const QString &name)

Protected Member Functions

bool eventFilter (QObject *watched, QEvent *event) override

Detailed Description

Generates a PGP RSA/2048 bit key pair for given name and email address.


This class is deprecated. GnuPG defaults to ECC keys and RSA 2048 is no longer allowed by some entities. Use QuickJob::startCreate from QGpgME instead.

Definition at line 32 of file defaultkeygenerationjob.h.

Constructor & Destructor Documentation

◆ DefaultKeyGenerationJob()

DefaultKeyGenerationJob::DefaultKeyGenerationJob ( QObject * parent = nullptr)

Definition at line 41 of file defaultkeygenerationjob.cpp.

Member Function Documentation

◆ auditLogAsHtml()

QString DefaultKeyGenerationJob::auditLogAsHtml ( ) const

Definition at line 49 of file defaultkeygenerationjob.cpp.

◆ auditLogError()

GpgME::Error DefaultKeyGenerationJob::auditLogError ( ) const

Definition at line 54 of file defaultkeygenerationjob.cpp.

◆ eventFilter()

bool DefaultKeyGenerationJob::eventFilter ( QObject * watched,
QEvent * event )

Definition at line 113 of file defaultkeygenerationjob.cpp.

◆ setPassphrase()

void DefaultKeyGenerationJob::setPassphrase ( const QString & passphrase)

Set key passphrase.

Use this method to specify custom passphrase, including an empty one. If no passphrase (not even empty) is specified, gpg me will automatically prompt for passphrase using Pinentry dialog.

Definition at line 66 of file defaultkeygenerationjob.cpp.

◆ slotCancel

void DefaultKeyGenerationJob::slotCancel ( )

Definition at line 59 of file defaultkeygenerationjob.cpp.

◆ start()

GpgME::Error DefaultKeyGenerationJob::start ( const QString & email,
const QString & name )

Definition at line 88 of file defaultkeygenerationjob.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:51:37 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.