PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
insights_settings.h File Reference
#include "activity.h"
#include <pbl/services/filesystem/pfs.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.__unnamed53__
 Insight specific settings. More...
 
struct  ActivityRewardSettings.__unnamed53__.sleep
 Sleep reward settings. More...
 
struct  ActivityRewardSettings.__unnamed53__.activity
 Activity reward settings. More...
 
union  ActivitySummarySettings.__unnamed57__
 Insight specific settings. More...
 
struct  ActivitySummarySettings.__unnamed57__.activity
 Activity summary settings. More...
 
struct  ActivitySummarySettings.__unnamed57__.sleep
 Sleep summary settings. More...
 
union  ActivitySessionSettings.__unnamed61__
 Session type specific settings. More...
 
struct  ActivitySessionSettings.__unnamed61__.activity
 Walk and run settings. More...
 
union  ActivityInsightSettings.__unnamed64__
 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.
 
PFSCallbackHandle activity_insights_settings_watch (PFSFileChangedCallback callback)
 Watch the insights settings file.
 
void activity_insights_settings_unwatch (PFSCallbackHandle cb_handle)
 Stop watching the insights settings file.