47 lines
1010 B
C++
47 lines
1010 B
C++
/*!
|
|
* \brief Settings to handle PreVerification and the corresponding linked certificates.
|
|
*
|
|
* \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "AbstractSettings.h"
|
|
|
|
#include <QByteArrayList>
|
|
|
|
class test_PreVerificationSettings;
|
|
class test_StatePreVerification;
|
|
|
|
namespace governikus
|
|
{
|
|
|
|
class PreVerificationSettings
|
|
: public AbstractSettings
|
|
{
|
|
Q_OBJECT
|
|
|
|
friend class AppSettings;
|
|
friend class ::test_PreVerificationSettings;
|
|
friend class ::test_StatePreVerification;
|
|
|
|
private:
|
|
QSharedPointer<QSettings> mStore;
|
|
|
|
PreVerificationSettings();
|
|
void updateLinkCertificates(const QByteArrayList& pLinkCertificates);
|
|
|
|
public:
|
|
virtual ~PreVerificationSettings() override;
|
|
virtual void save() override;
|
|
|
|
bool isEnabled() const;
|
|
void setEnabled(bool pEnabled);
|
|
QByteArrayList getLinkCertificates() const;
|
|
void removeLinkCertificate(const QByteArray& pCert);
|
|
void addLinkCertificate(const QByteArray& pCert);
|
|
};
|
|
|
|
|
|
} /* namespace governikus */
|