Libkleo

expirycheckersettings.h
1/*
2 kleo/expirycheckersettings.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2023 g10 Code GmbH
6 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include "kleo_export.h"
14
15#include <Libkleo/Chrono>
16
17#include <memory>
18
19namespace Kleo
20{
21
22class KLEO_EXPORT ExpiryCheckerSettings
23{
24public:
25 ExpiryCheckerSettings(Kleo::chrono::days ownKeyThreshold,
26 Kleo::chrono::days otherKeyThreshold,
27 Kleo::chrono::days rootCertThreshold,
28 Kleo::chrono::days chainCertThreshold);
29 ~ExpiryCheckerSettings();
30
31 ExpiryCheckerSettings(const ExpiryCheckerSettings &other);
32 ExpiryCheckerSettings &operator=(const ExpiryCheckerSettings &other);
33
34 ExpiryCheckerSettings(ExpiryCheckerSettings &&other);
35 ExpiryCheckerSettings &operator=(ExpiryCheckerSettings &&other);
36
37 void setOwnKeyThreshold(Kleo::chrono::days threshold);
38 [[nodiscard]] Kleo::chrono::days ownKeyThreshold() const;
39
40 void setOtherKeyThreshold(Kleo::chrono::days threshold);
41 [[nodiscard]] Kleo::chrono::days otherKeyThreshold() const;
42
43 void setRootCertThreshold(Kleo::chrono::days threshold);
44 [[nodiscard]] Kleo::chrono::days rootCertThreshold() const;
45
46 void setChainCertThreshold(Kleo::chrono::days threshold);
47 [[nodiscard]] Kleo::chrono::days chainCertThreshold() const;
48
49private:
50 class Private;
51 std::unique_ptr<Private> d;
52};
53
54}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:39:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.