Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34109735
certifywidget.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
certifywidget.h
View Options
#pragma once
/* dialogs/certifywidget.cpp
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2019 g 10code GmbH
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include
<QWidget>
#include
<memory>
#include
<vector>
namespace
GpgME
{
class
Key
;
class
UserID
;
}
// namespace GpgME
namespace
Kleo
{
/** Widget for OpenPGP certification. */
class
CertifyWidget
:
public
QWidget
{
Q_OBJECT
public
:
explicit
CertifyWidget
(
QWidget
*
parent
=
nullptr
);
~
CertifyWidget
()
override
;
/* Set the key to certify */
void
setCertificate
(
const
GpgME
::
Key
&
key
,
const
std
::
vector
<
GpgME
::
UserID
>
&
uids
);
/* Get the key to certify */
GpgME
::
Key
certificate
()
const
;
/* Sets the certificates to certify. Use for bulk certification. */
void
setCertificates
(
const
std
::
vector
<
GpgME
::
Key
>
&
keys
);
std
::
vector
<
GpgME
::
Key
>
certificates
()
const
;
/* Select specific user IDs. Default: all */
void
selectUserIDs
(
const
std
::
vector
<
GpgME
::
UserID
>
&
uids
);
/* The user IDs that should be signed */
std
::
vector
<
GpgME
::
UserID
>
selectedUserIDs
()
const
;
/* The secret key selected */
GpgME
::
Key
secKey
()
const
;
/* Should the signature be exportable */
bool
exportableSelected
()
const
;
/* Additional tags for the key */
QString
tags
()
const
;
/* Should the signed key be be published */
bool
publishSelected
()
const
;
/* Whether a trust signature should be created */
bool
trustSignatureSelected
()
const
;
/* The domain to use to limit the scope of the trust signature */
QString
trustSignatureDomain
()
const
;
/* The expiration date to use for the certification */
QDate
expirationDate
()
const
;
bool
isValid
()
const
;
void
saveState
()
const
;
Q_SIGNALS
:
void
changed
()
const
;
private
:
class
Private
;
std
::
unique_ptr
<
Private
>
d
;
};
}
// namespace Kleo
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Dec 5, 4:44 AM (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c0/7b/7e275591e9b7c9f5e083fe7bfec4
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment