mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
37 lines
927 B
C
37 lines
927 B
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <gui/scene_manager.h>
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Intended to be called by settings apps to handle long presses, as well as
|
|
* internally from within the archive
|
|
*
|
|
* @param app_name name of the referring application
|
|
* @param setting name of the setting, which will be both displayed to the user
|
|
* and passed to the application as an argument upon recall
|
|
*/
|
|
void archive_favorites_handle_setting_pin_unpin(const char* app_name, const char* setting);
|
|
|
|
bool process_favorite_launch(char** p);
|
|
|
|
typedef struct {
|
|
ViewDispatcher* view_dispatcher;
|
|
SceneManager* scene_manager;
|
|
} FavoriteTImeoutCtx;
|
|
|
|
void favorite_timeout_callback(void* _ctx);
|
|
|
|
void favorite_timeout_run(ViewDispatcher* view_dispatcher, SceneManager* scene_manager);
|
|
|
|
void run_with_default_app(const char* path);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|