KJobWidgets

knotificationjobuidelegate.h
1/*
2 This file is part of the KDE Frameworks
3 SPDX-FileCopyrightText: 2020 Kai Uwe Broulik <kde@broulik.de>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KNOTIFICATIONJOBUIDELEGATE_H
9#define KNOTIFICATIONJOBUIDELEGATE_H
10
11#include <KJobUiDelegate>
12
13#include <QScopedPointer>
14
15#include <kjobwidgets_export.h>
16
17class KNotificationJobUiDelegatePrivate;
18
19/**
20 * @class KNotificationJobUiDelegate knotificationjobuidelegate.h KNotificationJobUiDelegate
21 *
22 * A UI delegate using KNotification for interaction (showing errors and warnings).
23 *
24 * @since 6.0
25 */
26class KJOBWIDGETS_EXPORT KNotificationJobUiDelegate : public KJobUiDelegate
27{
28 Q_OBJECT
29
30public:
31 /**
32 * Constructs a new KNotificationJobUiDelegate.
33 * @param flags allows to enable automatic error/warning handling
34 * @since 6.0
35 */
37
38 /**
39 * Destroys the KNotificationJobUiDelegate.
40 */
42
43public:
44 /**
45 * Display a notification to inform the user of the error given by
46 * this job.
47 */
48 void showErrorMessage() override;
49
50protected Q_SLOTS:
51 bool setJob(KJob *job) override;
52 void slotWarning(KJob *job, const QString &message) override;
53
54private:
56};
57
58#endif // KNOTIFICATIONJOBUIDELEGATE_H
virtual void showErrorMessage()
virtual bool setJob(KJob *job)
A UI delegate using KNotification for interaction (showing errors and warnings).
~KNotificationJobUiDelegate() override
Destroys the KNotificationJobUiDelegate.
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.