AusweisApp2/src/settings/PreVerificationSettings.h

47 lines
1010 B
C
Raw Normal View History

2017-07-03 09:30:10 +02:00
/*!
* \brief Settings to handle PreVerification and the corresponding linked certificates.
*
2018-03-28 15:10:51 +02:00
* \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany
2017-07-03 09:30:10 +02:00
*/
#pragma once
#include "AbstractSettings.h"
#include <QByteArrayList>
class test_PreVerificationSettings;
class test_StatePreVerification;
namespace governikus
{
class PreVerificationSettings
: public AbstractSettings
{
Q_OBJECT
friend class AppSettings;
2017-09-15 10:23:30 +02:00
friend class ::test_PreVerificationSettings;
friend class ::test_StatePreVerification;
2017-07-03 09:30:10 +02:00
private:
2017-12-20 14:54:05 +01:00
QSharedPointer<QSettings> mStore;
2017-07-03 09:30:10 +02:00
PreVerificationSettings();
2017-12-20 14:54:05 +01:00
void updateLinkCertificates(const QByteArrayList& pLinkCertificates);
2017-07-03 09:30:10 +02:00
public:
2017-12-20 14:54:05 +01:00
virtual ~PreVerificationSettings() override;
2017-07-03 09:30:10 +02:00
virtual void save() override;
bool isEnabled() const;
void setEnabled(bool pEnabled);
2017-12-20 14:54:05 +01:00
QByteArrayList getLinkCertificates() const;
void removeLinkCertificate(const QByteArray& pCert);
void addLinkCertificate(const QByteArray& pCert);
2017-07-03 09:30:10 +02:00
};
} /* namespace governikus */