totp_scenes_enum.h 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. typedef uint8_t Scene;
  3. /**
  4. * @brief TOTP application scenes
  5. */
  6. enum Scenes {
  7. /**
  8. * @brief Empty scene which does nothing
  9. */
  10. TotpSceneNone,
  11. /**
  12. * @brief Scene where user have to enter PIN to authenticate
  13. */
  14. TotpSceneAuthentication,
  15. /**
  16. * @brief Scene where actual TOTP token is getting generated and displayed to the user
  17. */
  18. TotpSceneGenerateToken,
  19. /**
  20. * @brief Scene where user can add new token
  21. */
  22. TotpSceneAddNewToken,
  23. /**
  24. * @brief Scene with a menu for given token, allowing user to do multiple actions
  25. */
  26. TotpSceneTokenMenu,
  27. /**
  28. * @brief Scene where user can change application settings
  29. */
  30. TotpSceneAppSettings
  31. };