PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
insights_settings.h File Reference
#include "activity.h"
#include <pbl/fs/fs.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  ActivityRewardSettings
 Reward insight settings. More...
 
struct  ActivitySummarySettings
 Summary pin settings. More...
 
struct  ActivitySessionSettings
 Activity session insight settings. More...
 
struct  ActivityInsightSettings
 Settings of one insight. More...
 
union  ActivityRewardSettings.__unnamed58__
 Insight specific settings. More...
 
struct  ActivityRewardSettings.__unnamed58__.sleep
 Sleep reward settings. More...
 
struct  ActivityRewardSettings.__unnamed58__.activity
 Activity reward settings. More...
 
union  ActivitySummarySettings.__unnamed62__
 Insight specific settings. More...
 
struct  ActivitySummarySettings.__unnamed62__.activity
 Activity summary settings. More...
 
struct  ActivitySummarySettings.__unnamed62__.sleep
 Sleep summary settings. More...
 
union  ActivitySessionSettings.__unnamed66__
 Session type specific settings. More...
 
struct  ActivitySessionSettings.__unnamed66__.activity
 Walk and run settings. More...
 
union  ActivityInsightSettings.__unnamed69__
 Insight specific settings. More...
 

Macros

#define ACTIVITY_INSIGHTS_SETTINGS_SLEEP_REWARD   "sleep_reward"
 Key of the sleep reward settings.
 
#define ACTIVITY_INSIGHTS_SETTINGS_SLEEP_SUMMARY   "sleep_summary"
 Key of the sleep summary settings.
 
#define ACTIVITY_INSIGHTS_SETTINGS_ACTIVITY_REWARD   "activity_reward"
 Key of the activity reward settings.
 
#define ACTIVITY_INSIGHTS_SETTINGS_ACTIVITY_SUMMARY   "activity_summary"
 Key of the activity summary settings.
 
#define ACTIVITY_INSIGHTS_SETTINGS_ACTIVITY_SESSION   "activity_session"
 Key of the activity session settings.
 

Functions

bool activity_insights_settings_read (const char *insight_name, ActivityInsightSettings *settings_out)
 Read the settings of an insight.
 
bool activity_insights_settings_write (const char *insight_name, ActivityInsightSettings *settings)
 Write the settings of an insight (testing).
 
uint16_t activity_insights_settings_get_version (void)
 Get the version of the insights settings file contents.
 
void activity_insights_settings_init (void)
 Initialize the insights settings file.
 
struct pbl_fs_watch * activity_insights_settings_watch (pbl_fs_watch_cb_t callback)
 Watch the insights settings file.
 
void activity_insights_settings_unwatch (struct pbl_fs_watch *watch)
 Stop watching the insights settings file.