Loading...
Searching...
No Matches
stores Directory Reference

Files

 
calendar_store.c
 The active calendar store: holds the agenda, owns the appmessage calendar channel, and asks the phone for more whenever its turn on the face's cadence finds a poll due.
 
calendar_store.h
 Active calendar store. It owns the appmessage calendar channel and its place on the shared cadence, so a face just hands it the rules (live / poll interval), optionally seeds it, then reads the events and subscribes for repaints. The phone data flows straight in and nobody wires it.
 
health_hr_day.c
 The health store's heart rate day: today's heart rate by the hour, filled from the watch's minute log at launch and from each reading after. A face turns it on with HEALTH_HR_DAY, and one that never names it carries none of this.
 
health_hr_history.c
 The health store's heart rate graph: the last hour of heart rate, a reading a minute, saved to flash so a relaunch shows it straight away. A face turns it on with HEALTH_HR_HISTORY, and one that never names it carries none of this.
 
health_hrv.c
 The heart rate variability half of the health store.
 
health_hrv.h
 The heart rate variability half of the health store. It asks the watch for beat gaps now and then, holds the sensor on while a burst is measured, and keeps the latest reading.
 
health_step_history.c
 The health store's hourly steps: today's steps by the hour for a bar chart. A face turns it on with HEALTH_STEP_HISTORY, and one that never names it carries none of this.
 
health_store.c
 The active health store: reads the watch's health service and holds the numbers. It owns the service accessors too so it is the single point of truth for health.
 
health_store.h
 Active health store. It subscribes to the watch's health service itself and holds the readings, so a face just hands it the rules, optionally seeds it, then reads the numbers back.
 
health_store_parts.h
 What the health store shares with its optional parts, the heart rate graph, the hourly steps, and the heart rate day. A face never includes this. It names a part in its HealthConfig.
 
location_store.c
 The active location store: holds the phone's coordinates and owns the appmessage coords channel.
 
location_store.h
 Active location store. It owns the appmessage coords channel (the same phone geolocation the weather rides on), so a face hands it the rules, optionally seeds it, then reads lat/lon back. There's no poll timer. Coords arrive alongside weather.
 
music_store.c
 The active music store: holds what the phone is playing, owns the appmessage now playing channel, and asks the phone again at launch and whenever the link comes back.
 
music_store.h
 Active music store: what the phone is playing, as a Pebble app music plugin reports it.
 
phone_store.c
 The active phone store: holds the phone's battery level, owns the appmessage phone battery channel, and asks the phone again at launch and whenever the link comes back.
 
phone_store.h
 Active phone store: the phone's own battery, as a Pebble app plugin on the phone reports it.
 
stock_store.c
 The active stock store: holds the quotes, owns the appmessage stock channel, and asks the phone for more whenever its turn on the face's cadence finds a poll due.
 
stock_store.h
 Active stock store. It owns the appmessage stock channel and its place on the shared cadence, so a face just hands it the rules (live / poll interval), optionally seeds it, then reads the slots and subscribes for repaints. The phone data flows straight in and nobody wires it.
 
store_cadence.c
 Holds the list of work the stores want run on the face's cadence.
 
store_cadence.h
 The shared cadence the stores hang their periodic work on.
 
store_fetch.c
 The fetch timing the polling stores share, in one copy every store links against.
 
store_fetch.h
 The fetch timing the polling stores share: the one-shot catch-up, the cadence turn, the ask when the phone comes back, and what an init or a reconfigure does to them.
 
store_persist.c
 The save that skips an unchanged reading and the restore that feeds it, in one copy every store links against.
 
store_persist.h
 Shared persist save and restore helpers for the stores.
 
store_poll.c
 The polling decisions the weather, stock, and calendar stores share.
 
store_poll.h
 Wall-clock deadlines for the stores that poll the phone.
 
store_sum.c
 The checksum the stores compare before saving, in one copy every store links against.
 
store_sum.h
 A checksum of a store's reading, so a reply that brings nothing new costs no flash write.
 
system_store.c
 The active system store: holds the battery + bluetooth state and subscribes to the battery and connection services itself. The alarm is read through on demand.
 
system_store.h
 Active system store: the watch's own battery, bluetooth and next-alarm state. It subscribes to the battery and connection services itself and buzzes on a bluetooth change through a policy the face installs (so the store never has to know about settings or buzzing).
 
time_store.c
 The active time store: holds the current time and owns the tickers that update it.
 
time_store.h
 Active time store. It owns the tickers (the minute tick, the swatch .beats AppTimer, and the hour tick) and swaps between them for the current cadence, so a face just hands it the rules and reads the time back.
 
weather_store.c
 The active weather store: holds the readings, owns the appmessage weather channels, and asks the phone for more whenever its turn on the face's cadence finds a poll due.
 
weather_store.h
 Active weather store. It owns the appmessage weather channels and its place on the shared cadence, so a face just hands it the rules (live / poll interval), optionally seeds it, then reads the values and subscribes for repaints. The phone data flows straight in and nobody wires it.