flip_weather_callback.h 1.0 KB

1234567891011121314151617181920212223242526272829
  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_request_error(Canvas *canvas);
  10. void flip_weather_handle_gps_draw(Canvas *canvas, bool show_gps_data);
  11. void flip_weather_view_draw_callback_weather(Canvas *canvas, void *model);
  12. void flip_weather_view_draw_callback_gps(Canvas *canvas, void *model);
  13. void callback_submenu_choices(void *context, uint32_t index);
  14. void text_updated_ssid(void *context);
  15. void text_updated_password(void *context);
  16. uint32_t callback_to_submenu(void *context);
  17. void settings_item_selected(void *context, uint32_t index);
  18. /**
  19. * @brief Navigation callback for exiting the application
  20. * @param context The context - unused
  21. * @return next view id (VIEW_NONE to exit the app)
  22. */
  23. uint32_t callback_exit_app(void *context);
  24. uint32_t callback_to_wifi_settings(void *context);
  25. #endif