Kstars

ksnotification.h
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 */
18namespace KSNotification
19{
20
21typedef enum
22{
23 Debug,
24 Info,
25 Warn,
26 Alert
27} EventType;
28
29typedef enum
30{
31 General,
32 INDI,
33 Capture,
34 Focus,
35 Align,
36 Mount,
37 Guide,
38 Observatory,
39 Scheduler
40} EventSource;
41
42void error(const QString &message, const QString &title = i18n("Error"), uint32_t timeout = 0);
43void sorry(const QString &message, const QString &title = i18n("Sorry"), uint32_t timeout = 0);
44void info(const QString &message, const QString &title = i18n("Info"), uint32_t timeout = 0);
45/**
46 * @brief transient Non modal message box that gets deleted on close.
47 * @param message message content
48 * @param title message title
49 */
50void transient(const QString &message, const QString &title);
51
52void event(const QLatin1String &name, const QString &message, EventSource source = General, EventType type = Info);
53}
Guide is a special class that handles ST4 commands.
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)
General KStars Notifications for desktop and lite version.
void transient(const QString &message, const QString &title)
transient Non modal message box that gets deleted on close.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.