CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
VcardWizard.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5#include "cdc_ui/IView.h"
6
7namespace cdc::mod_vcard {
8
16public:
24 static void configure(const char* const* titleKeys, const char* savedKey,
25 const char* failedKey);
26
31 using DoneCallback = void (*)();
32
37 static void start(ui::IView* returnAnchor);
38
44 static void edit(ui::IView* returnAnchor);
45
51 static void startReceived(ui::IView* returnAnchor, DoneCallback onDone);
52
59 static void editReceived(ui::IView* returnAnchor, uint16_t slot, DoneCallback onDone);
60};
61
62} // namespace cdc::mod_vcard
Wizard for creating or editing the device owner's vCard via the GUI.
Definition VcardWizard.h:15
static void start(ui::IView *returnAnchor)
Starts the wizard with an empty struct.
static void editReceived(ui::IView *returnAnchor, uint16_t slot, DoneCallback onDone)
Starts the wizard prefilled with a stored contact for editing.
static void configure(const char *const *titleKeys, const char *savedKey, const char *failedKey)
Configures the wizard with i18n keys. Must be called before start() or edit() so step titles can be l...
static void startReceived(ui::IView *returnAnchor, DoneCallback onDone)
Starts the wizard to create a new stored contact (received list).
void(*)() DoneCallback
Callback fired after a successful save, before returning to the anchor view. Lets the caller refresh ...
Definition VcardWizard.h:31
static void edit(ui::IView *returnAnchor)
Starts the wizard prefilled with the currently stored own vCard. Falls back to start() when no vCard ...