Warning, file /pim/kleopatra/src/selftest/implementation_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 selftest/implementation_p.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <selftest/selftest.h> 0013 0014 #include <gpgme++/global.h> 0015 0016 #include <QString> 0017 0018 namespace Kleo 0019 { 0020 namespace _detail 0021 { 0022 0023 class SelfTestImplementation : public SelfTest 0024 { 0025 public: 0026 explicit SelfTestImplementation(const QString &name); 0027 ~SelfTestImplementation() override; 0028 0029 QString name() const override 0030 { 0031 return m_name; 0032 } 0033 QString shortError() const override 0034 { 0035 return m_error; 0036 } 0037 QString longError() const override 0038 { 0039 return m_explanation; 0040 } 0041 QString proposedFix() const override 0042 { 0043 return m_proposedFix; 0044 } 0045 0046 bool skipped() const override 0047 { 0048 return m_skipped; 0049 } 0050 bool passed() const override 0051 { 0052 return m_passed; 0053 } 0054 0055 protected: 0056 bool ensureEngineVersion(GpgME::Engine, int major, int minor, int patch); 0057 0058 protected: 0059 const QString m_name; 0060 QString m_error; 0061 QString m_explanation; 0062 QString m_proposedFix; 0063 bool m_skipped : 1; 0064 bool m_passed : 1; 0065 }; 0066 0067 } 0068 }