Warning, file /utilities/kongress/kongressac/alarmnotification.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dimitris Kardarakos <dimkard@posteo.net> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #ifndef ALARMNOTIFICATION_H 0008 #define ALARMNOTIFICATION_H 0009 0010 #include <KNotification> 0011 0012 class NotificationHandler; 0013 0014 /** 0015 * @brief The alarm notification that should be displayed. It is a wrapper of a KNotification enhanced with alarm properties, like uid and remind time 0016 * 0017 */ 0018 class AlarmNotification : public QObject 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit AlarmNotification(NotificationHandler *handler, const QString &uid); 0023 0024 /** 0025 * @brief Sends the notification so as to be displayed 0026 */ 0027 void send() const; 0028 0029 /** 0030 * @return The uid of the Incidence of the alarm of the notification 0031 */ 0032 QString uid() const; 0033 0034 /** 0035 * @brief The text of the notification that should be displayed 0036 */ 0037 QString text() const; 0038 0039 /** 0040 * @brief Sets the to-be-displayed text of the notification 0041 */ 0042 void setText(const QString &alarmText); 0043 0044 private: 0045 KNotification *m_notification; 0046 QString m_uid; 0047 NotificationHandler *m_notification_handler; 0048 }; 0049 #endif