Libkleo

expirycheckerconfig.cpp
1/*
2 kleo/expirycheckerconfig.cpp
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#include <config-libkleo.h>
12
13#include "expirycheckerconfig.h"
14
15#include "expirycheckersettings.h"
16
17using namespace Kleo;
18
19ExpiryCheckerSettings ExpiryCheckerConfig::settings() const
20{
21 using days = Kleo::chrono::days;
22 return ExpiryCheckerSettings{days{ownKeyThresholdInDays()},
23 days{otherKeyThresholdInDays()},
24 days{rootCertificateThresholdInDays()},
25 days{intermediateCertificateThresholdInDays()}};
26}
27
28const KConfigSkeletonItem *ExpiryCheckerConfig::ownKeyThresholdInDaysItem() const
29{
30 return findItem(QStringLiteral("ownKeyThresholdInDays"));
31}
32
33const KConfigSkeletonItem *ExpiryCheckerConfig::otherKeyThresholdInDaysItem() const
34{
35 return findItem(QStringLiteral("otherKeyThresholdInDays"));
36}
37
38const KConfigSkeletonItem *ExpiryCheckerConfig::rootCertificateThresholdInDaysItem() const
39{
40 return findItem(QStringLiteral("rootCertificateThresholdInDays"));
41}
42
43const KConfigSkeletonItem *ExpiryCheckerConfig::intermediateCertificateThresholdInDaysItem() const
44{
45 return findItem(QStringLiteral("intermediateCertificateThresholdInDays"));
46}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.