quac.h 769 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <gui/scene_manager.h>
  3. #include <gui/view_dispatcher.h>
  4. #include <gui/modules/button_menu.h>
  5. #include <gui/modules/dialog_ex.h>
  6. #include <storage/storage.h>
  7. #include <notification/notification_messages.h>
  8. #include "item.h"
  9. #define QUAC_NAME "Quac!"
  10. #define TAG "Quac" // log statement id
  11. // Location of our actions and folders
  12. #define QUAC_PATH "apps_data/quac"
  13. // Full path to actions
  14. #define QUAC_DATA_PATH EXT_PATH(QUAC_PATH)
  15. typedef struct App {
  16. SceneManager* scene_manager;
  17. ViewDispatcher* view_dispatcher;
  18. ButtonMenu* btn_menu;
  19. DialogEx* dialog;
  20. Storage* storage;
  21. NotificationApp* notifications;
  22. int depth;
  23. ItemsView* items_view;
  24. int selected_item;
  25. } App;
  26. App* app_alloc();
  27. void app_free(App* app);