portal_of_flipper_i.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. #include <gui/gui.h>
  3. #include <gui/view_dispatcher.h>
  4. #include <gui/scene_manager.h>
  5. #include <gui/modules/submenu.h>
  6. #include <gui/modules/popup.h>
  7. #include <gui/modules/loading.h>
  8. #include <gui/modules/widget.h>
  9. #include <notification/notification_messages.h>
  10. /* generated by fbt from .png files in images folder */
  11. #include <portal_of_flipper_icons.h>
  12. #include "scenes/pof_scene.h"
  13. #include "helpers/pof_usb.h"
  14. #include "virtual_portal.h"
  15. typedef struct PoFApp PoFApp;
  16. typedef enum {
  17. PoFHid,
  18. PoFXbox360
  19. } PoFType;
  20. struct PoFApp {
  21. Gui* gui;
  22. ViewDispatcher* view_dispatcher;
  23. SceneManager* scene_manager;
  24. NotificationApp* notifications;
  25. Submenu* submenu;
  26. Popup* popup;
  27. Loading* loading;
  28. Widget* widget;
  29. VirtualPortal* virtual_portal;
  30. PoFUsb* pof_usb;
  31. PoFType type;
  32. };
  33. typedef enum {
  34. PoFViewSubmenu,
  35. PoFViewWidget,
  36. PoFViewPopup,
  37. PoFViewLoading,
  38. } PoFView;
  39. void pof_start(PoFApp* app);
  40. void pof_stop(PoFApp* app);
  41. void pof_show_loading_popup(void* context, bool show);