callback.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. #ifndef FLIP_SOCIAL_CALLBACK_H
  2. #define FLIP_SOCIAL_CALLBACK_H
  3. #include <flip_social.h>
  4. /**
  5. * @brief Navigation callback to go back to the submenu Logged out.
  6. * @param context The context - unused
  7. * @return next view id (FlipSocialViewLoggedOutSubmenu)
  8. */
  9. uint32_t flip_social_callback_to_submenu_logged_out(void *context);
  10. /**
  11. * @brief Navigation callback to go back to the submenu Logged in.
  12. * @param context The context - unused
  13. * @return next view id (FlipSocialViewLoggedInSubmenu)
  14. */
  15. uint32_t flip_social_callback_to_submenu_logged_in(void *context);
  16. /**
  17. * @brief Navigation callback to bring the user back to the (Logged out) Login screen
  18. * @param context The context - unused
  19. * @return next view id (FlipSocialViewLoggedOutLogin)
  20. */
  21. uint32_t flip_social_callback_to_login_logged_out(void *context);
  22. /**
  23. * @brief Navigation callback to bring the user back to the (Logged out) Register screen
  24. * @param context The context - unused
  25. * @return next view id (FlipSocialViewLoggedOutRegister)
  26. */
  27. uint32_t flip_social_callback_to_register_logged_out(void *context);
  28. /**
  29. * @brief Navigation callback to bring the user back to the (Logged out) Wifi Settings screen
  30. * @param context The context - unused
  31. * @return next view id (FlipSocialViewLoggedOutWifiSettings)
  32. */
  33. uint32_t flip_social_callback_to_wifi_settings_logged_out(void *context);
  34. /**
  35. * @brief Navigation callback to bring the user back to the (Logged in) Wifi Settings screen
  36. * @param context The context - unused
  37. * @return next view id (FlipSocialViewLoggedInSettingsWifi)
  38. */
  39. uint32_t flip_social_callback_to_wifi_settings_logged_in(void *context);
  40. /**
  41. * @brief Navigation callback to bring the user back to the (Logged in) Settings screen
  42. * @param context The context - unused
  43. * @return next view id (FlipSocialViewLoggedInSettingsWifi)
  44. */
  45. uint32_t flip_social_callback_to_settings_logged_in(void *context);
  46. /**
  47. * @brief Navigation callback to bring the user back to the (Logged in) Compose screen
  48. * @param context The context - unused
  49. * @return next view id (FlipSocialViewLoggedInCompose)
  50. */
  51. uint32_t flip_social_callback_to_compose_logged_in(void *context);
  52. /**
  53. * @brief Navigation callback to bring the user back to the (Logged in) Profile screen
  54. * @param context The context - unused
  55. * @return next view id (FlipSocialViewLoggedInProfile)
  56. */
  57. uint32_t flip_social_callback_to_profile_logged_in(void *context);
  58. /**
  59. * @brief Navigation callback to bring the user back to the Explore submenu
  60. * @param context The context - unused
  61. * @return next view id (FlipSocialViewLoggedInExploreSubmenu)
  62. */
  63. uint32_t flip_social_callback_to_explore_logged_in(void *context);
  64. /**
  65. * @brief Navigation callback to bring the user back to the Friends submenu
  66. * @param context The context - unused
  67. * @return next view id (FlipSocialViewLoggedInFriendsSubmenu)
  68. */
  69. uint32_t flip_social_callback_to_friends_logged_in(void *context);
  70. /**
  71. * @brief Navigation callback to bring the user back to the Messages submenu
  72. * @param context The context - unused
  73. * @return next view id (FlipSocialViewLoggedInMessagesSubmenu)
  74. */
  75. uint32_t flip_social_callback_to_messages_logged_in(void *context);
  76. /**
  77. * @brief Navigation callback to bring the user back to the User Choices screen
  78. * @param context The context - unused
  79. * @return next view id (FlipSocialViewLoggedInMessagesUserChoices)
  80. */
  81. uint32_t flip_social_callback_to_messages_user_choices(void *context);
  82. /**
  83. * @brief Navigation callback for exiting the application
  84. * @param context The context - unused
  85. * @return next view id (VIEW_NONE to exit the app)
  86. */
  87. uint32_t flip_social_callback_exit_app(void *context);
  88. /**
  89. * @brief Handle ALL submenu item selections.
  90. * @param context The context - FlipSocialApp object.
  91. * @param index The FlipSocialSubmenuIndex item that was clicked.
  92. * @return void
  93. */
  94. void flip_social_callback_submenu_choices(void *context, uint32_t index);
  95. /**
  96. * @brief Text input callback for when the user finishes entering their SSID on the wifi settings (logged out) screen.
  97. * @param context The context - FlipSocialApp object.
  98. * @return void
  99. */
  100. void flip_social_logged_out_wifi_settings_ssid_updated(void *context);
  101. /**
  102. * @brief Text input callback for when the user finishes entering their password on the wifi settings (logged out) screen.
  103. * @param context The context - FlipSocialApp object.
  104. * @return void
  105. */
  106. void flip_social_logged_out_wifi_settings_password_updated(void *context);
  107. /**
  108. * @brief Callback when the user selects a menu item in the wifi settings (logged out) screen.
  109. * @param context The context - FlipSocialApp object.
  110. * @param index The index of the selected item.
  111. * @return void
  112. */
  113. void flip_social_text_input_logged_out_wifi_settings_item_selected(void *context, uint32_t index);
  114. /**
  115. * @brief Text input callback for when the user finishes entering their username on the login (logged out) screen.
  116. * @param context The context - FlipSocialApp object.
  117. * @return void
  118. */
  119. void flip_social_logged_out_login_username_updated(void *context);
  120. /**
  121. * @brief Text input callback for when the user finishes entering their password on the login (logged out) screen.
  122. * @param context The context - FlipSocialApp object.
  123. * @return void
  124. */
  125. void flip_social_logged_out_login_password_updated(void *context);
  126. /**
  127. * @brief Callback when the user selects a menu item in the login (logged out) screen.
  128. * @param context The context - FlipSocialApp object.
  129. * @param index The index of the selected item.
  130. * @return void
  131. */
  132. void flip_social_text_input_logged_out_login_item_selected(void *context, uint32_t index);
  133. /**
  134. * @brief Text input callback for when the user finishes entering their username on the register (logged out) screen.
  135. * @param context The context - FlipSocialApp object.
  136. * @return void
  137. */
  138. void flip_social_logged_out_register_username_updated(void *context);
  139. /**
  140. * @brief Text input callback for when the user finishes entering their password on the register (logged out) screen.
  141. * @param context The context - FlipSocialApp object.
  142. * @return void
  143. */
  144. void flip_social_logged_out_register_password_updated(void *context);
  145. /**
  146. * @brief Text input callback for when the user finishes entering their password 2 on the register (logged out) screen.
  147. * @param context The context - FlipSocialApp object.
  148. * @return void
  149. */
  150. void flip_social_logged_out_register_password_2_updated(void *context);
  151. /**
  152. * @brief Text input callback for when the user finishes entering their SSID on the wifi settings (logged in) screen.
  153. * @param context The context - FlipSocialApp object.
  154. * @return void
  155. */
  156. void flip_social_logged_in_wifi_settings_ssid_updated(void *context);
  157. /**
  158. * @brief Text input callback for when the user finishes entering their password on the wifi settings (logged in) screen.
  159. * @param context The context - FlipSocialApp object.
  160. * @return void
  161. */
  162. void flip_social_logged_in_wifi_settings_password_updated(void *context);
  163. /**
  164. * @brief Callback when the user selects a menu item in the wifi settings (logged in) screen.
  165. * @param context The context - FlipSocialApp object.
  166. * @param index The index of the selected item.
  167. * @return void
  168. */
  169. void flip_social_text_input_logged_in_wifi_settings_item_selected(void *context, uint32_t index);
  170. /**
  171. * @brief Text input callback for when the user finishes entering their message on the compose (logged in) screen for Add Text
  172. * @param context The context - FlipSocialApp object.
  173. * @return void
  174. */
  175. void flip_social_logged_in_compose_pre_save_updated(void *context);
  176. /**
  177. * @brief Text input callback for when the user finishes entering their message on the profile (logged in) screen for change password
  178. * @param context The context - FlipSocialApp object.
  179. * @return void
  180. */
  181. void flip_social_logged_in_profile_change_password_updated(void *context);
  182. /**
  183. * @brief Callback when a user selects a menu item in the profile (logged in) screen.
  184. * @param context The context - FlipSocialApp object.
  185. * @param index The index of the selected item.
  186. * @return void
  187. */
  188. void flip_social_logged_in_profile_change_bio_updated(void *context);
  189. void flip_social_text_input_logged_in_profile_item_selected(void *context, uint32_t index);
  190. /**
  191. * @brief Text input callback for when the user finishes entering their message to send to the selected user choice (user choice messages view)
  192. * @param context The context - FlipSocialApp object.
  193. * @return void
  194. */
  195. void flip_social_logged_in_messages_user_choice_message_updated(void *context);
  196. /**
  197. * @brief Text input callback for when the user finishes entering their message to the selected user (messages view)
  198. * @param context The context - FlipSocialApp object.
  199. * @return void
  200. */
  201. void flip_social_logged_in_messages_new_message_updated(void *context);
  202. /**
  203. * @brief Callback when the user selects a menu item in the register (logged out) screen.
  204. * @param context The context - FlipSocialApp object.
  205. * @param index The index of the selected item.
  206. * @return void
  207. */
  208. void flip_social_text_input_logged_out_register_item_selected(void *context, uint32_t index);
  209. void flip_social_logged_in_user_settings_item_selected(void *context, uint32_t index);
  210. void flip_social_logged_in_explore_updated(void *context);
  211. void flip_social_logged_in_message_users_updated(void *context);
  212. void messages_dialog_callback(DialogExResult result, void *context);
  213. //
  214. bool flip_social_home_notification();
  215. #endif