File indexing completed on 2025-01-05 04:55:50

0001 /*
0002     messagebox.h
0003 
0004     This file is part of libkleopatra, the KDE keymanagement library
0005     SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 
0012 #include "kleo_export.h"
0013 
0014 #include <KMessageBox>
0015 
0016 #undef MessageBox // Windows
0017 
0018 class QString;
0019 class QWidget;
0020 
0021 namespace Kleo
0022 {
0023 class AuditLogEntry;
0024 
0025 namespace MessageBox
0026 {
0027 
0028 KLEO_EXPORT
0029 void information(QWidget *parent,
0030                  const QString &text,
0031                  const Kleo::AuditLogEntry &auditLog,
0032                  const QString &title = {},
0033                  KMessageBox::Options options = KMessageBox::Notify);
0034 
0035 KLEO_EXPORT
0036 void error(QWidget *parent,
0037            const QString &text,
0038            const Kleo::AuditLogEntry &auditLog,
0039            const QString &title = {},
0040            KMessageBox::Options options = KMessageBox::Notify);
0041 
0042 KLEO_EXPORT
0043 KLEO_DEPRECATED_VERSION(5, 23, "Use AuditLogViewer::showAuditLog()")
0044 void auditLog(QWidget *parent, const QString &log, const QString &title = {});
0045 
0046 }
0047 }