1 /*
2     SPDX-FileCopyrightText: 2016 Jasem Mutlaq <mutlaqja@ikarustech.com>
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 }
41