3#include <core/pubsub.h>
11#define RECORD_BUSY_TIMER "busy_timer"
27 BusyTimerEventTypeTick,
28 BusyTimerEventTypeModeChanged,
29 BusyTimerEventTypeStateChanged,
30 BusyTimerEventTypeIntervalEnded,
31 BusyTimerEventTypePaused,
32 BusyTimerEventTypeProfileChanged,
33 BusyTimerEventTypeSnapshotCreated,
34 BusyTimerEventTypeMax,
38 uint32_t time_elapsed_s;
39 uint32_t time_remaining_s;
59 BusyTimerProfileId profile_id;
68 BusyTimerEventType type;
83 uint32_t current_interval_idx;
89 bool is_demo_mode_enabled;
92FuriPubSub* busy_timer_get_pubsub(
const BusyTimer* instance);
94void busy_timer_start(
BusyTimer* instance, BusyTimerProfileId profile_id);
98void busy_timer_toggle(
BusyTimer* instance);
100void busy_timer_skip(
BusyTimer* instance);
102void busy_timer_finalize(
BusyTimer* instance);
104void busy_timer_add_time(
BusyTimer* instance, int32_t time_minutes);
112const char* busy_timer_get_profile_name(BusyTimerProfileId profile_id);
114void busy_timer_get_profile(
116 BusyTimerProfileId profile_id,
119void busy_timer_set_profile(
121 BusyTimerProfileId profile_id,
124void busy_timer_get_preset(
126 BusyTimerProfileId profile_id,
129void busy_timer_set_preset(
131 BusyTimerProfileId profile_id,
134const char** busy_timer_get_mode_names(
void);
Common BUSY application defines and variables.
Common BusyTimer types & macros.
Data types and functions for BusyTimer snapshot handling.
BusyApp configuration structure.
Definition busy_common.h:22
Definition busy_timer_common.h:72
Definition busy_timer.h:67
Definition busy_timer.h:50
Definition busy_timer.h:42
Definition busy_timer.h:54
Definition busy_timer.h:58
Definition busy_timer.h:63
Definition busy_timer.h:46
Definition busy_timer.h:37
Definition busy_timer_i.h:110
Definition busy_timer.h:86
Definition busy_timer_profile.h:20
Definition busy_timer.h:80
Definition busy_timer_snapshot.h:42