You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
911 B
35 lines
911 B
/* |
|
SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#ifndef OKULAR_SIGNATUREPARTUTILS_H |
|
#define OKULAR_SIGNATUREPARTUTILS_H |
|
|
|
#include <memory> |
|
#include <optional> |
|
|
|
#include "gui/signatureguiutils.h" |
|
|
|
class PageView; |
|
|
|
namespace SignaturePartUtils |
|
{ |
|
struct SigningInformation { |
|
std::unique_ptr<Okular::CertificateInfo> certificate; |
|
QString certificatePassword; |
|
QString documentPassword; |
|
}; |
|
|
|
/** Retrieves signing information for this operation |
|
\return nullopt on failure, otherwise information |
|
*/ |
|
std::optional<SigningInformation> getCertificateAndPasswordForSigning(PageView *pageView, Okular::Document *doc); |
|
|
|
QString getFileNameForNewSignedFile(PageView *pageView, Okular::Document *doc); |
|
void signUnsignedSignature(const Okular::FormFieldSignature *form, PageView *pageView, Okular::Document *doc); |
|
|
|
} |
|
|
|
#endif
|
|
|