File indexing completed on 2024-05-19 04:35:22
0001 /* 0002 SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _OKULAR_GENERATOR_PDF_SIGNATUREUTILS_H_ 0008 #define _OKULAR_GENERATOR_PDF_SIGNATUREUTILS_H_ 0009 0010 #include <poppler-form.h> 0011 #include <poppler-version.h> 0012 #define POPPLER_VERSION_MACRO ((POPPLER_VERSION_MAJOR << 16) | (POPPLER_VERSION_MINOR << 8) | (POPPLER_VERSION_MICRO)) 0013 0014 #include "core/signatureutils.h" 0015 0016 Okular::SignatureInfo fromPoppler(const Poppler::SignatureValidationInfo &info); 0017 Okular::CertificateInfo fromPoppler(const Poppler::CertificateInfo &info); 0018 0019 class PopplerCertificateStore : public Okular::CertificateStore 0020 { 0021 public: 0022 ~PopplerCertificateStore() override; 0023 0024 QList<Okular::CertificateInfo> signingCertificates(bool *userCancelled) const override; 0025 }; 0026 0027 #endif