Kstars

ksnotification.h
1 /*
2  SPDX-FileCopyrightText: 2016 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <KLocalizedString>
10 #include <QString>
11 
12 /**
13  * @namespace KSNotification
14  * General KStars Notifications for desktop and lite version
15  *
16  * @author Jasem Mutlaq
17  */
18 namespace KSNotification
19 {
20 
21 typedef enum
22 {
23  EVENT_DBG,
24  EVENT_INFO,
25  EVENT_WARN,
26  EVENT_ALERT
27 } EventType;
28 
29 void error(const QString &message, const QString &title = i18n("Error"), uint32_t timeout = 0);
30 void sorry(const QString &message, const QString &title = i18n("Sorry"), uint32_t timeout = 0);
31 void info(const QString &message, const QString &title = i18n("Info"), uint32_t timeout = 0);
32 /**
33  * @brief transient Non modal message box that gets deleted on close.
34  * @param message message content
35  * @param title message title
36  */
37 void transient(const QString &message, const QString &title);
38 
39 void event(const QLatin1String &name, const QString &message, EventType type = EVENT_INFO);
40 }
void sorry(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.