close one notification to close all

This commit is contained in:
2026-02-02 21:47:47 +01:00
parent ed1a9a8605
commit 6d9f016350
9 changed files with 137 additions and 33 deletions

View File

@@ -1,8 +1,13 @@
#pragma once
#include <cstdint>
#include <map>
#include <memory>
#include <sys/types.h>
#include <vector>
#include "services/dbus/messages.hpp"
#include "widgets/notification/baseNotification.hpp"
#include "gdkmm/monitor.h"
@@ -21,6 +26,10 @@ class NotificationController {
void showNotificationOnAllMonitors(NotifyMessage notify);
private:
uint64_t globalNotificationId = 1;
std::map<uint64_t, std::vector<std::shared_ptr<BaseNotification>>> activeNotifications;
NotificationController();
std::vector<std::shared_ptr<Gdk::Monitor>> activeMonitors;
};
void closeNotification(uint64_t notificationId);
};