mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 20:59:50 +04:00
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
38 lines
920 B
C++
38 lines
920 B
C++
#pragma once
|
|
#include "generic_view_module.h"
|
|
#include <gui/modules/byte_input.h>
|
|
|
|
class ByteInputVM : public GenericViewModule {
|
|
public:
|
|
ByteInputVM(void);
|
|
~ByteInputVM() final;
|
|
View* get_view() final;
|
|
void clean() final;
|
|
|
|
/**
|
|
* @brief Set byte input result callback
|
|
*
|
|
* @param input_callback input callback fn
|
|
* @param changed_callback changed callback fn
|
|
* @param callback_context callback context
|
|
* @param bytes buffer to use
|
|
* @param bytes_count buffer length
|
|
*/
|
|
void set_result_callback(
|
|
ByteInputCallback input_callback,
|
|
ByteChangedCallback changed_callback,
|
|
void* callback_context,
|
|
uint8_t* bytes,
|
|
uint8_t bytes_count);
|
|
|
|
/**
|
|
* @brief Set byte input header text
|
|
*
|
|
* @param text text to be shown
|
|
*/
|
|
void set_header_text(const char* text);
|
|
|
|
private:
|
|
ByteInput* byte_input;
|
|
};
|