File indexing completed on 2025-01-26 04:52:43
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 core/selectcertificatecommand.h 0003 0004 This file is part of KleopatraClient, the Kleopatra interface library 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <libkleopatraclient/core/command.h> 0013 0014 namespace KleopatraClientCopy 0015 { 0016 0017 class KLEOPATRACLIENTCORE_EXPORT SelectCertificateCommand : public Command 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit SelectCertificateCommand(QObject *parent = nullptr); 0022 ~SelectCertificateCommand() override; 0023 0024 // Inputs 0025 0026 void setMultipleCertificatesAllowed(bool allow); 0027 bool multipleCertificatesAllowed() const; 0028 0029 void setOnlySigningCertificatesAllowed(bool allow); 0030 bool onlySigningCertificatesAllowed() const; 0031 0032 void setOnlyEncryptionCertificatesAllowed(bool allow); 0033 bool onlyEncryptionCertificatesAllowed() const; 0034 0035 void setOnlyOpenPGPCertificatesAllowed(bool allow); 0036 bool onlyOpenPGPCertificatesAllowed() const; 0037 0038 void setOnlyX509CertificatesAllowed(bool allow); 0039 bool onlyX509CertificatesAllowed() const; 0040 0041 void setOnlySecretKeysAllowed(bool allow); 0042 bool onlySecretKeysAllowed() const; 0043 0044 // Input/Outputs 0045 0046 void setSelectedCertificates(const QStringList &certs); 0047 QStringList selectedCertificates() const; 0048 0049 void setSelectedCertificate(const QString &cert); 0050 QString selectedCertificate() const; 0051 }; 0052 0053 }