2022-09-24 17:47:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include "assets_icons.h"
|
|
|
|
#include <input/input.h>
|
|
|
|
#include <gui/elements.h>
|
|
|
|
#include <gui/icon.h>
|
|
|
|
#include <subghz/types.h>
|
|
|
|
#include "../subbrute_custom_event.h"
|
|
|
|
|
|
|
|
typedef void (*SubBruteAttackViewCallback)(SubBruteCustomEvent event, void* context);
|
|
|
|
typedef struct SubBruteAttackView SubBruteAttackView;
|
|
|
|
|
|
|
|
void subbrute_attack_view_set_callback(
|
|
|
|
SubBruteAttackView* instance,
|
|
|
|
SubBruteAttackViewCallback callback,
|
|
|
|
void* context);
|
|
|
|
SubBruteAttackView* subbrute_attack_view_alloc();
|
|
|
|
void subbrute_attack_view_free(SubBruteAttackView* instance);
|
|
|
|
View* subbrute_attack_view_get_view(SubBruteAttackView* instance);
|
2022-09-25 13:05:52 +00:00
|
|
|
void subbrute_attack_view_set_current_step(SubBruteAttackView* instance, uint64_t current_step);
|
2022-09-26 16:14:33 +00:00
|
|
|
void subbrute_attack_view_set_worker_type(SubBruteAttackView* instance, bool is_continuous_worker);
|
2022-09-24 17:47:21 +00:00
|
|
|
void subbrute_attack_view_init_values(
|
|
|
|
SubBruteAttackView* instance,
|
|
|
|
uint8_t index,
|
2022-09-25 13:05:52 +00:00
|
|
|
uint64_t max_value,
|
|
|
|
uint64_t current_step,
|
2022-09-25 21:07:16 +00:00
|
|
|
bool is_attacking);
|