13 const char*
getName()
const override {
return "mod_vcard"; }
14 const char*
getVersion()
const override {
return "1.0.0"; }
18 bool start()
override;
23 void onTick(uint32_t nowMs)
override;
void mod_vcard_register()
Registers vCard module initializer in global module registry.
Module interface that extends IService with module-specific features.
void onTick(uint32_t nowMs) override
Periodic vCard module tick forwarding BLE state machine.
core::ServiceState getState() const override
const char * getVersion() const override
Returns the module version string.
void stop() override
Stops vCard BLE service and module runtime.
bool init() override
Initializes module UI strings, serial commands, and BLE service hooks.
static VcardModule & instance()
Returns singleton vCard module instance.
bool exportBackup(cJSON *out) override
Exports the own vCard and all received vCards into the backup section.
uint8_t getMenuItems(core::ModuleMenuItem *items, uint8_t maxItems) override
Provides tools-menu entry for vCard module.
bool start() override
Starts vCard module service.
core::IModule::BackupResult importBackup(const cJSON *in) override
Restores the own vCard and received vCards from the backup section.
const char * getName() const override
uint8_t getLockScreenContextItems(core::LockScreenContextItem *items, uint8_t maxItems) override
Provides the lock-screen quick action that shows the owner vCard as a QR code.
Per-module restore outcome reported by importBackup().
Lock screen context menu item registered by a module.