mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
17 lines
452 B
C++
17 lines
452 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "Shared/Interfaces/INotificationListener.h"
|
|
#include "Utilities/SimpleLock.h"
|
|
|
|
class NotificationManager
|
|
{
|
|
private:
|
|
SimpleLock _lock;
|
|
vector<weak_ptr<INotificationListener>> _listeners;
|
|
|
|
void CleanupNotificationListeners();
|
|
|
|
public:
|
|
void RegisterNotificationListener(shared_ptr<INotificationListener> notificationListener);
|
|
void SendNotification(ConsoleNotificationType type, void* parameter = nullptr);
|
|
};
|