2015-07-02 03:17:14 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "IMessageManager.h"
|
|
|
|
#include "INotificationListener.h"
|
|
|
|
|
|
|
|
class MessageManager
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static IMessageManager* _messageManager;
|
2015-08-09 02:36:39 +00:00
|
|
|
static vector<INotificationListener*> _notificationListeners;
|
2015-07-02 03:17:14 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
static void RegisterMessageManager(IMessageManager* messageManager);
|
2015-07-11 12:27:22 +00:00
|
|
|
static void DisplayMessage(string title, string message = "");
|
|
|
|
static void DisplayToast(string title, string message, uint8_t* iconData, uint32_t iconSize);
|
2015-07-02 03:17:14 +00:00
|
|
|
|
|
|
|
static void RegisterNotificationListener(INotificationListener* notificationListener);
|
|
|
|
static void UnregisterNotificationListener(INotificationListener* notificationListener);
|
2015-12-26 22:11:00 +00:00
|
|
|
static void SendNotification(ConsoleNotificationType type, void* parameter = nullptr);
|
2015-07-02 03:17:14 +00:00
|
|
|
};
|