solanaceae_message_n10n/src/message_n10n.hpp

23 lines
630 B
C++
Raw Normal View History

2024-05-17 22:18:41 +02:00
#pragma once
#include <solanaceae/message3/registry_message_model.hpp>
2024-05-18 00:33:31 +02:00
#include <wintoastlib.h>
class MessageN10n : public RegistryMessageModelEventI, public WinToastLib::IWinToastHandler {
2024-05-17 22:18:41 +02:00
RegistryMessageModel& _rmm;
public:
MessageN10n(RegistryMessageModel& rmm);
virtual ~MessageN10n(void);
protected: // rmm
bool onEvent(const Message::Events::MessageConstruct& e) override;
2024-05-18 00:33:31 +02:00
protected: // wintoast
void toastActivated(void) const override;
void toastActivated(int actionIndex) const override;
void toastDismissed(WinToastDismissalReason state) const override;
void toastFailed(void) const override;
};