flip_weather_callback.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_view_draw_callback_weather(Canvas *canvas, void *model);
  10. void flip_weather_view_draw_callback_gps(Canvas *canvas, void *model);
  11. void callback_submenu_choices(void *context, uint32_t index);
  12. void text_updated_ssid(void *context);
  13. void text_updated_password(void *context);
  14. uint32_t callback_to_submenu(void *context);
  15. void settings_item_selected(void *context, uint32_t index);
  16. /**
  17. * @brief Navigation callback for exiting the application
  18. * @param context The context - unused
  19. * @return next view id (VIEW_NONE to exit the app)
  20. */
  21. uint32_t callback_exit_app(void *context);
  22. uint32_t callback_to_wifi_settings(void *context);
  23. // Add edits by Derek Jamison
  24. void flip_weather_generic_switch_to_view(FlipWeatherApp *app, char *title, DataLoaderFetch fetcher, DataLoaderParser parser, size_t request_count, ViewNavigationCallback back, uint32_t view_id);
  25. void flip_weather_loader_draw_callback(Canvas *canvas, void *model);
  26. void flip_weather_loader_init(View *view);
  27. void flip_weather_loader_free_model(View *view);
  28. bool flip_weather_custom_event_callback(void *context, uint32_t index);
  29. #endif