Libkleo

auditlogviewer.h
1/*
2 SPDX-FileCopyrightText: 2015-2021 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kleo_export.h"
10
11#include <QDialog>
12
13class QTextEdit;
14
15namespace Kleo
16{
17class AuditLogEntry;
18
19class KLEO_EXPORT AuditLogViewer : public QDialog
20{
21 Q_OBJECT
22public:
23 explicit AuditLogViewer(const QString &log, QWidget *parent = nullptr);
24
25 ~AuditLogViewer() override;
26
27 static void showAuditLog(QWidget *parent, const AuditLogEntry &auditLog, const QString &title = {});
28
29 void setAuditLog(const QString &log);
30
31private Q_SLOTS:
32 void slotSaveAs();
33 void slotCopyClip();
34
35private:
36 void writeConfig();
37 void readConfig();
38
39 QString m_log;
40 QTextEdit *m_textEdit = nullptr;
41};
42
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:50:31 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.