Changeset View
Changeset View
Standalone View
Standalone View
ui/signatureguiutils.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2018 by Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> * | ||||
3 | * * | ||||
4 | * This program is free software; you can redistribute it and/or modify * | ||||
5 | * it under the terms of the GNU General Public License as published by * | ||||
6 | * the Free Software Foundation; either version 2 of the License, or * | ||||
7 | * (at your option) any later version. * | ||||
8 | ***************************************************************************/ | ||||
9 | | ||||
10 | #ifndef OKULAR_SIGNATUREGUIUTILS_H | ||||
11 | #define OKULAR_SIGNATUREGUIUTILS_H | ||||
12 | | ||||
13 | #include <QString> | ||||
14 | | ||||
15 | #include "core/signatureutils.h" | ||||
16 | | ||||
17 | namespace Okular { | ||||
18 | class Document; | ||||
19 | class FormFieldSignature; | ||||
20 | } | ||||
21 | | ||||
22 | namespace SignatureGuiUtils { | ||||
23 | /** | ||||
24 | * Returns a vector containing signature form fields. If @p allPages is true then all signature form fields in the | ||||
25 | * document are returned otherwise the fields in page number @p pageNum are returned. | ||||
26 | */ | ||||
27 | QVector<Okular::FormFieldSignature*> getSignatureFormFields( Okular::Document *doc, bool allPages, int pageNum ); | ||||
28 | QString getReadableSignatureStatus( Okular::SignatureInfo::SignatureStatus sigStatus ); | ||||
29 | QString getReadableCertStatus( Okular::SignatureInfo::CertificateStatus certStatus ); | ||||
30 | QString getReadableHashAlgorithm( Okular::SignatureInfo::HashAlgorithm hashAlg ); | ||||
31 | QString getReadablePublicKeyType( Okular::CertificateInfo::PublicKeyType type ); | ||||
32 | QString getReadableKeyUsage( Okular::CertificateInfo::KeyUsageExtensions kuExtensions ); | ||||
33 | } | ||||
34 | | ||||
35 | #endif |