mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 16:53:45 +00:00
37 lines
1 KiB
C
37 lines
1 KiB
C
|
#pragma once
|
||
|
|
||
|
#include <gui/view.h>
|
||
|
#include "../helpers/weather_station_types.h"
|
||
|
#include "../helpers/weather_station_event.h"
|
||
|
|
||
|
typedef struct WSReceiver WSReceiver;
|
||
|
|
||
|
typedef void (*WSReceiverCallback)(WSCustomEvent event, void* context);
|
||
|
|
||
|
void ws_view_receiver_set_lock(WSReceiver* ws_receiver, WSLock keyboard);
|
||
|
|
||
|
void ws_view_receiver_set_callback(
|
||
|
WSReceiver* ws_receiver,
|
||
|
WSReceiverCallback callback,
|
||
|
void* context);
|
||
|
|
||
|
WSReceiver* ws_view_receiver_alloc();
|
||
|
|
||
|
void ws_view_receiver_free(WSReceiver* ws_receiver);
|
||
|
|
||
|
View* ws_view_receiver_get_view(WSReceiver* ws_receiver);
|
||
|
|
||
|
void ws_view_receiver_add_data_statusbar(
|
||
|
WSReceiver* ws_receiver,
|
||
|
const char* frequency_str,
|
||
|
const char* preset_str,
|
||
|
const char* history_stat_str);
|
||
|
|
||
|
void ws_view_receiver_add_item_to_menu(WSReceiver* ws_receiver, const char* name, uint8_t type);
|
||
|
|
||
|
uint16_t ws_view_receiver_get_idx_menu(WSReceiver* ws_receiver);
|
||
|
|
||
|
void ws_view_receiver_set_idx_menu(WSReceiver* ws_receiver, uint16_t idx);
|
||
|
|
||
|
void ws_view_receiver_exit(void* context);
|