xremote_cross_remote_item.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "../infrared/xremote_ir_signal.h"
  3. #include "../subghz/xremote_sg_remote.h"
  4. #include "../../xremote_i.h"
  5. bool xremote_cross_remote_item_read(CrossRemoteItem* item, FlipperFormat* ff);
  6. CrossRemoteItem* xremote_cross_remote_item_alloc();
  7. void xremote_cross_remote_item_free(CrossRemoteItem* item);
  8. void xremote_cross_remote_item_set_name(CrossRemoteItem* item, const char* name);
  9. const char* xremote_cross_remote_item_get_name(CrossRemoteItem* item);
  10. void xremote_cross_remote_item_set_filename(CrossRemoteItem* item, const char* filename);
  11. const char* xremote_cross_remote_item_get_filename(CrossRemoteItem* item);
  12. void xremote_cross_remote_item_set_type(CrossRemoteItem* item, int type);
  13. int16_t xremote_cross_remote_item_get_type(CrossRemoteItem* item);
  14. void xremote_cross_remote_item_set_time(CrossRemoteItem* item, uint32_t time);
  15. uint32_t xremote_cross_remote_item_get_time(CrossRemoteItem* item);
  16. InfraredSignal* xremote_cross_remote_item_get_ir_signal(CrossRemoteItem* item);
  17. void xremote_cross_remote_item_set_ir_signal(CrossRemoteItem* item, InfraredSignal* signal);
  18. SubGhzRemote* xremote_cross_remote_item_get_sg_signal(CrossRemoteItem* item);
  19. void xremote_cross_remote_item_set_sg_signal(CrossRemoteItem* item, SubGhzRemote* subghz);
  20. bool xremote_cross_remote_item_pause_save(FlipperFormat* ff, uint32_t time, const char* name);
  21. bool xremote_cross_remote_item_ir_signal_save(
  22. InfraredSignal* signal,
  23. FlipperFormat* ff,
  24. const char* name,
  25. uint32_t time);
  26. bool xremote_cross_remote_item_sg_signal_save(
  27. SubGhzRemote* remote,
  28. FlipperFormat* ff,
  29. const char* name,
  30. const char* filename);