mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 14:40:40 +00:00
* Allow observers to respond to AdminMessage requests
Ground work for CannedMessage getters and setters
* Enable CannedMessage config in apps for InkHUD devices
* Migrate the InkHUD::Events AdminModule observer
Use the new AdminModule_ObserverData struct
* Bare-bones NicheGraphics util to access canned messages
Handles loading and parsing. Handle admin messages for setting and getting.
* Send canned messages via on-screen menu
* Change ThreadedMessageApplet from Observer to Module API
Allows us to intercept locally generated packets ('loopbackOK = true'), to handle outgoing canned messages.
* Fix: crash getting empty canned message string via Client API
* Move file into Utils subdir
* Move an include statement from .cpp to .h
* Limit strncpy size of dest, not source
Wasn't critical in ths specific case, but definitely a mistake.
31 lines
556 B
C++
31 lines
556 B
C++
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
|
|
|
/*
|
|
|
|
Sub-menu for InkHUD::MenuApplet
|
|
Structure of the menu is defined in InkHUD::showPage
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
namespace NicheGraphics::InkHUD
|
|
{
|
|
|
|
// Sub-menu for MenuApplet
|
|
enum MenuPage : uint8_t {
|
|
ROOT, // Initial menu page
|
|
SEND,
|
|
CANNEDMESSAGE_RECIPIENT, // Select destination for a canned message
|
|
OPTIONS,
|
|
APPLETS,
|
|
AUTOSHOW,
|
|
RECENTS, // Select length of "recentlyActiveSeconds"
|
|
EXIT, // Dismiss the menu applet
|
|
};
|
|
|
|
} // namespace NicheGraphics::InkHUD
|
|
|
|
#endif |