totp_scenes_enum.h 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "../config/app/config.h"
  3. typedef uint8_t Scene;
  4. /**
  5. * @brief TOTP application scenes
  6. */
  7. enum Scenes {
  8. /**
  9. * @brief Empty scene which does nothing
  10. */
  11. TotpSceneNone,
  12. /**
  13. * @brief Scene where user have to enter PIN to authenticate
  14. */
  15. TotpSceneAuthentication,
  16. /**
  17. * @brief Scene where actual TOTP token is getting generated and displayed to the user
  18. */
  19. TotpSceneGenerateToken,
  20. #ifdef TOTP_UI_ADD_NEW_TOKEN_ENABLED
  21. /**
  22. * @brief Scene where user can add new token
  23. */
  24. TotpSceneAddNewToken,
  25. #endif
  26. /**
  27. * @brief Scene with a menu for given token, allowing user to do multiple actions
  28. */
  29. TotpSceneTokenMenu,
  30. /**
  31. * @brief Scene where user can change application settings
  32. */
  33. TotpSceneAppSettings,
  34. /**
  35. * @brief Scene which informs user that CLI command is running
  36. */
  37. TotpSceneStandby
  38. };