20 #if DESKTOP_NOTIFICATIONS
25 #include <libsnore/snore.h>
31 : notifyCore{Snore::SnoreCore::instance()}
32 , snoreIcon{
":/img/icons/qtox.svg"}
35 notifyCore.loadPlugins(Snore::SnorePlugin::Backend);
36 qDebug() <<
"primary notification backend:" << notifyCore.primaryNotificationBackend();
38 snoreApp = Snore::Application(
"qTox", snoreIcon);
40 notifyCore.registerApplication(snoreApp);
53 auto newNotification = Snore::Notification{
snoreApp, Snore::Alert(), notificationData.
title, notificationData.
message, icon, 0};
78 notifyCore.broadcastNotification(newNotification);