Libkleo

auditlogentry.h
1/* -*- mode: c++; c-basic-offset:4 -*-
2 kleo/auditlogentry.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
6 SPDX-FileCopyrightText: 2022 g10 Code GmbH
7 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
8
9 SPDX-License-Identifier: GPL-2.0-or-later
10*/
11
12#pragma once
13
14#include "kleo_export.h"
15
16#include <memory>
17
18class QDebug;
19class QString;
20class QUrl;
21
22namespace GpgME
23{
24class Error;
25}
26namespace QGpgME
27{
28class Job;
29}
30
31namespace Kleo
32{
33
34class KLEO_EXPORT AuditLogEntry
35{
36public:
37 AuditLogEntry();
38 explicit AuditLogEntry(const GpgME::Error &error);
39 AuditLogEntry(const QString &text, const GpgME::Error &error);
40 ~AuditLogEntry();
41
42 AuditLogEntry(const AuditLogEntry &other);
43 AuditLogEntry &operator=(const AuditLogEntry &other);
44
45 AuditLogEntry(AuditLogEntry &&other);
46 AuditLogEntry &operator=(AuditLogEntry &&other);
47
48 static AuditLogEntry fromJob(const QGpgME::Job *);
49
50 GpgME::Error error() const;
51 QString text() const;
52
53 QUrl asUrl(const QUrl &urlTemplate) const;
54
55private:
56 class Private;
57 std::unique_ptr<Private> d;
58};
59
60}
61
62KLEO_EXPORT QDebug operator<<(QDebug debug, const Kleo::AuditLogEntry &auditLog);
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QDebug operator<<(QDebug dbg, const PerceptualColor::LchaDouble &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:11 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.