2022-10-12 05:01:37 +03:00
|
|
|
#pragma once
|
|
|
|
|
2022-11-17 22:33:31 +03:00
|
|
|
/**
|
|
|
|
* @brief TOTP application scenes
|
|
|
|
*/
|
2022-10-12 05:01:37 +03:00
|
|
|
typedef enum {
|
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
|
|
|
|
*/
|
2022-10-13 16:57:08 +03:00
|
|
|
TotpSceneAppSettings
|
2022-10-12 05:01:37 +03:00
|
|
|
} Scene;
|