flip_weather_callback.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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(
  25. FlipWeatherApp* app,
  26. char* title,
  27. DataLoaderFetch fetcher,
  28. DataLoaderParser parser,
  29. size_t request_count,
  30. ViewNavigationCallback back,
  31. uint32_t view_id);
  32. void flip_weather_loader_draw_callback(Canvas* canvas, void* model);
  33. void flip_weather_loader_init(View* view);
  34. void flip_weather_loader_free_model(View* view);
  35. bool flip_weather_custom_event_callback(void* context, uint32_t index);
  36. #endif