close one notification to close all
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user