Libkleo

messagebox.h
1/*
2 messagebox.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "kleo_export.h"
13
14#include <KMessageBox>
15
16#undef MessageBox // Windows
17
18class QString;
19class QWidget;
20
21namespace Kleo
22{
23class AuditLogEntry;
24
25namespace MessageBox
26{
27
28KLEO_EXPORT
29void information(QWidget *parent,
30 const QString &text,
31 const Kleo::AuditLogEntry &auditLog,
32 const QString &title = {},
33 KMessageBox::Options options = KMessageBox::Notify);
34
35KLEO_EXPORT
36void error(QWidget *parent,
37 const QString &text,
38 const Kleo::AuditLogEntry &auditLog,
39 const QString &title = {},
40 KMessageBox::Options options = KMessageBox::Notify);
41
42KLEO_EXPORT
43KLEO_DEPRECATED_VERSION(5, 23, "Use AuditLogViewer::showAuditLog()")
44void auditLog(QWidget *parent, const QString &log, const QString &title = {});
45
46}
47}
void information(QWidget *parent, const QString &text, const QString &title=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
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 Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.