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 
18 class QDebug;
19 class QString;
20 class QUrl;
21 
22 namespace GpgME
23 {
24 class Error;
25 }
26 namespace QGpgME
27 {
28 class Job;
29 }
30 
31 namespace Kleo
32 {
33 
34 class KLEO_EXPORT AuditLogEntry
35 {
36 public:
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 
55 private:
56  class Private;
57  std::unique_ptr<Private> d;
58 };
59 
60 }
61 
62 KLEO_EXPORT QDebug operator<<(QDebug debug, const Kleo::AuditLogEntry &auditLog);
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:56:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.