2022-10-12 05:01:37 +03:00
|
|
|
#pragma once
|
|
|
|
|
2022-11-24 01:19:19 +03:00
|
|
|
typedef uint8_t Scene;
|
|
|
|
|
2022-11-17 22:33:31 +03:00
|
|
|
/**
|
|
|
|
* @brief TOTP application scenes
|
|
|
|
*/
|
2022-11-24 01:19:19 +03:00
|
|
|
enum Scenes {
|
2022-11-17 22:33:31 +03:00
|
|
|
/**
|
|
|
|
* @brief Empty scene which does nothing
|
|
|
|
*/
|
2022-10-28 18:34:35 +03:00
|
|
|
TotpSceneNone,
|
2022-11-17 22:33:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user have to enter PIN to authenticate
|
|
|
|
*/
|
2022-10-12 05:01:37 +03:00
|
|
|
TotpSceneAuthentication,
|
2022-11-17 22:33:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where actual TOTP token is getting generated and displayed to the user
|
|
|
|
*/
|
2022-10-12 05:01:37 +03:00
|
|
|
TotpSceneGenerateToken,
|
2022-11-17 22:33:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user can add new token
|
|
|
|
*/
|
2022-10-12 05:01:37 +03:00
|
|
|
TotpSceneAddNewToken,
|
2022-11-17 22:33:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene with a menu for given token, allowing user to do multiple actions
|
|
|
|
*/
|
2022-10-13 16:57:08 +03:00
|
|
|
TotpSceneTokenMenu,
|
2022-11-17 22:33:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene where user can change application settings
|
|
|
|
*/
|
2023-04-26 23:50:37 +03:00
|
|
|
TotpSceneAppSettings,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Scene which informs user that CLI command is running
|
|
|
|
*/
|
|
|
|
TotpSceneStandby
|
2022-11-24 01:19:19 +03:00
|
|
|
};
|