subbrute_attack_view.h 1018 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "../subbrute_custom_event.h"
  3. #include <gui/view.h>
  4. #include "assets_icons.h"
  5. #include <input/input.h>
  6. #include <gui/elements.h>
  7. #include <gui/icon.h>
  8. #include <subghz/types.h>
  9. typedef void (*SubBruteAttackViewCallback)(SubBruteCustomEvent event, void* context);
  10. typedef struct SubBruteAttackView SubBruteAttackView;
  11. void subbrute_attack_view_set_callback(
  12. SubBruteAttackView* instance,
  13. SubBruteAttackViewCallback callback,
  14. void* context);
  15. SubBruteAttackView* subbrute_attack_view_alloc();
  16. void subbrute_attack_view_free(SubBruteAttackView* instance);
  17. View* subbrute_attack_view_get_view(SubBruteAttackView* instance);
  18. void subbrute_attack_view_set_current_step(SubBruteAttackView* instance, uint64_t current_step);
  19. void subbrute_attack_view_set_worker_type(SubBruteAttackView* instance, bool is_continuous_worker);
  20. void subbrute_attack_view_init_values(
  21. SubBruteAttackView* instance,
  22. uint8_t index,
  23. uint64_t max_value,
  24. uint64_t current_step,
  25. bool is_attacking);