Older/Server/ServiceManager.h

24 lines
836 B
C
Raw Normal View History

2023-07-21 16:17:01 +08:00
#ifndef __SERVICEMANAGER_H__
#define __SERVICEMANAGER_H__
#include <MessageManager.h>
#include <Singleton.h>
constexpr auto HeartBeat = "HeartBeat";
constexpr auto SetAlarmClock = "setAlarmClock";
constexpr auto CurrentDatetime = "CurrentDatetime";
constexpr auto PlayRandomMusic = "PlayRandomMusic";
constexpr auto NotifyServerChan = MessageManager::Message<const std::string &>("NotifyServerChan");
constexpr auto TextToSpeech = MessageManager::Message<const std::string &>("TextToSpeech");
constexpr auto StopPlayMusic = MessageManager::Message<>("StopPlayMusic");
using SetAlarmClockService = void(uint8_t, uint8_t);
using CurrentDatetimeService = void();
using PlayRandomMusicService = void();
class ServiceManager : public MessageManager {
friend class Amass::Singleton<MessageManager>;
};
#endif // __SERVICEMANAGER_H__