[FL-2152] New PIN lock (#989)
* [Fl-2152] New PIN Lock, part 1 * Fix errors & leaks, renaming * Add support to f6 * Fix error, remove duplicate code * Fix drawing corners of Lock Popup * FuriHal: insomnia if usb connected * Applications: cleanup timers use Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
16
applications/desktop/views/desktop_view_pin_timeout.h
Normal file
16
applications/desktop/views/desktop_view_pin_timeout.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <gui/view.h>
|
||||
|
||||
typedef void (*DesktopViewPinTimeoutDoneCallback)(void*);
|
||||
typedef struct DesktopViewPinTimeout DesktopViewPinTimeout;
|
||||
|
||||
void desktop_view_pin_timeout_set_callback(
|
||||
DesktopViewPinTimeout* instance,
|
||||
DesktopViewPinTimeoutDoneCallback callback,
|
||||
void* context);
|
||||
DesktopViewPinTimeout* desktop_view_pin_timeout_alloc(void);
|
||||
void desktop_view_pin_timeout_free(DesktopViewPinTimeout*);
|
||||
void desktop_view_pin_timeout_start(DesktopViewPinTimeout* instance, uint32_t time_left);
|
||||
View* desktop_view_pin_timeout_get_view(DesktopViewPinTimeout* instance);
|
Reference in New Issue
Block a user