2022-10-12 02:01:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-11-17 19:33:31 +00:00
|
|
|
/**
|
|
|
|
* @brief TOTP application scenes
|
|
|
|
*/
|
2022-10-12 02:01:37 +00:00
|
|
|
typedef enum {
|
2022-11-17 19:33:31 +00:00
|
|
|
/**
|
|
|
|
* @brief Empty scene which does nothing
|
|
|
|
*/
|
2022-10-28 15:34:35 +00:00
|
|
|
TotpSceneNone,
|
2022-11-17 19:33:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user have to enter PIN to authenticate
|
|
|
|
*/
|
2022-10-12 02:01:37 +00:00
|
|
|
TotpSceneAuthentication,
|
2022-11-17 19:33:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where actual TOTP token is getting generated and displayed to the user
|
|
|
|
*/
|
2022-10-12 02:01:37 +00:00
|
|
|
TotpSceneGenerateToken,
|
2022-11-17 19:33:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user can add new token
|
|
|
|
*/
|
2022-10-12 02:01:37 +00:00
|
|
|
TotpSceneAddNewToken,
|
2022-11-17 19:33:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene with a menu for given token, allowing user to do multiple actions
|
|
|
|
*/
|
2022-10-13 13:57:08 +00:00
|
|
|
TotpSceneTokenMenu,
|
2022-11-17 19:33:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user can change application settings
|
|
|
|
*/
|
2022-10-13 13:57:08 +00:00
|
|
|
TotpSceneAppSettings
|
2022-10-12 02:01:37 +00:00
|
|
|
} Scene;
|