xremote_cross_remote_item.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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(
  21. InfraredSignal* signal,
  22. FlipperFormat* ff,
  23. const char* name,
  24. uint32_t time);
  25. bool xremote_cross_remote_item_sg_signal_save(
  26. SubGhzRemote* remote,
  27. FlipperFormat* ff,
  28. const char* name,
  29. const char* filename);