totp_scene_token_menu.h 688 B

123456789101112131415161718
  1. #pragma once
  2. #include <gui/gui.h>
  3. #include "../../../types/plugin_state.h"
  4. #include "../../../types/plugin_event.h"
  5. typedef struct {
  6. uint16_t current_token_index;
  7. } TokenMenuSceneContext;
  8. void totp_scene_token_menu_init(const PluginState* plugin_state);
  9. void totp_scene_token_menu_activate(
  10. PluginState* plugin_state,
  11. const TokenMenuSceneContext* context);
  12. void totp_scene_token_menu_render(Canvas* const canvas, PluginState* plugin_state);
  13. bool totp_scene_token_menu_handle_event(const PluginEvent* const event, PluginState* plugin_state);
  14. void totp_scene_token_menu_deactivate(PluginState* plugin_state);
  15. void totp_scene_token_menu_free(const PluginState* plugin_state);