flip_weather_callback.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #ifndef FLIP_WEATHER_CALLBACK_H
  2. #define FLIP_WEATHER_CALLBACK_H
  3. #include "flip_weather.h"
  4. #include <parse/flip_weather_parse.h>
  5. #include <flip_storage/flip_weather_storage.h>
  6. extern bool weather_request_success;
  7. extern bool sent_weather_request;
  8. extern bool got_weather_data;
  9. void flip_weather_popup_callback(void* context);
  10. void flip_weather_request_error(Canvas* canvas);
  11. void flip_weather_handle_gps_draw(Canvas* canvas, bool show_gps_data);
  12. void flip_weather_view_draw_callback_weather(Canvas* canvas, void* model);
  13. void flip_weather_view_draw_callback_gps(Canvas* canvas, void* model);
  14. void callback_submenu_choices(void* context, uint32_t index);
  15. void text_updated_ssid(void* context);
  16. void text_updated_password(void* context);
  17. uint32_t callback_to_submenu(void* context);
  18. void settings_item_selected(void* context, uint32_t index);
  19. /**
  20. * @brief Navigation callback for exiting the application
  21. * @param context The context - unused
  22. * @return next view id (VIEW_NONE to exit the app)
  23. */
  24. uint32_t callback_exit_app(void* context);
  25. uint32_t callback_to_wifi_settings(void* context);
  26. #endif