14 const char*
getVersion()
const override {
return "1.0"; }
void mod_password_register()
Registers password module initializer in global module registry.
Base implementation that handles common module lifecycle boilerplate.
ModuleBase(const char *name)
Constructs a module base with the given module name.
void setSlotRange(const core::IModule::SlotRange &range) override
Stores assigned Tropic slot range for this module.
const char * getVersion() const override
Returns the module version string.
uint8_t getMenuItems(core::ModuleMenuItem *items, uint8_t maxItems) override
Provides main-menu entry for password module UI.
bool init() override
Initializes module resources, translations, commands, and slot mapping.
bool exportBackup(cJSON *out) override
Exports all vault entries into the module's backup section.
static PasswordModule & instance()
Returns singleton password module instance.
core::IModule::BackupResult importBackup(const cJSON *in) override
Restores vault entries from the module's backup section.
core::IModule::SlotRequest getSlotRequest() const override
Declares slot requirements for password storage.
void stop() override
Stops the password module and frees list resources.
Per-module restore outcome reported by importBackup().