2017-04-25 22:17:36 +02:00
|
|
|
#ifndef NOTIFICATIONS_HPP
|
|
|
|
#define NOTIFICATIONS_HPP
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
namespace notifications {
|
2019-05-14 17:12:09 +02:00
|
|
|
enum class Sound { ERROR = 0, SUCCESS = 1, CAPTURE = 2 };
|
2017-10-05 19:21:52 +02:00
|
|
|
void notify(QString title, QString body, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information);
|
|
|
|
void notifyNolog(QString title, QString body, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information);
|
2019-05-14 17:12:09 +02:00
|
|
|
void playSound(notifications::Sound soundType);
|
2018-02-18 02:35:29 +01:00
|
|
|
} // namespace notifications
|
2017-04-25 22:17:36 +02:00
|
|
|
|
|
|
|
#endif // NOTIFICATIONS_HPP
|