xremote_cross_remote_item.h 1.5 KB

12345678910111213141516171819202122232425262728
  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. void xremote_cross_remote_item_set_time(CrossRemoteItem* item, uint32_t time);
  14. uint32_t xremote_cross_remote_item_get_time(CrossRemoteItem* item);
  15. InfraredSignal* xremote_cross_remote_item_get_ir_signal(CrossRemoteItem* item);
  16. void xremote_cross_remote_item_set_ir_signal(CrossRemoteItem* item, InfraredSignal* signal);
  17. SubGhzRemote* xremote_cross_remote_item_get_sg_signal(CrossRemoteItem* item);
  18. void xremote_cross_remote_item_set_sg_signal(CrossRemoteItem* item, SubGhzRemote* subghz);
  19. bool xremote_cross_remote_item_pause_save(FlipperFormat* ff, uint32_t time, const char* name);
  20. bool xremote_cross_remote_item_ir_signal_save(InfraredSignal* signal, FlipperFormat* ff, const char* name, uint32_t time);
  21. bool xremote_cross_remote_item_sg_signal_save(SubGhzRemote* remote, FlipperFormat* ff, const char* name, const char* filename);