24 lines
836 B
C
24 lines
836 B
C
|
#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__
|